dossier 2.7.1 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/{README.markdown → README.md} +10 -5
  3. data/Rakefile +1 -0
  4. data/app/controllers/dossier/reports_controller.rb +9 -38
  5. data/app/helpers/dossier/application_helper.rb +7 -1
  6. data/app/views/dossier/layouts/application.html.haml +6 -0
  7. data/app/views/dossier/reports/multi.html.haml +8 -3
  8. data/app/views/dossier/reports/show.html.haml +4 -2
  9. data/config/routes.rb +2 -2
  10. data/lib/dossier.rb +4 -8
  11. data/lib/dossier/adapter/active_record.rb +1 -1
  12. data/lib/dossier/formatter.rb +20 -3
  13. data/lib/dossier/multi_report.rb +17 -9
  14. data/lib/dossier/naming.rb +51 -0
  15. data/lib/dossier/renderer.rb +63 -0
  16. data/lib/dossier/report.rb +22 -7
  17. data/lib/dossier/responder.rb +34 -0
  18. data/lib/dossier/result.rb +5 -7
  19. data/lib/dossier/stream_csv.rb +10 -3
  20. data/lib/dossier/version.rb +1 -1
  21. data/lib/dossier/view_context_with_report_formatter.rb +7 -0
  22. data/lib/dossier/xls.rb +2 -2
  23. data/lib/generators/dossier/views/templates/show.html.haml +5 -3
  24. data/spec/dossier/adapter/active_record_spec.rb +1 -1
  25. data/spec/dossier/formatter_spec.rb +38 -3
  26. data/spec/dossier/multi_report_spec.rb +18 -1
  27. data/spec/dossier/naming_spec.rb +29 -0
  28. data/spec/dossier/renderer_spec.rb +57 -0
  29. data/spec/dossier/report_spec.rb +23 -2
  30. data/spec/dossier/responder_spec.rb +59 -0
  31. data/spec/dossier/result_spec.rb +4 -0
  32. data/spec/dossier/stream_csv_spec.rb +75 -0
  33. data/spec/dossier_spec.rb +0 -13
  34. data/spec/dummy/app/controllers/site_controller.rb +0 -4
  35. data/spec/dummy/app/reports/cats/are/super_fun_report.rb +9 -0
  36. data/spec/dummy/app/reports/combination_report.rb +9 -0
  37. data/spec/{support → dummy/app}/reports/employee_report.rb +0 -0
  38. data/spec/{support → dummy/app}/reports/employee_with_custom_client_report.rb +0 -0
  39. data/spec/dummy/app/reports/employee_with_custom_view_report.rb +27 -0
  40. data/spec/dummy/app/reports/hello_my_friends_report.rb +2 -0
  41. data/spec/{support → dummy/app}/reports/test_report.rb +0 -0
  42. data/spec/dummy/app/views/dossier/reports/combination/_options.html.haml +4 -0
  43. data/spec/dummy/app/views/dossier/reports/employee_with_custom_view.html.haml +5 -1
  44. data/spec/dummy/app/views/dossier/reports/employee_with_custom_view/_options.html.haml +6 -0
  45. data/spec/dummy/config/database.yml.travis +5 -0
  46. data/spec/dummy/db/test.sqlite3 +0 -0
  47. data/spec/dummy/log/development.log +3865 -0
  48. data/spec/dummy/log/test.log +44084 -0
  49. data/spec/dummy/tmp/cache/assets/CEA/5A0/sprockets%2Fc0534884cbc43494a05d9e957ea1298d +0 -0
  50. data/spec/dummy/tmp/cache/assets/D40/0D0/sprockets%2F15a6bb0a1346b6d7fe859c14bf729a49 +0 -0
  51. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  52. data/spec/dummy/tmp/cache/assets/D51/510/sprockets%2Fca0353abc266080173bbc3c13efa935a +0 -0
  53. data/spec/dummy/tmp/cache/assets/D6C/400/sprockets%2F7fa180a6e05c7ca4346ef58c54bb30f8 +0 -0
  54. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  55. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  56. data/spec/dummy/{dossier_test → tmp/restart.txt} +0 -0
  57. data/spec/features/combination_report_spec.rb +13 -10
  58. data/spec/features/employee_spec.rb +76 -0
  59. data/spec/{requests → features}/employee_with_custom_client_spec.rb +3 -2
  60. data/spec/{requests → features}/employee_with_custom_controller_spec.rb +3 -2
  61. data/spec/features/namespaced_report_spec.rb +15 -0
  62. data/spec/fixtures/db/mysql2.yml.travis +4 -0
  63. data/spec/fixtures/db/sqlite3.yml.travis +2 -0
  64. data/spec/helpers/dossier/application_helper_spec.rb +24 -0
  65. data/spec/spec_helper.rb +11 -0
  66. metadata +99 -92
  67. data/spec/fixtures/reports/employee.html +0 -54
  68. data/spec/fixtures/reports/employee_with_custom_client.html +0 -54
  69. data/spec/fixtures/reports/employee_with_custom_view.html +0 -15
  70. data/spec/fixtures/reports/employee_with_footer.html +0 -56
  71. data/spec/fixtures/reports/employee_with_parameters.html +0 -38
  72. data/spec/requests/employee_spec.rb +0 -61
  73. data/spec/support/reports/combination_report.rb +0 -8
  74. data/spec/support/reports/employee_with_custom_view_report.rb +0 -8
  75. data/spec/support/reports/hello_my_friends_report.rb +0 -6
@@ -1,19 +1,22 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe "combination report" do
4
+ let(:path) { dossier_multi_report_path(report: 'combination') }
4
5
 
5
- describe "rendering html" do
6
-
7
- context "when no custom view exists" do
8
-
9
- it "displays the correct html" do
10
- visit '/multi/reports/combination'
11
- expect(page).to have_content('Employee Report')
12
- expect(page).to have_content('Employee With Custom View Report')
13
- end
6
+ it "displays the correct html" do
7
+ visit path
8
+ expect(page).to have_content('Employee Report')
9
+ expect(page).to have_content('Did you get that memo?')
10
+ end
14
11
 
15
- end
12
+ it "displays its options" do
13
+ visit path
14
+ expect(page).to have_content('Some options plz!')
15
+ end
16
16
 
17
+ it "does not display options for sub reports" do
18
+ visit path
19
+ expect(page).to_not have_content('options be here matey!')
17
20
  end
18
21
 
19
22
  end
@@ -0,0 +1,76 @@
1
+ require 'spec_helper'
2
+
3
+ describe "employee report" do
4
+
5
+ describe "rendering HTML" do
6
+
7
+ context "when a custom view exists for the report" do
8
+
9
+ it "uses the custom view" do
10
+ visit '/reports/employee_with_custom_view'
11
+ expect(page).to have_content('Yeah. Did you get that memo?')
12
+ end
13
+
14
+ it "has access to the reports formatter in the view scope" do
15
+ visit '/reports/employee_with_custom_view'
16
+ expect(page).to have_content('Margery Butts')
17
+ end
18
+
19
+ end
20
+
21
+ context "when no custom view exists for the report" do
22
+ let(:path) { dossier_report_path(report: 'employee', options: options) }
23
+ let(:options) { nil }
24
+
25
+ it "creates an HTML report using its standard 'show' view" do
26
+ visit path
27
+ expect(page).to have_selector("table thead tr", count: 1)
28
+ expect(page).to have_selector("table tbody tr", count: 3)
29
+ end
30
+
31
+ describe "with options for filtering" do
32
+ let(:options) { {
33
+ salary: true, order: 'desc',
34
+ names: ['Jimmy Jackalope', 'Moustafa McMann'],
35
+ divisions: ['Tedious Toiling']
36
+ } }
37
+
38
+ it "uses any options provided" do
39
+ visit path
40
+ expect(page).to have_selector("table tbody tr", count: 1)
41
+ expect(page).to have_selector("td", text: 'Employee Jimmy Jackalope, Jr.')
42
+ end
43
+ end
44
+
45
+ describe "with a footer" do
46
+ let(:options) { {footer: 1} }
47
+
48
+ it "moves the specified number of rows into the footer" do
49
+ visit path
50
+ expect(page).to have_selector("table tfoot tr th", text: 'Employee Moustafa McMann')
51
+ end
52
+ end
53
+
54
+ end
55
+
56
+ end
57
+
58
+ describe "rendering CSV" do
59
+
60
+ it "creates a standard CSV report" do
61
+ visit '/reports/employee.csv'
62
+ expect(page.body).to eq(File.read('spec/fixtures/reports/employee.csv'))
63
+ end
64
+
65
+ end
66
+
67
+ describe "rendering XLS" do
68
+
69
+ it "creates a standard XLS report" do
70
+ visit '/reports/employee.xls'
71
+ expect(page.body).to eq(File.read('spec/fixtures/reports/employee.xls'))
72
+ end
73
+
74
+ end
75
+
76
+ end
@@ -5,8 +5,9 @@ describe EmployeeWithCustomClientReport do
5
5
  describe "rendering HTML" do
6
6
 
7
7
  it "builds a report using the specified client's database" do
8
- get "reports/employee_with_custom_client"
9
- expect(response.body).to eq(File.read('spec/fixtures/reports/employee_with_custom_client.html'))
8
+ visit '/reports/employee_with_custom_client'
9
+ expect(page).to have_selector('table tbody tr', count: 3)
10
+ expect(page).to have_selector('td', text: 'ELISE ELDERBERRY')
10
11
  end
11
12
 
12
13
  end
@@ -5,8 +5,9 @@ describe "EmployeeReport with custom controller" do
5
5
  describe "rendering HTML" do
6
6
 
7
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'))
8
+ visit "/employee_report_custom_controller"
9
+ expect(page).to have_selector("table thead tr", count: 1)
10
+ expect(page).to have_selector("table tbody tr", count: 3)
10
11
  end
11
12
 
12
13
  end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe "namespaced report" do
4
+
5
+ describe "rendering html" do
6
+
7
+ it "displays the correct html" do
8
+ visit '/reports/cats/are/super_fun'
9
+ expect(page).to have_content('Super Fun Report')
10
+ end
11
+
12
+ end
13
+
14
+ end
15
+
@@ -0,0 +1,4 @@
1
+ adapter: mysql2
2
+ database: dossier_test
3
+ host: localhost
4
+ username: root
@@ -0,0 +1,2 @@
1
+ adapter: sqlite3
2
+ database: db/test.sqlite3
@@ -20,4 +20,28 @@ describe Dossier::ApplicationHelper do
20
20
  expect(uri.query).to eq({options: options}.to_query)
21
21
  end
22
22
  end
23
+
24
+ describe "render_options" do
25
+ describe "if exists" do
26
+ let(:report) { EmployeeWithCustomViewReport.new }
27
+ it "will render the options partial" do
28
+ expect(helper.render_options report).to match('options be here matey!')
29
+ end
30
+ end
31
+
32
+ describe "if missing" do
33
+ let(:report) { EmployeeReport.new }
34
+ it "will do nothing" do
35
+ expect(helper.render_options report).to be_nil
36
+ end
37
+ end
38
+
39
+ describe "if part of a multi report" do
40
+ let(:multi) { CombinationReport.new }
41
+ let(:report) { multi.reports.first }
42
+ it "will not render options" do
43
+ expect(helper.render_options report).to be_nil
44
+ end
45
+ end
46
+ end
23
47
  end
@@ -1,6 +1,17 @@
1
1
  # Configure Rails Environment
2
2
  ENV["RAILS_ENV"] = "test"
3
3
 
4
+ require 'simplecov'
5
+ require 'coveralls'
6
+
7
+
8
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
9
+ SimpleCov::Formatter::HTMLFormatter,
10
+ Coveralls::SimpleCov::Formatter
11
+ ]
12
+ SimpleCov.start
13
+ Coveralls.wear!('rails')
14
+
4
15
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
16
  require "rails/test_help"
6
17
  require 'rspec/rails'
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dossier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
5
- prerelease:
4
+ version: 2.8.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Hunter
@@ -11,172 +10,151 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-05-28 00:00:00.000000000 Z
13
+ date: 2013-06-05 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: arel
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - '>='
22
20
  - !ruby/object:Gem::Version
23
21
  version: '3.0'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - '>='
30
27
  - !ruby/object:Gem::Version
31
28
  version: '3.0'
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: activesupport
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '3.2'
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '3.2'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: actionpack
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ! '>='
47
+ - - '>='
54
48
  - !ruby/object:Gem::Version
55
49
  version: '3.2'
56
50
  type: :runtime
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - '>='
62
55
  - !ruby/object:Gem::Version
63
56
  version: '3.2'
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: actionmailer
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
- - - ! '>='
61
+ - - '>='
70
62
  - !ruby/object:Gem::Version
71
63
  version: '3.2'
72
64
  type: :runtime
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
- - - ! '>='
68
+ - - '>='
78
69
  - !ruby/object:Gem::Version
79
70
  version: '3.2'
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: railties
82
73
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
- - - ! '>='
75
+ - - '>='
86
76
  - !ruby/object:Gem::Version
87
77
  version: '3.2'
88
78
  type: :runtime
89
79
  prerelease: false
90
80
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
81
  requirements:
93
- - - ! '>='
82
+ - - '>='
94
83
  - !ruby/object:Gem::Version
95
84
  version: '3.2'
96
85
  - !ruby/object:Gem::Dependency
97
86
  name: haml
98
87
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
88
  requirements:
101
- - - ! '>='
89
+ - - '>='
102
90
  - !ruby/object:Gem::Version
103
91
  version: '3.1'
104
92
  type: :runtime
105
93
  prerelease: false
106
94
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
95
  requirements:
109
- - - ! '>='
96
+ - - '>='
110
97
  - !ruby/object:Gem::Version
111
98
  version: '3.1'
112
99
  - !ruby/object:Gem::Dependency
113
100
  name: activerecord
114
101
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
102
  requirements:
117
103
  - - ~>
118
104
  - !ruby/object:Gem::Version
119
- version: 3.2.11
105
+ version: 3.2.13
120
106
  type: :development
121
107
  prerelease: false
122
108
  version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
109
  requirements:
125
110
  - - ~>
126
111
  - !ruby/object:Gem::Version
127
- version: 3.2.11
112
+ version: 3.2.13
128
113
  - !ruby/object:Gem::Dependency
129
114
  name: sqlite3
130
115
  requirement: !ruby/object:Gem::Requirement
131
- none: false
132
116
  requirements:
133
- - - ! '>='
117
+ - - '>='
134
118
  - !ruby/object:Gem::Version
135
119
  version: 1.3.6
136
120
  type: :development
137
121
  prerelease: false
138
122
  version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
123
  requirements:
141
- - - ! '>='
124
+ - - '>='
142
125
  - !ruby/object:Gem::Version
143
126
  version: 1.3.6
144
127
  - !ruby/object:Gem::Dependency
145
128
  name: pry
146
129
  requirement: !ruby/object:Gem::Requirement
147
- none: false
148
130
  requirements:
149
- - - ! '>='
131
+ - - '>='
150
132
  - !ruby/object:Gem::Version
151
133
  version: 0.9.10
152
134
  type: :development
153
135
  prerelease: false
154
136
  version_requirements: !ruby/object:Gem::Requirement
155
- none: false
156
137
  requirements:
157
- - - ! '>='
138
+ - - '>='
158
139
  - !ruby/object:Gem::Version
159
140
  version: 0.9.10
160
141
  - !ruby/object:Gem::Dependency
161
142
  name: rspec-rails
162
143
  requirement: !ruby/object:Gem::Requirement
163
- none: false
164
144
  requirements:
165
- - - ! '>='
145
+ - - '>='
166
146
  - !ruby/object:Gem::Version
167
- version: 2.12.0
147
+ version: 2.13.2
168
148
  type: :development
169
149
  prerelease: false
170
150
  version_requirements: !ruby/object:Gem::Requirement
171
- none: false
172
151
  requirements:
173
- - - ! '>='
152
+ - - '>='
174
153
  - !ruby/object:Gem::Version
175
- version: 2.12.0
154
+ version: 2.13.2
176
155
  - !ruby/object:Gem::Dependency
177
156
  name: genspec
178
157
  requirement: !ruby/object:Gem::Requirement
179
- none: false
180
158
  requirements:
181
159
  - - ~>
182
160
  - !ruby/object:Gem::Version
@@ -184,7 +162,6 @@ dependencies:
184
162
  type: :development
185
163
  prerelease: false
186
164
  version_requirements: !ruby/object:Gem::Requirement
187
- none: false
188
165
  requirements:
189
166
  - - ~>
190
167
  - !ruby/object:Gem::Version
@@ -192,7 +169,6 @@ dependencies:
192
169
  - !ruby/object:Gem::Dependency
193
170
  name: capybara
194
171
  requirement: !ruby/object:Gem::Requirement
195
- none: false
196
172
  requirements:
197
173
  - - ~>
198
174
  - !ruby/object:Gem::Version
@@ -200,11 +176,24 @@ dependencies:
200
176
  type: :development
201
177
  prerelease: false
202
178
  version_requirements: !ruby/object:Gem::Requirement
203
- none: false
204
179
  requirements:
205
180
  - - ~>
206
181
  - !ruby/object:Gem::Version
207
182
  version: 2.1.0
183
+ - !ruby/object:Gem::Dependency
184
+ name: simplecov
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ~>
188
+ - !ruby/object:Gem::Version
189
+ version: 0.7.1
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ~>
195
+ - !ruby/object:Gem::Version
196
+ version: 0.7.1
208
197
  description: Easy SQL based report generation with the ability to accept request parameters
209
198
  and render multiple formats.
210
199
  email:
@@ -220,6 +209,7 @@ files:
220
209
  - app/controllers/dossier/application_controller.rb
221
210
  - app/controllers/dossier/reports_controller.rb
222
211
  - app/helpers/dossier/application_helper.rb
212
+ - app/views/dossier/layouts/application.html.haml
223
213
  - app/views/dossier/reports/multi.html.haml
224
214
  - app/views/dossier/reports/show.html.haml
225
215
  - config/initializers/mime_types.rb
@@ -231,11 +221,15 @@ files:
231
221
  - lib/dossier/engine.rb
232
222
  - lib/dossier/formatter.rb
233
223
  - lib/dossier/multi_report.rb
224
+ - lib/dossier/naming.rb
234
225
  - lib/dossier/query.rb
226
+ - lib/dossier/renderer.rb
235
227
  - lib/dossier/report.rb
228
+ - lib/dossier/responder.rb
236
229
  - lib/dossier/result.rb
237
230
  - lib/dossier/stream_csv.rb
238
231
  - lib/dossier/version.rb
232
+ - lib/dossier/view_context_with_report_formatter.rb
239
233
  - lib/dossier/xls.rb
240
234
  - lib/dossier.rb
241
235
  - lib/generators/dossier/views/templates/show.html.haml
@@ -243,28 +237,42 @@ files:
243
237
  - lib/tasks/dossier_tasks.rake
244
238
  - MIT-LICENSE
245
239
  - Rakefile
246
- - README.markdown
240
+ - README.md
247
241
  - spec/dossier/adapter/active_record/result_spec.rb
248
242
  - spec/dossier/adapter/active_record_spec.rb
249
243
  - spec/dossier/client_spec.rb
250
244
  - spec/dossier/configuration_spec.rb
251
245
  - spec/dossier/formatter_spec.rb
252
246
  - spec/dossier/multi_report_spec.rb
247
+ - spec/dossier/naming_spec.rb
253
248
  - spec/dossier/query_spec.rb
249
+ - spec/dossier/renderer_spec.rb
254
250
  - spec/dossier/report_spec.rb
251
+ - spec/dossier/responder_spec.rb
255
252
  - spec/dossier/result_spec.rb
253
+ - spec/dossier/stream_csv_spec.rb
256
254
  - spec/dossier_spec.rb
257
255
  - spec/dummy/app/assets/javascripts/application.js
258
256
  - spec/dummy/app/assets/stylesheets/application.css
259
257
  - spec/dummy/app/controllers/application_controller.rb
260
258
  - spec/dummy/app/controllers/site_controller.rb
261
259
  - spec/dummy/app/helpers/application_helper.rb
260
+ - spec/dummy/app/reports/cats/are/super_fun_report.rb
261
+ - spec/dummy/app/reports/combination_report.rb
262
+ - spec/dummy/app/reports/employee_report.rb
263
+ - spec/dummy/app/reports/employee_with_custom_client_report.rb
264
+ - spec/dummy/app/reports/employee_with_custom_view_report.rb
265
+ - spec/dummy/app/reports/hello_my_friends_report.rb
266
+ - spec/dummy/app/reports/test_report.rb
267
+ - spec/dummy/app/views/dossier/reports/combination/_options.html.haml
268
+ - spec/dummy/app/views/dossier/reports/employee_with_custom_view/_options.html.haml
262
269
  - spec/dummy/app/views/dossier/reports/employee_with_custom_view.html.haml
263
270
  - spec/dummy/app/views/layouts/application.html.erb
264
271
  - spec/dummy/config/application.rb
265
272
  - spec/dummy/config/boot.rb
266
273
  - spec/dummy/config/database.yml
267
274
  - spec/dummy/config/database.yml.example
275
+ - spec/dummy/config/database.yml.travis
268
276
  - spec/dummy/config/environment.rb
269
277
  - spec/dummy/config/environments/development.rb
270
278
  - spec/dummy/config/environments/production.rb
@@ -281,7 +289,6 @@ files:
281
289
  - spec/dummy/config.ru
282
290
  - spec/dummy/db/schema.rb
283
291
  - spec/dummy/db/test.sqlite3
284
- - spec/dummy/dossier_test
285
292
  - spec/dummy/log/development.log
286
293
  - spec/dummy/log/test.log
287
294
  - spec/dummy/public/404.html
@@ -293,69 +300,59 @@ files:
293
300
  - spec/dummy/script/rails
294
301
  - spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869
295
302
  - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
303
+ - spec/dummy/tmp/cache/assets/CEA/5A0/sprockets%2Fc0534884cbc43494a05d9e957ea1298d
296
304
  - spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c
297
305
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
306
+ - spec/dummy/tmp/cache/assets/D40/0D0/sprockets%2F15a6bb0a1346b6d7fe859c14bf729a49
298
307
  - spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc
299
308
  - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
309
+ - spec/dummy/tmp/cache/assets/D51/510/sprockets%2Fca0353abc266080173bbc3c13efa935a
300
310
  - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
311
+ - spec/dummy/tmp/cache/assets/D6C/400/sprockets%2F7fa180a6e05c7ca4346ef58c54bb30f8
301
312
  - spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8
302
313
  - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
303
314
  - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
315
+ - spec/dummy/tmp/restart.txt
304
316
  - spec/features/combination_report_spec.rb
317
+ - spec/features/employee_spec.rb
318
+ - spec/features/employee_with_custom_client_spec.rb
319
+ - spec/features/employee_with_custom_controller_spec.rb
320
+ - spec/features/namespaced_report_spec.rb
305
321
  - spec/fixtures/db/mysql2.yml
306
322
  - spec/fixtures/db/mysql2.yml.example
323
+ - spec/fixtures/db/mysql2.yml.travis
307
324
  - spec/fixtures/db/sqlite3.yml
308
325
  - spec/fixtures/db/sqlite3.yml.example
326
+ - spec/fixtures/db/sqlite3.yml.travis
309
327
  - spec/fixtures/reports/employee.csv
310
- - spec/fixtures/reports/employee.html
311
328
  - spec/fixtures/reports/employee.xls
312
- - spec/fixtures/reports/employee_with_custom_client.html
313
- - spec/fixtures/reports/employee_with_custom_view.html
314
- - spec/fixtures/reports/employee_with_footer.html
315
- - spec/fixtures/reports/employee_with_parameters.html
316
329
  - spec/generators/dossier/views/views_spec.rb
317
330
  - spec/helpers/dossier/application_helper_spec.rb
318
- - spec/requests/employee_spec.rb
319
- - spec/requests/employee_with_custom_client_spec.rb
320
- - spec/requests/employee_with_custom_controller_spec.rb
321
331
  - spec/routing/dossier_routes_spec.rb
322
332
  - spec/spec_helper.rb
323
333
  - spec/support/factory.rb
324
- - spec/support/reports/combination_report.rb
325
- - spec/support/reports/employee_report.rb
326
- - spec/support/reports/employee_with_custom_client_report.rb
327
- - spec/support/reports/employee_with_custom_view_report.rb
328
- - spec/support/reports/hello_my_friends_report.rb
329
- - spec/support/reports/test_report.rb
330
334
  homepage: https://github.com/adamhunter/dossier
331
335
  licenses: []
336
+ metadata: {}
332
337
  post_install_message:
333
338
  rdoc_options: []
334
339
  require_paths:
335
340
  - lib
336
341
  required_ruby_version: !ruby/object:Gem::Requirement
337
- none: false
338
342
  requirements:
339
- - - ! '>='
343
+ - - '>='
340
344
  - !ruby/object:Gem::Version
341
345
  version: '0'
342
- segments:
343
- - 0
344
- hash: -1291830662422391025
345
346
  required_rubygems_version: !ruby/object:Gem::Requirement
346
- none: false
347
347
  requirements:
348
- - - ! '>='
348
+ - - '>='
349
349
  - !ruby/object:Gem::Version
350
350
  version: '0'
351
- segments:
352
- - 0
353
- hash: -1291830662422391025
354
351
  requirements: []
355
352
  rubyforge_project:
356
- rubygems_version: 1.8.23
353
+ rubygems_version: 2.0.3
357
354
  signing_key:
358
- specification_version: 3
355
+ specification_version: 4
359
356
  summary: SQL based report generation.
360
357
  test_files:
361
358
  - spec/dossier/adapter/active_record/result_spec.rb
@@ -364,21 +361,35 @@ test_files:
364
361
  - spec/dossier/configuration_spec.rb
365
362
  - spec/dossier/formatter_spec.rb
366
363
  - spec/dossier/multi_report_spec.rb
364
+ - spec/dossier/naming_spec.rb
367
365
  - spec/dossier/query_spec.rb
366
+ - spec/dossier/renderer_spec.rb
368
367
  - spec/dossier/report_spec.rb
368
+ - spec/dossier/responder_spec.rb
369
369
  - spec/dossier/result_spec.rb
370
+ - spec/dossier/stream_csv_spec.rb
370
371
  - spec/dossier_spec.rb
371
372
  - spec/dummy/app/assets/javascripts/application.js
372
373
  - spec/dummy/app/assets/stylesheets/application.css
373
374
  - spec/dummy/app/controllers/application_controller.rb
374
375
  - spec/dummy/app/controllers/site_controller.rb
375
376
  - spec/dummy/app/helpers/application_helper.rb
377
+ - spec/dummy/app/reports/cats/are/super_fun_report.rb
378
+ - spec/dummy/app/reports/combination_report.rb
379
+ - spec/dummy/app/reports/employee_report.rb
380
+ - spec/dummy/app/reports/employee_with_custom_client_report.rb
381
+ - spec/dummy/app/reports/employee_with_custom_view_report.rb
382
+ - spec/dummy/app/reports/hello_my_friends_report.rb
383
+ - spec/dummy/app/reports/test_report.rb
384
+ - spec/dummy/app/views/dossier/reports/combination/_options.html.haml
385
+ - spec/dummy/app/views/dossier/reports/employee_with_custom_view/_options.html.haml
376
386
  - spec/dummy/app/views/dossier/reports/employee_with_custom_view.html.haml
377
387
  - spec/dummy/app/views/layouts/application.html.erb
378
388
  - spec/dummy/config/application.rb
379
389
  - spec/dummy/config/boot.rb
380
390
  - spec/dummy/config/database.yml
381
391
  - spec/dummy/config/database.yml.example
392
+ - spec/dummy/config/database.yml.travis
382
393
  - spec/dummy/config/environment.rb
383
394
  - spec/dummy/config/environments/development.rb
384
395
  - spec/dummy/config/environments/production.rb
@@ -395,7 +406,6 @@ test_files:
395
406
  - spec/dummy/config.ru
396
407
  - spec/dummy/db/schema.rb
397
408
  - spec/dummy/db/test.sqlite3
398
- - spec/dummy/dossier_test
399
409
  - spec/dummy/log/development.log
400
410
  - spec/dummy/log/test.log
401
411
  - spec/dummy/public/404.html
@@ -407,37 +417,34 @@ test_files:
407
417
  - spec/dummy/script/rails
408
418
  - spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869
409
419
  - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
420
+ - spec/dummy/tmp/cache/assets/CEA/5A0/sprockets%2Fc0534884cbc43494a05d9e957ea1298d
410
421
  - spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c
411
422
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
423
+ - spec/dummy/tmp/cache/assets/D40/0D0/sprockets%2F15a6bb0a1346b6d7fe859c14bf729a49
412
424
  - spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc
413
425
  - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
426
+ - spec/dummy/tmp/cache/assets/D51/510/sprockets%2Fca0353abc266080173bbc3c13efa935a
414
427
  - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
428
+ - spec/dummy/tmp/cache/assets/D6C/400/sprockets%2F7fa180a6e05c7ca4346ef58c54bb30f8
415
429
  - spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8
416
430
  - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
417
431
  - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
432
+ - spec/dummy/tmp/restart.txt
418
433
  - spec/features/combination_report_spec.rb
434
+ - spec/features/employee_spec.rb
435
+ - spec/features/employee_with_custom_client_spec.rb
436
+ - spec/features/employee_with_custom_controller_spec.rb
437
+ - spec/features/namespaced_report_spec.rb
419
438
  - spec/fixtures/db/mysql2.yml
420
439
  - spec/fixtures/db/mysql2.yml.example
440
+ - spec/fixtures/db/mysql2.yml.travis
421
441
  - spec/fixtures/db/sqlite3.yml
422
442
  - spec/fixtures/db/sqlite3.yml.example
443
+ - spec/fixtures/db/sqlite3.yml.travis
423
444
  - spec/fixtures/reports/employee.csv
424
- - spec/fixtures/reports/employee.html
425
445
  - spec/fixtures/reports/employee.xls
426
- - spec/fixtures/reports/employee_with_custom_client.html
427
- - spec/fixtures/reports/employee_with_custom_view.html
428
- - spec/fixtures/reports/employee_with_footer.html
429
- - spec/fixtures/reports/employee_with_parameters.html
430
446
  - spec/generators/dossier/views/views_spec.rb
431
447
  - spec/helpers/dossier/application_helper_spec.rb
432
- - spec/requests/employee_spec.rb
433
- - spec/requests/employee_with_custom_client_spec.rb
434
- - spec/requests/employee_with_custom_controller_spec.rb
435
448
  - spec/routing/dossier_routes_spec.rb
436
449
  - spec/spec_helper.rb
437
450
  - spec/support/factory.rb
438
- - spec/support/reports/combination_report.rb
439
- - spec/support/reports/employee_report.rb
440
- - spec/support/reports/employee_with_custom_client_report.rb
441
- - spec/support/reports/employee_with_custom_view_report.rb
442
- - spec/support/reports/hello_my_friends_report.rb
443
- - spec/support/reports/test_report.rb