dossier 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/app/controllers/dossier/reports_controller.rb +8 -4
  2. data/app/views/dossier/reports/show.html.haml +1 -1
  3. data/lib/dossier/report.rb +4 -4
  4. data/lib/dossier/version.rb +1 -1
  5. data/lib/dossier.rb +12 -3
  6. data/spec/dossier/report_spec.rb +4 -6
  7. data/spec/dossier_spec.rb +14 -1
  8. data/spec/dummy/app/controllers/site_controller.rb +6 -1
  9. data/spec/dummy/config/routes.rb +1 -2
  10. data/spec/dummy/config/setup_load_paths.rb +0 -3
  11. data/spec/dummy/db/test.sqlite3 +0 -0
  12. data/spec/dummy/log/development.log +512 -0
  13. data/spec/dummy/log/test.log +1376 -0
  14. data/spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869 +0 -0
  15. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  16. data/spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c +0 -0
  17. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  18. data/spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc +0 -0
  19. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  20. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  21. data/spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8 +0 -0
  22. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  23. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  24. data/spec/fixtures/reports/employee.html +1 -1
  25. data/spec/fixtures/reports/employee_with_custom_client.html +1 -1
  26. data/spec/requests/employee_with_custom_controller_spec.rb +13 -0
  27. data/spec/support/reports/{employee.rb → employee_report.rb} +0 -0
  28. data/spec/support/reports/{employee_with_custom_client.rb → employee_with_custom_client_report.rb} +0 -0
  29. data/spec/support/reports/{employee_with_custom_view.rb → employee_with_custom_view_report.rb} +0 -0
  30. data/spec/support/reports/hello_my_friends_report.rb +5 -0
  31. data/spec/support/reports/{test.rb → test_report.rb} +0 -0
  32. metadata +36 -12
@@ -47,7 +47,7 @@
47
47
  </tr>
48
48
  </tbody>
49
49
  </table>
50
- <a href="/reports/employee.csv" class="download-csv">Download CSV</a>
50
+ <a href="/reports/employee.csv?" class="download-csv">Download CSV</a>
51
51
 
52
52
 
53
53
  </body>
@@ -47,7 +47,7 @@
47
47
  </tr>
48
48
  </tbody>
49
49
  </table>
50
- <a href="/reports/employee_with_custom_client.csv" class="download-csv">Download CSV</a>
50
+ <a href="/reports/employee_with_custom_client.csv?" class="download-csv">Download CSV</a>
51
51
 
52
52
 
53
53
  </body>
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe "EmployeeReport with custom controller" do
4
+
5
+ describe "rendering HTML" do
6
+
7
+ it "builds a report using the specified client's database" do
8
+ get "/employee_report_custom_controller"
9
+ expect(response.body).to eq(File.read('spec/fixtures/reports/employee.html'))
10
+ end
11
+
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ class HelloMyFriendsReport < Dossier::Report
2
+ def sql
3
+ "select * from employees where friends = true and me = :self group by this is not a real query"
4
+ end
5
+ end
File without changes
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.2.0
4
+ version: 2.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-01-30 00:00:00.000000000 Z
14
+ date: 2013-02-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: arel
@@ -254,6 +254,16 @@ files:
254
254
  - spec/dummy/Rakefile
255
255
  - spec/dummy/README.rdoc
256
256
  - spec/dummy/script/rails
257
+ - spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869
258
+ - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
259
+ - spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c
260
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
261
+ - spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc
262
+ - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
263
+ - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
264
+ - spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8
265
+ - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
266
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
257
267
  - spec/fixtures/db/mysql2.yml
258
268
  - spec/fixtures/db/mysql2.yml.example
259
269
  - spec/fixtures/db/sqlite3.yml
@@ -267,13 +277,15 @@ files:
267
277
  - spec/fixtures/reports/employee_with_parameters.html
268
278
  - spec/requests/employee_spec.rb
269
279
  - spec/requests/employee_with_custom_client_spec.rb
280
+ - spec/requests/employee_with_custom_controller_spec.rb
270
281
  - spec/routing/dossier_routes_spec.rb
271
282
  - spec/spec_helper.rb
272
283
  - spec/support/factory.rb
273
- - spec/support/reports/employee.rb
274
- - spec/support/reports/employee_with_custom_client.rb
275
- - spec/support/reports/employee_with_custom_view.rb
276
- - spec/support/reports/test.rb
284
+ - spec/support/reports/employee_report.rb
285
+ - spec/support/reports/employee_with_custom_client_report.rb
286
+ - spec/support/reports/employee_with_custom_view_report.rb
287
+ - spec/support/reports/hello_my_friends_report.rb
288
+ - spec/support/reports/test_report.rb
277
289
  homepage: https://github.com/adamhunter/dossier
278
290
  licenses: []
279
291
  post_install_message:
@@ -288,7 +300,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
288
300
  version: '0'
289
301
  segments:
290
302
  - 0
291
- hash: 313908038312530546
303
+ hash: 2393518775308082103
292
304
  required_rubygems_version: !ruby/object:Gem::Requirement
293
305
  none: false
294
306
  requirements:
@@ -297,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
309
  version: '0'
298
310
  segments:
299
311
  - 0
300
- hash: 313908038312530546
312
+ hash: 2393518775308082103
301
313
  requirements: []
302
314
  rubyforge_project:
303
315
  rubygems_version: 1.8.24
@@ -351,6 +363,16 @@ test_files:
351
363
  - spec/dummy/Rakefile
352
364
  - spec/dummy/README.rdoc
353
365
  - spec/dummy/script/rails
366
+ - spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869
367
+ - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
368
+ - spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c
369
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
370
+ - spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc
371
+ - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
372
+ - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
373
+ - spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8
374
+ - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
375
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
354
376
  - spec/fixtures/db/mysql2.yml
355
377
  - spec/fixtures/db/mysql2.yml.example
356
378
  - spec/fixtures/db/sqlite3.yml
@@ -364,10 +386,12 @@ test_files:
364
386
  - spec/fixtures/reports/employee_with_parameters.html
365
387
  - spec/requests/employee_spec.rb
366
388
  - spec/requests/employee_with_custom_client_spec.rb
389
+ - spec/requests/employee_with_custom_controller_spec.rb
367
390
  - spec/routing/dossier_routes_spec.rb
368
391
  - spec/spec_helper.rb
369
392
  - spec/support/factory.rb
370
- - spec/support/reports/employee.rb
371
- - spec/support/reports/employee_with_custom_client.rb
372
- - spec/support/reports/employee_with_custom_view.rb
373
- - spec/support/reports/test.rb
393
+ - spec/support/reports/employee_report.rb
394
+ - spec/support/reports/employee_with_custom_client_report.rb
395
+ - spec/support/reports/employee_with_custom_view_report.rb
396
+ - spec/support/reports/hello_my_friends_report.rb
397
+ - spec/support/reports/test_report.rb