prosperity 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/prosperity/metrics_controller.rb +2 -1
  3. data/lib/prosperity/period.rb +10 -2
  4. data/lib/prosperity/version.rb +1 -1
  5. data/spec/controllers/prosperity/metrics_controller_spec.rb +8 -0
  6. data/spec/dummy/app/prosperity/ruby_users_metric.rb +5 -0
  7. data/spec/dummy/log/development.log +4759 -0
  8. data/spec/dummy/log/test.log +6803 -0
  9. data/spec/dummy/tmp/cache/assets/development/sass/34a577735054231563e7022ea73e1468db9203ba/application.css.scssc +0 -0
  10. data/spec/dummy/tmp/cache/assets/development/sprockets/07e8fb2db7d85e29590a6b05160ca825 +0 -0
  11. data/spec/dummy/tmp/cache/assets/development/sprockets/0a40fa5e0d6c0de40a8a698dcd697305 +0 -0
  12. data/spec/dummy/tmp/cache/assets/development/sprockets/1533bcf4a8f5a745dfda80cebd88d217 +0 -0
  13. data/spec/dummy/tmp/cache/assets/development/sprockets/1643e7f9f85637df140a850af6674f10 +0 -0
  14. data/spec/dummy/tmp/cache/assets/development/sprockets/197492ed379339e17a0f5d01d3b01b8c +0 -0
  15. data/spec/dummy/tmp/cache/assets/development/sprockets/1c55cf24465f311353197ce336df0178 +0 -0
  16. data/spec/dummy/tmp/cache/assets/development/sprockets/210050da208fb75a75b701bfa4e8470f +0 -0
  17. data/spec/dummy/tmp/cache/assets/development/sprockets/27a59e08207d3ae723f2b2b3d22264c3 +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/3e21790900d62ae3954585f08a1cb28a +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/3f76425644a701b85db3d385f077052d +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/441f922b26aae90d40e319b6ed0a3bc8 +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/448c1e44da04c20f27eaa31ad8c4391e +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/47cc93f04a83c418e8f544aeab9208d8 +0 -0
  23. data/spec/dummy/tmp/cache/assets/development/sprockets/47df4fdca8a2ff6a43c18d7aa1ffd9c5 +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/647038c58f26163a9217646e1e5f09ae +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/6882b260ae69f1594eff540d803e5ac3 +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/69f4b83d363269ee4122bbbaaa1325d1 +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/72c0d4a0eeedae5e79ae49abb24f6d32 +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/828a046f0e7dc2dad0eecfe49d31e14d +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/91ae0bd43f98b4f1f111e0bdc178302c +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/990cf740a7968767a327f6186313badb +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/9a690664139b0393787d6454b4697183 +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/a2b14d5c46db32da9183354fb3fcd0bf +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/a6d6196cfd275dea0718553a95f997a5 +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/b8a9886650603baf49c9a1e13f3fd7bf +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/bc83340720a76d8208112f6aecbff08e +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/df796f7ea525be06a82ebc3a4f97ffec +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/e02b5049cf477b43a72b4a00e2fceb46 +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/e2a9bdd87a2d19256837fce6544a122c +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/ee3031bd54230ddf2addb5fa5718c86b +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/f4648036e284d9aa3468f4f7b9bbb967 +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/f961f7434a28c0fe24bf4ffe6cba75fb +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/fb8d3825617fcc11dfa614a51effee0e +0 -0
  43. data/spec/lib/prosperity/periods_spec.rb +1 -1
  44. metadata +16 -2
@@ -14,7 +14,7 @@ module Prosperity
14
14
  times << start_time
15
15
  end
16
16
 
17
- times.should == Array.new(6) { |i| DateTime.new(2012, 01, i + 1) }
17
+ times.should == Array.new(7) { |i| DateTime.new(2012, 01, i + 1) }
18
18
  end
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prosperity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Mathieu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-29 00:00:00.000000000 Z
11
+ date: 2014-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -138,6 +138,7 @@ files:
138
138
  - spec/dummy/app/helpers/application_helper.rb
139
139
  - spec/dummy/app/helpers/users_helper.rb
140
140
  - spec/dummy/app/models/user.rb
141
+ - spec/dummy/app/prosperity/ruby_users_metric.rb
141
142
  - spec/dummy/app/prosperity/user_value_sum_metric.rb
142
143
  - spec/dummy/app/prosperity/user_value_sum_sql_metric.rb
143
144
  - spec/dummy/app/prosperity/users_metric.rb
@@ -227,6 +228,7 @@ files:
227
228
  - spec/dummy/tmp/cache/assets/development/sprockets/073948f1a0c619142ecfcb14a5806302
228
229
  - spec/dummy/tmp/cache/assets/development/sprockets/07e8fb2db7d85e29590a6b05160ca825
229
230
  - spec/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799
231
+ - spec/dummy/tmp/cache/assets/development/sprockets/0a40fa5e0d6c0de40a8a698dcd697305
230
232
  - spec/dummy/tmp/cache/assets/development/sprockets/12eb9637e2c654371ecf7033d5a5cb36
231
233
  - spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
232
234
  - spec/dummy/tmp/cache/assets/development/sprockets/1502b34f91cda1f4222490f78c0fea39
@@ -254,8 +256,10 @@ files:
254
256
  - spec/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea
255
257
  - spec/dummy/tmp/cache/assets/development/sprockets/4155a156cc6ffb880b56dbc34346fbc0
256
258
  - spec/dummy/tmp/cache/assets/development/sprockets/4166fe47cddf4ba18c53b843d69b4c5f
259
+ - spec/dummy/tmp/cache/assets/development/sprockets/441f922b26aae90d40e319b6ed0a3bc8
257
260
  - spec/dummy/tmp/cache/assets/development/sprockets/4432a4b71ce9551df8d4b3860f4b9be3
258
261
  - spec/dummy/tmp/cache/assets/development/sprockets/448c1e44da04c20f27eaa31ad8c4391e
262
+ - spec/dummy/tmp/cache/assets/development/sprockets/47cc93f04a83c418e8f544aeab9208d8
259
263
  - spec/dummy/tmp/cache/assets/development/sprockets/47df4fdca8a2ff6a43c18d7aa1ffd9c5
260
264
  - spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5
261
265
  - spec/dummy/tmp/cache/assets/development/sprockets/5479c7b4fba9179d4d1dc59ae64964c1
@@ -287,6 +291,7 @@ files:
287
291
  - spec/dummy/tmp/cache/assets/development/sprockets/91ae0bd43f98b4f1f111e0bdc178302c
288
292
  - spec/dummy/tmp/cache/assets/development/sprockets/97d99b466bedb69706f4815fa26b69f3
289
293
  - spec/dummy/tmp/cache/assets/development/sprockets/990cf740a7968767a327f6186313badb
294
+ - spec/dummy/tmp/cache/assets/development/sprockets/9a690664139b0393787d6454b4697183
290
295
  - spec/dummy/tmp/cache/assets/development/sprockets/9a7970620504bfe92af14fd57ee08365
291
296
  - spec/dummy/tmp/cache/assets/development/sprockets/9c8440c4efec99d4a380eeda42f089c7
292
297
  - spec/dummy/tmp/cache/assets/development/sprockets/9e4cf41800946fd32bcfa3591b304eb6
@@ -294,6 +299,7 @@ files:
294
299
  - spec/dummy/tmp/cache/assets/development/sprockets/a6d6196cfd275dea0718553a95f997a5
295
300
  - spec/dummy/tmp/cache/assets/development/sprockets/a7a8652a3fb42ef81fac3ab77949f82d
296
301
  - spec/dummy/tmp/cache/assets/development/sprockets/a9d839f632f9ce73fc221b79b39b0924
302
+ - spec/dummy/tmp/cache/assets/development/sprockets/b8a9886650603baf49c9a1e13f3fd7bf
297
303
  - spec/dummy/tmp/cache/assets/development/sprockets/bae0ea1201e2ec9420712ff54b3254aa
298
304
  - spec/dummy/tmp/cache/assets/development/sprockets/bb1f5ffb0ccbeec2c6499044b356f7c6
299
305
  - spec/dummy/tmp/cache/assets/development/sprockets/bc83340720a76d8208112f6aecbff08e
@@ -334,6 +340,7 @@ files:
334
340
  - spec/dummy/tmp/cache/assets/development/sprockets/f4648036e284d9aa3468f4f7b9bbb967
335
341
  - spec/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124
336
342
  - spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
343
+ - spec/dummy/tmp/cache/assets/development/sprockets/f961f7434a28c0fe24bf4ffe6cba75fb
337
344
  - spec/dummy/tmp/cache/assets/development/sprockets/f9bbf698d099ead559e5ba4a5a4c5538
338
345
  - spec/dummy/tmp/cache/assets/development/sprockets/fb8d3825617fcc11dfa614a51effee0e
339
346
  - spec/dummy/tmp/cache/assets/development/sprockets/fc2c22310cbb7abb26ae64d4aafa37cb
@@ -479,6 +486,7 @@ test_files:
479
486
  - spec/dummy/app/helpers/application_helper.rb
480
487
  - spec/dummy/app/helpers/users_helper.rb
481
488
  - spec/dummy/app/models/user.rb
489
+ - spec/dummy/app/prosperity/ruby_users_metric.rb
482
490
  - spec/dummy/app/prosperity/user_value_sum_metric.rb
483
491
  - spec/dummy/app/prosperity/user_value_sum_sql_metric.rb
484
492
  - spec/dummy/app/prosperity/users_metric.rb
@@ -570,6 +578,7 @@ test_files:
570
578
  - spec/dummy/tmp/cache/assets/development/sprockets/073948f1a0c619142ecfcb14a5806302
571
579
  - spec/dummy/tmp/cache/assets/development/sprockets/07e8fb2db7d85e29590a6b05160ca825
572
580
  - spec/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799
581
+ - spec/dummy/tmp/cache/assets/development/sprockets/0a40fa5e0d6c0de40a8a698dcd697305
573
582
  - spec/dummy/tmp/cache/assets/development/sprockets/12eb9637e2c654371ecf7033d5a5cb36
574
583
  - spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
575
584
  - spec/dummy/tmp/cache/assets/development/sprockets/1502b34f91cda1f4222490f78c0fea39
@@ -597,8 +606,10 @@ test_files:
597
606
  - spec/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea
598
607
  - spec/dummy/tmp/cache/assets/development/sprockets/4155a156cc6ffb880b56dbc34346fbc0
599
608
  - spec/dummy/tmp/cache/assets/development/sprockets/4166fe47cddf4ba18c53b843d69b4c5f
609
+ - spec/dummy/tmp/cache/assets/development/sprockets/441f922b26aae90d40e319b6ed0a3bc8
600
610
  - spec/dummy/tmp/cache/assets/development/sprockets/4432a4b71ce9551df8d4b3860f4b9be3
601
611
  - spec/dummy/tmp/cache/assets/development/sprockets/448c1e44da04c20f27eaa31ad8c4391e
612
+ - spec/dummy/tmp/cache/assets/development/sprockets/47cc93f04a83c418e8f544aeab9208d8
602
613
  - spec/dummy/tmp/cache/assets/development/sprockets/47df4fdca8a2ff6a43c18d7aa1ffd9c5
603
614
  - spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5
604
615
  - spec/dummy/tmp/cache/assets/development/sprockets/5479c7b4fba9179d4d1dc59ae64964c1
@@ -630,6 +641,7 @@ test_files:
630
641
  - spec/dummy/tmp/cache/assets/development/sprockets/91ae0bd43f98b4f1f111e0bdc178302c
631
642
  - spec/dummy/tmp/cache/assets/development/sprockets/97d99b466bedb69706f4815fa26b69f3
632
643
  - spec/dummy/tmp/cache/assets/development/sprockets/990cf740a7968767a327f6186313badb
644
+ - spec/dummy/tmp/cache/assets/development/sprockets/9a690664139b0393787d6454b4697183
633
645
  - spec/dummy/tmp/cache/assets/development/sprockets/9a7970620504bfe92af14fd57ee08365
634
646
  - spec/dummy/tmp/cache/assets/development/sprockets/9c8440c4efec99d4a380eeda42f089c7
635
647
  - spec/dummy/tmp/cache/assets/development/sprockets/9e4cf41800946fd32bcfa3591b304eb6
@@ -637,6 +649,7 @@ test_files:
637
649
  - spec/dummy/tmp/cache/assets/development/sprockets/a6d6196cfd275dea0718553a95f997a5
638
650
  - spec/dummy/tmp/cache/assets/development/sprockets/a7a8652a3fb42ef81fac3ab77949f82d
639
651
  - spec/dummy/tmp/cache/assets/development/sprockets/a9d839f632f9ce73fc221b79b39b0924
652
+ - spec/dummy/tmp/cache/assets/development/sprockets/b8a9886650603baf49c9a1e13f3fd7bf
640
653
  - spec/dummy/tmp/cache/assets/development/sprockets/bae0ea1201e2ec9420712ff54b3254aa
641
654
  - spec/dummy/tmp/cache/assets/development/sprockets/bb1f5ffb0ccbeec2c6499044b356f7c6
642
655
  - spec/dummy/tmp/cache/assets/development/sprockets/bc83340720a76d8208112f6aecbff08e
@@ -677,6 +690,7 @@ test_files:
677
690
  - spec/dummy/tmp/cache/assets/development/sprockets/f4648036e284d9aa3468f4f7b9bbb967
678
691
  - spec/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124
679
692
  - spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
693
+ - spec/dummy/tmp/cache/assets/development/sprockets/f961f7434a28c0fe24bf4ffe6cba75fb
680
694
  - spec/dummy/tmp/cache/assets/development/sprockets/f9bbf698d099ead559e5ba4a5a4c5538
681
695
  - spec/dummy/tmp/cache/assets/development/sprockets/fb8d3825617fcc11dfa614a51effee0e
682
696
  - spec/dummy/tmp/cache/assets/development/sprockets/fc2c22310cbb7abb26ae64d4aafa37cb