lib/madvertise/gc_stats.rb in madvertise-ext-0.5.3 vs lib/madvertise/gc_stats.rb in madvertise-ext-0.6.0

- old
+ new

@@ -36,10 +36,10 @@ objects = objects[:TOTAL] - objects[:FREE] Metriks.histogram('gc_stats.objects').update(objects) end end - if RUBY_VERSION =~ /^1\.9/ + if RUBY_ENGINE == 'ruby' and RUBY_VERSION =~ /^1\.9/ extend Yarv end def self.available? respond_to?(:gather)