test/performance/lib/performance/platform.rb in newrelic_rpm-3.18.1.330 vs test/performance/lib/performance/platform.rb in newrelic_rpm-4.0.0.332
- old
+ new
@@ -10,25 +10,18 @@
def jruby?
defined?(JRUBY_VERSION)
end
- def ree?
- defined?(RUBY_DESCRIPTION) && RUBY_DESCRIPTION =~ /MBARI/
- end
-
def match?(p)
case p
when :jruby then jruby?
when :mri then !jruby?
- when :ree then !jruby? && ree?
- when :mri_18 then !jruby? && RUBY_VERSION =~ /^1\.8\./
- when :mri_19 then !jruby? && RUBY_VERSION =~ /^1\.9\./
- when :mri_193 then !jruby? && RUBY_VERSION =~ /^1\.9\.3/
when :mri_20 then !jruby? && RUBY_VERSION =~ /^2\.0\./
when :mri_21 then !jruby? && RUBY_VERSION =~ /^2\.1\./
when :mri_22 then !jruby? && RUBY_VERSION =~ /^2\.2\./
when :mri_23 then !jruby? && RUBY_VERSION =~ /^2\.3\./
+ when :mri_24 then !jruby? && RUBY_VERSION =~ /^2\.4\./
end
end
def match_any?(platforms)
platforms.any? { |p| match?(p) }