dossier 2.13.1 → 3.0.0.pre

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 +5 -5
  2. data/README.md +13 -8
  3. data/Rakefile +1 -1
  4. data/VERSION +1 -1
  5. data/app/controllers/dossier/reports_controller.rb +2 -2
  6. data/app/helpers/dossier/application_helper.rb +4 -0
  7. data/lib/dossier/formatter.rb +1 -1
  8. data/lib/dossier/multi_report.rb +1 -1
  9. data/lib/dossier/renderer.rb +1 -4
  10. data/lib/dossier/report.rb +1 -1
  11. data/lib/dossier/responder.rb +2 -1
  12. data/spec/dossier/responder_spec.rb +4 -1
  13. data/spec/fixtures/db/sqlite3.yml +1 -1
  14. data/spec/{dummy → sample}/Rakefile +0 -0
  15. data/spec/sample/app/controllers/application_controller.rb +2 -0
  16. data/spec/{dummy → sample}/app/controllers/site_controller.rb +0 -0
  17. data/spec/{dummy → sample}/app/reports/cats/are/super_fun_report.rb +0 -0
  18. data/spec/{dummy → sample}/app/reports/combination_report.rb +0 -0
  19. data/spec/{dummy → sample}/app/reports/employee_report.rb +1 -1
  20. data/spec/{dummy → sample}/app/reports/employee_with_custom_client_report.rb +0 -0
  21. data/spec/{dummy → sample}/app/reports/employee_with_custom_view_report.rb +0 -0
  22. data/spec/{dummy → sample}/app/reports/hello_my_friends_report.rb +0 -0
  23. data/spec/{dummy → sample}/app/reports/test_report.rb +0 -0
  24. data/spec/{dummy → sample}/app/views/dossier/reports/combination/_options.html.haml +0 -0
  25. data/spec/{dummy → sample}/app/views/dossier/reports/employee_with_custom_view.html.haml +0 -0
  26. data/spec/{dummy → sample}/app/views/dossier/reports/employee_with_custom_view/_options.html.haml +0 -0
  27. data/spec/{dummy → sample}/app/views/layouts/application.html.erb +1 -1
  28. data/spec/{dummy → sample}/bin/rails +0 -0
  29. data/spec/{dummy → sample}/bin/rake +0 -0
  30. data/spec/sample/config.ru +1 -0
  31. data/spec/{dummy → sample}/config/application.rb +5 -5
  32. data/spec/{dummy → sample}/config/database.yml +0 -0
  33. data/spec/{dummy → sample}/config/routes.rb +0 -0
  34. data/spec/{dummy → sample}/db/schema.rb +0 -0
  35. data/spec/{dummy/db/dossier_test.sqlite3 → sample/db/test.sqlite3} +0 -0
  36. data/spec/{dummy → sample}/log/development.log +0 -0
  37. data/spec/sample/log/test.log +7485 -0
  38. data/spec/spec_helper.rb +3 -7
  39. metadata +105 -110
  40. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  41. data/spec/dummy/config.ru +0 -1
  42. data/spec/dummy/log/test.log +0 -22880
  43. data/spec/fixtures/db/mysql2.yml +0 -5
  44. data/spec/fixtures/db/postgresql.yml +0 -4
@@ -2,18 +2,14 @@ ENV['RAILS_ENV'] = 'test'
2
2
  require 'simplecov'
3
3
  require 'coveralls'
4
4
 
5
- # not sure why I need to do this now, its after I added dummy-application
6
- # ApplicationController.helper Dossier::ApplicationHelper
7
- # SiteController.helper Dossier::ApplicationHelper
8
-
9
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
10
6
  SimpleCov::Formatter::HTMLFormatter,
11
7
  Coveralls::SimpleCov::Formatter
12
- ]
8
+ ])
13
9
  SimpleCov.start
14
10
  Coveralls.wear!('rails')
15
11
 
16
- require File.expand_path("../dummy/config/application.rb", __FILE__)
12
+ require File.expand_path("../sample/config/application.rb", __FILE__)
17
13
  require 'rspec/rails'
18
14
  require 'pry'
19
15
  require 'generator_spec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dossier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.1
4
+ version: 3.0.0.pre
5
5
  platform: ruby
6
6
  authors:
7
- - TMA IT
7
+ - Adam Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arel
@@ -16,124 +16,124 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: 4.2.11.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: 4.2.11.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3.2'
33
+ version: 4.2.11.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '3.2'
40
+ version: 4.2.11.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: actionpack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.2'
47
+ version: 4.2.11.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.2'
54
+ version: 4.2.11.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: actionmailer
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.2'
61
+ version: 4.2.11.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '3.2'
68
+ version: 4.2.11.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: railties
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.2'
75
+ version: 4.2.11.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.2'
82
+ version: 4.2.11.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: haml
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '3.1'
89
+ version: '5.1'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '3.1'
96
+ version: '5.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: responders
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '1.1'
103
+ version: '2.4'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '1.1'
110
+ version: '2.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: activerecord
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '3.2'
117
+ version: 4.2.11.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '3.2'
124
+ version: 4.2.11.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: sqlite3
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: 1.3.6
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.3.6
139
139
  - !ruby/object:Gem::Dependency
@@ -142,74 +142,74 @@ dependencies:
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.10.1
145
+ version: 0.12.1
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 0.10.1
152
+ version: 0.12.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rspec-rails
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 3.3.3
159
+ version: 3.8.2
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 3.3.3
166
+ version: 3.8.2
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: generator_spec
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.9.3
173
+ version: 0.9.4
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.9.3
180
+ version: 0.9.4
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: capybara
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 2.4.4
187
+ version: 3.23.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 2.4.4
194
+ version: 3.23.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.10.0
201
+ version: 0.16.1
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 0.10.0
208
+ version: 0.16.1
209
209
  description: Easy SQL based report generation with the ability to accept request parameters
210
210
  and render multiple formats.
211
211
  email:
212
- - developer@tma1.com
212
+ - adamhunter@me.com
213
213
  executables: []
214
214
  extensions: []
215
215
  extra_rdoc_files: []
@@ -265,39 +265,13 @@ files:
265
265
  - spec/dossier/stream_csv_spec.rb
266
266
  - spec/dossier/version_spec.rb
267
267
  - spec/dossier_spec.rb
268
- - spec/dummy/Rakefile
269
- - spec/dummy/app/controllers/application_controller.rb
270
- - spec/dummy/app/controllers/site_controller.rb
271
- - spec/dummy/app/reports/cats/are/super_fun_report.rb
272
- - spec/dummy/app/reports/combination_report.rb
273
- - spec/dummy/app/reports/employee_report.rb
274
- - spec/dummy/app/reports/employee_with_custom_client_report.rb
275
- - spec/dummy/app/reports/employee_with_custom_view_report.rb
276
- - spec/dummy/app/reports/hello_my_friends_report.rb
277
- - spec/dummy/app/reports/test_report.rb
278
- - spec/dummy/app/views/dossier/reports/combination/_options.html.haml
279
- - spec/dummy/app/views/dossier/reports/employee_with_custom_view.html.haml
280
- - spec/dummy/app/views/dossier/reports/employee_with_custom_view/_options.html.haml
281
- - spec/dummy/app/views/layouts/application.html.erb
282
- - spec/dummy/bin/rails
283
- - spec/dummy/bin/rake
284
- - spec/dummy/config.ru
285
- - spec/dummy/config/application.rb
286
- - spec/dummy/config/database.yml
287
- - spec/dummy/config/routes.rb
288
- - spec/dummy/db/dossier_test.sqlite3
289
- - spec/dummy/db/schema.rb
290
- - spec/dummy/log/development.log
291
- - spec/dummy/log/test.log
292
268
  - spec/features/combination_report_spec.rb
293
269
  - spec/features/employee_spec.rb
294
270
  - spec/features/employee_with_custom_client_spec.rb
295
271
  - spec/features/employee_with_custom_controller_spec.rb
296
272
  - spec/features/namespaced_report_spec.rb
297
- - spec/fixtures/db/mysql2.yml
298
273
  - spec/fixtures/db/mysql2.yml.example
299
274
  - spec/fixtures/db/mysql2.yml.travis
300
- - spec/fixtures/db/postgresql.yml
301
275
  - spec/fixtures/db/postgresql.yml.example
302
276
  - spec/fixtures/db/postgresql.yml.travis
303
277
  - spec/fixtures/db/sqlite3.yml
@@ -308,9 +282,33 @@ files:
308
282
  - spec/generators/dossier/views/views_spec.rb
309
283
  - spec/helpers/dossier/application_helper_spec.rb
310
284
  - spec/routing/dossier_routes_spec.rb
285
+ - spec/sample/Rakefile
286
+ - spec/sample/app/controllers/application_controller.rb
287
+ - spec/sample/app/controllers/site_controller.rb
288
+ - spec/sample/app/reports/cats/are/super_fun_report.rb
289
+ - spec/sample/app/reports/combination_report.rb
290
+ - spec/sample/app/reports/employee_report.rb
291
+ - spec/sample/app/reports/employee_with_custom_client_report.rb
292
+ - spec/sample/app/reports/employee_with_custom_view_report.rb
293
+ - spec/sample/app/reports/hello_my_friends_report.rb
294
+ - spec/sample/app/reports/test_report.rb
295
+ - spec/sample/app/views/dossier/reports/combination/_options.html.haml
296
+ - spec/sample/app/views/dossier/reports/employee_with_custom_view.html.haml
297
+ - spec/sample/app/views/dossier/reports/employee_with_custom_view/_options.html.haml
298
+ - spec/sample/app/views/layouts/application.html.erb
299
+ - spec/sample/bin/rails
300
+ - spec/sample/bin/rake
301
+ - spec/sample/config.ru
302
+ - spec/sample/config/application.rb
303
+ - spec/sample/config/database.yml
304
+ - spec/sample/config/routes.rb
305
+ - spec/sample/db/schema.rb
306
+ - spec/sample/db/test.sqlite3
307
+ - spec/sample/log/development.log
308
+ - spec/sample/log/test.log
311
309
  - spec/spec_helper.rb
312
310
  - spec/support/factory.rb
313
- homepage: https://github.com/tma1/dossier
311
+ homepage: https://github.com/adamhunter/dossier
314
312
  licenses:
315
313
  - MIT
316
314
  metadata: {}
@@ -325,74 +323,71 @@ required_ruby_version: !ruby/object:Gem::Requirement
325
323
  version: '0'
326
324
  required_rubygems_version: !ruby/object:Gem::Requirement
327
325
  requirements:
328
- - - ">="
326
+ - - ">"
329
327
  - !ruby/object:Gem::Version
330
- version: '0'
328
+ version: 1.3.1
331
329
  requirements: []
332
- rubyforge_project:
333
- rubygems_version: 2.4.6
330
+ rubygems_version: 3.0.3
334
331
  signing_key:
335
332
  specification_version: 4
336
333
  summary: SQL based report generation.
337
334
  test_files:
338
- - spec/dossier/adapter/active_record/result_spec.rb
339
- - spec/dossier/adapter/active_record_spec.rb
335
+ - spec/spec_helper.rb
336
+ - spec/dossier/stream_csv_spec.rb
337
+ - spec/dossier/formatter_spec.rb
340
338
  - spec/dossier/client_spec.rb
339
+ - spec/dossier/report_spec.rb
341
340
  - spec/dossier/configuration_spec.rb
341
+ - spec/dossier/version_spec.rb
342
+ - spec/dossier/result_spec.rb
343
+ - spec/dossier/adapter/active_record_spec.rb
344
+ - spec/dossier/adapter/active_record/result_spec.rb
345
+ - spec/dossier/responder_spec.rb
342
346
  - spec/dossier/connection_url_spec.rb
343
- - spec/dossier/formatter_spec.rb
344
- - spec/dossier/model_spec.rb
347
+ - spec/dossier/renderer_spec.rb
345
348
  - spec/dossier/multi_report_spec.rb
346
349
  - spec/dossier/query_spec.rb
347
- - spec/dossier/renderer_spec.rb
348
- - spec/dossier/report_spec.rb
349
- - spec/dossier/responder_spec.rb
350
- - spec/dossier/result_spec.rb
351
- - spec/dossier/stream_csv_spec.rb
352
- - spec/dossier/version_spec.rb
353
- - spec/dossier_spec.rb
354
- - spec/dummy/app/controllers/application_controller.rb
355
- - spec/dummy/app/controllers/site_controller.rb
356
- - spec/dummy/app/reports/cats/are/super_fun_report.rb
357
- - spec/dummy/app/reports/combination_report.rb
358
- - spec/dummy/app/reports/employee_report.rb
359
- - spec/dummy/app/reports/employee_with_custom_client_report.rb
360
- - spec/dummy/app/reports/employee_with_custom_view_report.rb
361
- - spec/dummy/app/reports/hello_my_friends_report.rb
362
- - spec/dummy/app/reports/test_report.rb
363
- - spec/dummy/app/views/dossier/reports/combination/_options.html.haml
364
- - spec/dummy/app/views/dossier/reports/employee_with_custom_view/_options.html.haml
365
- - spec/dummy/app/views/dossier/reports/employee_with_custom_view.html.haml
366
- - spec/dummy/app/views/layouts/application.html.erb
367
- - spec/dummy/bin/rails
368
- - spec/dummy/bin/rake
369
- - spec/dummy/config/application.rb
370
- - spec/dummy/config/database.yml
371
- - spec/dummy/config/routes.rb
372
- - spec/dummy/config.ru
373
- - spec/dummy/db/dossier_test.sqlite3
374
- - spec/dummy/db/schema.rb
375
- - spec/dummy/log/development.log
376
- - spec/dummy/log/test.log
377
- - spec/dummy/Rakefile
378
- - spec/features/combination_report_spec.rb
350
+ - spec/dossier/model_spec.rb
379
351
  - spec/features/employee_spec.rb
352
+ - spec/features/combination_report_spec.rb
380
353
  - spec/features/employee_with_custom_client_spec.rb
381
- - spec/features/employee_with_custom_controller_spec.rb
382
354
  - spec/features/namespaced_report_spec.rb
383
- - spec/fixtures/db/mysql2.yml
384
- - spec/fixtures/db/mysql2.yml.example
385
- - spec/fixtures/db/mysql2.yml.travis
386
- - spec/fixtures/db/postgresql.yml
355
+ - spec/features/employee_with_custom_controller_spec.rb
356
+ - spec/support/factory.rb
357
+ - spec/sample/app/controllers/application_controller.rb
358
+ - spec/sample/app/controllers/site_controller.rb
359
+ - spec/sample/app/views/dossier/reports/employee_with_custom_view.html.haml
360
+ - spec/sample/app/views/dossier/reports/employee_with_custom_view/_options.html.haml
361
+ - spec/sample/app/views/dossier/reports/combination/_options.html.haml
362
+ - spec/sample/app/views/layouts/application.html.erb
363
+ - spec/sample/app/reports/employee_with_custom_client_report.rb
364
+ - spec/sample/app/reports/cats/are/super_fun_report.rb
365
+ - spec/sample/app/reports/employee_report.rb
366
+ - spec/sample/app/reports/hello_my_friends_report.rb
367
+ - spec/sample/app/reports/test_report.rb
368
+ - spec/sample/app/reports/combination_report.rb
369
+ - spec/sample/app/reports/employee_with_custom_view_report.rb
370
+ - spec/sample/bin/rake
371
+ - spec/sample/bin/rails
372
+ - spec/sample/config/routes.rb
373
+ - spec/sample/config/application.rb
374
+ - spec/sample/config/database.yml
375
+ - spec/sample/config.ru
376
+ - spec/sample/Rakefile
377
+ - spec/sample/db/schema.rb
378
+ - spec/sample/db/test.sqlite3
379
+ - spec/sample/log/test.log
380
+ - spec/sample/log/development.log
381
+ - spec/dossier_spec.rb
387
382
  - spec/fixtures/db/postgresql.yml.example
388
- - spec/fixtures/db/postgresql.yml.travis
389
- - spec/fixtures/db/sqlite3.yml
390
- - spec/fixtures/db/sqlite3.yml.example
391
383
  - spec/fixtures/db/sqlite3.yml.travis
384
+ - spec/fixtures/db/sqlite3.yml.example
385
+ - spec/fixtures/db/sqlite3.yml
386
+ - spec/fixtures/db/mysql2.yml.travis
387
+ - spec/fixtures/db/postgresql.yml.travis
388
+ - spec/fixtures/db/mysql2.yml.example
392
389
  - spec/fixtures/reports/employee.csv
393
390
  - spec/fixtures/reports/employee.xls
394
391
  - spec/generators/dossier/views/views_spec.rb
395
- - spec/helpers/dossier/application_helper_spec.rb
396
392
  - spec/routing/dossier_routes_spec.rb
397
- - spec/spec_helper.rb
398
- - spec/support/factory.rb
393
+ - spec/helpers/dossier/application_helper_spec.rb