comma 4.0.1 → 4.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +10 -0
  3. data/.rubocop_todo.yml +422 -0
  4. data/.travis.yml +32 -19
  5. data/Appraisals +7 -7
  6. data/Gemfile +3 -2
  7. data/Gemfile.lock +18 -3
  8. data/Rakefile +5 -5
  9. data/comma.gemspec +2 -1
  10. data/gemfiles/active4.0.13.gemfile +1 -0
  11. data/gemfiles/active4.0.13.gemfile.lock +15 -1
  12. data/gemfiles/active4.1.16.gemfile +1 -0
  13. data/gemfiles/active4.1.16.gemfile.lock +19 -4
  14. data/gemfiles/{active5.0.0.1.gemfile → active4.2.8.gemfile} +3 -2
  15. data/gemfiles/{active4.2.7.1.gemfile.lock → active4.2.8.gemfile.lock} +45 -31
  16. data/gemfiles/active5.0.1.gemfile +10 -0
  17. data/gemfiles/{active5.0.0.1.gemfile.lock → active5.0.1.gemfile.lock} +45 -30
  18. data/gemfiles/active5.1.0.gemfile +10 -0
  19. data/gemfiles/active5.1.0.gemfile.lock +104 -0
  20. data/gemfiles/rails4.0.13.gemfile +1 -0
  21. data/gemfiles/rails4.0.13.gemfile.lock +15 -1
  22. data/gemfiles/rails4.1.16.gemfile +1 -0
  23. data/gemfiles/rails4.1.16.gemfile.lock +19 -4
  24. data/gemfiles/{rails4.2.7.1.gemfile → rails4.2.8.gemfile} +2 -1
  25. data/gemfiles/{rails4.2.7.1.gemfile.lock → rails4.2.8.gemfile.lock} +81 -69
  26. data/gemfiles/{rails5.0.0.1.gemfile → rails5.0.1.gemfile} +2 -1
  27. data/gemfiles/{rails5.0.0.1.gemfile.lock → rails5.0.1.gemfile.lock} +83 -70
  28. data/gemfiles/{active4.2.7.1.gemfile → rails5.1.0.gemfile} +4 -2
  29. data/gemfiles/rails5.1.0.gemfile.lock +194 -0
  30. data/lib/comma/version.rb +1 -1
  31. data/spec/comma/comma_spec.rb +42 -40
  32. data/spec/comma/data_extractor_spec.rb +1 -1
  33. data/spec/comma/header_extractor_spec.rb +1 -1
  34. data/spec/comma/rails/active_record_spec.rb +5 -5
  35. data/spec/comma/rails/data_mapper_collection_spec.rb +1 -1
  36. data/spec/controllers/users_controller_spec.rb +41 -30
  37. data/spec/rails_app/active_record/models.rb +8 -1
  38. data/spec/rails_app/rails_app.rb +27 -3
  39. metadata +19 -13
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", :require => false
6
+ gem "rubocop", :require => false
7
+ gem "activesupport", "5.1.0"
8
+ gem "activerecord", "5.1.0"
9
+
10
+ gemspec :path => "../"
@@ -0,0 +1,104 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ comma (4.1.0)
5
+ activesupport (>= 4.0.0, < 5.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.1.0)
11
+ activesupport (= 5.1.0)
12
+ activerecord (5.1.0)
13
+ activemodel (= 5.1.0)
14
+ activesupport (= 5.1.0)
15
+ arel (~> 8.0)
16
+ activesupport (5.1.0)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (~> 0.7)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ appraisal (1.0.3)
22
+ bundler
23
+ rake
24
+ thor (>= 0.14.0)
25
+ arel (8.0.0)
26
+ ast (2.3.0)
27
+ concurrent-ruby (1.0.5)
28
+ coveralls (0.8.21)
29
+ json (>= 1.8, < 3)
30
+ simplecov (~> 0.14.1)
31
+ term-ansicolor (~> 1.3)
32
+ thor (~> 0.19.4)
33
+ tins (~> 1.6)
34
+ diff-lcs (1.3)
35
+ docile (1.1.5)
36
+ i18n (0.8.1)
37
+ json (2.1.0)
38
+ minitest (5.10.1)
39
+ parser (2.4.0.0)
40
+ ast (~> 2.2)
41
+ powerpack (0.1.1)
42
+ rainbow (2.2.2)
43
+ rake
44
+ rake (10.5.0)
45
+ rspec (3.5.0)
46
+ rspec-core (~> 3.5.0)
47
+ rspec-expectations (~> 3.5.0)
48
+ rspec-mocks (~> 3.5.0)
49
+ rspec-activemodel-mocks (1.0.3)
50
+ activemodel (>= 3.0)
51
+ activesupport (>= 3.0)
52
+ rspec-mocks (>= 2.99, < 4.0)
53
+ rspec-core (3.5.4)
54
+ rspec-support (~> 3.5.0)
55
+ rspec-expectations (3.5.0)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.5.0)
58
+ rspec-its (1.2.0)
59
+ rspec-core (>= 3.0.0)
60
+ rspec-expectations (>= 3.0.0)
61
+ rspec-mocks (3.5.0)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.5.0)
64
+ rspec-support (3.5.0)
65
+ rubocop (0.48.1)
66
+ parser (>= 2.3.3.1, < 3.0)
67
+ powerpack (~> 0.1)
68
+ rainbow (>= 1.99.1, < 3.0)
69
+ ruby-progressbar (~> 1.7)
70
+ unicode-display_width (~> 1.0, >= 1.0.1)
71
+ ruby-progressbar (1.8.1)
72
+ simplecov (0.14.1)
73
+ docile (~> 1.1.0)
74
+ json (>= 1.8, < 3)
75
+ simplecov-html (~> 0.10.0)
76
+ simplecov-html (0.10.0)
77
+ sqlite3 (1.3.13)
78
+ term-ansicolor (1.6.0)
79
+ tins (~> 1.0)
80
+ thor (0.19.4)
81
+ thread_safe (0.3.6)
82
+ tins (1.13.2)
83
+ tzinfo (1.2.3)
84
+ thread_safe (~> 0.1)
85
+ unicode-display_width (1.2.1)
86
+
87
+ PLATFORMS
88
+ ruby
89
+
90
+ DEPENDENCIES
91
+ activerecord (= 5.1.0)
92
+ activesupport (= 5.1.0)
93
+ appraisal (~> 1.0.0)
94
+ comma!
95
+ coveralls
96
+ rake (~> 10.5.0)
97
+ rspec (~> 3.5.0)
98
+ rspec-activemodel-mocks
99
+ rspec-its
100
+ rubocop
101
+ sqlite3 (~> 1.3.11)
102
+
103
+ BUNDLED WITH
104
+ 1.14.6
@@ -3,6 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", :require => false
6
+ gem "rubocop", :require => false
6
7
  gem "rails", "4.0.13"
7
8
  gem "rspec-rails"
8
9
  gem "test-unit"
@@ -36,6 +36,7 @@ GEM
36
36
  rake
37
37
  thor (>= 0.14.0)
38
38
  arel (4.0.2)
39
+ ast (2.3.0)
39
40
  builder (3.1.4)
40
41
  concurrent-ruby (1.0.2)
41
42
  coveralls (0.8.14)
@@ -56,7 +57,10 @@ GEM
56
57
  mime-types-data (3.2016.0521)
57
58
  minitest (4.7.5)
58
59
  multi_json (1.12.1)
60
+ parser (2.3.1.4)
61
+ ast (~> 2.2)
59
62
  power_assert (0.2.6)
63
+ powerpack (0.1.1)
60
64
  rack (1.5.5)
61
65
  rack-test (0.6.3)
62
66
  rack (>= 1.0)
@@ -73,6 +77,7 @@ GEM
73
77
  activesupport (= 4.0.13)
74
78
  rake (>= 0.8.7)
75
79
  thor (>= 0.18.1, < 2.0)
80
+ rainbow (2.1.0)
76
81
  rake (10.5.0)
77
82
  rspec (3.5.0)
78
83
  rspec-core (~> 3.5.0)
@@ -102,6 +107,13 @@ GEM
102
107
  rspec-mocks (~> 3.5.0)
103
108
  rspec-support (~> 3.5.0)
104
109
  rspec-support (3.5.0)
110
+ rubocop (0.43.0)
111
+ parser (>= 2.3.1.1, < 3.0)
112
+ powerpack (~> 0.1)
113
+ rainbow (>= 1.99.1, < 3.0)
114
+ ruby-progressbar (~> 1.7)
115
+ unicode-display_width (~> 1.0, >= 1.0.1)
116
+ ruby-progressbar (1.8.1)
105
117
  simplecov (0.12.0)
106
118
  docile (~> 1.1.0)
107
119
  json (>= 1.8, < 3)
@@ -123,6 +135,7 @@ GEM
123
135
  thread_safe (0.3.5)
124
136
  tins (1.6.0)
125
137
  tzinfo (0.3.51)
138
+ unicode-display_width (1.1.1)
126
139
 
127
140
  PLATFORMS
128
141
  ruby
@@ -137,8 +150,9 @@ DEPENDENCIES
137
150
  rspec-activemodel-mocks
138
151
  rspec-its
139
152
  rspec-rails
153
+ rubocop
140
154
  sqlite3 (~> 1.3.11)
141
155
  test-unit
142
156
 
143
157
  BUNDLED WITH
144
- 1.11.2
158
+ 1.13.2
@@ -3,6 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", :require => false
6
+ gem "rubocop", :require => false
6
7
  gem "rails", "4.1.16"
7
8
  gem "rspec-rails"
8
9
  gem "test-unit"
@@ -1,8 +1,8 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- comma (4.0.1)
5
- activesupport (>= 4.0.0, < 5.1)
4
+ comma (4.1.0)
5
+ activesupport (>= 4.0.0, < 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -38,6 +38,7 @@ GEM
38
38
  rake
39
39
  thor (>= 0.14.0)
40
40
  arel (5.0.1.20140414130214)
41
+ ast (2.3.0)
41
42
  builder (3.2.2)
42
43
  concurrent-ruby (1.0.2)
43
44
  coveralls (0.8.15)
@@ -57,7 +58,10 @@ GEM
57
58
  mime-types-data (~> 3.2015)
58
59
  mime-types-data (3.2016.0521)
59
60
  minitest (5.9.0)
61
+ parser (2.4.0.0)
62
+ ast (~> 2.2)
60
63
  power_assert (0.3.0)
64
+ powerpack (0.1.1)
61
65
  rack (1.5.5)
62
66
  rack-test (0.6.3)
63
67
  rack (>= 1.0)
@@ -76,6 +80,8 @@ GEM
76
80
  activesupport (= 4.1.16)
77
81
  rake (>= 0.8.7)
78
82
  thor (>= 0.18.1, < 2.0)
83
+ rainbow (2.2.2)
84
+ rake
79
85
  rake (10.5.0)
80
86
  rspec (3.5.0)
81
87
  rspec-core (~> 3.5.0)
@@ -105,6 +111,13 @@ GEM
105
111
  rspec-mocks (~> 3.5.0)
106
112
  rspec-support (~> 3.5.0)
107
113
  rspec-support (3.5.0)
114
+ rubocop (0.48.1)
115
+ parser (>= 2.3.3.1, < 3.0)
116
+ powerpack (~> 0.1)
117
+ rainbow (>= 1.99.1, < 3.0)
118
+ ruby-progressbar (~> 1.7)
119
+ unicode-display_width (~> 1.0, >= 1.0.1)
120
+ ruby-progressbar (1.8.1)
108
121
  simplecov (0.12.0)
109
122
  docile (~> 1.1.0)
110
123
  json (>= 1.8, < 3)
@@ -127,6 +140,7 @@ GEM
127
140
  tins (1.12.0)
128
141
  tzinfo (1.2.2)
129
142
  thread_safe (~> 0.1)
143
+ unicode-display_width (1.2.1)
130
144
 
131
145
  PLATFORMS
132
146
  ruby
@@ -141,8 +155,9 @@ DEPENDENCIES
141
155
  rspec-activemodel-mocks
142
156
  rspec-its
143
157
  rspec-rails
158
+ rubocop
144
159
  sqlite3 (~> 1.3.11)
145
160
  test-unit
146
161
 
147
162
  BUNDLED WITH
148
- 1.11.2
163
+ 1.14.6
@@ -3,7 +3,8 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", :require => false
6
- gem "rails", "4.2.7.1"
6
+ gem "rubocop", :require => false
7
+ gem "rails", "4.2.8"
7
8
  gem "rspec-rails"
8
9
  gem "test-unit"
9
10
 
@@ -1,44 +1,43 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- comma (4.0.1)
5
- activesupport (>= 4.0.0, < 5.1)
4
+ comma (4.1.0)
5
+ activesupport (>= 4.0.0, < 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionmailer (4.2.7.1)
11
- actionpack (= 4.2.7.1)
12
- actionview (= 4.2.7.1)
13
- activejob (= 4.2.7.1)
10
+ actionmailer (4.2.8)
11
+ actionpack (= 4.2.8)
12
+ actionview (= 4.2.8)
13
+ activejob (= 4.2.8)
14
14
  mail (~> 2.5, >= 2.5.4)
15
15
  rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.7.1)
17
- actionview (= 4.2.7.1)
18
- activesupport (= 4.2.7.1)
16
+ actionpack (4.2.8)
17
+ actionview (= 4.2.8)
18
+ activesupport (= 4.2.8)
19
19
  rack (~> 1.6)
20
20
  rack-test (~> 0.6.2)
21
21
  rails-dom-testing (~> 1.0, >= 1.0.5)
22
22
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (4.2.7.1)
24
- activesupport (= 4.2.7.1)
23
+ actionview (4.2.8)
24
+ activesupport (= 4.2.8)
25
25
  builder (~> 3.1)
26
26
  erubis (~> 2.7.0)
27
27
  rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- activejob (4.2.7.1)
30
- activesupport (= 4.2.7.1)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
29
+ activejob (4.2.8)
30
+ activesupport (= 4.2.8)
31
31
  globalid (>= 0.3.0)
32
- activemodel (4.2.7.1)
33
- activesupport (= 4.2.7.1)
32
+ activemodel (4.2.8)
33
+ activesupport (= 4.2.8)
34
34
  builder (~> 3.1)
35
- activerecord (4.2.7.1)
36
- activemodel (= 4.2.7.1)
37
- activesupport (= 4.2.7.1)
35
+ activerecord (4.2.8)
36
+ activemodel (= 4.2.8)
37
+ activesupport (= 4.2.8)
38
38
  arel (~> 6.0)
39
- activesupport (4.2.7.1)
39
+ activesupport (4.2.8)
40
40
  i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
41
  minitest (~> 5.1)
43
42
  thread_safe (~> 0.3, >= 0.3.4)
44
43
  tzinfo (~> 1.1)
@@ -46,63 +45,67 @@ GEM
46
45
  bundler
47
46
  rake
48
47
  thor (>= 0.14.0)
49
- arel (6.0.3)
50
- builder (3.2.2)
51
- concurrent-ruby (1.0.2)
52
- coveralls (0.8.15)
48
+ arel (6.0.4)
49
+ ast (2.3.0)
50
+ builder (3.2.3)
51
+ concurrent-ruby (1.0.5)
52
+ coveralls (0.8.21)
53
53
  json (>= 1.8, < 3)
54
- simplecov (~> 0.12.0)
54
+ simplecov (~> 0.14.1)
55
55
  term-ansicolor (~> 1.3)
56
- thor (~> 0.19.1)
57
- tins (>= 1.6.0, < 2)
58
- diff-lcs (1.2.5)
56
+ thor (~> 0.19.4)
57
+ tins (~> 1.6)
58
+ diff-lcs (1.3)
59
59
  docile (1.1.5)
60
60
  erubis (2.7.0)
61
- globalid (0.3.7)
62
- activesupport (>= 4.1.0)
63
- i18n (0.7.0)
64
- json (1.8.3)
61
+ globalid (0.4.0)
62
+ activesupport (>= 4.2.0)
63
+ i18n (0.8.1)
64
+ json (2.1.0)
65
65
  loofah (2.0.3)
66
66
  nokogiri (>= 1.5.9)
67
- mail (2.6.4)
67
+ mail (2.6.5)
68
68
  mime-types (>= 1.16, < 4)
69
69
  mime-types (3.1)
70
70
  mime-types-data (~> 3.2015)
71
71
  mime-types-data (3.2016.0521)
72
72
  mini_portile2 (2.1.0)
73
- minitest (5.9.0)
74
- nokogiri (1.6.8)
73
+ minitest (5.10.1)
74
+ nokogiri (1.7.1)
75
75
  mini_portile2 (~> 2.1.0)
76
- pkg-config (~> 1.1.7)
77
- pkg-config (1.1.7)
78
- power_assert (0.3.0)
79
- rack (1.6.4)
76
+ parser (2.4.0.0)
77
+ ast (~> 2.2)
78
+ power_assert (1.0.2)
79
+ powerpack (0.1.1)
80
+ rack (1.6.5)
80
81
  rack-test (0.6.3)
81
82
  rack (>= 1.0)
82
- rails (4.2.7.1)
83
- actionmailer (= 4.2.7.1)
84
- actionpack (= 4.2.7.1)
85
- actionview (= 4.2.7.1)
86
- activejob (= 4.2.7.1)
87
- activemodel (= 4.2.7.1)
88
- activerecord (= 4.2.7.1)
89
- activesupport (= 4.2.7.1)
83
+ rails (4.2.8)
84
+ actionmailer (= 4.2.8)
85
+ actionpack (= 4.2.8)
86
+ actionview (= 4.2.8)
87
+ activejob (= 4.2.8)
88
+ activemodel (= 4.2.8)
89
+ activerecord (= 4.2.8)
90
+ activesupport (= 4.2.8)
90
91
  bundler (>= 1.3.0, < 2.0)
91
- railties (= 4.2.7.1)
92
+ railties (= 4.2.8)
92
93
  sprockets-rails
93
94
  rails-deprecated_sanitizer (1.0.3)
94
95
  activesupport (>= 4.2.0.alpha)
95
- rails-dom-testing (1.0.7)
96
+ rails-dom-testing (1.0.8)
96
97
  activesupport (>= 4.2.0.beta, < 5.0)
97
- nokogiri (~> 1.6.0)
98
+ nokogiri (~> 1.6)
98
99
  rails-deprecated_sanitizer (>= 1.0.1)
99
100
  rails-html-sanitizer (1.0.3)
100
101
  loofah (~> 2.0)
101
- railties (4.2.7.1)
102
- actionpack (= 4.2.7.1)
103
- activesupport (= 4.2.7.1)
102
+ railties (4.2.8)
103
+ actionpack (= 4.2.8)
104
+ activesupport (= 4.2.8)
104
105
  rake (>= 0.8.7)
105
106
  thor (>= 0.18.1, < 2.0)
107
+ rainbow (2.2.2)
108
+ rake
106
109
  rake (10.5.0)
107
110
  rspec (3.5.0)
108
111
  rspec-core (~> 3.5.0)
@@ -112,7 +115,7 @@ GEM
112
115
  activemodel (>= 3.0)
113
116
  activesupport (>= 3.0)
114
117
  rspec-mocks (>= 2.99, < 4.0)
115
- rspec-core (3.5.2)
118
+ rspec-core (3.5.4)
116
119
  rspec-support (~> 3.5.0)
117
120
  rspec-expectations (3.5.0)
118
121
  diff-lcs (>= 1.2.0, < 2.0)
@@ -123,7 +126,7 @@ GEM
123
126
  rspec-mocks (3.5.0)
124
127
  diff-lcs (>= 1.2.0, < 2.0)
125
128
  rspec-support (~> 3.5.0)
126
- rspec-rails (3.5.1)
129
+ rspec-rails (3.5.2)
127
130
  actionpack (>= 3.0)
128
131
  activesupport (>= 3.0)
129
132
  railties (>= 3.0)
@@ -132,28 +135,36 @@ GEM
132
135
  rspec-mocks (~> 3.5.0)
133
136
  rspec-support (~> 3.5.0)
134
137
  rspec-support (3.5.0)
135
- simplecov (0.12.0)
138
+ rubocop (0.48.1)
139
+ parser (>= 2.3.3.1, < 3.0)
140
+ powerpack (~> 0.1)
141
+ rainbow (>= 1.99.1, < 3.0)
142
+ ruby-progressbar (~> 1.7)
143
+ unicode-display_width (~> 1.0, >= 1.0.1)
144
+ ruby-progressbar (1.8.1)
145
+ simplecov (0.14.1)
136
146
  docile (~> 1.1.0)
137
147
  json (>= 1.8, < 3)
138
148
  simplecov-html (~> 0.10.0)
139
149
  simplecov-html (0.10.0)
140
- sprockets (3.7.0)
150
+ sprockets (3.7.1)
141
151
  concurrent-ruby (~> 1.0)
142
152
  rack (> 1, < 3)
143
- sprockets-rails (3.1.1)
153
+ sprockets-rails (3.2.0)
144
154
  actionpack (>= 4.0)
145
155
  activesupport (>= 4.0)
146
156
  sprockets (>= 3.0.0)
147
- sqlite3 (1.3.11)
148
- term-ansicolor (1.3.2)
157
+ sqlite3 (1.3.13)
158
+ term-ansicolor (1.6.0)
149
159
  tins (~> 1.0)
150
- test-unit (3.2.1)
160
+ test-unit (3.2.3)
151
161
  power_assert
152
- thor (0.19.1)
153
- thread_safe (0.3.5)
154
- tins (1.12.0)
155
- tzinfo (1.2.2)
162
+ thor (0.19.4)
163
+ thread_safe (0.3.6)
164
+ tins (1.13.2)
165
+ tzinfo (1.2.3)
156
166
  thread_safe (~> 0.1)
167
+ unicode-display_width (1.2.1)
157
168
 
158
169
  PLATFORMS
159
170
  ruby
@@ -162,14 +173,15 @@ DEPENDENCIES
162
173
  appraisal (~> 1.0.0)
163
174
  comma!
164
175
  coveralls
165
- rails (= 4.2.7.1)
176
+ rails (= 4.2.8)
166
177
  rake (~> 10.5.0)
167
178
  rspec (~> 3.5.0)
168
179
  rspec-activemodel-mocks
169
180
  rspec-its
170
181
  rspec-rails
182
+ rubocop
171
183
  sqlite3 (~> 1.3.11)
172
184
  test-unit
173
185
 
174
186
  BUNDLED WITH
175
- 1.11.2
187
+ 1.14.6