Skip to content

Commit 6ebf107

Browse files
Merge pull request #5 from launchdarkly/ac/nio4r
Rails 5 support
2 parents f37c620 + c0b7240 commit 6ebf107

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
machine:
22
environment:
3-
RUBIES: "ruby-2.4.1;ruby-2.2.2;jruby-9.0.0.0"
3+
RUBIES: "ruby-2.4.1;ruby-2.2.3;ruby-2.1.7;ruby-2.0.0;ruby-1.9.3;jruby-1.7.22"
44

55
dependencies:
66
cache_directories:

ldclient-rb.gemspec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ Gem::Specification.new do |spec|
3333
spec.add_runtime_dependency "hashdiff", "~> 0.2"
3434
spec.add_runtime_dependency "ld-celluloid-eventsource", "~> 0.9.0"
3535
spec.add_runtime_dependency "celluloid", "~> 0.18.0.pre" # transitive dep; specified here for more control
36-
spec.add_runtime_dependency "nio4r", "~> 2.0" # for maximum ruby version compatibility.
36+
37+
if RUBY_VERSION >= '2.2.2'
38+
spec.add_runtime_dependency "nio4r", "< 3" # for maximum ruby version compatibility.
39+
else
40+
spec.add_runtime_dependency "nio4r", "~> 1.1" # for maximum ruby version compatibility.
41+
end
3742

3843
spec.add_runtime_dependency "waitutil", "0.2"
3944
end

0 commit comments

Comments
 (0)