bugsnag-api.gemspec in bugsnag-api-2.1.0 vs bugsnag-api.gemspec in bugsnag-api-2.1.1

- old
+ new

@@ -37,22 +37,28 @@ spec.add_development_dependency "rubocop", "~> 0.52.1" spec.add_development_dependency "faker", "> 1.7.3" end if RUBY_VERSION < "2.0.0" - spec.add_development_dependency "json", "< 2.0.0" spec.add_development_dependency "webmock", "2.3.2" spec.add_development_dependency "addressable", "2.3.6" # hashdiff is used by webmock spec.add_development_dependency "hashdiff", "< 0.3.8" # parser is used by rubocop spec.add_development_dependency "parser", "< 2.5.0" else - spec.add_development_dependency "json" spec.add_development_dependency "webmock", "> 2.3.2" spec.add_development_dependency "addressable", "> 2.3.6" + end + + if RUBY_VERSION < "2.0.0" + spec.add_development_dependency "json", "< 2.0.0" + elsif RUBY_VERSION < "2.3.0" + spec.add_development_dependency "json", "< 2.6.0" + else + spec.add_development_dependency "json" end # public_suffix is used by addressable & sawyer if RUBY_VERSION < "2.0.0" spec.add_development_dependency "public_suffix", "< 1.5.0"