@@ -13,13 +13,24 @@ Gem::Specification.new do |spec|
13
13
spec . homepage = "https://github.com/jsmestad/jsonapi-consumer"
14
14
spec . license = "Apache-2.0"
15
15
16
- spec . files = `git ls-files -z` . split ( "\x0 " ) - [ 'Guardfile' , '.travis.yml' ]
17
- spec . executables = spec . files . grep ( %r{^bin/} ) { |f | File . basename ( f ) }
18
- spec . test_files = spec . files . grep ( %r{^(test|spec|features)/} )
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec . respond_to? ( :metadata )
19
+ spec . metadata [ "allowed_push_host" ] = ""
20
+ else
21
+ raise "RubyGems 2.0 or newer is required to protect against " \
22
+ "public gem pushes."
23
+ end
24
+
25
+ spec . files = `git ls-files -z` . split ( "\x0 " ) . reject do |f |
26
+ f . match ( %r{^(test|spec|features)/} )
27
+ end
28
+ spec . bindir = "exe"
29
+ spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
19
30
spec . require_paths = [ "lib" ]
20
31
21
32
spec . add_runtime_dependency "activesupport" , '>= 3.2'
22
- spec . add_runtime_dependency "faraday" , '~> 0.9'
33
+ spec . add_runtime_dependency "faraday" , '>= 0.9'
23
34
spec . add_runtime_dependency "faraday_middleware"
24
35
spec . add_runtime_dependency "addressable" , '~> 2.5.2'
25
36
spec . add_runtime_dependency "activemodel" , '>= 3.2'
0 commit comments