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