comma 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +10 -1
  3. data/.rubocop_todo.yml +5 -4
  4. data/Appraisals +20 -22
  5. data/Gemfile.lock +1 -1
  6. data/README.md +75 -3
  7. data/gemfiles/{active6.0.6.gemfile → active7.1.6.gemfile} +2 -2
  8. data/gemfiles/{active7.1.3.gemfile.lock → active7.1.6.gemfile.lock} +79 -43
  9. data/gemfiles/{active7.0.8.gemfile → active7.2.3.2.gemfile} +2 -2
  10. data/gemfiles/active7.2.3.2.gemfile.lock +182 -0
  11. data/gemfiles/{active6.1.7.6.gemfile → active8.0.5.1.gemfile} +2 -2
  12. data/gemfiles/{active6.1.7.6.gemfile.lock → active8.0.5.1.gemfile.lock} +87 -47
  13. data/gemfiles/{active7.1.3.gemfile → active8.1.3.1.gemfile} +2 -2
  14. data/gemfiles/{active7.0.8.gemfile.lock → active8.1.3.1.gemfile.lock} +87 -45
  15. data/gemfiles/{rails7.0.8.gemfile → rails7.1.6.gemfile} +1 -1
  16. data/gemfiles/{rails7.1.3.gemfile.lock → rails7.1.6.gemfile.lock} +155 -126
  17. data/gemfiles/{rails7.1.3.gemfile → rails7.2.3.2.gemfile} +1 -1
  18. data/gemfiles/rails7.2.3.2.gemfile.lock +321 -0
  19. data/gemfiles/{rails6.0.6.gemfile → rails8.0.5.1.gemfile} +1 -2
  20. data/gemfiles/rails8.0.5.1.gemfile.lock +319 -0
  21. data/gemfiles/{rails6.1.7.6.gemfile → rails8.1.3.1.gemfile} +1 -2
  22. data/gemfiles/rails8.1.3.1.gemfile.lock +322 -0
  23. data/lib/comma/array.rb +1 -3
  24. data/lib/comma/collection_export.rb +9 -0
  25. data/lib/comma/data_extractor.rb +16 -20
  26. data/lib/comma/data_mapper_collection.rb +1 -3
  27. data/lib/comma/extractor.rb +33 -2
  28. data/lib/comma/generator.rb +4 -8
  29. data/lib/comma/header_extractor.rb +10 -19
  30. data/lib/comma/mongoid.rb +1 -3
  31. data/lib/comma/object.rb +37 -11
  32. data/lib/comma/options.rb +18 -0
  33. data/lib/comma/rails/renderer.rb +21 -0
  34. data/lib/comma/rails.rb +16 -0
  35. data/lib/comma/version.rb +1 -1
  36. data/lib/comma.rb +4 -43
  37. data/spec/comma/comma_spec.rb +93 -34
  38. data/spec/comma/data_extractor_spec.rb +3 -3
  39. data/spec/comma/header_extractor_spec.rb +1 -1
  40. data/spec/comma/options_spec.rb +63 -0
  41. data/spec/comma/rails/active_record_spec.rb +0 -1
  42. data/spec/controllers/users_controller_spec.rb +13 -28
  43. data/spec/support/comma_class_helper.rb +12 -0
  44. data/spec/support/csv_expectation_helper.rb +14 -0
  45. metadata +28 -18
  46. data/gemfiles/active6.0.6.gemfile.lock +0 -144
  47. data/gemfiles/rails6.0.6.gemfile.lock +0 -276
  48. data/gemfiles/rails6.1.7.6.gemfile.lock +0 -279
  49. data/gemfiles/rails7.0.8.gemfile.lock +0 -274
@@ -1,274 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- comma (5.0.0)
5
- activesupport (>= 4.2.0)
6
- csv (>= 3.3)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (7.0.8)
12
- actionpack (= 7.0.8)
13
- activesupport (= 7.0.8)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailbox (7.0.8)
17
- actionpack (= 7.0.8)
18
- activejob (= 7.0.8)
19
- activerecord (= 7.0.8)
20
- activestorage (= 7.0.8)
21
- activesupport (= 7.0.8)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.0.8)
27
- actionpack (= 7.0.8)
28
- actionview (= 7.0.8)
29
- activejob (= 7.0.8)
30
- activesupport (= 7.0.8)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 2.0)
36
- actionpack (7.0.8)
37
- actionview (= 7.0.8)
38
- activesupport (= 7.0.8)
39
- rack (~> 2.0, >= 2.2.4)
40
- rack-test (>= 0.6.3)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
- actiontext (7.0.8)
44
- actionpack (= 7.0.8)
45
- activerecord (= 7.0.8)
46
- activestorage (= 7.0.8)
47
- activesupport (= 7.0.8)
48
- globalid (>= 0.6.0)
49
- nokogiri (>= 1.8.5)
50
- actionview (7.0.8)
51
- activesupport (= 7.0.8)
52
- builder (~> 3.1)
53
- erubi (~> 1.4)
54
- rails-dom-testing (~> 2.0)
55
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
56
- activejob (7.0.8)
57
- activesupport (= 7.0.8)
58
- globalid (>= 0.3.6)
59
- activemodel (7.0.8)
60
- activesupport (= 7.0.8)
61
- activerecord (7.0.8)
62
- activemodel (= 7.0.8)
63
- activesupport (= 7.0.8)
64
- activestorage (7.0.8)
65
- actionpack (= 7.0.8)
66
- activejob (= 7.0.8)
67
- activerecord (= 7.0.8)
68
- activesupport (= 7.0.8)
69
- marcel (~> 1.0)
70
- mini_mime (>= 1.1.0)
71
- activesupport (7.0.8)
72
- concurrent-ruby (~> 1.0, >= 1.0.2)
73
- i18n (>= 1.6, < 2)
74
- minitest (>= 5.1)
75
- tzinfo (~> 2.0)
76
- appraisal (1.0.3)
77
- bundler
78
- rake
79
- thor (>= 0.14.0)
80
- ast (2.4.2)
81
- base64 (0.3.0)
82
- benchmark (0.5.0)
83
- bigdecimal (4.1.2)
84
- builder (3.2.4)
85
- cgi (0.3.6)
86
- concurrent-ruby (1.3.6)
87
- coveralls (0.8.23)
88
- json (>= 1.8, < 3)
89
- simplecov (~> 0.16.1)
90
- term-ansicolor (~> 1.3)
91
- thor (>= 0.19.4, < 2.0)
92
- tins (~> 1.6)
93
- crass (1.0.6)
94
- csv (3.3.5)
95
- date (3.3.4)
96
- diff-lcs (1.5.0)
97
- docile (1.4.0)
98
- drb (2.2.3)
99
- erubi (1.12.0)
100
- globalid (1.2.1)
101
- activesupport (>= 6.1)
102
- i18n (1.14.8)
103
- concurrent-ruby (~> 1.0)
104
- json (2.7.1)
105
- logger (1.7.0)
106
- loofah (2.22.0)
107
- crass (~> 1.0.2)
108
- nokogiri (>= 1.12.0)
109
- mail (2.8.1)
110
- mini_mime (>= 0.1.1)
111
- net-imap
112
- net-pop
113
- net-smtp
114
- marcel (1.0.2)
115
- method_source (1.0.0)
116
- mini_mime (1.1.5)
117
- mini_portile2 (2.8.9)
118
- minitest (5.27.0)
119
- mutex_m (0.3.0)
120
- net-imap (0.4.9.1)
121
- date
122
- net-protocol
123
- net-pop (0.1.2)
124
- net-protocol
125
- net-protocol (0.2.2)
126
- timeout
127
- net-smtp (0.4.0.1)
128
- net-protocol
129
- nio4r (2.7.0)
130
- nokogiri (1.16.0)
131
- mini_portile2 (~> 2.8.2)
132
- racc (~> 1.4)
133
- nokogiri (1.16.0-x86_64-darwin)
134
- racc (~> 1.4)
135
- nokogiri (1.16.0-x86_64-linux)
136
- racc (~> 1.4)
137
- ostruct (0.5.2)
138
- parallel (1.24.0)
139
- parser (3.3.0.4)
140
- ast (~> 2.4.1)
141
- racc
142
- racc (1.7.3)
143
- rack (2.2.8)
144
- rack-test (2.1.0)
145
- rack (>= 1.3)
146
- rails (7.0.8)
147
- actioncable (= 7.0.8)
148
- actionmailbox (= 7.0.8)
149
- actionmailer (= 7.0.8)
150
- actionpack (= 7.0.8)
151
- actiontext (= 7.0.8)
152
- actionview (= 7.0.8)
153
- activejob (= 7.0.8)
154
- activemodel (= 7.0.8)
155
- activerecord (= 7.0.8)
156
- activestorage (= 7.0.8)
157
- activesupport (= 7.0.8)
158
- bundler (>= 1.15.0)
159
- railties (= 7.0.8)
160
- rails-dom-testing (2.2.0)
161
- activesupport (>= 5.0.0)
162
- minitest
163
- nokogiri (>= 1.6)
164
- rails-html-sanitizer (1.6.0)
165
- loofah (~> 2.21)
166
- nokogiri (~> 1.14)
167
- railties (7.0.8)
168
- actionpack (= 7.0.8)
169
- activesupport (= 7.0.8)
170
- method_source
171
- rake (>= 12.2)
172
- thor (~> 1.0)
173
- zeitwerk (~> 2.5)
174
- rainbow (3.1.1)
175
- rake (13.0.6)
176
- regexp_parser (2.9.0)
177
- rexml (3.2.6)
178
- rspec (3.13.0)
179
- rspec-core (~> 3.13.0)
180
- rspec-expectations (~> 3.13.0)
181
- rspec-mocks (~> 3.13.0)
182
- rspec-activemodel-mocks (1.2.0)
183
- activemodel (>= 3.0)
184
- activesupport (>= 3.0)
185
- rspec-mocks (>= 2.99, < 4.0)
186
- rspec-core (3.13.1)
187
- rspec-support (~> 3.13.0)
188
- rspec-expectations (3.13.3)
189
- diff-lcs (>= 1.2.0, < 2.0)
190
- rspec-support (~> 3.13.0)
191
- rspec-its (1.3.0)
192
- rspec-core (>= 3.0.0)
193
- rspec-expectations (>= 3.0.0)
194
- rspec-mocks (3.13.1)
195
- diff-lcs (>= 1.2.0, < 2.0)
196
- rspec-support (~> 3.13.0)
197
- rspec-rails (6.1.5)
198
- actionpack (>= 6.1)
199
- activesupport (>= 6.1)
200
- railties (>= 6.1)
201
- rspec-core (~> 3.13)
202
- rspec-expectations (~> 3.13)
203
- rspec-mocks (~> 3.13)
204
- rspec-support (~> 3.13)
205
- rspec-support (3.13.1)
206
- rubocop (1.30.1)
207
- parallel (~> 1.10)
208
- parser (>= 3.1.0.0)
209
- rainbow (>= 2.2.2, < 4.0)
210
- regexp_parser (>= 1.8, < 3.0)
211
- rexml (>= 3.2.5, < 4.0)
212
- rubocop-ast (>= 1.18.0, < 2.0)
213
- ruby-progressbar (~> 1.7)
214
- unicode-display_width (>= 1.4.0, < 3.0)
215
- rubocop-ast (1.30.0)
216
- parser (>= 3.2.1.0)
217
- rubocop-performance (1.19.1)
218
- rubocop (>= 1.7.0, < 2.0)
219
- rubocop-ast (>= 0.4.0)
220
- ruby-progressbar (1.13.0)
221
- simplecov (0.16.1)
222
- docile (~> 1.1)
223
- json (>= 1.8, < 3)
224
- simplecov-html (~> 0.10.0)
225
- simplecov-html (0.10.2)
226
- sqlite3 (1.7.0)
227
- mini_portile2 (~> 2.8.0)
228
- sqlite3 (1.7.0-x86_64-darwin)
229
- sqlite3 (1.7.0-x86_64-linux)
230
- sync (0.5.0)
231
- term-ansicolor (1.7.1)
232
- tins (~> 1.0)
233
- thor (1.3.0)
234
- timeout (0.4.1)
235
- tins (1.32.1)
236
- sync
237
- tzinfo (2.0.6)
238
- concurrent-ruby (~> 1.0)
239
- unicode-display_width (2.5.0)
240
- websocket-driver (0.7.6)
241
- websocket-extensions (>= 0.1.0)
242
- websocket-extensions (0.1.5)
243
- zeitwerk (2.6.12)
244
-
245
- PLATFORMS
246
- ruby
247
- x86_64-darwin-23
248
- x86_64-linux
249
-
250
- DEPENDENCIES
251
- appraisal (~> 1.0.0)
252
- base64
253
- benchmark
254
- bigdecimal
255
- cgi
256
- comma!
257
- coveralls
258
- drb
259
- logger
260
- minitest (= 5.27.0)
261
- mutex_m
262
- ostruct
263
- rails (= 7.0.8)
264
- rake (~> 13.0.1)
265
- rspec (~> 3.13)
266
- rspec-activemodel-mocks
267
- rspec-its
268
- rspec-rails
269
- rubocop (~> 1.30.0)
270
- rubocop-performance
271
- sqlite3
272
-
273
- BUNDLED WITH
274
- 2.5.5