lib/ddtrace/contrib/sucker_punch/integration.rb in ddtrace-0.32.0 vs lib/ddtrace/contrib/sucker_punch/integration.rb in ddtrace-0.33.0
- old
+ new
@@ -13,15 +13,15 @@
def self.version
Gem.loaded_specs['sucker_punch'] && Gem.loaded_specs['sucker_punch'].version
end
- def self.present?
- super && defined?(::SuckerPunch)
+ def self.loaded?
+ defined?(::SuckerPunch)
end
def self.compatible?
- super && Gem::Version.new(::SuckerPunch::VERSION) >= Gem::Version.new('2.0.0')
+ super && version >= Gem::Version.new('2.0.0')
end
def default_configuration
Configuration::Settings.new
end