query_counter 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/query_counter.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 287f722b0315a6c58aaf972b350675f5109b00e86c74bf77066f77e1dc206946
4
- data.tar.gz: 8611d58903ea5f9f4157ddba804d28fb72702408bbcfbaa9b004a49c80adfe07
3
+ metadata.gz: 754ca4bd6e2eb1b7e40223d2c9b19ab0875b387b88060abfc31972a38737ae15
4
+ data.tar.gz: a9204b9775d0df87f61443e3f1c6a854dc15e08f002a31fb823a79f09d78855c
5
5
  SHA512:
6
- metadata.gz: a45341c89a30c7e65fe7d31c8a43d921cb9ae33f9b1f261cc2278cd5bd7ac74fff16bc1f3e8f66ebd99e621af2dec8bb5348514550d7b5ff1e16ab879e471c70
7
- data.tar.gz: dd6e67759841de70a6acb4b7980da38081cb25b6afe6d8e6bf7f0a550c3d75e7555aa3157c86aaf2ab585043a30566498154e84fde42197f361b6f04fb0bd1c6
6
+ metadata.gz: 20ac3837354edfa08f7e3f40762a726cf4465fa0cd7d2b2c476b8747efbc4ed7726081c417e497e0adab217fbd9edbf1e8e2fbeddafe758bf8a33d50237869dc
7
+ data.tar.gz: 416e004b81186f3327739fb2bed2d0050362cb055233a936604356396d986950298586f03d8b135a220a6b6caddf97db3b6933fc33bac935bf8d8860fdd444e7
@@ -89,7 +89,7 @@ module QueryCounter
89
89
  new_method_name = "#{method_name}_with_instrumentation#{punctuation}"
90
90
  kls.class_eval <<STR
91
91
  def #{new_method_name}(*args)
92
- QueryCounter.callbacks[#{callback_name.inspect}].call(args) if QueryCounter.callbacks.has_key?(#{callback_name})
92
+ ::QueryCounter.callbacks[#{callback_name.inspect}].call(args) if ::QueryCounter.callbacks.has_key?(#{callback_name.inspect})
93
93
  started_at = Time.now
94
94
  result = #{original_method_name_with_alias}(*args)
95
95
  ::QueryCounter.record(#{resource.inspect}, (Time.now - started_at) * 1_000.0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_counter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch