dossier 2.12.2 → 2.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -6
  3. data/Rakefile +12 -5
  4. data/VERSION +1 -0
  5. data/app/controllers/dossier/reports_controller.rb +1 -1
  6. data/app/views/dossier/reports/show.html.haml +1 -1
  7. data/lib/dossier.rb +1 -1
  8. data/lib/dossier/client.rb +4 -1
  9. data/lib/dossier/configuration.rb +10 -5
  10. data/lib/dossier/{naming.rb → model.rb} +10 -2
  11. data/lib/dossier/multi_report.rb +1 -1
  12. data/lib/dossier/query.rb +1 -1
  13. data/lib/dossier/report.rb +13 -10
  14. data/lib/dossier/responder.rb +2 -0
  15. data/lib/dossier/result.rb +29 -12
  16. data/lib/dossier/version.rb +1 -1
  17. data/lib/generators/dossier/views/templates/show.html.haml +1 -1
  18. data/spec/dossier/adapter/active_record_spec.rb +4 -4
  19. data/spec/dossier/client_spec.rb +19 -19
  20. data/spec/dossier/configuration_spec.rb +29 -9
  21. data/spec/dossier/{naming_spec.rb → model_spec.rb} +6 -1
  22. data/spec/dossier/query_spec.rb +12 -12
  23. data/spec/dossier/report_spec.rb +7 -7
  24. data/spec/dossier/responder_spec.rb +5 -5
  25. data/spec/dossier/result_spec.rb +5 -5
  26. data/spec/dossier/stream_csv_spec.rb +5 -3
  27. data/spec/dossier/version_spec.rb +8 -0
  28. data/spec/dossier_spec.rb +4 -4
  29. data/spec/dummy/Rakefile +4 -0
  30. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  31. data/spec/dummy/app/reports/cats/are/super_fun_report.rb +13 -1
  32. data/spec/dummy/app/reports/employee_report.rb +14 -1
  33. data/spec/dummy/app/reports/employee_with_custom_view_report.rb +5 -1
  34. data/spec/dummy/bin/rails +4 -0
  35. data/spec/dummy/bin/rake +4 -0
  36. data/spec/dummy/config/application.rb +30 -0
  37. data/spec/dummy/config/database.yml +6 -5
  38. data/spec/dummy/db/{test.sqlite3 → dossier_test.sqlite3} +0 -0
  39. data/spec/dummy/log/development.log +0 -0
  40. data/spec/dummy/log/test.log +21983 -0
  41. data/spec/features/employee_spec.rb +13 -4
  42. data/spec/fixtures/db/postgresql.yml +4 -0
  43. data/spec/fixtures/db/postgresql.yml.example +5 -0
  44. data/spec/fixtures/db/postgresql.yml.travis +4 -0
  45. data/spec/fixtures/db/sqlite3.yml +1 -1
  46. data/spec/fixtures/reports/employee.csv +3 -3
  47. data/spec/fixtures/reports/employee.xls +3 -3
  48. data/spec/generators/dossier/views/views_spec.rb +17 -10
  49. data/spec/routing/dossier_routes_spec.rb +1 -1
  50. data/spec/spec_helper.rb +7 -10
  51. data/spec/support/factory.rb +38 -0
  52. metadata +57 -44
  53. data/spec/dummy/config/database.yml.example +0 -13
  54. data/spec/dummy/config/database.yml.travis +0 -5
@@ -1,13 +0,0 @@
1
- defaults: &defaults
2
- adapter: mysql2
3
- database: dossier_test
4
- host: localhost
5
- username: root
6
- password:
7
-
8
- development:
9
- <<: *defaults
10
- test:
11
- <<: *defaults
12
- production:
13
- <<: *defaults
@@ -1,5 +0,0 @@
1
- test:
2
- adapter: mysql2
3
- database: dossier_test
4
- username: root
5
- encoding: utf8