active_record_stats 0.1.3 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTljOTdjZDFiNmM4MWQ4ZGQ1ZGM0ZTM0ZDc0YTI0NDMzODczMjg4OQ==
5
- data.tar.gz: !binary |-
6
- OTI3MTMxMTg1MjA5YzVhNDI4YjMxZjQwOWZiYTI2MzI0YTM5NmVlZA==
2
+ SHA256:
3
+ metadata.gz: 1d483609320c3d72f387fd5ffad62630244dc45ef6e51174d8ecae4e2570873a
4
+ data.tar.gz: 44e3ec24e363981b2c591a8b3090abfcaed10b0841f2a45b8b13e3c1e9babdf8
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MDZlZTM0MjMzNTk0MjQ4ODU5M2NhNGU3NTUzOTA0MmZmNzVhYWQ4YTM5Njg4
10
- MTM4NGQwODk1ODU4Zjg2MWIwMzYwNjcwZTgzODQ3YzM5ODkxMTEyMmRjNTVh
11
- MGJkZDM2YzlkMDYzOTczMDJiZjE1YTRmZDNmM2VhYzg1MDc2NmE=
12
- data.tar.gz: !binary |-
13
- ZmI0NDhlMzQ5NWM3NTQ5MTYyMjNkMGJlMGRlNmE1ODQzMzI5MWZkYTQ0YWRh
14
- ODI2OTFlY2QyNGQ1M2E2ZjZjMzU0OGY5MDg1YTRmMzhmNWIwYjM3MWU3MThj
15
- ZWEwMzk1NWUwOTkxN2EzZjIwNDk3YzRlYmQyNzYyMjQ4OTU2MGI=
6
+ metadata.gz: b7a76b9d64db385b1d762d6b9d84d7d46afb64b3e2f0b88b443181fb0769d9651365ccfb737fc05d18c344a137ede4b07b2b7e27c127694cf782be2dab8cff3d
7
+ data.tar.gz: 916ab749f1c52a75ce686f49acdfdd3111d3f83f5a7f36c06631e844a8c20626ee35534d06eb30fb2bcf3af39fc70116728b9b4a45b70cec998b9b2d3ce7b0ff
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_runtime_dependency 'activerecord', '~> 4.0'
23
- spec.add_runtime_dependency 'statsd-instrument', '~> 2.0', '>= 2.0.4'
22
+ spec.add_runtime_dependency 'activerecord', '>= 4.0'
23
+ spec.add_runtime_dependency 'statsd-instrument', '>= 2.0.4'
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.11"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'coveralls', '~> 0.8'
30
30
 
31
31
  spec.add_development_dependency 'pg', '~> 0.18'
32
- spec.add_development_dependency 'actionpack', '~> 4.0'
32
+ spec.add_development_dependency 'actionpack'
33
33
  spec.add_development_dependency 'rack-test', '~> 0.6'
34
34
  end
@@ -1,5 +1,6 @@
1
1
  require 'active_record_stats'
2
2
  require 'active_support/notifications'
3
+ require 'action_dispatch/http/mime_type'
3
4
  require 'action_dispatch/http/parameters'
4
5
 
5
6
  module ActiveRecordStats
@@ -25,7 +26,7 @@ module ActiveRecordStats
25
26
  }
26
27
 
27
28
  gather_runtime = ->(_name, _started_at, _finished_at, _unique_id, payload) {
28
- db_time = payload[:db_runtime]
29
+ db_time = payload.fetch(:db_runtime) { 0 }
29
30
  }
30
31
 
31
32
  subs = [
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordStats
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,159 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Hargraves
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: statsd-instrument
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- - - ! '>='
31
+ - - ">="
35
32
  - !ruby/object:Gem::Version
36
33
  version: 2.0.4
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: '2.0'
44
- - - ! '>='
38
+ - - ">="
45
39
  - !ruby/object:Gem::Version
46
40
  version: 2.0.4
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.11'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
- - - ~>
52
+ - - "~>"
59
53
  - !ruby/object:Gem::Version
60
54
  version: '1.11'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: rake
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
- - - ~>
59
+ - - "~>"
66
60
  - !ruby/object:Gem::Version
67
61
  version: '10.0'
68
62
  type: :development
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
- - - ~>
66
+ - - "~>"
73
67
  - !ruby/object:Gem::Version
74
68
  version: '10.0'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: rspec
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - ~>
73
+ - - "~>"
80
74
  - !ruby/object:Gem::Version
81
75
  version: '3.0'
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
- - - ~>
80
+ - - "~>"
87
81
  - !ruby/object:Gem::Version
88
82
  version: '3.0'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: pry
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - ~>
87
+ - - "~>"
94
88
  - !ruby/object:Gem::Version
95
89
  version: '0.10'
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
- - - ~>
94
+ - - "~>"
101
95
  - !ruby/object:Gem::Version
102
96
  version: '0.10'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: coveralls
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
- - - ~>
101
+ - - "~>"
108
102
  - !ruby/object:Gem::Version
109
103
  version: '0.8'
110
104
  type: :development
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
- - - ~>
108
+ - - "~>"
115
109
  - !ruby/object:Gem::Version
116
110
  version: '0.8'
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: pg
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
- - - ~>
115
+ - - "~>"
122
116
  - !ruby/object:Gem::Version
123
117
  version: '0.18'
124
118
  type: :development
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
- - - ~>
122
+ - - "~>"
129
123
  - !ruby/object:Gem::Version
130
124
  version: '0.18'
131
125
  - !ruby/object:Gem::Dependency
132
126
  name: actionpack
133
127
  requirement: !ruby/object:Gem::Requirement
134
128
  requirements:
135
- - - ~>
129
+ - - ">="
136
130
  - !ruby/object:Gem::Version
137
- version: '4.0'
131
+ version: '0'
138
132
  type: :development
139
133
  prerelease: false
140
134
  version_requirements: !ruby/object:Gem::Requirement
141
135
  requirements:
142
- - - ~>
136
+ - - ">="
143
137
  - !ruby/object:Gem::Version
144
- version: '4.0'
138
+ version: '0'
145
139
  - !ruby/object:Gem::Dependency
146
140
  name: rack-test
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
149
- - - ~>
143
+ - - "~>"
150
144
  - !ruby/object:Gem::Version
151
145
  version: '0.6'
152
146
  type: :development
153
147
  prerelease: false
154
148
  version_requirements: !ruby/object:Gem::Requirement
155
149
  requirements:
156
- - - ~>
150
+ - - "~>"
157
151
  - !ruby/object:Gem::Version
158
152
  version: '0.6'
159
153
  description: ActiveRecord instrumentation for Rails, Resque and Sidekiq
@@ -163,11 +157,11 @@ executables: []
163
157
  extensions: []
164
158
  extra_rdoc_files: []
165
159
  files:
166
- - .gitignore
167
- - .rspec
168
- - .ruby-version
169
- - .simplecov
170
- - .travis.yml
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - ".ruby-version"
163
+ - ".simplecov"
164
+ - ".travis.yml"
171
165
  - Gemfile
172
166
  - LICENSE.txt
173
167
  - README.md
@@ -184,24 +178,23 @@ homepage: https://github.com/enova/active_record_stats
184
178
  licenses:
185
179
  - MIT
186
180
  metadata: {}
187
- post_install_message:
181
+ post_install_message:
188
182
  rdoc_options: []
189
183
  require_paths:
190
184
  - lib
191
185
  required_ruby_version: !ruby/object:Gem::Requirement
192
186
  requirements:
193
- - - ! '>='
187
+ - - ">="
194
188
  - !ruby/object:Gem::Version
195
189
  version: '0'
196
190
  required_rubygems_version: !ruby/object:Gem::Requirement
197
191
  requirements:
198
- - - ! '>='
192
+ - - ">="
199
193
  - !ruby/object:Gem::Version
200
194
  version: '0'
201
195
  requirements: []
202
- rubyforge_project:
203
- rubygems_version: 2.4.5
204
- signing_key:
196
+ rubygems_version: 3.1.6
197
+ signing_key:
205
198
  specification_version: 4
206
199
  summary: Emit ActiveRecord query counts and runtime to StatsD
207
200
  test_files: []