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
data/Appraisals CHANGED
@@ -1,14 +1,14 @@
1
- ['4.0.13', '4.1.16', '4.2.7.1', '5.0.0.1'].each do |version_number|
1
+ ['4.1.16', '4.2.8', '5.0.1', '5.1.0'].each do |version_number|
2
2
  clean_number = version_number.gsub(/[<>~=]*/, '')
3
3
 
4
- appraise "rails#{ clean_number }" do
5
- gem "rails", version_number
6
- gem "rspec-rails"
4
+ appraise "rails#{clean_number}" do
5
+ gem 'rails', version_number
6
+ gem 'rspec-rails'
7
7
  gem 'test-unit'
8
8
  end
9
9
 
10
- appraise "active#{ clean_number }" do
11
- gem "activesupport", version_number
12
- gem "activerecord", version_number
10
+ appraise "active#{clean_number}" do
11
+ gem 'activesupport', version_number
12
+ gem 'activerecord', version_number
13
13
  end
14
14
  end
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'coveralls', :require => false
4
-
5
3
  gemspec
4
+
5
+ gem 'coveralls', require: false
6
+ gem 'rubocop', require: false
@@ -1,8 +1,8 @@
1
1
  PATH
2
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/
@@ -18,6 +18,7 @@ GEM
18
18
  bundler
19
19
  rake
20
20
  thor (>= 0.14.0)
21
+ ast (2.3.0)
21
22
  colorize (0.7.5)
22
23
  concurrent-ruby (1.0.2)
23
24
  coveralls (0.5.8)
@@ -33,6 +34,11 @@ GEM
33
34
  mime-types (1.25.1)
34
35
  minitest (5.9.0)
35
36
  multi_json (1.1.0)
37
+ parser (2.4.0.0)
38
+ ast (~> 2.2)
39
+ powerpack (0.1.1)
40
+ rainbow (2.2.2)
41
+ rake
36
42
  rake (10.5.0)
37
43
  rdoc (4.2.0)
38
44
  json (~> 1.4)
@@ -59,6 +65,13 @@ GEM
59
65
  diff-lcs (>= 1.2.0, < 2.0)
60
66
  rspec-support (~> 3.5.0)
61
67
  rspec-support (3.5.0)
68
+ rubocop (0.48.1)
69
+ parser (>= 2.3.3.1, < 3.0)
70
+ powerpack (~> 0.1)
71
+ rainbow (>= 1.99.1, < 3.0)
72
+ ruby-progressbar (~> 1.7)
73
+ unicode-display_width (~> 1.0, >= 1.0.1)
74
+ ruby-progressbar (1.8.1)
62
75
  simplecov (0.9.2)
63
76
  docile (~> 1.1.0)
64
77
  multi_json (~> 1.0)
@@ -69,6 +82,7 @@ GEM
69
82
  thread_safe (0.3.5)
70
83
  tzinfo (1.2.2)
71
84
  thread_safe (~> 0.1)
85
+ unicode-display_width (1.2.1)
72
86
 
73
87
  PLATFORMS
74
88
  ruby
@@ -81,7 +95,8 @@ DEPENDENCIES
81
95
  rspec (~> 3.5.0)
82
96
  rspec-activemodel-mocks
83
97
  rspec-its
98
+ rubocop
84
99
  sqlite3 (~> 1.3.11)
85
100
 
86
101
  BUNDLED WITH
87
- 1.12.5
102
+ 1.14.6
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
1
  require 'bundler/setup'
2
- require "bundler/gem_tasks"
2
+ require 'bundler/gem_tasks'
3
3
 
4
- require 'appraisal'
5
-
6
- require 'rspec/core'
7
4
  require 'rspec/core/rake_task'
8
5
  RSpec::Core::RakeTask.new(:spec) do |spec|
9
6
  spec.pattern = FileList['spec/**/*_spec.rb']
10
7
  end
11
8
 
12
- task :default => :spec
9
+ require 'rubocop/rake_task'
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: :spec
@@ -1,4 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
2
3
  $:.push File.expand_path("../lib", __FILE__)
3
4
  require "comma/version"
4
5
 
@@ -19,7 +20,7 @@ Gem::Specification.new do |s|
19
20
 
20
21
  s.licenses = ['MIT']
21
22
 
22
- s.add_dependency 'activesupport', ['>= 4.0.0', '< 5.1']
23
+ s.add_dependency 'activesupport', ['>= 4.0.0', '< 5.2']
23
24
 
24
25
  s.add_development_dependency 'appraisal', ['~> 1.0.0']
25
26
  s.add_development_dependency 'rake', ['~> 10.5.0']
@@ -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 "activesupport", "4.0.13"
7
8
  gem "activerecord", "4.0.13"
8
9
 
@@ -27,6 +27,7 @@ GEM
27
27
  rake
28
28
  thor (>= 0.14.0)
29
29
  arel (4.0.2)
30
+ ast (2.3.0)
30
31
  builder (3.1.4)
31
32
  coveralls (0.8.14)
32
33
  json (>= 1.8, < 3)
@@ -40,6 +41,10 @@ GEM
40
41
  json (2.0.1)
41
42
  minitest (4.7.5)
42
43
  multi_json (1.12.1)
44
+ parser (2.3.1.4)
45
+ ast (~> 2.2)
46
+ powerpack (0.1.1)
47
+ rainbow (2.1.0)
43
48
  rake (10.5.0)
44
49
  rspec (3.5.0)
45
50
  rspec-core (~> 3.5.0)
@@ -61,6 +66,13 @@ GEM
61
66
  diff-lcs (>= 1.2.0, < 2.0)
62
67
  rspec-support (~> 3.5.0)
63
68
  rspec-support (3.5.0)
69
+ rubocop (0.43.0)
70
+ parser (>= 2.3.1.1, < 3.0)
71
+ powerpack (~> 0.1)
72
+ rainbow (>= 1.99.1, < 3.0)
73
+ ruby-progressbar (~> 1.7)
74
+ unicode-display_width (~> 1.0, >= 1.0.1)
75
+ ruby-progressbar (1.8.1)
64
76
  simplecov (0.12.0)
65
77
  docile (~> 1.1.0)
66
78
  json (>= 1.8, < 3)
@@ -73,6 +85,7 @@ GEM
73
85
  thread_safe (0.3.5)
74
86
  tins (1.6.0)
75
87
  tzinfo (0.3.51)
88
+ unicode-display_width (1.1.1)
76
89
 
77
90
  PLATFORMS
78
91
  ruby
@@ -87,7 +100,8 @@ DEPENDENCIES
87
100
  rspec (~> 3.5.0)
88
101
  rspec-activemodel-mocks
89
102
  rspec-its
103
+ rubocop
90
104
  sqlite3 (~> 1.3.11)
91
105
 
92
106
  BUNDLED WITH
93
- 1.11.2
107
+ 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 "activesupport", "4.1.16"
7
8
  gem "activerecord", "4.1.16"
8
9
 
@@ -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/
@@ -25,6 +25,7 @@ GEM
25
25
  rake
26
26
  thor (>= 0.14.0)
27
27
  arel (5.0.1.20140414130214)
28
+ ast (2.3.0)
28
29
  builder (3.2.2)
29
30
  coveralls (0.8.15)
30
31
  json (>= 1.8, < 3)
@@ -37,6 +38,11 @@ GEM
37
38
  i18n (0.7.0)
38
39
  json (1.8.3)
39
40
  minitest (5.9.0)
41
+ parser (2.4.0.0)
42
+ ast (~> 2.2)
43
+ powerpack (0.1.1)
44
+ rainbow (2.2.2)
45
+ rake
40
46
  rake (10.5.0)
41
47
  rspec (3.5.0)
42
48
  rspec-core (~> 3.5.0)
@@ -58,6 +64,13 @@ GEM
58
64
  diff-lcs (>= 1.2.0, < 2.0)
59
65
  rspec-support (~> 3.5.0)
60
66
  rspec-support (3.5.0)
67
+ rubocop (0.48.1)
68
+ parser (>= 2.3.3.1, < 3.0)
69
+ powerpack (~> 0.1)
70
+ rainbow (>= 1.99.1, < 3.0)
71
+ ruby-progressbar (~> 1.7)
72
+ unicode-display_width (~> 1.0, >= 1.0.1)
73
+ ruby-progressbar (1.8.1)
61
74
  simplecov (0.12.0)
62
75
  docile (~> 1.1.0)
63
76
  json (>= 1.8, < 3)
@@ -71,6 +84,7 @@ GEM
71
84
  tins (1.12.0)
72
85
  tzinfo (1.2.2)
73
86
  thread_safe (~> 0.1)
87
+ unicode-display_width (1.2.1)
74
88
 
75
89
  PLATFORMS
76
90
  ruby
@@ -85,7 +99,8 @@ DEPENDENCIES
85
99
  rspec (~> 3.5.0)
86
100
  rspec-activemodel-mocks
87
101
  rspec-its
102
+ rubocop
88
103
  sqlite3 (~> 1.3.11)
89
104
 
90
105
  BUNDLED WITH
91
- 1.11.2
106
+ 1.14.6
@@ -3,7 +3,8 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", :require => false
6
- gem "activesupport", "5.0.0.1"
7
- gem "activerecord", "5.0.0.1"
6
+ gem "rubocop", :require => false
7
+ gem "activesupport", "4.2.8"
8
+ gem "activerecord", "4.2.8"
8
9
 
9
10
  gemspec :path => "../"
@@ -1,22 +1,21 @@
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
- activemodel (4.2.7.1)
11
- activesupport (= 4.2.7.1)
10
+ activemodel (4.2.8)
11
+ activesupport (= 4.2.8)
12
12
  builder (~> 3.1)
13
- activerecord (4.2.7.1)
14
- activemodel (= 4.2.7.1)
15
- activesupport (= 4.2.7.1)
13
+ activerecord (4.2.8)
14
+ activemodel (= 4.2.8)
15
+ activesupport (= 4.2.8)
16
16
  arel (~> 6.0)
17
- activesupport (4.2.7.1)
17
+ activesupport (4.2.8)
18
18
  i18n (~> 0.7)
19
- json (~> 1.7, >= 1.7.7)
20
19
  minitest (~> 5.1)
21
20
  thread_safe (~> 0.3, >= 0.3.4)
22
21
  tzinfo (~> 1.1)
@@ -24,19 +23,25 @@ GEM
24
23
  bundler
25
24
  rake
26
25
  thor (>= 0.14.0)
27
- arel (6.0.3)
28
- builder (3.2.2)
29
- coveralls (0.8.15)
26
+ arel (6.0.4)
27
+ ast (2.3.0)
28
+ builder (3.2.3)
29
+ coveralls (0.8.21)
30
30
  json (>= 1.8, < 3)
31
- simplecov (~> 0.12.0)
31
+ simplecov (~> 0.14.1)
32
32
  term-ansicolor (~> 1.3)
33
- thor (~> 0.19.1)
34
- tins (>= 1.6.0, < 2)
35
- diff-lcs (1.2.5)
33
+ thor (~> 0.19.4)
34
+ tins (~> 1.6)
35
+ diff-lcs (1.3)
36
36
  docile (1.1.5)
37
- i18n (0.7.0)
38
- json (1.8.3)
39
- minitest (5.9.0)
37
+ i18n (0.8.1)
38
+ json (2.1.0)
39
+ minitest (5.10.1)
40
+ parser (2.4.0.0)
41
+ ast (~> 2.2)
42
+ powerpack (0.1.1)
43
+ rainbow (2.2.2)
44
+ rake
40
45
  rake (10.5.0)
41
46
  rspec (3.5.0)
42
47
  rspec-core (~> 3.5.0)
@@ -46,7 +51,7 @@ GEM
46
51
  activemodel (>= 3.0)
47
52
  activesupport (>= 3.0)
48
53
  rspec-mocks (>= 2.99, < 4.0)
49
- rspec-core (3.5.2)
54
+ rspec-core (3.5.4)
50
55
  rspec-support (~> 3.5.0)
51
56
  rspec-expectations (3.5.0)
52
57
  diff-lcs (>= 1.2.0, < 2.0)
@@ -58,26 +63,34 @@ GEM
58
63
  diff-lcs (>= 1.2.0, < 2.0)
59
64
  rspec-support (~> 3.5.0)
60
65
  rspec-support (3.5.0)
61
- simplecov (0.12.0)
66
+ rubocop (0.48.1)
67
+ parser (>= 2.3.3.1, < 3.0)
68
+ powerpack (~> 0.1)
69
+ rainbow (>= 1.99.1, < 3.0)
70
+ ruby-progressbar (~> 1.7)
71
+ unicode-display_width (~> 1.0, >= 1.0.1)
72
+ ruby-progressbar (1.8.1)
73
+ simplecov (0.14.1)
62
74
  docile (~> 1.1.0)
63
75
  json (>= 1.8, < 3)
64
76
  simplecov-html (~> 0.10.0)
65
77
  simplecov-html (0.10.0)
66
- sqlite3 (1.3.11)
67
- term-ansicolor (1.3.2)
78
+ sqlite3 (1.3.13)
79
+ term-ansicolor (1.6.0)
68
80
  tins (~> 1.0)
69
- thor (0.19.1)
70
- thread_safe (0.3.5)
71
- tins (1.12.0)
72
- tzinfo (1.2.2)
81
+ thor (0.19.4)
82
+ thread_safe (0.3.6)
83
+ tins (1.13.2)
84
+ tzinfo (1.2.3)
73
85
  thread_safe (~> 0.1)
86
+ unicode-display_width (1.2.1)
74
87
 
75
88
  PLATFORMS
76
89
  ruby
77
90
 
78
91
  DEPENDENCIES
79
- activerecord (= 4.2.7.1)
80
- activesupport (= 4.2.7.1)
92
+ activerecord (= 4.2.8)
93
+ activesupport (= 4.2.8)
81
94
  appraisal (~> 1.0.0)
82
95
  comma!
83
96
  coveralls
@@ -85,7 +98,8 @@ DEPENDENCIES
85
98
  rspec (~> 3.5.0)
86
99
  rspec-activemodel-mocks
87
100
  rspec-its
101
+ rubocop
88
102
  sqlite3 (~> 1.3.11)
89
103
 
90
104
  BUNDLED WITH
91
- 1.11.2
105
+ 1.14.6
@@ -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.0.1"
8
+ gem "activerecord", "5.0.1"
9
+
10
+ gemspec :path => "../"
@@ -1,19 +1,19 @@
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
- activemodel (5.0.0.1)
11
- activesupport (= 5.0.0.1)
12
- activerecord (5.0.0.1)
13
- activemodel (= 5.0.0.1)
14
- activesupport (= 5.0.0.1)
10
+ activemodel (5.0.1)
11
+ activesupport (= 5.0.1)
12
+ activerecord (5.0.1)
13
+ activemodel (= 5.0.1)
14
+ activesupport (= 5.0.1)
15
15
  arel (~> 7.0)
16
- activesupport (5.0.0.1)
16
+ activesupport (5.0.1)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (~> 0.7)
19
19
  minitest (~> 5.1)
@@ -22,19 +22,25 @@ GEM
22
22
  bundler
23
23
  rake
24
24
  thor (>= 0.14.0)
25
- arel (7.1.1)
26
- concurrent-ruby (1.0.2)
27
- coveralls (0.8.15)
25
+ arel (7.1.4)
26
+ ast (2.3.0)
27
+ concurrent-ruby (1.0.5)
28
+ coveralls (0.8.21)
28
29
  json (>= 1.8, < 3)
29
- simplecov (~> 0.12.0)
30
+ simplecov (~> 0.14.1)
30
31
  term-ansicolor (~> 1.3)
31
- thor (~> 0.19.1)
32
- tins (>= 1.6.0, < 2)
33
- diff-lcs (1.2.5)
32
+ thor (~> 0.19.4)
33
+ tins (~> 1.6)
34
+ diff-lcs (1.3)
34
35
  docile (1.1.5)
35
- i18n (0.7.0)
36
- json (2.0.2)
37
- minitest (5.9.0)
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
38
44
  rake (10.5.0)
39
45
  rspec (3.5.0)
40
46
  rspec-core (~> 3.5.0)
@@ -44,7 +50,7 @@ GEM
44
50
  activemodel (>= 3.0)
45
51
  activesupport (>= 3.0)
46
52
  rspec-mocks (>= 2.99, < 4.0)
47
- rspec-core (3.5.2)
53
+ rspec-core (3.5.4)
48
54
  rspec-support (~> 3.5.0)
49
55
  rspec-expectations (3.5.0)
50
56
  diff-lcs (>= 1.2.0, < 2.0)
@@ -56,26 +62,34 @@ GEM
56
62
  diff-lcs (>= 1.2.0, < 2.0)
57
63
  rspec-support (~> 3.5.0)
58
64
  rspec-support (3.5.0)
59
- simplecov (0.12.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)
60
73
  docile (~> 1.1.0)
61
74
  json (>= 1.8, < 3)
62
75
  simplecov-html (~> 0.10.0)
63
76
  simplecov-html (0.10.0)
64
- sqlite3 (1.3.11)
65
- term-ansicolor (1.3.2)
77
+ sqlite3 (1.3.13)
78
+ term-ansicolor (1.6.0)
66
79
  tins (~> 1.0)
67
- thor (0.19.1)
68
- thread_safe (0.3.5)
69
- tins (1.12.0)
70
- tzinfo (1.2.2)
80
+ thor (0.19.4)
81
+ thread_safe (0.3.6)
82
+ tins (1.13.2)
83
+ tzinfo (1.2.3)
71
84
  thread_safe (~> 0.1)
85
+ unicode-display_width (1.2.1)
72
86
 
73
87
  PLATFORMS
74
88
  ruby
75
89
 
76
90
  DEPENDENCIES
77
- activerecord (= 5.0.0.1)
78
- activesupport (= 5.0.0.1)
91
+ activerecord (= 5.0.1)
92
+ activesupport (= 5.0.1)
79
93
  appraisal (~> 1.0.0)
80
94
  comma!
81
95
  coveralls
@@ -83,7 +97,8 @@ DEPENDENCIES
83
97
  rspec (~> 3.5.0)
84
98
  rspec-activemodel-mocks
85
99
  rspec-its
100
+ rubocop
86
101
  sqlite3 (~> 1.3.11)
87
102
 
88
103
  BUNDLED WITH
89
- 1.11.2
104
+ 1.14.6