dossier 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/controllers/dossier/reports_controller.rb +2 -2
  4. data/app/views/dossier/reports/multi.html.haml +5 -5
  5. data/app/views/dossier/reports/show.html.haml +1 -1
  6. data/lib/dossier/multi_report.rb +16 -0
  7. data/lib/dossier/report.rb +4 -0
  8. data/lib/dossier/responder.rb +11 -0
  9. data/lib/dossier/result.rb +16 -12
  10. data/lib/dossier/version.rb +1 -1
  11. data/spec/dossier/responder_spec.rb +1 -1
  12. data/spec/dossier/result_spec.rb +24 -1
  13. data/spec/dummy/app/reports/employee_with_custom_view_report.rb +1 -1
  14. data/spec/dummy/db/test.sqlite3 +0 -0
  15. data/spec/dummy/log/test.log +266 -46790
  16. data/spec/features/combination_report_spec.rb +3 -0
  17. data/spec/features/employee_spec.rb +8 -0
  18. data/spec/fixtures/db/mysql2.yml +1 -1
  19. data/spec/fixtures/db/mysql2.yml.example +1 -1
  20. metadata +3 -35
  21. data/spec/dummy/log/development.log +0 -4378
  22. data/spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869 +0 -0
  23. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  24. data/spec/dummy/tmp/cache/assets/CEA/5A0/sprockets%2Fc0534884cbc43494a05d9e957ea1298d +0 -0
  25. data/spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c +0 -0
  26. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  27. data/spec/dummy/tmp/cache/assets/D40/0D0/sprockets%2F15a6bb0a1346b6d7fe859c14bf729a49 +0 -0
  28. data/spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc +0 -0
  29. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  30. data/spec/dummy/tmp/cache/assets/D51/510/sprockets%2Fca0353abc266080173bbc3c13efa935a +0 -0
  31. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  32. data/spec/dummy/tmp/cache/assets/D6C/400/sprockets%2F7fa180a6e05c7ca4346ef58c54bb30f8 +0 -0
  33. data/spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8 +0 -0
  34. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  35. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  36. data/spec/dummy/tmp/restart.txt +0 -0
@@ -19,5 +19,8 @@ describe "combination report" do
19
19
  expect(page).to_not have_content('options be here matey!')
20
20
  end
21
21
 
22
+ it "raises an UnsupportedFormatError when trying something besides HTML" do
23
+ expect { visit "#{path}.csv" }.to raise_error(Dossier::MultiReport::UnsupportedFormatError, /you tried csv/)
24
+ end
22
25
  end
23
26
 
@@ -4,6 +4,14 @@ describe "employee report" do
4
4
 
5
5
  describe "rendering HTML" do
6
6
 
7
+ context "displaying headers" do
8
+ it "titleizes the headers by default" do
9
+ visit '/reports/employee'
10
+ expect(page).to have_content('Name')
11
+ expect(page).to_not have_content('name')
12
+ end
13
+ end
14
+
7
15
  context "when a custom view exists for the report" do
8
16
 
9
17
  it "uses the custom view" do
@@ -1,5 +1,5 @@
1
+ adapter: mysql2
1
2
  database: dossier_test
2
3
  host: localhost
3
4
  username: root
4
5
  password: rubyr3d!
5
- adapter: mysql2
@@ -2,4 +2,4 @@ adapter: mysql2
2
2
  database: dossier_test
3
3
  host: localhost
4
4
  username: root
5
- password: something
5
+ password:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dossier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hunter
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-05 00:00:00.000000000 Z
13
+ date: 2013-07-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: arel
@@ -289,7 +289,6 @@ files:
289
289
  - spec/dummy/config.ru
290
290
  - spec/dummy/db/schema.rb
291
291
  - spec/dummy/db/test.sqlite3
292
- - spec/dummy/log/development.log
293
292
  - spec/dummy/log/test.log
294
293
  - spec/dummy/public/404.html
295
294
  - spec/dummy/public/422.html
@@ -298,21 +297,6 @@ files:
298
297
  - spec/dummy/Rakefile
299
298
  - spec/dummy/README.rdoc
300
299
  - spec/dummy/script/rails
301
- - spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869
302
- - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
303
- - spec/dummy/tmp/cache/assets/CEA/5A0/sprockets%2Fc0534884cbc43494a05d9e957ea1298d
304
- - spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c
305
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
306
- - spec/dummy/tmp/cache/assets/D40/0D0/sprockets%2F15a6bb0a1346b6d7fe859c14bf729a49
307
- - spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc
308
- - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
309
- - spec/dummy/tmp/cache/assets/D51/510/sprockets%2Fca0353abc266080173bbc3c13efa935a
310
- - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
311
- - spec/dummy/tmp/cache/assets/D6C/400/sprockets%2F7fa180a6e05c7ca4346ef58c54bb30f8
312
- - spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8
313
- - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
314
- - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
315
- - spec/dummy/tmp/restart.txt
316
300
  - spec/features/combination_report_spec.rb
317
301
  - spec/features/employee_spec.rb
318
302
  - spec/features/employee_with_custom_client_spec.rb
@@ -350,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
350
334
  version: '0'
351
335
  requirements: []
352
336
  rubyforge_project:
353
- rubygems_version: 2.0.3
337
+ rubygems_version: 2.0.5
354
338
  signing_key:
355
339
  specification_version: 4
356
340
  summary: SQL based report generation.
@@ -406,7 +390,6 @@ test_files:
406
390
  - spec/dummy/config.ru
407
391
  - spec/dummy/db/schema.rb
408
392
  - spec/dummy/db/test.sqlite3
409
- - spec/dummy/log/development.log
410
393
  - spec/dummy/log/test.log
411
394
  - spec/dummy/public/404.html
412
395
  - spec/dummy/public/422.html
@@ -415,21 +398,6 @@ test_files:
415
398
  - spec/dummy/Rakefile
416
399
  - spec/dummy/README.rdoc
417
400
  - spec/dummy/script/rails
418
- - spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869
419
- - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
420
- - spec/dummy/tmp/cache/assets/CEA/5A0/sprockets%2Fc0534884cbc43494a05d9e957ea1298d
421
- - spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c
422
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
423
- - spec/dummy/tmp/cache/assets/D40/0D0/sprockets%2F15a6bb0a1346b6d7fe859c14bf729a49
424
- - spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc
425
- - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
426
- - spec/dummy/tmp/cache/assets/D51/510/sprockets%2Fca0353abc266080173bbc3c13efa935a
427
- - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
428
- - spec/dummy/tmp/cache/assets/D6C/400/sprockets%2F7fa180a6e05c7ca4346ef58c54bb30f8
429
- - spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8
430
- - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
431
- - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
432
- - spec/dummy/tmp/restart.txt
433
401
  - spec/features/combination_report_spec.rb
434
402
  - spec/features/employee_spec.rb
435
403
  - spec/features/employee_with_custom_client_spec.rb