lib/utf8_proc.rb in utf8_proc-0.3.0 vs lib/utf8_proc.rb in utf8_proc-0.4.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
require "utf8_proc/version"
module UTF8Proc
- if defined?(JRUBY_VERSION)
+ if RUBY_ENGINE == "jruby"
require "utf8_proc/jruby"
include JRuby
else
require "utf8_proc/utf8_proc"
end