ldclient-rb.gemspec in ldclient-rb-2.1.0 vs ldclient-rb.gemspec in ldclient-rb-2.1.4

- old
+ new

@@ -31,9 +31,14 @@ 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" spec.add_runtime_dependency "ld-celluloid-eventsource", "~> 0.9.0" spec.add_runtime_dependency "celluloid", "~> 0.18.0.pre" # transitive dep; specified here for more control - spec.add_runtime_dependency "nio4r", "~> 1.1" # for maximum ruby version compatibility. + + if RUBY_VERSION >= '2.2.2' + spec.add_runtime_dependency "nio4r", "< 3" # for maximum ruby version compatibility. + else + spec.add_runtime_dependency "nio4r", "~> 1.1" # for maximum ruby version compatibility. + end spec.add_runtime_dependency "waitutil", "0.2" end