lib/ddtrace/contrib/rest_client/integration.rb in ddtrace-0.32.0 vs lib/ddtrace/contrib/rest_client/integration.rb in ddtrace-0.33.0

- old
+ new

@@ -12,11 +12,15 @@ def self.version Gem.loaded_specs['rest-client'] && Gem.loaded_specs['rest-client'].version end - def self.present? - super && defined?(::RestClient::Request) + def self.loaded? + defined?(::RestClient::Request) + end + + def self.compatible? + super && version >= Gem::Version.new('1.8') end def default_configuration Configuration::Settings.new end