lib/celluloid/fiber.rb in celluloid-0.7.1 vs lib/celluloid/fiber.rb in celluloid-0.7.2

- old
+ new

@@ -6,11 +6,11 @@ if RUBY_VERSION < "1.9.2" raise LoadError, "Celluloid requires JRuby 1.9 mode. Please pass the --1.9 flag or set JRUBY_OPTS=--1.9" end # Fibers are broken on JRuby 1.6.5. This works around the issue - if JRUBY_VERSION == "1.6.5" + if JRUBY_VERSION[/^1\.6\.5/] require 'jruby' org.jruby.ext.fiber.FiberExtLibrary.new.load(JRuby.runtime, false) class org::jruby::ext::fiber::ThreadFiber field_accessor :state end @@ -28,6 +28,6 @@ # If we're on Rubinius, we can still work in 1.8 mode Fiber = Rubinius::Fiber else raise ex end -end \ No newline at end of file +end