lib/sidekiq_prometheus.rb in sidekiq_prometheus-1.9.0 vs lib/sidekiq_prometheus.rb in sidekiq_prometheus-2.0.0

- old
+ new

@@ -237,9 +237,13 @@ }, **opts ) end end + + def sidekiq_seven? + @sk7 ||= Gem::Version.new(Sidekiq::VERSION) >= Gem::Version.new("7.0") + end end class SidekiqPrometheus::Error < StandardError; end require "sidekiq_prometheus/job_metrics"