comma 4.3.1 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +47 -0
- data/.rubocop.yml +3 -0
- data/.travis.yml +25 -32
- data/Appraisals +31 -6
- data/Gemfile +3 -1
- data/Gemfile.lock +39 -23
- data/README.md +3 -3
- data/comma.gemspec +3 -5
- data/gemfiles/active5.2.5.gemfile +12 -0
- data/gemfiles/{active5.2.3.gemfile.lock → active5.2.5.gemfile.lock} +40 -34
- data/gemfiles/active6.0.3.6.gemfile +12 -0
- data/gemfiles/{active5.1.7.gemfile.lock → active6.0.3.6.gemfile.lock} +42 -36
- data/gemfiles/active6.1.3.1.gemfile +12 -0
- data/gemfiles/{active4.2.11.1.gemfile.lock → active6.1.3.1.gemfile.lock} +47 -44
- data/gemfiles/active7.0.0.gemfile +12 -0
- data/gemfiles/{active5.0.7.2.gemfile.lock → active7.0.0.gemfile.lock} +44 -41
- data/gemfiles/{rails5.2.3.gemfile → rails5.2.5.gemfile} +5 -2
- data/gemfiles/{rails5.2.3.gemfile.lock → rails5.2.5.gemfile.lock} +93 -86
- data/gemfiles/{rails4.2.11.1.gemfile → rails6.0.3.6.gemfile} +4 -2
- data/gemfiles/rails6.0.3.6.gemfile.lock +228 -0
- data/gemfiles/{rails5.0.7.2.gemfile → rails6.1.3.1.gemfile} +4 -2
- data/gemfiles/rails6.1.3.1.gemfile.lock +231 -0
- data/gemfiles/{rails5.1.7.gemfile → rails7.0.0.gemfile} +4 -3
- data/gemfiles/rails7.0.0.gemfile.lock +220 -0
- data/lib/comma/generator.rb +2 -2
- data/lib/comma/header_extractor.rb +2 -1
- data/lib/comma/version.rb +1 -1
- data/lib/comma.rb +2 -1
- data/spec/comma/comma_spec.rb +3 -3
- data/spec/comma/data_extractor_spec.rb +8 -8
- data/spec/comma/header_extractor_spec.rb +5 -5
- data/spec/comma/rails/active_record_spec.rb +13 -14
- data/spec/controllers/users_controller_spec.rb +45 -33
- data/spec/rails_app/active_record/models.rb +1 -8
- data/spec/spec_helper.rb +14 -1
- metadata +36 -45
- data/gemfiles/active4.2.11.1.gemfile +0 -10
- data/gemfiles/active5.0.7.2.gemfile +0 -10
- data/gemfiles/active5.1.7.gemfile +0 -10
- data/gemfiles/active5.2.3.gemfile +0 -10
- data/gemfiles/active6.0.0.gemfile +0 -10
- data/gemfiles/active6.0.0.gemfile.lock +0 -108
- data/gemfiles/rails4.2.11.1.gemfile.lock +0 -191
- data/gemfiles/rails5.0.7.2.gemfile.lock +0 -198
- data/gemfiles/rails5.1.7.gemfile.lock +0 -198
- data/gemfiles/rails6.0.0.gemfile +0 -11
- data/gemfiles/rails6.0.0.gemfile.lock +0 -237
@@ -0,0 +1,228 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
comma (4.6.0)
|
5
|
+
activesupport (>= 4.2.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (6.0.3.6)
|
11
|
+
actionpack (= 6.0.3.6)
|
12
|
+
nio4r (~> 2.0)
|
13
|
+
websocket-driver (>= 0.6.1)
|
14
|
+
actionmailbox (6.0.3.6)
|
15
|
+
actionpack (= 6.0.3.6)
|
16
|
+
activejob (= 6.0.3.6)
|
17
|
+
activerecord (= 6.0.3.6)
|
18
|
+
activestorage (= 6.0.3.6)
|
19
|
+
activesupport (= 6.0.3.6)
|
20
|
+
mail (>= 2.7.1)
|
21
|
+
actionmailer (6.0.3.6)
|
22
|
+
actionpack (= 6.0.3.6)
|
23
|
+
actionview (= 6.0.3.6)
|
24
|
+
activejob (= 6.0.3.6)
|
25
|
+
mail (~> 2.5, >= 2.5.4)
|
26
|
+
rails-dom-testing (~> 2.0)
|
27
|
+
actionpack (6.0.3.6)
|
28
|
+
actionview (= 6.0.3.6)
|
29
|
+
activesupport (= 6.0.3.6)
|
30
|
+
rack (~> 2.0, >= 2.0.8)
|
31
|
+
rack-test (>= 0.6.3)
|
32
|
+
rails-dom-testing (~> 2.0)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
34
|
+
actiontext (6.0.3.6)
|
35
|
+
actionpack (= 6.0.3.6)
|
36
|
+
activerecord (= 6.0.3.6)
|
37
|
+
activestorage (= 6.0.3.6)
|
38
|
+
activesupport (= 6.0.3.6)
|
39
|
+
nokogiri (>= 1.8.5)
|
40
|
+
actionview (6.0.3.6)
|
41
|
+
activesupport (= 6.0.3.6)
|
42
|
+
builder (~> 3.1)
|
43
|
+
erubi (~> 1.4)
|
44
|
+
rails-dom-testing (~> 2.0)
|
45
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
46
|
+
activejob (6.0.3.6)
|
47
|
+
activesupport (= 6.0.3.6)
|
48
|
+
globalid (>= 0.3.6)
|
49
|
+
activemodel (6.0.3.6)
|
50
|
+
activesupport (= 6.0.3.6)
|
51
|
+
activerecord (6.0.3.6)
|
52
|
+
activemodel (= 6.0.3.6)
|
53
|
+
activesupport (= 6.0.3.6)
|
54
|
+
activestorage (6.0.3.6)
|
55
|
+
actionpack (= 6.0.3.6)
|
56
|
+
activejob (= 6.0.3.6)
|
57
|
+
activerecord (= 6.0.3.6)
|
58
|
+
marcel (~> 1.0.0)
|
59
|
+
activesupport (6.0.3.6)
|
60
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
61
|
+
i18n (>= 0.7, < 2)
|
62
|
+
minitest (~> 5.1)
|
63
|
+
tzinfo (~> 1.1)
|
64
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
65
|
+
appraisal (1.0.3)
|
66
|
+
bundler
|
67
|
+
rake
|
68
|
+
thor (>= 0.14.0)
|
69
|
+
ast (2.4.2)
|
70
|
+
builder (3.2.4)
|
71
|
+
concurrent-ruby (1.1.9)
|
72
|
+
coveralls (0.8.23)
|
73
|
+
json (>= 1.8, < 3)
|
74
|
+
simplecov (~> 0.16.1)
|
75
|
+
term-ansicolor (~> 1.3)
|
76
|
+
thor (>= 0.19.4, < 2.0)
|
77
|
+
tins (~> 1.6)
|
78
|
+
crass (1.0.6)
|
79
|
+
diff-lcs (1.4.4)
|
80
|
+
docile (1.4.0)
|
81
|
+
erubi (1.10.0)
|
82
|
+
globalid (0.5.2)
|
83
|
+
activesupport (>= 5.0)
|
84
|
+
i18n (1.8.11)
|
85
|
+
concurrent-ruby (~> 1.0)
|
86
|
+
jaro_winkler (1.5.4)
|
87
|
+
json (2.6.1)
|
88
|
+
loofah (2.12.0)
|
89
|
+
crass (~> 1.0.2)
|
90
|
+
nokogiri (>= 1.5.9)
|
91
|
+
mail (2.7.1)
|
92
|
+
mini_mime (>= 0.1.1)
|
93
|
+
marcel (1.0.2)
|
94
|
+
method_source (1.0.0)
|
95
|
+
mini_mime (1.1.2)
|
96
|
+
mini_portile2 (2.6.1)
|
97
|
+
minitest (5.14.4)
|
98
|
+
nio4r (2.5.8)
|
99
|
+
nokogiri (1.12.5)
|
100
|
+
mini_portile2 (~> 2.6.1)
|
101
|
+
racc (~> 1.4)
|
102
|
+
parallel (1.21.0)
|
103
|
+
parser (3.0.2.0)
|
104
|
+
ast (~> 2.4.1)
|
105
|
+
power_assert (2.0.1)
|
106
|
+
psych (3.3.0)
|
107
|
+
racc (1.6.0)
|
108
|
+
rack (2.2.3)
|
109
|
+
rack-test (1.1.0)
|
110
|
+
rack (>= 1.0, < 3)
|
111
|
+
rails (6.0.3.6)
|
112
|
+
actioncable (= 6.0.3.6)
|
113
|
+
actionmailbox (= 6.0.3.6)
|
114
|
+
actionmailer (= 6.0.3.6)
|
115
|
+
actionpack (= 6.0.3.6)
|
116
|
+
actiontext (= 6.0.3.6)
|
117
|
+
actionview (= 6.0.3.6)
|
118
|
+
activejob (= 6.0.3.6)
|
119
|
+
activemodel (= 6.0.3.6)
|
120
|
+
activerecord (= 6.0.3.6)
|
121
|
+
activestorage (= 6.0.3.6)
|
122
|
+
activesupport (= 6.0.3.6)
|
123
|
+
bundler (>= 1.3.0)
|
124
|
+
railties (= 6.0.3.6)
|
125
|
+
sprockets-rails (>= 2.0.0)
|
126
|
+
rails-dom-testing (2.0.3)
|
127
|
+
activesupport (>= 4.2.0)
|
128
|
+
nokogiri (>= 1.6)
|
129
|
+
rails-html-sanitizer (1.4.2)
|
130
|
+
loofah (~> 2.3)
|
131
|
+
railties (6.0.3.6)
|
132
|
+
actionpack (= 6.0.3.6)
|
133
|
+
activesupport (= 6.0.3.6)
|
134
|
+
method_source
|
135
|
+
rake (>= 0.8.7)
|
136
|
+
thor (>= 0.20.3, < 2.0)
|
137
|
+
rainbow (3.0.0)
|
138
|
+
rake (13.0.6)
|
139
|
+
rspec (3.5.0)
|
140
|
+
rspec-core (~> 3.5.0)
|
141
|
+
rspec-expectations (~> 3.5.0)
|
142
|
+
rspec-mocks (~> 3.5.0)
|
143
|
+
rspec-activemodel-mocks (1.1.0)
|
144
|
+
activemodel (>= 3.0)
|
145
|
+
activesupport (>= 3.0)
|
146
|
+
rspec-mocks (>= 2.99, < 4.0)
|
147
|
+
rspec-core (3.5.4)
|
148
|
+
rspec-support (~> 3.5.0)
|
149
|
+
rspec-expectations (3.5.0)
|
150
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
151
|
+
rspec-support (~> 3.5.0)
|
152
|
+
rspec-its (1.3.0)
|
153
|
+
rspec-core (>= 3.0.0)
|
154
|
+
rspec-expectations (>= 3.0.0)
|
155
|
+
rspec-mocks (3.5.0)
|
156
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
157
|
+
rspec-support (~> 3.5.0)
|
158
|
+
rspec-rails (3.5.2)
|
159
|
+
actionpack (>= 3.0)
|
160
|
+
activesupport (>= 3.0)
|
161
|
+
railties (>= 3.0)
|
162
|
+
rspec-core (~> 3.5.0)
|
163
|
+
rspec-expectations (~> 3.5.0)
|
164
|
+
rspec-mocks (~> 3.5.0)
|
165
|
+
rspec-support (~> 3.5.0)
|
166
|
+
rspec-support (3.5.0)
|
167
|
+
rubocop (0.67.2)
|
168
|
+
jaro_winkler (~> 1.5.1)
|
169
|
+
parallel (~> 1.10)
|
170
|
+
parser (>= 2.5, != 2.5.1.1)
|
171
|
+
psych (>= 3.1.0)
|
172
|
+
rainbow (>= 2.2.2, < 4.0)
|
173
|
+
ruby-progressbar (~> 1.7)
|
174
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
175
|
+
rubocop-performance (1.1.0)
|
176
|
+
rubocop (>= 0.67.0)
|
177
|
+
ruby-progressbar (1.11.0)
|
178
|
+
simplecov (0.16.1)
|
179
|
+
docile (~> 1.1)
|
180
|
+
json (>= 1.8, < 3)
|
181
|
+
simplecov-html (~> 0.10.0)
|
182
|
+
simplecov-html (0.10.2)
|
183
|
+
sprockets (4.0.2)
|
184
|
+
concurrent-ruby (~> 1.0)
|
185
|
+
rack (> 1, < 3)
|
186
|
+
sprockets-rails (3.2.2)
|
187
|
+
actionpack (>= 4.0)
|
188
|
+
activesupport (>= 4.0)
|
189
|
+
sprockets (>= 3.0.0)
|
190
|
+
sqlite3 (1.4.2)
|
191
|
+
sync (0.5.0)
|
192
|
+
term-ansicolor (1.7.1)
|
193
|
+
tins (~> 1.0)
|
194
|
+
test-unit (3.5.1)
|
195
|
+
power_assert
|
196
|
+
thor (1.1.0)
|
197
|
+
thread_safe (0.3.6)
|
198
|
+
tins (1.29.1)
|
199
|
+
sync
|
200
|
+
tzinfo (1.2.9)
|
201
|
+
thread_safe (~> 0.1)
|
202
|
+
unicode-display_width (1.5.0)
|
203
|
+
websocket-driver (0.7.5)
|
204
|
+
websocket-extensions (>= 0.1.0)
|
205
|
+
websocket-extensions (0.1.5)
|
206
|
+
zeitwerk (2.5.1)
|
207
|
+
|
208
|
+
PLATFORMS
|
209
|
+
ruby
|
210
|
+
|
211
|
+
DEPENDENCIES
|
212
|
+
appraisal (~> 1.0.0)
|
213
|
+
comma!
|
214
|
+
coveralls
|
215
|
+
minitest (= 5.14.4)
|
216
|
+
rails (= 6.0.3.6)
|
217
|
+
rake (~> 13.0.1)
|
218
|
+
rspec (~> 3.5.0)
|
219
|
+
rspec-activemodel-mocks
|
220
|
+
rspec-its
|
221
|
+
rspec-rails
|
222
|
+
rubocop (~> 0.67.2)
|
223
|
+
rubocop-performance
|
224
|
+
sqlite3
|
225
|
+
test-unit
|
226
|
+
|
227
|
+
BUNDLED WITH
|
228
|
+
2.1.4
|
@@ -3,8 +3,10 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "coveralls", :require => false
|
6
|
-
gem "rubocop", :require => false
|
7
|
-
gem "
|
6
|
+
gem "rubocop", "~> 0.67.2", :require => false
|
7
|
+
gem "rubocop-performance", :require => false
|
8
|
+
gem "sqlite3"
|
9
|
+
gem "rails", "6.1.3.1"
|
8
10
|
gem "rspec-rails"
|
9
11
|
gem "test-unit"
|
10
12
|
|
@@ -0,0 +1,231 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
comma (4.6.0)
|
5
|
+
activesupport (>= 4.2.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (6.1.3.1)
|
11
|
+
actionpack (= 6.1.3.1)
|
12
|
+
activesupport (= 6.1.3.1)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
actionmailbox (6.1.3.1)
|
16
|
+
actionpack (= 6.1.3.1)
|
17
|
+
activejob (= 6.1.3.1)
|
18
|
+
activerecord (= 6.1.3.1)
|
19
|
+
activestorage (= 6.1.3.1)
|
20
|
+
activesupport (= 6.1.3.1)
|
21
|
+
mail (>= 2.7.1)
|
22
|
+
actionmailer (6.1.3.1)
|
23
|
+
actionpack (= 6.1.3.1)
|
24
|
+
actionview (= 6.1.3.1)
|
25
|
+
activejob (= 6.1.3.1)
|
26
|
+
activesupport (= 6.1.3.1)
|
27
|
+
mail (~> 2.5, >= 2.5.4)
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
|
+
actionpack (6.1.3.1)
|
30
|
+
actionview (= 6.1.3.1)
|
31
|
+
activesupport (= 6.1.3.1)
|
32
|
+
rack (~> 2.0, >= 2.0.9)
|
33
|
+
rack-test (>= 0.6.3)
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
+
actiontext (6.1.3.1)
|
37
|
+
actionpack (= 6.1.3.1)
|
38
|
+
activerecord (= 6.1.3.1)
|
39
|
+
activestorage (= 6.1.3.1)
|
40
|
+
activesupport (= 6.1.3.1)
|
41
|
+
nokogiri (>= 1.8.5)
|
42
|
+
actionview (6.1.3.1)
|
43
|
+
activesupport (= 6.1.3.1)
|
44
|
+
builder (~> 3.1)
|
45
|
+
erubi (~> 1.4)
|
46
|
+
rails-dom-testing (~> 2.0)
|
47
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
+
activejob (6.1.3.1)
|
49
|
+
activesupport (= 6.1.3.1)
|
50
|
+
globalid (>= 0.3.6)
|
51
|
+
activemodel (6.1.3.1)
|
52
|
+
activesupport (= 6.1.3.1)
|
53
|
+
activerecord (6.1.3.1)
|
54
|
+
activemodel (= 6.1.3.1)
|
55
|
+
activesupport (= 6.1.3.1)
|
56
|
+
activestorage (6.1.3.1)
|
57
|
+
actionpack (= 6.1.3.1)
|
58
|
+
activejob (= 6.1.3.1)
|
59
|
+
activerecord (= 6.1.3.1)
|
60
|
+
activesupport (= 6.1.3.1)
|
61
|
+
marcel (~> 1.0.0)
|
62
|
+
mini_mime (~> 1.0.2)
|
63
|
+
activesupport (6.1.3.1)
|
64
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
65
|
+
i18n (>= 1.6, < 2)
|
66
|
+
minitest (>= 5.1)
|
67
|
+
tzinfo (~> 2.0)
|
68
|
+
zeitwerk (~> 2.3)
|
69
|
+
appraisal (1.0.3)
|
70
|
+
bundler
|
71
|
+
rake
|
72
|
+
thor (>= 0.14.0)
|
73
|
+
ast (2.4.2)
|
74
|
+
builder (3.2.4)
|
75
|
+
concurrent-ruby (1.1.9)
|
76
|
+
coveralls (0.8.23)
|
77
|
+
json (>= 1.8, < 3)
|
78
|
+
simplecov (~> 0.16.1)
|
79
|
+
term-ansicolor (~> 1.3)
|
80
|
+
thor (>= 0.19.4, < 2.0)
|
81
|
+
tins (~> 1.6)
|
82
|
+
crass (1.0.6)
|
83
|
+
diff-lcs (1.4.4)
|
84
|
+
docile (1.4.0)
|
85
|
+
erubi (1.10.0)
|
86
|
+
globalid (0.5.2)
|
87
|
+
activesupport (>= 5.0)
|
88
|
+
i18n (1.8.11)
|
89
|
+
concurrent-ruby (~> 1.0)
|
90
|
+
jaro_winkler (1.5.4)
|
91
|
+
json (2.6.1)
|
92
|
+
loofah (2.12.0)
|
93
|
+
crass (~> 1.0.2)
|
94
|
+
nokogiri (>= 1.5.9)
|
95
|
+
mail (2.7.1)
|
96
|
+
mini_mime (>= 0.1.1)
|
97
|
+
marcel (1.0.2)
|
98
|
+
method_source (1.0.0)
|
99
|
+
mini_mime (1.0.3)
|
100
|
+
mini_portile2 (2.6.1)
|
101
|
+
minitest (5.14.4)
|
102
|
+
nio4r (2.5.8)
|
103
|
+
nokogiri (1.12.5)
|
104
|
+
mini_portile2 (~> 2.6.1)
|
105
|
+
racc (~> 1.4)
|
106
|
+
parallel (1.21.0)
|
107
|
+
parser (3.0.2.0)
|
108
|
+
ast (~> 2.4.1)
|
109
|
+
power_assert (2.0.1)
|
110
|
+
psych (3.3.0)
|
111
|
+
racc (1.6.0)
|
112
|
+
rack (2.2.3)
|
113
|
+
rack-test (1.1.0)
|
114
|
+
rack (>= 1.0, < 3)
|
115
|
+
rails (6.1.3.1)
|
116
|
+
actioncable (= 6.1.3.1)
|
117
|
+
actionmailbox (= 6.1.3.1)
|
118
|
+
actionmailer (= 6.1.3.1)
|
119
|
+
actionpack (= 6.1.3.1)
|
120
|
+
actiontext (= 6.1.3.1)
|
121
|
+
actionview (= 6.1.3.1)
|
122
|
+
activejob (= 6.1.3.1)
|
123
|
+
activemodel (= 6.1.3.1)
|
124
|
+
activerecord (= 6.1.3.1)
|
125
|
+
activestorage (= 6.1.3.1)
|
126
|
+
activesupport (= 6.1.3.1)
|
127
|
+
bundler (>= 1.15.0)
|
128
|
+
railties (= 6.1.3.1)
|
129
|
+
sprockets-rails (>= 2.0.0)
|
130
|
+
rails-dom-testing (2.0.3)
|
131
|
+
activesupport (>= 4.2.0)
|
132
|
+
nokogiri (>= 1.6)
|
133
|
+
rails-html-sanitizer (1.4.2)
|
134
|
+
loofah (~> 2.3)
|
135
|
+
railties (6.1.3.1)
|
136
|
+
actionpack (= 6.1.3.1)
|
137
|
+
activesupport (= 6.1.3.1)
|
138
|
+
method_source
|
139
|
+
rake (>= 0.8.7)
|
140
|
+
thor (~> 1.0)
|
141
|
+
rainbow (3.0.0)
|
142
|
+
rake (13.0.6)
|
143
|
+
rspec (3.5.0)
|
144
|
+
rspec-core (~> 3.5.0)
|
145
|
+
rspec-expectations (~> 3.5.0)
|
146
|
+
rspec-mocks (~> 3.5.0)
|
147
|
+
rspec-activemodel-mocks (1.1.0)
|
148
|
+
activemodel (>= 3.0)
|
149
|
+
activesupport (>= 3.0)
|
150
|
+
rspec-mocks (>= 2.99, < 4.0)
|
151
|
+
rspec-core (3.5.4)
|
152
|
+
rspec-support (~> 3.5.0)
|
153
|
+
rspec-expectations (3.5.0)
|
154
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
155
|
+
rspec-support (~> 3.5.0)
|
156
|
+
rspec-its (1.3.0)
|
157
|
+
rspec-core (>= 3.0.0)
|
158
|
+
rspec-expectations (>= 3.0.0)
|
159
|
+
rspec-mocks (3.5.0)
|
160
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
161
|
+
rspec-support (~> 3.5.0)
|
162
|
+
rspec-rails (3.5.2)
|
163
|
+
actionpack (>= 3.0)
|
164
|
+
activesupport (>= 3.0)
|
165
|
+
railties (>= 3.0)
|
166
|
+
rspec-core (~> 3.5.0)
|
167
|
+
rspec-expectations (~> 3.5.0)
|
168
|
+
rspec-mocks (~> 3.5.0)
|
169
|
+
rspec-support (~> 3.5.0)
|
170
|
+
rspec-support (3.5.0)
|
171
|
+
rubocop (0.67.2)
|
172
|
+
jaro_winkler (~> 1.5.1)
|
173
|
+
parallel (~> 1.10)
|
174
|
+
parser (>= 2.5, != 2.5.1.1)
|
175
|
+
psych (>= 3.1.0)
|
176
|
+
rainbow (>= 2.2.2, < 4.0)
|
177
|
+
ruby-progressbar (~> 1.7)
|
178
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
179
|
+
rubocop-performance (1.1.0)
|
180
|
+
rubocop (>= 0.67.0)
|
181
|
+
ruby-progressbar (1.11.0)
|
182
|
+
simplecov (0.16.1)
|
183
|
+
docile (~> 1.1)
|
184
|
+
json (>= 1.8, < 3)
|
185
|
+
simplecov-html (~> 0.10.0)
|
186
|
+
simplecov-html (0.10.2)
|
187
|
+
sprockets (4.0.2)
|
188
|
+
concurrent-ruby (~> 1.0)
|
189
|
+
rack (> 1, < 3)
|
190
|
+
sprockets-rails (3.2.2)
|
191
|
+
actionpack (>= 4.0)
|
192
|
+
activesupport (>= 4.0)
|
193
|
+
sprockets (>= 3.0.0)
|
194
|
+
sqlite3 (1.4.2)
|
195
|
+
sync (0.5.0)
|
196
|
+
term-ansicolor (1.7.1)
|
197
|
+
tins (~> 1.0)
|
198
|
+
test-unit (3.5.1)
|
199
|
+
power_assert
|
200
|
+
thor (1.1.0)
|
201
|
+
tins (1.29.1)
|
202
|
+
sync
|
203
|
+
tzinfo (2.0.4)
|
204
|
+
concurrent-ruby (~> 1.0)
|
205
|
+
unicode-display_width (1.5.0)
|
206
|
+
websocket-driver (0.7.5)
|
207
|
+
websocket-extensions (>= 0.1.0)
|
208
|
+
websocket-extensions (0.1.5)
|
209
|
+
zeitwerk (2.5.1)
|
210
|
+
|
211
|
+
PLATFORMS
|
212
|
+
ruby
|
213
|
+
|
214
|
+
DEPENDENCIES
|
215
|
+
appraisal (~> 1.0.0)
|
216
|
+
comma!
|
217
|
+
coveralls
|
218
|
+
minitest (= 5.14.4)
|
219
|
+
rails (= 6.1.3.1)
|
220
|
+
rake (~> 13.0.1)
|
221
|
+
rspec (~> 3.5.0)
|
222
|
+
rspec-activemodel-mocks
|
223
|
+
rspec-its
|
224
|
+
rspec-rails
|
225
|
+
rubocop (~> 0.67.2)
|
226
|
+
rubocop-performance
|
227
|
+
sqlite3
|
228
|
+
test-unit
|
229
|
+
|
230
|
+
BUNDLED WITH
|
231
|
+
2.1.4
|
@@ -3,9 +3,10 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "coveralls", :require => false
|
6
|
-
gem "rubocop", :require => false
|
7
|
-
gem "
|
6
|
+
gem "rubocop", "~> 0.67.2", :require => false
|
7
|
+
gem "rubocop-performance", :require => false
|
8
|
+
gem "sqlite3"
|
9
|
+
gem "rails", "7.0.0"
|
8
10
|
gem "rspec-rails"
|
9
|
-
gem "test-unit"
|
10
11
|
|
11
12
|
gemspec :path => "../"
|
@@ -0,0 +1,220 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
comma (4.6.0)
|
5
|
+
activesupport (>= 4.2.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (7.0.0)
|
11
|
+
actionpack (= 7.0.0)
|
12
|
+
activesupport (= 7.0.0)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
actionmailbox (7.0.0)
|
16
|
+
actionpack (= 7.0.0)
|
17
|
+
activejob (= 7.0.0)
|
18
|
+
activerecord (= 7.0.0)
|
19
|
+
activestorage (= 7.0.0)
|
20
|
+
activesupport (= 7.0.0)
|
21
|
+
mail (>= 2.7.1)
|
22
|
+
actionmailer (7.0.0)
|
23
|
+
actionpack (= 7.0.0)
|
24
|
+
actionview (= 7.0.0)
|
25
|
+
activejob (= 7.0.0)
|
26
|
+
activesupport (= 7.0.0)
|
27
|
+
mail (~> 2.5, >= 2.5.4)
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
|
+
actionpack (7.0.0)
|
30
|
+
actionview (= 7.0.0)
|
31
|
+
activesupport (= 7.0.0)
|
32
|
+
rack (~> 2.0, >= 2.2.0)
|
33
|
+
rack-test (>= 0.6.3)
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
+
actiontext (7.0.0)
|
37
|
+
actionpack (= 7.0.0)
|
38
|
+
activerecord (= 7.0.0)
|
39
|
+
activestorage (= 7.0.0)
|
40
|
+
activesupport (= 7.0.0)
|
41
|
+
globalid (>= 0.6.0)
|
42
|
+
nokogiri (>= 1.8.5)
|
43
|
+
actionview (7.0.0)
|
44
|
+
activesupport (= 7.0.0)
|
45
|
+
builder (~> 3.1)
|
46
|
+
erubi (~> 1.4)
|
47
|
+
rails-dom-testing (~> 2.0)
|
48
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
+
activejob (7.0.0)
|
50
|
+
activesupport (= 7.0.0)
|
51
|
+
globalid (>= 0.3.6)
|
52
|
+
activemodel (7.0.0)
|
53
|
+
activesupport (= 7.0.0)
|
54
|
+
activerecord (7.0.0)
|
55
|
+
activemodel (= 7.0.0)
|
56
|
+
activesupport (= 7.0.0)
|
57
|
+
activestorage (7.0.0)
|
58
|
+
actionpack (= 7.0.0)
|
59
|
+
activejob (= 7.0.0)
|
60
|
+
activerecord (= 7.0.0)
|
61
|
+
activesupport (= 7.0.0)
|
62
|
+
marcel (~> 1.0)
|
63
|
+
mini_mime (>= 1.1.0)
|
64
|
+
activesupport (7.0.0)
|
65
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
66
|
+
i18n (>= 1.6, < 2)
|
67
|
+
minitest (>= 5.1)
|
68
|
+
tzinfo (~> 2.0)
|
69
|
+
appraisal (1.0.3)
|
70
|
+
bundler
|
71
|
+
rake
|
72
|
+
thor (>= 0.14.0)
|
73
|
+
ast (2.4.2)
|
74
|
+
builder (3.2.4)
|
75
|
+
concurrent-ruby (1.1.9)
|
76
|
+
coveralls (0.8.23)
|
77
|
+
json (>= 1.8, < 3)
|
78
|
+
simplecov (~> 0.16.1)
|
79
|
+
term-ansicolor (~> 1.3)
|
80
|
+
thor (>= 0.19.4, < 2.0)
|
81
|
+
tins (~> 1.6)
|
82
|
+
crass (1.0.6)
|
83
|
+
diff-lcs (1.4.4)
|
84
|
+
docile (1.4.0)
|
85
|
+
erubi (1.10.0)
|
86
|
+
globalid (1.0.0)
|
87
|
+
activesupport (>= 5.0)
|
88
|
+
i18n (1.8.11)
|
89
|
+
concurrent-ruby (~> 1.0)
|
90
|
+
jaro_winkler (1.5.4)
|
91
|
+
json (2.6.1)
|
92
|
+
loofah (2.13.0)
|
93
|
+
crass (~> 1.0.2)
|
94
|
+
nokogiri (>= 1.5.9)
|
95
|
+
mail (2.7.1)
|
96
|
+
mini_mime (>= 0.1.1)
|
97
|
+
marcel (1.0.2)
|
98
|
+
method_source (1.0.0)
|
99
|
+
mini_mime (1.1.2)
|
100
|
+
mini_portile2 (2.6.1)
|
101
|
+
minitest (5.14.4)
|
102
|
+
nio4r (2.5.8)
|
103
|
+
nokogiri (1.12.5)
|
104
|
+
mini_portile2 (~> 2.6.1)
|
105
|
+
racc (~> 1.4)
|
106
|
+
parallel (1.21.0)
|
107
|
+
parser (3.0.3.2)
|
108
|
+
ast (~> 2.4.1)
|
109
|
+
psych (4.0.2)
|
110
|
+
racc (1.6.0)
|
111
|
+
rack (2.2.3)
|
112
|
+
rack-test (1.1.0)
|
113
|
+
rack (>= 1.0, < 3)
|
114
|
+
rails (7.0.0)
|
115
|
+
actioncable (= 7.0.0)
|
116
|
+
actionmailbox (= 7.0.0)
|
117
|
+
actionmailer (= 7.0.0)
|
118
|
+
actionpack (= 7.0.0)
|
119
|
+
actiontext (= 7.0.0)
|
120
|
+
actionview (= 7.0.0)
|
121
|
+
activejob (= 7.0.0)
|
122
|
+
activemodel (= 7.0.0)
|
123
|
+
activerecord (= 7.0.0)
|
124
|
+
activestorage (= 7.0.0)
|
125
|
+
activesupport (= 7.0.0)
|
126
|
+
bundler (>= 1.15.0)
|
127
|
+
railties (= 7.0.0)
|
128
|
+
rails-dom-testing (2.0.3)
|
129
|
+
activesupport (>= 4.2.0)
|
130
|
+
nokogiri (>= 1.6)
|
131
|
+
rails-html-sanitizer (1.4.2)
|
132
|
+
loofah (~> 2.3)
|
133
|
+
railties (7.0.0)
|
134
|
+
actionpack (= 7.0.0)
|
135
|
+
activesupport (= 7.0.0)
|
136
|
+
method_source
|
137
|
+
rake (>= 12.2)
|
138
|
+
thor (~> 1.0)
|
139
|
+
zeitwerk (~> 2.5)
|
140
|
+
rainbow (3.0.0)
|
141
|
+
rake (13.0.6)
|
142
|
+
rspec (3.5.0)
|
143
|
+
rspec-core (~> 3.5.0)
|
144
|
+
rspec-expectations (~> 3.5.0)
|
145
|
+
rspec-mocks (~> 3.5.0)
|
146
|
+
rspec-activemodel-mocks (1.1.0)
|
147
|
+
activemodel (>= 3.0)
|
148
|
+
activesupport (>= 3.0)
|
149
|
+
rspec-mocks (>= 2.99, < 4.0)
|
150
|
+
rspec-core (3.5.4)
|
151
|
+
rspec-support (~> 3.5.0)
|
152
|
+
rspec-expectations (3.5.0)
|
153
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
154
|
+
rspec-support (~> 3.5.0)
|
155
|
+
rspec-its (1.3.0)
|
156
|
+
rspec-core (>= 3.0.0)
|
157
|
+
rspec-expectations (>= 3.0.0)
|
158
|
+
rspec-mocks (3.5.0)
|
159
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
160
|
+
rspec-support (~> 3.5.0)
|
161
|
+
rspec-rails (3.5.2)
|
162
|
+
actionpack (>= 3.0)
|
163
|
+
activesupport (>= 3.0)
|
164
|
+
railties (>= 3.0)
|
165
|
+
rspec-core (~> 3.5.0)
|
166
|
+
rspec-expectations (~> 3.5.0)
|
167
|
+
rspec-mocks (~> 3.5.0)
|
168
|
+
rspec-support (~> 3.5.0)
|
169
|
+
rspec-support (3.5.0)
|
170
|
+
rubocop (0.67.2)
|
171
|
+
jaro_winkler (~> 1.5.1)
|
172
|
+
parallel (~> 1.10)
|
173
|
+
parser (>= 2.5, != 2.5.1.1)
|
174
|
+
psych (>= 3.1.0)
|
175
|
+
rainbow (>= 2.2.2, < 4.0)
|
176
|
+
ruby-progressbar (~> 1.7)
|
177
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
178
|
+
rubocop-performance (1.1.0)
|
179
|
+
rubocop (>= 0.67.0)
|
180
|
+
ruby-progressbar (1.11.0)
|
181
|
+
simplecov (0.16.1)
|
182
|
+
docile (~> 1.1)
|
183
|
+
json (>= 1.8, < 3)
|
184
|
+
simplecov-html (~> 0.10.0)
|
185
|
+
simplecov-html (0.10.2)
|
186
|
+
sqlite3 (1.4.2)
|
187
|
+
sync (0.5.0)
|
188
|
+
term-ansicolor (1.7.1)
|
189
|
+
tins (~> 1.0)
|
190
|
+
thor (1.1.0)
|
191
|
+
tins (1.29.1)
|
192
|
+
sync
|
193
|
+
tzinfo (2.0.4)
|
194
|
+
concurrent-ruby (~> 1.0)
|
195
|
+
unicode-display_width (1.5.0)
|
196
|
+
websocket-driver (0.7.5)
|
197
|
+
websocket-extensions (>= 0.1.0)
|
198
|
+
websocket-extensions (0.1.5)
|
199
|
+
zeitwerk (2.5.1)
|
200
|
+
|
201
|
+
PLATFORMS
|
202
|
+
ruby
|
203
|
+
|
204
|
+
DEPENDENCIES
|
205
|
+
appraisal (~> 1.0.0)
|
206
|
+
comma!
|
207
|
+
coveralls
|
208
|
+
minitest (= 5.14.4)
|
209
|
+
rails (= 7.0.0)
|
210
|
+
rake (~> 13.0.1)
|
211
|
+
rspec (~> 3.5.0)
|
212
|
+
rspec-activemodel-mocks
|
213
|
+
rspec-its
|
214
|
+
rspec-rails
|
215
|
+
rubocop (~> 0.67.2)
|
216
|
+
rubocop-performance
|
217
|
+
sqlite3
|
218
|
+
|
219
|
+
BUNDLED WITH
|
220
|
+
2.1.4
|
data/lib/comma/generator.rb
CHANGED
@@ -16,9 +16,9 @@ module Comma
|
|
16
16
|
|
17
17
|
def run(iterator_method)
|
18
18
|
if @filename
|
19
|
-
CSV_HANDLER.open(@filename, 'w',
|
19
|
+
CSV_HANDLER.open(@filename, 'w', **@options) { |csv| append_csv(csv, iterator_method) } && (return true)
|
20
20
|
else
|
21
|
-
CSV_HANDLER.generate(
|
21
|
+
CSV_HANDLER.generate(**@options) { |csv| append_csv(csv, iterator_method) }
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|