|
| 1 | +# frozen_string_literal: true |
| 2 | + |
1 | 3 | require_relative 'lib/postgrest/version'
|
2 | 4 |
|
3 | 5 | Gem::Specification.new do |spec|
|
4 |
| - spec.name = "postgrest" |
| 6 | + spec.name = 'postgrest' |
5 | 7 | spec.version = Postgrest::VERSION
|
6 |
| - spec.authors = ["Marcelo Barreto"] |
7 |
| - spec.email = ["[email protected]"] |
| 8 | + spec.authors = ['Marcelo Barreto'] |
| 9 | + spec.email = ['[email protected]'] |
8 | 10 |
|
9 |
| - spec.summary = "Ruby client for PostgREST" |
10 |
| - spec.description = "Ruby client for PostgREST" |
11 |
| - spec.homepage = "https://github.com/marcelobarreto/postgrest-rb" |
12 |
| - spec.license = "MIT" |
13 |
| - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") |
| 11 | + spec.summary = 'Ruby client for PostgREST' |
| 12 | + spec.description = 'Ruby client for PostgREST' |
| 13 | + spec.homepage = 'https://github.com/marcelobarreto/postgrest-rb' |
| 14 | + spec.license = 'MIT' |
| 15 | + spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0') |
14 | 16 |
|
15 |
| - spec.metadata["homepage_uri"] = spec.homepage |
16 |
| - spec.metadata["source_code_uri"] = "https://github.com/marcelobarreto/postgrest-rb" |
| 17 | + spec.metadata['homepage_uri'] = spec.homepage |
| 18 | + spec.metadata['source_code_uri'] = 'https://github.com/marcelobarreto/postgrest-rb' |
17 | 19 |
|
18 | 20 | # Specify which files should be added to the gem when it is released.
|
19 | 21 | # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20 |
| - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do |
| 22 | + spec.files = Dir.chdir(File.expand_path(__dir__)) do |
21 | 23 | `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22 | 24 | end
|
23 |
| - spec.bindir = "exe" |
| 25 | + spec.bindir = 'exe' |
24 | 26 | spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25 |
| - spec.require_paths = ["lib"] |
| 27 | + spec.require_paths = ['lib'] |
26 | 28 |
|
27 |
| - spec.add_development_dependency "pry" |
| 29 | + spec.add_development_dependency 'pry' |
| 30 | + spec.add_development_dependency 'rspec', '~> 3.5' |
| 31 | + spec.add_development_dependency 'rubocop', '~> 1.13.0' |
| 32 | + spec.add_development_dependency 'simplecov', '~> 0.21.2' |
28 | 33 | end
|
0 commit comments