lib/ddtrace/contrib/ethon/integration.rb in ddtrace-0.33.0 vs lib/ddtrace/contrib/ethon/integration.rb in ddtrace-0.33.1
- old
+ new
@@ -6,21 +6,24 @@
module Contrib
module Ethon
# Description of Ethon integration
class Integration
include Contrib::Integration
+
+ MINIMUM_VERSION = Gem::Version.new('0.11.0')
+
register_as :ethon
def self.version
Gem.loaded_specs['ethon'] && Gem.loaded_specs['ethon'].version
end
def self.loaded?
- defined?(::Ethon::Easy)
+ !defined?(::Ethon::Easy).nil?
end
def self.compatible?
- super && version >= Gem::Version.new('0.11.0')
+ super && version >= MINIMUM_VERSION
end
def default_configuration
Configuration::Settings.new
end