comma 4.7.0 → 4.9.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +4 -23
  3. data/.rubocop.yml +1 -1
  4. data/.rubocop_todo.yml +96 -49
  5. data/Appraisals +25 -34
  6. data/Gemfile +1 -1
  7. data/Gemfile.lock +67 -58
  8. data/README.md +2 -2
  9. data/comma.gemspec +5 -0
  10. data/gemfiles/{active5.2.5.gemfile → active6.0.6.gemfile} +3 -3
  11. data/gemfiles/{active6.0.3.6.gemfile.lock → active6.0.6.gemfile.lock} +55 -37
  12. data/gemfiles/{active6.1.3.1.gemfile → active6.1.7.6.gemfile} +3 -3
  13. data/gemfiles/{active7.0.0.gemfile.lock → active6.1.7.6.gemfile.lock} +56 -36
  14. data/gemfiles/active7.0.8.gemfile +12 -0
  15. data/gemfiles/{active6.1.3.1.gemfile.lock → active7.0.8.gemfile.lock} +54 -38
  16. data/gemfiles/active7.1.3.gemfile +12 -0
  17. data/gemfiles/{active5.2.5.gemfile.lock → active7.1.3.gemfile.lock} +64 -43
  18. data/gemfiles/{rails6.1.3.1.gemfile → rails6.0.6.gemfile} +2 -2
  19. data/gemfiles/rails6.0.6.gemfile.lock +268 -0
  20. data/gemfiles/{rails6.0.3.6.gemfile → rails6.1.7.6.gemfile} +2 -2
  21. data/gemfiles/rails6.1.7.6.gemfile.lock +271 -0
  22. data/gemfiles/{rails7.0.0.gemfile → rails7.0.8.gemfile} +2 -2
  23. data/gemfiles/rails7.0.8.gemfile.lock +266 -0
  24. data/gemfiles/{active7.0.0.gemfile → rails7.1.3.gemfile} +3 -3
  25. data/gemfiles/rails7.1.3.gemfile.lock +289 -0
  26. data/lib/comma/header_extractor.rb +1 -0
  27. data/lib/comma/version.rb +1 -1
  28. data/lib/comma.rb +2 -0
  29. data/spec/comma/comma_spec.rb +18 -18
  30. data/spec/comma/rails/active_record_spec.rb +1 -1
  31. data/spec/comma/rails/mongoid_spec.rb +1 -1
  32. data/spec/spec_helper.rb +1 -0
  33. metadata +108 -23
  34. data/gemfiles/active6.0.3.6.gemfile +0 -12
  35. data/gemfiles/rails5.2.5.gemfile +0 -14
  36. data/gemfiles/rails5.2.5.gemfile.lock +0 -217
  37. data/gemfiles/rails6.0.3.6.gemfile.lock +0 -232
  38. data/gemfiles/rails6.1.3.1.gemfile.lock +0 -235
  39. data/gemfiles/rails7.0.0.gemfile.lock +0 -224
@@ -1,18 +1,19 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.7.0)
4
+ comma (4.9.0)
5
5
  activesupport (>= 4.2.0)
6
+ csv (>= 3.3)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- activemodel (6.0.3.6)
11
- activesupport (= 6.0.3.6)
12
- activerecord (6.0.3.6)
13
- activemodel (= 6.0.3.6)
14
- activesupport (= 6.0.3.6)
15
- activesupport (6.0.3.6)
11
+ activemodel (6.0.6)
12
+ activesupport (= 6.0.6)
13
+ activerecord (6.0.6)
14
+ activemodel (= 6.0.6)
15
+ activesupport (= 6.0.6)
16
+ activesupport (6.0.6)
16
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
18
  i18n (>= 0.7, < 2)
18
19
  minitest (~> 5.1)
@@ -23,31 +24,39 @@ GEM
23
24
  rake
24
25
  thor (>= 0.14.0)
25
26
  ast (2.4.2)
26
- concurrent-ruby (1.1.9)
27
+ base64 (0.3.0)
28
+ bigdecimal (4.1.2)
29
+ concurrent-ruby (1.3.6)
27
30
  coveralls (0.8.23)
28
31
  json (>= 1.8, < 3)
29
32
  simplecov (~> 0.16.1)
30
33
  term-ansicolor (~> 1.3)
31
34
  thor (>= 0.19.4, < 2.0)
32
35
  tins (~> 1.6)
33
- diff-lcs (1.4.4)
36
+ csv (3.3.5)
37
+ diff-lcs (1.5.0)
34
38
  docile (1.4.0)
35
- i18n (1.8.11)
39
+ drb (2.2.3)
40
+ i18n (1.14.8)
36
41
  concurrent-ruby (~> 1.0)
37
- json (2.6.1)
42
+ json (2.7.1)
43
+ mini_portile2 (2.8.9)
38
44
  minitest (5.14.4)
39
- parallel (1.22.1)
40
- parser (3.1.2.0)
45
+ mutex_m (0.3.0)
46
+ parallel (1.24.0)
47
+ parser (3.3.0.4)
41
48
  ast (~> 2.4.1)
49
+ racc
50
+ racc (1.7.3)
42
51
  rainbow (3.1.1)
43
52
  rake (13.0.6)
44
- regexp_parser (2.5.0)
45
- rexml (3.2.5)
53
+ regexp_parser (2.9.0)
54
+ rexml (3.2.6)
46
55
  rspec (3.5.0)
47
56
  rspec-core (~> 3.5.0)
48
57
  rspec-expectations (~> 3.5.0)
49
58
  rspec-mocks (~> 3.5.0)
50
- rspec-activemodel-mocks (1.1.0)
59
+ rspec-activemodel-mocks (1.2.0)
51
60
  activemodel (>= 3.0)
52
61
  activesupport (>= 3.0)
53
62
  rspec-mocks (>= 2.99, < 4.0)
@@ -63,56 +72,65 @@ GEM
63
72
  diff-lcs (>= 1.2.0, < 2.0)
64
73
  rspec-support (~> 3.5.0)
65
74
  rspec-support (3.5.0)
66
- rubocop (1.0.0)
75
+ rubocop (1.30.1)
67
76
  parallel (~> 1.10)
68
- parser (>= 2.7.1.5)
77
+ parser (>= 3.1.0.0)
69
78
  rainbow (>= 2.2.2, < 4.0)
70
- regexp_parser (>= 1.8)
71
- rexml
72
- rubocop-ast (>= 0.6.0)
79
+ regexp_parser (>= 1.8, < 3.0)
80
+ rexml (>= 3.2.5, < 4.0)
81
+ rubocop-ast (>= 1.18.0, < 2.0)
73
82
  ruby-progressbar (~> 1.7)
74
- unicode-display_width (>= 1.4.0, < 2.0)
75
- rubocop-ast (1.17.0)
76
- parser (>= 3.1.1.0)
77
- rubocop-performance (1.10.2)
78
- rubocop (>= 0.90.0, < 2.0)
83
+ unicode-display_width (>= 1.4.0, < 3.0)
84
+ rubocop-ast (1.30.0)
85
+ parser (>= 3.2.1.0)
86
+ rubocop-performance (1.19.1)
87
+ rubocop (>= 1.7.0, < 2.0)
79
88
  rubocop-ast (>= 0.4.0)
80
- ruby-progressbar (1.11.0)
89
+ ruby-progressbar (1.13.0)
81
90
  simplecov (0.16.1)
82
91
  docile (~> 1.1)
83
92
  json (>= 1.8, < 3)
84
93
  simplecov-html (~> 0.10.0)
85
94
  simplecov-html (0.10.2)
86
- sqlite3 (1.4.2)
95
+ sqlite3 (1.7.0)
96
+ mini_portile2 (~> 2.8.0)
97
+ sqlite3 (1.7.0-x86_64-darwin)
98
+ sqlite3 (1.7.0-x86_64-linux)
87
99
  sync (0.5.0)
88
100
  term-ansicolor (1.7.1)
89
101
  tins (~> 1.0)
90
- thor (1.1.0)
102
+ thor (1.3.0)
91
103
  thread_safe (0.3.6)
92
- tins (1.29.1)
104
+ tins (1.32.1)
93
105
  sync
94
- tzinfo (1.2.9)
106
+ tzinfo (1.2.11)
95
107
  thread_safe (~> 0.1)
96
- unicode-display_width (1.8.0)
97
- zeitwerk (2.5.1)
108
+ unicode-display_width (2.5.0)
109
+ zeitwerk (2.6.18)
98
110
 
99
111
  PLATFORMS
100
112
  ruby
113
+ x86_64-darwin-23
114
+ x86_64-linux
101
115
 
102
116
  DEPENDENCIES
103
- activerecord (= 6.0.3.6)
104
- activesupport (= 6.0.3.6)
117
+ activerecord (= 6.0.6)
118
+ activesupport (= 6.0.6)
105
119
  appraisal (~> 1.0.0)
120
+ base64
121
+ bigdecimal
106
122
  comma!
107
123
  coveralls
124
+ drb
108
125
  minitest (= 5.14.4)
126
+ mutex_m
109
127
  rake (~> 13.0.1)
110
128
  rspec (~> 3.5.0)
111
129
  rspec-activemodel-mocks
112
130
  rspec-its
113
- rubocop (~> 1.0.0)
131
+ rubocop (~> 1.30.0)
114
132
  rubocop-performance
115
133
  sqlite3
116
134
 
117
135
  BUNDLED WITH
118
- 2.1.4
136
+ 2.5.5
@@ -3,10 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", :require => false
6
- gem "rubocop", "~> 1.0.0", :require => false
6
+ gem "rubocop", "~> 1.30.0", :require => false
7
7
  gem "rubocop-performance", :require => false
8
8
  gem "sqlite3"
9
- gem "activesupport", "6.1.3.1"
10
- gem "activerecord", "6.1.3.1"
9
+ gem "activesupport", "6.1.7.6"
10
+ gem "activerecord", "6.1.7.6"
11
11
 
12
12
  gemspec :path => "../"
@@ -1,52 +1,62 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.7.0)
4
+ comma (4.9.0)
5
5
  activesupport (>= 4.2.0)
6
+ csv (>= 3.3)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- activemodel (7.0.0)
11
- activesupport (= 7.0.0)
12
- activerecord (7.0.0)
13
- activemodel (= 7.0.0)
14
- activesupport (= 7.0.0)
15
- activesupport (7.0.0)
11
+ activemodel (6.1.7.6)
12
+ activesupport (= 6.1.7.6)
13
+ activerecord (6.1.7.6)
14
+ activemodel (= 6.1.7.6)
15
+ activesupport (= 6.1.7.6)
16
+ activesupport (6.1.7.6)
16
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
18
  i18n (>= 1.6, < 2)
18
19
  minitest (>= 5.1)
19
20
  tzinfo (~> 2.0)
21
+ zeitwerk (~> 2.3)
20
22
  appraisal (1.0.3)
21
23
  bundler
22
24
  rake
23
25
  thor (>= 0.14.0)
24
26
  ast (2.4.2)
25
- concurrent-ruby (1.1.9)
27
+ base64 (0.3.0)
28
+ bigdecimal (4.1.2)
29
+ concurrent-ruby (1.3.6)
26
30
  coveralls (0.8.23)
27
31
  json (>= 1.8, < 3)
28
32
  simplecov (~> 0.16.1)
29
33
  term-ansicolor (~> 1.3)
30
34
  thor (>= 0.19.4, < 2.0)
31
35
  tins (~> 1.6)
32
- diff-lcs (1.4.4)
36
+ csv (3.3.5)
37
+ diff-lcs (1.5.0)
33
38
  docile (1.4.0)
34
- i18n (1.8.11)
39
+ drb (2.2.3)
40
+ i18n (1.14.8)
35
41
  concurrent-ruby (~> 1.0)
36
- json (2.6.1)
42
+ json (2.7.1)
43
+ mini_portile2 (2.8.9)
37
44
  minitest (5.14.4)
38
- parallel (1.22.1)
39
- parser (3.1.2.0)
45
+ mutex_m (0.3.0)
46
+ parallel (1.24.0)
47
+ parser (3.3.0.4)
40
48
  ast (~> 2.4.1)
49
+ racc
50
+ racc (1.7.3)
41
51
  rainbow (3.1.1)
42
52
  rake (13.0.6)
43
- regexp_parser (2.5.0)
44
- rexml (3.2.5)
53
+ regexp_parser (2.9.0)
54
+ rexml (3.2.6)
45
55
  rspec (3.5.0)
46
56
  rspec-core (~> 3.5.0)
47
57
  rspec-expectations (~> 3.5.0)
48
58
  rspec-mocks (~> 3.5.0)
49
- rspec-activemodel-mocks (1.1.0)
59
+ rspec-activemodel-mocks (1.2.0)
50
60
  activemodel (>= 3.0)
51
61
  activesupport (>= 3.0)
52
62
  rspec-mocks (>= 2.99, < 4.0)
@@ -62,54 +72,64 @@ GEM
62
72
  diff-lcs (>= 1.2.0, < 2.0)
63
73
  rspec-support (~> 3.5.0)
64
74
  rspec-support (3.5.0)
65
- rubocop (1.0.0)
75
+ rubocop (1.30.1)
66
76
  parallel (~> 1.10)
67
- parser (>= 2.7.1.5)
77
+ parser (>= 3.1.0.0)
68
78
  rainbow (>= 2.2.2, < 4.0)
69
- regexp_parser (>= 1.8)
70
- rexml
71
- rubocop-ast (>= 0.6.0)
79
+ regexp_parser (>= 1.8, < 3.0)
80
+ rexml (>= 3.2.5, < 4.0)
81
+ rubocop-ast (>= 1.18.0, < 2.0)
72
82
  ruby-progressbar (~> 1.7)
73
- unicode-display_width (>= 1.4.0, < 2.0)
74
- rubocop-ast (1.19.1)
75
- parser (>= 3.1.1.0)
76
- rubocop-performance (1.10.2)
77
- rubocop (>= 0.90.0, < 2.0)
83
+ unicode-display_width (>= 1.4.0, < 3.0)
84
+ rubocop-ast (1.30.0)
85
+ parser (>= 3.2.1.0)
86
+ rubocop-performance (1.19.1)
87
+ rubocop (>= 1.7.0, < 2.0)
78
88
  rubocop-ast (>= 0.4.0)
79
- ruby-progressbar (1.11.0)
89
+ ruby-progressbar (1.13.0)
80
90
  simplecov (0.16.1)
81
91
  docile (~> 1.1)
82
92
  json (>= 1.8, < 3)
83
93
  simplecov-html (~> 0.10.0)
84
94
  simplecov-html (0.10.2)
85
- sqlite3 (1.4.2)
95
+ sqlite3 (1.7.0)
96
+ mini_portile2 (~> 2.8.0)
97
+ sqlite3 (1.7.0-x86_64-darwin)
98
+ sqlite3 (1.7.0-x86_64-linux)
86
99
  sync (0.5.0)
87
100
  term-ansicolor (1.7.1)
88
101
  tins (~> 1.0)
89
- thor (1.1.0)
90
- tins (1.29.1)
102
+ thor (1.3.0)
103
+ tins (1.32.1)
91
104
  sync
92
- tzinfo (2.0.4)
105
+ tzinfo (2.0.6)
93
106
  concurrent-ruby (~> 1.0)
94
- unicode-display_width (1.8.0)
107
+ unicode-display_width (2.5.0)
108
+ zeitwerk (2.6.18)
95
109
 
96
110
  PLATFORMS
97
111
  ruby
112
+ x86_64-darwin-23
113
+ x86_64-linux
98
114
 
99
115
  DEPENDENCIES
100
- activerecord (= 7.0.0)
101
- activesupport (= 7.0.0)
116
+ activerecord (= 6.1.7.6)
117
+ activesupport (= 6.1.7.6)
102
118
  appraisal (~> 1.0.0)
119
+ base64
120
+ bigdecimal
103
121
  comma!
104
122
  coveralls
123
+ drb
105
124
  minitest (= 5.14.4)
125
+ mutex_m
106
126
  rake (~> 13.0.1)
107
127
  rspec (~> 3.5.0)
108
128
  rspec-activemodel-mocks
109
129
  rspec-its
110
- rubocop (~> 1.0.0)
130
+ rubocop (~> 1.30.0)
111
131
  rubocop-performance
112
132
  sqlite3
113
133
 
114
134
  BUNDLED WITH
115
- 2.1.4
135
+ 2.5.5
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", :require => false
6
+ gem "rubocop", "~> 1.30.0", :require => false
7
+ gem "rubocop-performance", :require => false
8
+ gem "sqlite3"
9
+ gem "activesupport", "7.0.8"
10
+ gem "activerecord", "7.0.8"
11
+
12
+ gemspec :path => "../"
@@ -1,53 +1,61 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.7.0)
4
+ comma (4.9.0)
5
5
  activesupport (>= 4.2.0)
6
+ csv (>= 3.3)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- activemodel (6.1.3.1)
11
- activesupport (= 6.1.3.1)
12
- activerecord (6.1.3.1)
13
- activemodel (= 6.1.3.1)
14
- activesupport (= 6.1.3.1)
15
- activesupport (6.1.3.1)
11
+ activemodel (7.0.8)
12
+ activesupport (= 7.0.8)
13
+ activerecord (7.0.8)
14
+ activemodel (= 7.0.8)
15
+ activesupport (= 7.0.8)
16
+ activesupport (7.0.8)
16
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
18
  i18n (>= 1.6, < 2)
18
19
  minitest (>= 5.1)
19
20
  tzinfo (~> 2.0)
20
- zeitwerk (~> 2.3)
21
21
  appraisal (1.0.3)
22
22
  bundler
23
23
  rake
24
24
  thor (>= 0.14.0)
25
25
  ast (2.4.2)
26
- concurrent-ruby (1.1.9)
26
+ base64 (0.3.0)
27
+ bigdecimal (4.1.2)
28
+ concurrent-ruby (1.3.6)
27
29
  coveralls (0.8.23)
28
30
  json (>= 1.8, < 3)
29
31
  simplecov (~> 0.16.1)
30
32
  term-ansicolor (~> 1.3)
31
33
  thor (>= 0.19.4, < 2.0)
32
34
  tins (~> 1.6)
33
- diff-lcs (1.4.4)
35
+ csv (3.3.5)
36
+ diff-lcs (1.5.0)
34
37
  docile (1.4.0)
35
- i18n (1.8.11)
38
+ drb (2.2.3)
39
+ i18n (1.14.8)
36
40
  concurrent-ruby (~> 1.0)
37
- json (2.6.1)
41
+ json (2.7.1)
42
+ mini_portile2 (2.8.9)
38
43
  minitest (5.14.4)
39
- parallel (1.22.1)
40
- parser (3.1.2.0)
44
+ mutex_m (0.3.0)
45
+ parallel (1.24.0)
46
+ parser (3.3.0.4)
41
47
  ast (~> 2.4.1)
48
+ racc
49
+ racc (1.7.3)
42
50
  rainbow (3.1.1)
43
51
  rake (13.0.6)
44
- regexp_parser (2.5.0)
45
- rexml (3.2.5)
52
+ regexp_parser (2.9.0)
53
+ rexml (3.2.6)
46
54
  rspec (3.5.0)
47
55
  rspec-core (~> 3.5.0)
48
56
  rspec-expectations (~> 3.5.0)
49
57
  rspec-mocks (~> 3.5.0)
50
- rspec-activemodel-mocks (1.1.0)
58
+ rspec-activemodel-mocks (1.2.0)
51
59
  activemodel (>= 3.0)
52
60
  activesupport (>= 3.0)
53
61
  rspec-mocks (>= 2.99, < 4.0)
@@ -63,55 +71,63 @@ GEM
63
71
  diff-lcs (>= 1.2.0, < 2.0)
64
72
  rspec-support (~> 3.5.0)
65
73
  rspec-support (3.5.0)
66
- rubocop (1.0.0)
74
+ rubocop (1.30.1)
67
75
  parallel (~> 1.10)
68
- parser (>= 2.7.1.5)
76
+ parser (>= 3.1.0.0)
69
77
  rainbow (>= 2.2.2, < 4.0)
70
- regexp_parser (>= 1.8)
71
- rexml
72
- rubocop-ast (>= 0.6.0)
78
+ regexp_parser (>= 1.8, < 3.0)
79
+ rexml (>= 3.2.5, < 4.0)
80
+ rubocop-ast (>= 1.18.0, < 2.0)
73
81
  ruby-progressbar (~> 1.7)
74
- unicode-display_width (>= 1.4.0, < 2.0)
75
- rubocop-ast (1.17.0)
76
- parser (>= 3.1.1.0)
77
- rubocop-performance (1.10.2)
78
- rubocop (>= 0.90.0, < 2.0)
82
+ unicode-display_width (>= 1.4.0, < 3.0)
83
+ rubocop-ast (1.30.0)
84
+ parser (>= 3.2.1.0)
85
+ rubocop-performance (1.19.1)
86
+ rubocop (>= 1.7.0, < 2.0)
79
87
  rubocop-ast (>= 0.4.0)
80
- ruby-progressbar (1.11.0)
88
+ ruby-progressbar (1.13.0)
81
89
  simplecov (0.16.1)
82
90
  docile (~> 1.1)
83
91
  json (>= 1.8, < 3)
84
92
  simplecov-html (~> 0.10.0)
85
93
  simplecov-html (0.10.2)
86
- sqlite3 (1.4.2)
94
+ sqlite3 (1.7.0)
95
+ mini_portile2 (~> 2.8.0)
96
+ sqlite3 (1.7.0-x86_64-darwin)
97
+ sqlite3 (1.7.0-x86_64-linux)
87
98
  sync (0.5.0)
88
99
  term-ansicolor (1.7.1)
89
100
  tins (~> 1.0)
90
- thor (1.1.0)
91
- tins (1.29.1)
101
+ thor (1.3.0)
102
+ tins (1.32.1)
92
103
  sync
93
- tzinfo (2.0.4)
104
+ tzinfo (2.0.6)
94
105
  concurrent-ruby (~> 1.0)
95
- unicode-display_width (1.8.0)
96
- zeitwerk (2.5.1)
106
+ unicode-display_width (2.5.0)
97
107
 
98
108
  PLATFORMS
99
109
  ruby
110
+ x86_64-darwin-23
111
+ x86_64-linux
100
112
 
101
113
  DEPENDENCIES
102
- activerecord (= 6.1.3.1)
103
- activesupport (= 6.1.3.1)
114
+ activerecord (= 7.0.8)
115
+ activesupport (= 7.0.8)
104
116
  appraisal (~> 1.0.0)
117
+ base64
118
+ bigdecimal
105
119
  comma!
106
120
  coveralls
121
+ drb
107
122
  minitest (= 5.14.4)
123
+ mutex_m
108
124
  rake (~> 13.0.1)
109
125
  rspec (~> 3.5.0)
110
126
  rspec-activemodel-mocks
111
127
  rspec-its
112
- rubocop (~> 1.0.0)
128
+ rubocop (~> 1.30.0)
113
129
  rubocop-performance
114
130
  sqlite3
115
131
 
116
132
  BUNDLED WITH
117
- 2.1.4
133
+ 2.5.5
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", :require => false
6
+ gem "rubocop", "~> 1.30.0", :require => false
7
+ gem "rubocop-performance", :require => false
8
+ gem "sqlite3"
9
+ gem "activesupport", "7.1.3"
10
+ gem "activerecord", "7.1.3"
11
+
12
+ gemspec :path => "../"