ldclient-rb.gemspec in ldclient-rb-2.5.0 vs ldclient-rb.gemspec in ldclient-rb-3.0.0

- old
+ new

@@ -28,11 +28,16 @@ spec.add_development_dependency "redis", "~> 3.3.5" spec.add_development_dependency "connection_pool", ">= 2.1.2" spec.add_development_dependency "moneta", "~> 1.0.0" spec.add_runtime_dependency "json", [">= 1.8", "< 3"] - spec.add_runtime_dependency "faraday", [">= 0.9", "< 2"] - spec.add_runtime_dependency "faraday-http-cache", [">= 1.3.0", "< 3"] + if RUBY_VERSION >= "2.1.0" + spec.add_runtime_dependency "faraday", [">= 0.9", "< 2"] + spec.add_runtime_dependency "faraday-http-cache", [">= 1.3.0", "< 3"] + else + spec.add_runtime_dependency "faraday", [">= 0.9", "< 0.14.0"] + spec.add_runtime_dependency "faraday-http-cache", [">= 1.3.0", "< 2"] + end spec.add_runtime_dependency "semantic", "~> 1.6.0" spec.add_runtime_dependency "thread_safe", "~> 0.3" spec.add_runtime_dependency "net-http-persistent", "~> 2.9" spec.add_runtime_dependency "concurrent-ruby", "~> 1.0.4" spec.add_runtime_dependency "hashdiff", "~> 0.2"