ably.gemspec in ably-0.8.12 vs ably.gemspec in ably-0.8.13
- old
+ new
@@ -20,11 +20,15 @@
spec.add_runtime_dependency 'eventmachine', '~> 1.0'
spec.add_runtime_dependency 'em-http-request', '~> 1.1'
spec.add_runtime_dependency 'statesman', '~> 1.0.0'
spec.add_runtime_dependency 'faraday', '~> 0.9'
- spec.add_runtime_dependency 'json'
+ if RUBY_VERSION.match(/^1/)
+ spec.add_runtime_dependency 'json', '< 2.0'
+ else
+ spec.add_runtime_dependency 'json'
+ end
spec.add_runtime_dependency 'websocket-driver', '~> 0.6'
spec.add_runtime_dependency 'msgpack', '>= 0.6.2'
spec.add_runtime_dependency 'addressable', '>= 2.0.0'
spec.add_development_dependency 'bundler', '~> 1.3'
@@ -35,10 +39,10 @@
spec.add_development_dependency 'yard'
spec.add_development_dependency 'webmock'
spec.add_development_dependency 'coveralls'
- if RUBY_VERSION.match(/^2/)
+ unless RUBY_VERSION.match(/^1/)
spec.add_development_dependency 'pry'
spec.add_development_dependency 'pry-byebug'
end
end