lib/new_relic/agent/instrumentation/excon.rb in newrelic_rpm-3.18.1.330 vs lib/new_relic/agent/instrumentation/excon.rb in newrelic_rpm-4.0.0.332

- old
+ new

@@ -23,18 +23,18 @@ # something else after we install our instrumentation. Ideally, excon would # itself conform to the #subscribe interface of ActiveSupport::Notifications, # so we could safely subscribe and not be clobbered by future subscribers, # but alas, it does not yet. - EXCON_MIN_VERSION = ::NewRelic::VersionNumber.new("0.10.1") - EXCON_MIDDLEWARE_MIN_VERSION = ::NewRelic::VersionNumber.new("0.19.0") + EXCON_MIN_VERSION = Gem::Version.new("0.10.1") + EXCON_MIDDLEWARE_MIN_VERSION = Gem::Version.new("0.19.0") depends_on do defined?(::Excon) && defined?(::Excon::VERSION) end executes do - excon_version = NewRelic::VersionNumber.new(::Excon::VERSION) + excon_version = Gem::Version.new(::Excon::VERSION) if excon_version >= EXCON_MIN_VERSION install_excon_instrumentation(excon_version) else ::NewRelic::Agent.logger.warn("Excon instrumentation requires at least version #{EXCON_MIN_VERSION}") end