finix.gemspec in finix-0.6 vs finix.gemspec in finix-0.7

- old
+ new

@@ -20,11 +20,17 @@ end spec.bindir = 'bin' spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_dependency('public_suffix', '~> 1.4.6') - spec.add_dependency('faraday', '~> 0.9.2') + spec.add_dependency('faraday', '~> 0.10.0') spec.add_dependency('faraday_middleware', '~> 0.10.1') - spec.add_dependency('addressable', '~> 2.3') - spec.add_dependency('json', '~> 1.8') + + if RUBY_VERSION >= '2.0' + spec.add_dependency('json', '~> 2.0.2') + spec.add_dependency('addressable', '~> 2.5.0') + else + spec.add_dependency('public_suffix', '~> 1.4.6') + spec.add_dependency('json', '~> 1.8') + spec.add_dependency('addressable', '~> 2.3') + end end