librato-rails 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. data/lib/librato/rails/aggregator.rb +18 -15
  2. data/lib/librato/rails/version.rb +1 -1
  3. data/lib/librato/rails.rb +0 -1
  4. data/test/dummy/log/test.log +119 -4995
  5. data/test/integration/{helper_test.rb → custom_test.rb} +11 -11
  6. metadata +5 -48
  7. data/lib/librato/rails/helpers.rb +0 -19
  8. data/test/dummy/db/development.sqlite3 +0 -0
  9. data/test/dummy/log/development.log +0 -2189
  10. data/test/dummy/test_env.sh +0 -2
  11. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  12. data/test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e +0 -0
  13. data/test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28 +0 -0
  14. data/test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683 +0 -0
  15. data/test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a +0 -0
  16. data/test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c +0 -0
  17. data/test/dummy/tmp/cache/assets/D11/D90/sprockets%2Ff688bee5b15ad322749fd06432065df2 +0 -0
  18. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  19. data/test/dummy/tmp/cache/assets/D48/6E0/sprockets%2F3d5dd928c45756c99bb1018cdbba7485 +0 -0
  20. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  21. data/test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9 +0 -0
  22. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  23. data/test/dummy/tmp/cache/assets/D66/890/sprockets%2F789354d3ec91e1ba6c8e92878d8f6ff8 +0 -0
  24. data/test/dummy/tmp/cache/assets/D84/000/sprockets%2F2ed60caa8412eb8334fe327cab12cb32 +0 -0
  25. data/test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c +0 -0
  26. data/test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0 +0 -0
  27. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  28. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
@@ -1,28 +1,28 @@
1
1
  require 'test_helper'
2
2
 
3
- class HelperTest < ActiveSupport::IntegrationCase
4
-
5
- test 'controller helpers' do
3
+ class CustomTest < ActiveSupport::IntegrationCase
4
+
5
+ test 'controller access' do
6
6
  visit custom_path
7
-
7
+
8
8
  assert_equal 1, counters['custom.visits']
9
9
  assert_equal 3, counters['custom.events']
10
-
10
+
11
11
  assert_equal 12, aggregate['custom.timing'][:sum]
12
12
  assert_equal 2, aggregate['custom.timing'][:count]
13
13
  end
14
-
15
- test 'model class helpers' do
14
+
15
+ test 'model class access' do
16
16
  visit custom_path
17
-
17
+
18
18
  assert_equal 3, counters['custom.model.lookups']
19
19
  assert_equal 19.0, aggregate['custom.model.search'][:sum]
20
20
  assert_equal 2, aggregate['custom.model.search'][:count]
21
21
  end
22
-
23
- test 'model instance helpers' do
22
+
23
+ test 'model instance access' do
24
24
  visit custom_path
25
-
25
+
26
26
  assert_equal 1, counters['custom.model.touch']
27
27
  end
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librato-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -88,7 +88,6 @@ files:
88
88
  - lib/librato/rails/aggregator.rb
89
89
  - lib/librato/rails/counter_cache.rb
90
90
  - lib/librato/rails/group.rb
91
- - lib/librato/rails/helpers.rb
92
91
  - lib/librato/rails/railtie.rb
93
92
  - lib/librato/rails/subscribers.rb
94
93
  - lib/librato/rails/version.rb
@@ -136,11 +135,9 @@ files:
136
135
  - test/dummy/config/routes.rb
137
136
  - test/dummy/config/unicorn.rb
138
137
  - test/dummy/config.ru
139
- - test/dummy/db/development.sqlite3
140
138
  - test/dummy/db/migrate/20120719231810_create_users.rb
141
139
  - test/dummy/db/schema.rb
142
140
  - test/dummy/db/test.sqlite3
143
- - test/dummy/log/development.log
144
141
  - test/dummy/log/test.log
145
142
  - test/dummy/public/404.html
146
143
  - test/dummy/public/422.html
@@ -149,27 +146,8 @@ files:
149
146
  - test/dummy/Rakefile
150
147
  - test/dummy/README.rdoc
151
148
  - test/dummy/script/rails
152
- - test/dummy/test_env.sh
153
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
154
- - test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
155
- - test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28
156
- - test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
157
- - test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a
158
- - test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
159
- - test/dummy/tmp/cache/assets/D11/D90/sprockets%2Ff688bee5b15ad322749fd06432065df2
160
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
161
- - test/dummy/tmp/cache/assets/D48/6E0/sprockets%2F3d5dd928c45756c99bb1018cdbba7485
162
- - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
163
- - test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9
164
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
165
- - test/dummy/tmp/cache/assets/D66/890/sprockets%2F789354d3ec91e1ba6c8e92878d8f6ff8
166
- - test/dummy/tmp/cache/assets/D84/000/sprockets%2F2ed60caa8412eb8334fe327cab12cb32
167
- - test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c
168
- - test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
169
- - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
170
- - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
171
149
  - test/fixtures/config/librato.yml
172
- - test/integration/helper_test.rb
150
+ - test/integration/custom_test.rb
173
151
  - test/integration/mail_test.rb
174
152
  - test/integration/request_test.rb
175
153
  - test/integration/sql_test.rb
@@ -197,7 +175,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
175
  version: '0'
198
176
  segments:
199
177
  - 0
200
- hash: 3183536948491913828
178
+ hash: -1610088917956016659
201
179
  required_rubygems_version: !ruby/object:Gem::Requirement
202
180
  none: false
203
181
  requirements:
@@ -206,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
184
  version: '0'
207
185
  segments:
208
186
  - 0
209
- hash: 3183536948491913828
187
+ hash: -1610088917956016659
210
188
  requirements: []
211
189
  rubyforge_project:
212
190
  rubygems_version: 1.8.24
@@ -251,11 +229,9 @@ test_files:
251
229
  - test/dummy/config/routes.rb
252
230
  - test/dummy/config/unicorn.rb
253
231
  - test/dummy/config.ru
254
- - test/dummy/db/development.sqlite3
255
232
  - test/dummy/db/migrate/20120719231810_create_users.rb
256
233
  - test/dummy/db/schema.rb
257
234
  - test/dummy/db/test.sqlite3
258
- - test/dummy/log/development.log
259
235
  - test/dummy/log/test.log
260
236
  - test/dummy/public/404.html
261
237
  - test/dummy/public/422.html
@@ -264,27 +240,8 @@ test_files:
264
240
  - test/dummy/Rakefile
265
241
  - test/dummy/README.rdoc
266
242
  - test/dummy/script/rails
267
- - test/dummy/test_env.sh
268
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
269
- - test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
270
- - test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28
271
- - test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
272
- - test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a
273
- - test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
274
- - test/dummy/tmp/cache/assets/D11/D90/sprockets%2Ff688bee5b15ad322749fd06432065df2
275
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
276
- - test/dummy/tmp/cache/assets/D48/6E0/sprockets%2F3d5dd928c45756c99bb1018cdbba7485
277
- - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
278
- - test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9
279
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
280
- - test/dummy/tmp/cache/assets/D66/890/sprockets%2F789354d3ec91e1ba6c8e92878d8f6ff8
281
- - test/dummy/tmp/cache/assets/D84/000/sprockets%2F2ed60caa8412eb8334fe327cab12cb32
282
- - test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c
283
- - test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
284
- - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
285
- - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
286
243
  - test/fixtures/config/librato.yml
287
- - test/integration/helper_test.rb
244
+ - test/integration/custom_test.rb
288
245
  - test/integration/mail_test.rb
289
246
  - test/integration/request_test.rb
290
247
  - test/integration/sql_test.rb
@@ -1,19 +0,0 @@
1
- # Helpers included into controllers and models.
2
-
3
- module Librato
4
- module Rails
5
- module Helpers
6
-
7
- # convenience accessor
8
- def metrics
9
- Librato::Rails
10
- end
11
-
12
- end
13
-
14
- # ::ActionController::Base.send(:include, Helpers)
15
- #
16
- # ::ActiveRecord::Base.send(:include, Helpers)
17
- # ::ActiveRecord::Base.send(:extend, Helpers)
18
- end
19
- end
File without changes