Skip to content

Commit

Permalink
Fix a bug with __binding__ from Pry.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Strech committed Sep 4, 2018
1 parent 80989cb commit c1e32f4
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gemfiles/sidekiq_3.3.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
sidekiq-prometheus-exporter (0.1.3)
sidekiq-prometheus-exporter (0.1.4)
sidekiq (>= 3.3.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/sidekiq_3.x.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
sidekiq-prometheus-exporter (0.1.3)
sidekiq-prometheus-exporter (0.1.4)
sidekiq (>= 3.3.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/sidekiq_4.x.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
sidekiq-prometheus-exporter (0.1.3)
sidekiq-prometheus-exporter (0.1.4)
sidekiq (>= 3.3.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/sidekiq_5.x.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
sidekiq-prometheus-exporter (0.1.3)
sidekiq-prometheus-exporter (0.1.4)
sidekiq (>= 3.3.1)

GEM
Expand Down
4 changes: 4 additions & 0 deletions lib/sidekiq/prometheus/exporter/metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def initialize
@queues_stats = queues_stats
end

def __binding__
binding
end

private

def queues_stats
Expand Down
2 changes: 1 addition & 1 deletion lib/sidekiq/prometheus/exporter/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Sidekiq
module Prometheus
module Exporter
VERSION = '0.1.3'.freeze
VERSION = '0.1.4'.freeze
end
end
end
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'bundler/setup'
require 'pry-byebug'
require 'rack/test'
require 'simplecov'
require 'sidekiq/web'
Expand Down

0 comments on commit c1e32f4

Please sign in to comment.