query_report 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/README.md +4 -1
  2. data/app/helpers/query_report_filter_helper.rb +5 -1
  3. data/lib/query_report.rb +2 -0
  4. data/lib/query_report/comparator.rb +55 -0
  5. data/lib/query_report/config.rb +2 -0
  6. data/lib/query_report/filter.rb +5 -46
  7. data/lib/query_report/version.rb +1 -1
  8. data/test/dummy/app/controllers/invoices_controller.rb +1 -3
  9. data/test/dummy/app/models/invoice.rb +2 -3
  10. data/test/dummy/config/application.rb +0 -1
  11. data/test/dummy/db/development.sqlite3 +0 -0
  12. data/test/dummy/db/migrate/20130630132513_create_invoices.rb +1 -1
  13. data/test/dummy/db/schema.rb +1 -9
  14. data/test/dummy/db/seed.rb +1 -6
  15. data/test/dummy/db/test.sqlite3 +0 -0
  16. data/test/dummy/log/development.log +2818 -0
  17. data/test/dummy/tmp/miniprofiler/mp_timers_1yzh11ff7f20he2ibrf5 +0 -0
  18. data/test/dummy/tmp/miniprofiler/mp_timers_43t0tuuypgcuns14vrux +0 -0
  19. data/test/dummy/tmp/miniprofiler/mp_timers_8ku60sfcb2ox5r3bn86p +0 -0
  20. data/test/dummy/tmp/miniprofiler/mp_timers_bvxp7ntgvswdeihn0xkx +0 -0
  21. data/test/dummy/tmp/miniprofiler/mp_timers_exy6ebpwi5seo6ohb61r +0 -0
  22. data/test/dummy/tmp/miniprofiler/mp_timers_f0jlfr3yzz6f1yfyq446 +0 -0
  23. data/test/dummy/tmp/miniprofiler/mp_timers_gr2fezt8668tj6sdlgxd +0 -0
  24. data/test/dummy/tmp/miniprofiler/mp_timers_gx96ln5mjqb61n0uc37o +0 -0
  25. data/test/dummy/tmp/miniprofiler/mp_timers_h42xf1rxqz40qpxkhkfh +0 -0
  26. data/test/dummy/tmp/miniprofiler/mp_timers_iyeniuysxyxtupg0v0fb +0 -0
  27. data/test/dummy/tmp/miniprofiler/mp_timers_mr5amrsanyhnyiefk7ze +0 -0
  28. data/test/dummy/tmp/miniprofiler/mp_timers_qhtoawvlvlp0753c32so +0 -0
  29. data/test/dummy/tmp/miniprofiler/mp_timers_ro8d5tfkqqi3pyyahy8t +0 -0
  30. data/test/dummy/tmp/miniprofiler/mp_timers_u5cef64yg5b391u4fmj6 +0 -0
  31. data/test/dummy/tmp/miniprofiler/mp_timers_waldf841hr1ekdv3pxby +0 -0
  32. data/test/dummy/tmp/miniprofiler/mp_timers_xgkalffzvqg8jwck2t95 +0 -0
  33. data/test/dummy/tmp/miniprofiler/mp_timers_zrlk63csu50ffb4ysymm +0 -0
  34. data/test/dummy/tmp/miniprofiler/mp_views_127.0.0.1 +0 -0
  35. metadata +46 -63
  36. data/test/dummy/app/models/user.rb +0 -8
  37. data/test/dummy/db/migrate/20130622120853_create_users.rb +0 -11
  38. data/test/dummy/tmp/miniprofiler/mp_timers_1phunlrkl040xbl9ni38 +0 -0
  39. data/test/dummy/tmp/miniprofiler/mp_timers_2jj5q0umhfjgdsr3be6r +0 -0
  40. data/test/dummy/tmp/miniprofiler/mp_timers_4nme0opawv0cuju7ycln +0 -0
  41. data/test/dummy/tmp/miniprofiler/mp_timers_4x4zy2jyybfnrfctzoll +0 -0
  42. data/test/dummy/tmp/miniprofiler/mp_timers_501n5dolb96ahn8fsdeb +0 -0
  43. data/test/dummy/tmp/miniprofiler/mp_timers_50279rze1q2oyskpd2bx +0 -0
  44. data/test/dummy/tmp/miniprofiler/mp_timers_5cx1jmk7clhq7gdqu8fj +0 -0
  45. data/test/dummy/tmp/miniprofiler/mp_timers_625nhhhlou6kji64k1v8 +0 -0
  46. data/test/dummy/tmp/miniprofiler/mp_timers_8papkqyltk3r9vdbiwlx +0 -0
  47. data/test/dummy/tmp/miniprofiler/mp_timers_as4xud3puw1vxjzm8ma3 +0 -0
  48. data/test/dummy/tmp/miniprofiler/mp_timers_cuw96wvyfzku6np7dv6u +0 -0
  49. data/test/dummy/tmp/miniprofiler/mp_timers_eml2za25qr6vmokw5tda +0 -0
  50. data/test/dummy/tmp/miniprofiler/mp_timers_f1cpnb605srbgp7u5n6l +0 -0
  51. data/test/dummy/tmp/miniprofiler/mp_timers_kcb88g8t6jcdbzy4sf40 +0 -0
  52. data/test/dummy/tmp/miniprofiler/mp_timers_oziigmt85gb8ro89h2uo +0 -0
  53. data/test/dummy/tmp/miniprofiler/mp_timers_rkitlcrj5rur9vtb25yr +0 -0
  54. data/test/dummy/tmp/miniprofiler/mp_timers_s24xgsm7sihnsifjqne0 +0 -0
  55. data/test/dummy/tmp/miniprofiler/mp_timers_v4vq4inppiedkn1mxsut +0 -0
  56. data/test/dummy/tmp/miniprofiler/mp_timers_wb62iw0f860zfkjkt42d +0 -0
  57. data/test/dummy/tmp/miniprofiler/mp_timers_yb4i2uuaxhoz5hst26bj +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-04 00:00:00.000000000 Z
12
+ date: 2013-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -19,6 +19,9 @@ dependencies:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.0.0
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: 4.0.0
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,6 +30,9 @@ dependencies:
27
30
  - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: 3.0.0
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: 4.0.0
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: ransack
32
38
  requirement: !ruby/object:Gem::Requirement
@@ -187,22 +193,6 @@ dependencies:
187
193
  - - ! '>='
188
194
  - !ruby/object:Gem::Version
189
195
  version: '0'
190
- - !ruby/object:Gem::Dependency
191
- name: rack-mini-profiler
192
- requirement: !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
195
- - - ! '>='
196
- - !ruby/object:Gem::Version
197
- version: '0'
198
- type: :development
199
- prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
- requirements:
203
- - - ! '>='
204
- - !ruby/object:Gem::Version
205
- version: '0'
206
196
  - !ruby/object:Gem::Dependency
207
197
  name: rspec
208
198
  requirement: !ruby/object:Gem::Requirement
@@ -280,6 +270,7 @@ files:
280
270
  - lib/query_report/chart/column_chart.rb
281
271
  - lib/query_report/chart/pie_chart.rb
282
272
  - lib/query_report/chart/chart_column.rb
273
+ - lib/query_report/comparator.rb
283
274
  - lib/query_report/filter.rb
284
275
  - lib/query_report/paginate.rb
285
276
  - lib/query_report/column.rb
@@ -336,7 +327,6 @@ files:
336
327
  - test/dummy/app/views/invoices/new.html.erb
337
328
  - test/dummy/app/views/invoices/show.html.erb
338
329
  - test/dummy/app/models/invoice.rb
339
- - test/dummy/app/models/user.rb
340
330
  - test/dummy/app/models/pdf_report_template.rb
341
331
  - test/dummy/log/development.log
342
332
  - test/dummy/log/test.log
@@ -362,29 +352,26 @@ files:
362
352
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
363
353
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
364
354
  - test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124
365
- - test/dummy/tmp/miniprofiler/mp_timers_yb4i2uuaxhoz5hst26bj
366
- - test/dummy/tmp/miniprofiler/mp_timers_oziigmt85gb8ro89h2uo
367
- - test/dummy/tmp/miniprofiler/mp_timers_4x4zy2jyybfnrfctzoll
368
- - test/dummy/tmp/miniprofiler/mp_timers_kcb88g8t6jcdbzy4sf40
369
- - test/dummy/tmp/miniprofiler/mp_timers_50279rze1q2oyskpd2bx
370
- - test/dummy/tmp/miniprofiler/mp_timers_2jj5q0umhfjgdsr3be6r
371
- - test/dummy/tmp/miniprofiler/mp_timers_625nhhhlou6kji64k1v8
372
- - test/dummy/tmp/miniprofiler/mp_timers_5cx1jmk7clhq7gdqu8fj
373
- - test/dummy/tmp/miniprofiler/mp_timers_rkitlcrj5rur9vtb25yr
374
- - test/dummy/tmp/miniprofiler/mp_timers_501n5dolb96ahn8fsdeb
375
- - test/dummy/tmp/miniprofiler/mp_timers_eml2za25qr6vmokw5tda
376
- - test/dummy/tmp/miniprofiler/mp_timers_4nme0opawv0cuju7ycln
377
- - test/dummy/tmp/miniprofiler/mp_timers_cuw96wvyfzku6np7dv6u
355
+ - test/dummy/tmp/miniprofiler/mp_timers_mr5amrsanyhnyiefk7ze
356
+ - test/dummy/tmp/miniprofiler/mp_timers_f0jlfr3yzz6f1yfyq446
357
+ - test/dummy/tmp/miniprofiler/mp_timers_1yzh11ff7f20he2ibrf5
358
+ - test/dummy/tmp/miniprofiler/mp_timers_u5cef64yg5b391u4fmj6
359
+ - test/dummy/tmp/miniprofiler/mp_timers_gr2fezt8668tj6sdlgxd
360
+ - test/dummy/tmp/miniprofiler/mp_timers_h42xf1rxqz40qpxkhkfh
361
+ - test/dummy/tmp/miniprofiler/mp_timers_zrlk63csu50ffb4ysymm
362
+ - test/dummy/tmp/miniprofiler/mp_timers_43t0tuuypgcuns14vrux
363
+ - test/dummy/tmp/miniprofiler/mp_timers_ro8d5tfkqqi3pyyahy8t
364
+ - test/dummy/tmp/miniprofiler/mp_timers_qhtoawvlvlp0753c32so
365
+ - test/dummy/tmp/miniprofiler/mp_timers_xgkalffzvqg8jwck2t95
366
+ - test/dummy/tmp/miniprofiler/mp_timers_bvxp7ntgvswdeihn0xkx
367
+ - test/dummy/tmp/miniprofiler/mp_timers_waldf841hr1ekdv3pxby
378
368
  - test/dummy/tmp/miniprofiler/mp_views_127.0.0.1
379
- - test/dummy/tmp/miniprofiler/mp_timers_8papkqyltk3r9vdbiwlx
380
- - test/dummy/tmp/miniprofiler/mp_timers_1phunlrkl040xbl9ni38
381
- - test/dummy/tmp/miniprofiler/mp_timers_wb62iw0f860zfkjkt42d
382
- - test/dummy/tmp/miniprofiler/mp_timers_s24xgsm7sihnsifjqne0
383
- - test/dummy/tmp/miniprofiler/mp_timers_f1cpnb605srbgp7u5n6l
384
- - test/dummy/tmp/miniprofiler/mp_timers_v4vq4inppiedkn1mxsut
385
- - test/dummy/tmp/miniprofiler/mp_timers_as4xud3puw1vxjzm8ma3
369
+ - test/dummy/tmp/miniprofiler/mp_timers_iyeniuysxyxtupg0v0fb
370
+ - test/dummy/tmp/miniprofiler/mp_timers_gx96ln5mjqb61n0uc37o
371
+ - test/dummy/tmp/miniprofiler/mp_timers_exy6ebpwi5seo6ohb61r
372
+ - test/dummy/tmp/miniprofiler/mp_timers_8ku60sfcb2ox5r3bn86p
373
+ - test/dummy/db/test.sqlite3
386
374
  - test/dummy/db/migrate/20130630132513_create_invoices.rb
387
- - test/dummy/db/migrate/20130622120853_create_users.rb
388
375
  - test/dummy/db/schema.rb
389
376
  - test/dummy/db/seed.rb
390
377
  - test/dummy/db/development.sqlite3
@@ -396,7 +383,7 @@ files:
396
383
  - test/dummy/test/unit/invoice_test.rb
397
384
  - test/dummy/test/unit/helpers/invoices_helper_test.rb
398
385
  - test/dummy/test/fixtures/invoices.yml
399
- homepage: https://github.com/ashrafuzzaman/query_report
386
+ homepage: http://ashrafuzzaman.github.io/query_report
400
387
  licenses:
401
388
  - MIT
402
389
  post_install_message:
@@ -466,7 +453,6 @@ test_files:
466
453
  - test/dummy/app/views/invoices/new.html.erb
467
454
  - test/dummy/app/views/invoices/show.html.erb
468
455
  - test/dummy/app/models/invoice.rb
469
- - test/dummy/app/models/user.rb
470
456
  - test/dummy/app/models/pdf_report_template.rb
471
457
  - test/dummy/log/development.log
472
458
  - test/dummy/log/test.log
@@ -492,29 +478,26 @@ test_files:
492
478
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
493
479
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
494
480
  - test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124
495
- - test/dummy/tmp/miniprofiler/mp_timers_yb4i2uuaxhoz5hst26bj
496
- - test/dummy/tmp/miniprofiler/mp_timers_oziigmt85gb8ro89h2uo
497
- - test/dummy/tmp/miniprofiler/mp_timers_4x4zy2jyybfnrfctzoll
498
- - test/dummy/tmp/miniprofiler/mp_timers_kcb88g8t6jcdbzy4sf40
499
- - test/dummy/tmp/miniprofiler/mp_timers_50279rze1q2oyskpd2bx
500
- - test/dummy/tmp/miniprofiler/mp_timers_2jj5q0umhfjgdsr3be6r
501
- - test/dummy/tmp/miniprofiler/mp_timers_625nhhhlou6kji64k1v8
502
- - test/dummy/tmp/miniprofiler/mp_timers_5cx1jmk7clhq7gdqu8fj
503
- - test/dummy/tmp/miniprofiler/mp_timers_rkitlcrj5rur9vtb25yr
504
- - test/dummy/tmp/miniprofiler/mp_timers_501n5dolb96ahn8fsdeb
505
- - test/dummy/tmp/miniprofiler/mp_timers_eml2za25qr6vmokw5tda
506
- - test/dummy/tmp/miniprofiler/mp_timers_4nme0opawv0cuju7ycln
507
- - test/dummy/tmp/miniprofiler/mp_timers_cuw96wvyfzku6np7dv6u
481
+ - test/dummy/tmp/miniprofiler/mp_timers_mr5amrsanyhnyiefk7ze
482
+ - test/dummy/tmp/miniprofiler/mp_timers_f0jlfr3yzz6f1yfyq446
483
+ - test/dummy/tmp/miniprofiler/mp_timers_1yzh11ff7f20he2ibrf5
484
+ - test/dummy/tmp/miniprofiler/mp_timers_u5cef64yg5b391u4fmj6
485
+ - test/dummy/tmp/miniprofiler/mp_timers_gr2fezt8668tj6sdlgxd
486
+ - test/dummy/tmp/miniprofiler/mp_timers_h42xf1rxqz40qpxkhkfh
487
+ - test/dummy/tmp/miniprofiler/mp_timers_zrlk63csu50ffb4ysymm
488
+ - test/dummy/tmp/miniprofiler/mp_timers_43t0tuuypgcuns14vrux
489
+ - test/dummy/tmp/miniprofiler/mp_timers_ro8d5tfkqqi3pyyahy8t
490
+ - test/dummy/tmp/miniprofiler/mp_timers_qhtoawvlvlp0753c32so
491
+ - test/dummy/tmp/miniprofiler/mp_timers_xgkalffzvqg8jwck2t95
492
+ - test/dummy/tmp/miniprofiler/mp_timers_bvxp7ntgvswdeihn0xkx
493
+ - test/dummy/tmp/miniprofiler/mp_timers_waldf841hr1ekdv3pxby
508
494
  - test/dummy/tmp/miniprofiler/mp_views_127.0.0.1
509
- - test/dummy/tmp/miniprofiler/mp_timers_8papkqyltk3r9vdbiwlx
510
- - test/dummy/tmp/miniprofiler/mp_timers_1phunlrkl040xbl9ni38
511
- - test/dummy/tmp/miniprofiler/mp_timers_wb62iw0f860zfkjkt42d
512
- - test/dummy/tmp/miniprofiler/mp_timers_s24xgsm7sihnsifjqne0
513
- - test/dummy/tmp/miniprofiler/mp_timers_f1cpnb605srbgp7u5n6l
514
- - test/dummy/tmp/miniprofiler/mp_timers_v4vq4inppiedkn1mxsut
515
- - test/dummy/tmp/miniprofiler/mp_timers_as4xud3puw1vxjzm8ma3
495
+ - test/dummy/tmp/miniprofiler/mp_timers_iyeniuysxyxtupg0v0fb
496
+ - test/dummy/tmp/miniprofiler/mp_timers_gx96ln5mjqb61n0uc37o
497
+ - test/dummy/tmp/miniprofiler/mp_timers_exy6ebpwi5seo6ohb61r
498
+ - test/dummy/tmp/miniprofiler/mp_timers_8ku60sfcb2ox5r3bn86p
499
+ - test/dummy/db/test.sqlite3
516
500
  - test/dummy/db/migrate/20130630132513_create_invoices.rb
517
- - test/dummy/db/migrate/20130622120853_create_users.rb
518
501
  - test/dummy/db/schema.rb
519
502
  - test/dummy/db/seed.rb
520
503
  - test/dummy/db/development.sqlite3
@@ -1,8 +0,0 @@
1
- class User < ActiveRecord::Base
2
- has_many :invoices, :foreign_key => "received_by_id"
3
- attr_accessible :email, :first_name, :last_name
4
-
5
- def name
6
- "#{first_name} #{last_name}"
7
- end
8
- end
@@ -1,11 +0,0 @@
1
- class CreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table :users do |t|
4
- t.string :first_name
5
- t.string :last_name
6
- t.string :email
7
-
8
- t.timestamps
9
- end
10
- end
11
- end