active_record_stats 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGMxOTQ5OWY1NDIxMzlhYWYzZTg5YmJmZWY1ZjQzZWFlODU2YTAyZA==
4
+ YTljOTdjZDFiNmM4MWQ4ZGQ1ZGM0ZTM0ZDc0YTI0NDMzODczMjg4OQ==
5
5
  data.tar.gz: !binary |-
6
- ZTZhNDBiNDUyYzk5ZGZjM2MxNDllNjdiNjRhMTk5ZGQ3Mjg0YzQ0NA==
6
+ OTI3MTMxMTg1MjA5YzVhNDI4YjMxZjQwOWZiYTI2MzI0YTM5NmVlZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWQzOTMwM2E0NjM1MGNhZjEwNTY4OWRjZDU4MjRiYWIzNmE1Y2VhMDRlMWE3
10
- Y2FlZDYzMTQ5OGQ0ZGUzODY5MmZhNjUzZmUwMjJhNmU5YzMyM2QyZTgxZTI4
11
- MWJjMDU4OGIyNmNiNmY1M2Y0OThjYTYyYjdiMDQ3MzBiNGM5MzI=
9
+ MDZlZTM0MjMzNTk0MjQ4ODU5M2NhNGU3NTUzOTA0MmZmNzVhYWQ4YTM5Njg4
10
+ MTM4NGQwODk1ODU4Zjg2MWIwMzYwNjcwZTgzODQ3YzM5ODkxMTEyMmRjNTVh
11
+ MGJkZDM2YzlkMDYzOTczMDJiZjE1YTRmZDNmM2VhYzg1MDc2NmE=
12
12
  data.tar.gz: !binary |-
13
- NjdmODA1YzZmYTIwNDdiYzdhNDQzMWYzOTNiZDFiNGY3OWE1NTNjZDdkNjE4
14
- NmQyMDQxOWViY2M3OGIxYWM3ZjdjMDE1MGEzMzhiNTk5NTQ1YTdiMjkwYzFl
15
- ZDU2YzFhYmIzMDUzNDI0MDQxODc2YjUwYWVlZGIwMGM2NDk0MWU=
13
+ ZmI0NDhlMzQ5NWM3NTQ5MTYyMjNkMGJlMGRlNmE1ODQzMzI5MWZkYTQ0YWRh
14
+ ODI2OTFlY2QyNGQ1M2E2ZjZjMzU0OGY5MDg1YTRmMzhmNWIwYjM3MWU3MThj
15
+ ZWEwMzk1NWUwOTkxN2EzZjIwNDk3YzRlYmQyNzYyMjQ4OTU2MGI=
@@ -44,7 +44,7 @@ module ActiveRecordStats
44
44
  if request_params && controller = request_params['controller']
45
45
  controller = controller.gsub('/', '__')
46
46
  action = request_params['action']
47
- emit(controller, action, db_time, totals)
47
+ emit(controller, action, db_time, totals.dup)
48
48
  end
49
49
  end
50
50
 
@@ -17,7 +17,7 @@ module ActiveRecordStats
17
17
 
18
18
  ensure
19
19
  ActiveSupport::Notifications.unsubscribe(sub)
20
- emit_active_record_stats(name, totals)
20
+ emit_active_record_stats(name, totals.dup)
21
21
  end
22
22
 
23
23
  private
@@ -17,7 +17,7 @@ module ActiveRecordStats
17
17
 
18
18
  ensure
19
19
  ActiveSupport::Notifications.unsubscribe(sub)
20
- emit(worker.class.to_s, totals)
20
+ emit(worker.class.to_s, totals.dup)
21
21
  end
22
22
 
23
23
  private
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordStats
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Hargraves
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord