comma 4.3.2 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -0
  3. data/.travis.yml +14 -32
  4. data/Appraisals +12 -6
  5. data/Gemfile +3 -1
  6. data/Gemfile.lock +36 -21
  7. data/README.md +2 -2
  8. data/comma.gemspec +1 -4
  9. data/gemfiles/active5.0.7.2.gemfile +3 -1
  10. data/gemfiles/active5.0.7.2.gemfile.lock +26 -21
  11. data/gemfiles/active5.1.7.gemfile +3 -1
  12. data/gemfiles/active5.1.7.gemfile.lock +26 -21
  13. data/gemfiles/active5.2.4.3.gemfile +12 -0
  14. data/gemfiles/{active5.2.3.gemfile.lock → active5.2.4.3.gemfile.lock} +33 -28
  15. data/gemfiles/active6.0.3.1.gemfile +12 -0
  16. data/gemfiles/{active4.2.11.1.gemfile.lock → active6.0.3.1.gemfile.lock} +38 -35
  17. data/gemfiles/rails5.0.7.2.gemfile +4 -1
  18. data/gemfiles/rails5.0.7.2.gemfile.lock +38 -32
  19. data/gemfiles/rails5.1.7.gemfile +4 -1
  20. data/gemfiles/rails5.1.7.gemfile.lock +39 -33
  21. data/gemfiles/{rails6.0.0.gemfile → rails5.2.4.3.gemfile} +5 -2
  22. data/gemfiles/{rails5.2.3.gemfile.lock → rails5.2.4.3.gemfile.lock} +79 -73
  23. data/gemfiles/{rails5.2.3.gemfile → rails6.0.3.1.gemfile} +4 -2
  24. data/gemfiles/rails6.0.3.1.gemfile.lock +227 -0
  25. data/lib/comma.rb +2 -1
  26. data/lib/comma/generator.rb +2 -2
  27. data/lib/comma/version.rb +1 -1
  28. data/spec/comma/comma_spec.rb +3 -3
  29. data/spec/comma/data_extractor_spec.rb +8 -8
  30. data/spec/comma/header_extractor_spec.rb +5 -5
  31. data/spec/comma/rails/active_record_spec.rb +12 -12
  32. data/spec/controllers/users_controller_spec.rb +45 -33
  33. data/spec/spec_helper.rb +14 -1
  34. metadata +13 -31
  35. data/gemfiles/active4.2.11.1.gemfile +0 -10
  36. data/gemfiles/active5.2.3.gemfile +0 -10
  37. data/gemfiles/active6.0.0.gemfile +0 -10
  38. data/gemfiles/active6.0.0.gemfile.lock +0 -108
  39. data/gemfiles/rails4.2.11.1.gemfile +0 -11
  40. data/gemfiles/rails4.2.11.1.gemfile.lock +0 -191
  41. data/gemfiles/rails6.0.0.gemfile.lock +0 -237
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4d1fb2a5d2d64d87c8f57dacbe8f99eaaee0983030732dc36acac63d9cb8498
4
- data.tar.gz: 1eceff65d9e64e3c0d733a7a802e5d586aeb12159389b6823068aac3eb5de78e
3
+ metadata.gz: 248d043106e94ec7a4e9b794fb880f4e1873f95b330d60ea7fb526bd1baa9b7a
4
+ data.tar.gz: 67cb2c60aa8cfd23e9349595184be93192540bd066af6fb307442890f6d4d875
5
5
  SHA512:
6
- metadata.gz: 24597bb2689162ff21898fa890ac83ea3d007e498aefde827a7ec52b98f63047177b4d3f6107b2b303357fde285a5ffd757634e81a77d2c0dff4ed1bd83b0461
7
- data.tar.gz: 66de119a67f3862f9a6495c6518e8387a23e59a1979b8032ba7154815ceec0650a4579b19203b546dfd05b595d6b0723c363672df5ac59bb40d98877045bdde9
6
+ metadata.gz: e46f27fec1731062a30240672b159f2a1b04159f5dc61766b2d04c1ac473dc01438d5c1233ca15bcabfe227873938a098af2f81a1b207f45fed7f7a6a85e0a67
7
+ data.tar.gz: a196a677d7a73e927d71dea3e3407a5dc806e4727f6a20431f21d48b2bc13b16826c8a9234db26ac62b6881d5444a6358e1c94e93c4ab276d97a126d57fb7ca9
@@ -1,5 +1,7 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
+ require: rubocop-performance
4
+
3
5
  AllCops:
4
6
  DisplayCopNames: true
5
7
  TargetRubyVersion: 2.3
@@ -5,47 +5,29 @@ services: mongodb
5
5
  language: ruby
6
6
  cache: bundler
7
7
  rvm:
8
- - 2.3.8
9
- - 2.4.6
10
- - 2.5.5
11
- - 2.6.2
8
+ - 2.4.10
9
+ - 2.5.8
10
+ - 2.6.6
11
+ - 2.7.1
12
12
  gemfile:
13
- - gemfiles/active4.2.11.1.gemfile
14
13
  - gemfiles/active5.0.7.2.gemfile
15
14
  - gemfiles/active5.1.7.gemfile
16
- - gemfiles/active5.2.3.gemfile
17
- - gemfiles/active6.0.0.gemfile
18
- - gemfiles/rails4.2.11.1.gemfile
15
+ - gemfiles/active5.2.4.3.gemfile
16
+ - gemfiles/active6.0.3.1.gemfile
19
17
  - gemfiles/rails5.0.7.2.gemfile
20
18
  - gemfiles/rails5.1.7.gemfile
21
- - gemfiles/rails5.2.3.gemfile
22
- - gemfiles/rails6.0.0.gemfile
19
+ - gemfiles/rails5.2.4.3.gemfile
20
+ - gemfiles/rails6.0.3.1.gemfile
23
21
  matrix:
24
22
  exclude:
25
- - rvm: 2.3.8
26
- gemfile: gemfiles/active6.0.0.gemfile
27
- - rvm: 2.3.8
28
- gemfile: gemfiles/rails6.0.0.gemfile
29
- - rvm: 2.4.6
30
- gemfile: gemfiles/active4.2.11.1.gemfile
31
- - rvm: 2.4.6
32
- gemfile: gemfiles/active6.0.0.gemfile
33
- - rvm: 2.4.6
34
- gemfile: gemfiles/rails4.2.11.1.gemfile
35
- - rvm: 2.4.6
36
- gemfile: gemfiles/rails6.0.0.gemfile
37
- - rvm: 2.5.5
38
- gemfile: gemfiles/active4.2.11.1.gemfile
39
- - rvm: 2.5.5
40
- gemfile: gemfiles/rails4.2.11.1.gemfile
41
- - rvm: 2.6.2
42
- gemfile: gemfiles/active4.2.11.1.gemfile
43
- - rvm: 2.6.2
44
- gemfile: gemfiles/rails4.2.11.1.gemfile
23
+ - rvm: 2.4.10
24
+ gemfile: gemfiles/active6.0.3.1.gemfile
25
+ - rvm: 2.4.10
26
+ gemfile: gemfiles/rails6.0.3.1.gemfile
45
27
  fast_finish: true
46
28
  before_install:
47
29
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
48
30
  - gem install bundler -v '< 2'
49
31
  script:
50
- - bundle exec rake rubocop
51
- - bundle exec rake spec
32
+ - bundle exec rubocop -P
33
+ - bundle exec rspec -f d spec
data/Appraisals CHANGED
@@ -1,11 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ['4.2.11.1', '5.0.7.2', '5.1.7', '5.2.3'].each do |version_number|
3
+ [
4
+ '5.0.7.2',
5
+ '5.1.7',
6
+ '5.2.4.3'
7
+ ].each do |version_number|
4
8
  clean_number = version_number.gsub(/[<>~=]*/, '')
5
9
 
6
10
  appraise "rails#{clean_number}" do
7
11
  gem 'rails', version_number
8
12
  gem 'rspec-rails'
13
+ gem 'sprockets', '< 4'
14
+ gem 'sqlite3', '~> 1.3.11'
9
15
  gem 'test-unit'
10
16
  end
11
17
 
@@ -15,13 +21,13 @@
15
21
  end
16
22
  end
17
23
 
18
- appraise 'rails6.0.0' do
19
- gem 'rails', '6.0.0.beta3'
24
+ appraise 'rails6.0.3.1' do
25
+ gem 'rails', '6.0.3.1'
20
26
  gem 'rspec-rails'
21
27
  gem 'test-unit'
22
28
  end
23
29
 
24
- appraise 'active6.0.0' do
25
- gem 'activesupport', '6.0.0.beta3'
26
- gem 'activerecord', '6.0.0.beta3'
30
+ appraise 'active6.0.3.1' do
31
+ gem 'activesupport', '6.0.3.1'
32
+ gem 'activerecord', '6.0.3.1'
27
33
  end
data/Gemfile CHANGED
@@ -5,4 +5,6 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  gem 'coveralls', require: false
8
- gem 'rubocop', require: false
8
+ gem 'rubocop', '~> 0.67.2', require: false
9
+ gem 'rubocop-performance', require: false
10
+ gem 'sqlite3'
@@ -1,26 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comma (4.3.2)
4
+ comma (4.4.0)
5
5
  activesupport (>= 4.2.0, < 6.1)
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
- activesupport (5.0.0.1)
10
+ activemodel (6.0.3.1)
11
+ activesupport (= 6.0.3.1)
12
+ activesupport (6.0.3.1)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (~> 0.7)
14
+ i18n (>= 0.7, < 2)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
+ zeitwerk (~> 2.2, >= 2.2.2)
17
18
  appraisal (1.0.3)
18
19
  bundler
19
20
  rake
20
21
  thor (>= 0.14.0)
21
22
  ast (2.4.0)
22
23
  colorize (0.7.5)
23
- concurrent-ruby (1.0.2)
24
+ concurrent-ruby (1.1.6)
24
25
  coveralls (0.5.8)
25
26
  colorize
26
27
  json
@@ -29,23 +30,30 @@ GEM
29
30
  thor
30
31
  diff-lcs (1.2.5)
31
32
  docile (1.1.5)
32
- i18n (0.7.0)
33
+ domain_name (0.5.20190701)
34
+ unf (>= 0.0.5, < 1.0.0)
35
+ http-cookie (1.0.3)
36
+ domain_name (~> 0.5)
37
+ i18n (1.8.3)
38
+ concurrent-ruby (~> 1.0)
33
39
  jaro_winkler (1.5.2)
34
- json (1.8.6)
35
- mime-types (1.25.1)
36
- minitest (5.9.0)
40
+ json (2.2.0)
41
+ mime-types (3.2.2)
42
+ mime-types-data (~> 3.2015)
43
+ mime-types-data (3.2019.0331)
44
+ minitest (5.14.1)
37
45
  multi_json (1.1.0)
46
+ netrc (0.11.0)
38
47
  parallel (1.17.0)
39
48
  parser (2.6.2.1)
40
49
  ast (~> 2.4.0)
41
50
  psych (3.1.0)
42
51
  rainbow (3.0.0)
43
- rake (10.5.0)
44
- rdoc (4.2.0)
45
- json (~> 1.4)
46
- rest-client (1.6.8)
47
- mime-types (~> 1.16)
48
- rdoc (>= 2.4.2)
52
+ rake (13.0.1)
53
+ rest-client (2.0.2)
54
+ http-cookie (>= 1.0.2, < 2.0)
55
+ mime-types (>= 1.16, < 4.0)
56
+ netrc (~> 0.8)
49
57
  rspec (3.5.0)
50
58
  rspec-core (~> 3.5.0)
51
59
  rspec-expectations (~> 3.5.0)
@@ -74,6 +82,8 @@ GEM
74
82
  rainbow (>= 2.2.2, < 4.0)
75
83
  ruby-progressbar (~> 1.7)
76
84
  unicode-display_width (>= 1.4.0, < 1.6)
85
+ rubocop-performance (1.1.0)
86
+ rubocop (>= 0.67.0)
77
87
  ruby-progressbar (1.10.0)
78
88
  simplecov (0.9.2)
79
89
  docile (~> 1.1.0)
@@ -82,10 +92,14 @@ GEM
82
92
  simplecov-html (0.9.0)
83
93
  sqlite3 (1.3.11)
84
94
  thor (0.19.1)
85
- thread_safe (0.3.5)
86
- tzinfo (1.2.2)
95
+ thread_safe (0.3.6)
96
+ tzinfo (1.2.7)
87
97
  thread_safe (~> 0.1)
98
+ unf (0.1.4)
99
+ unf_ext
100
+ unf_ext (0.0.7.6)
88
101
  unicode-display_width (1.5.0)
102
+ zeitwerk (2.3.0)
89
103
 
90
104
  PLATFORMS
91
105
  ruby
@@ -94,12 +108,13 @@ DEPENDENCIES
94
108
  appraisal (~> 1.0.0)
95
109
  comma!
96
110
  coveralls
97
- rake (~> 10.5.0)
111
+ rake (~> 13.0.1)
98
112
  rspec (~> 3.5.0)
99
113
  rspec-activemodel-mocks
100
114
  rspec-its
101
- rubocop
102
- sqlite3 (~> 1.3.11)
115
+ rubocop (~> 0.67.2)
116
+ rubocop-performance
117
+ sqlite3
103
118
 
104
119
  BUNDLED WITH
105
120
  1.17.3
data/README.md CHANGED
@@ -8,7 +8,7 @@ A library to generate comma seperated value (CSV) for Ruby objects like ActiveRe
8
8
 
9
9
  ### Prerequisites
10
10
 
11
- You need to use ruby 2.3 or later. If you generate CSV from ActiveRecord models, you need to have ActiveRecord 4.2 or later.
11
+ You need to use ruby 2.4 or later. If you generate CSV from ActiveRecord models, you need to have ActiveRecord 5.0 or later.
12
12
 
13
13
  ### Installing
14
14
 
@@ -17,7 +17,7 @@ Comma is distributed as a gem, best installed via Bundler.
17
17
  Include the gem in your Gemfile:
18
18
 
19
19
  ```ruby
20
- gem 'comma', '~> 4.3.2'
20
+ gem 'comma', '~> 4.4.0'
21
21
  ```
22
22
 
23
23
  Or, if you want to live life on the edge, you can get master from the main comma repository:
@@ -12,8 +12,6 @@ Gem::Specification.new do |s|
12
12
  s.summary = %(Ruby Comma Seperated Values generation library)
13
13
  s.description = %(Ruby Comma Seperated Values generation library)
14
14
 
15
- s.rubyforge_project = 'comma'
16
-
17
15
  s.files = `git ls-files`.split("\n")
18
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
17
  s.require_paths = ['lib']
@@ -23,9 +21,8 @@ Gem::Specification.new do |s|
23
21
  s.add_dependency 'activesupport', ['>= 4.2.0', '< 6.1']
24
22
 
25
23
  s.add_development_dependency 'appraisal', ['~> 1.0.0']
26
- s.add_development_dependency 'rake', ['~> 10.5.0']
24
+ s.add_development_dependency 'rake', '~> 13.0.1'
27
25
  s.add_development_dependency 'rspec', ['~> 3.5.0']
28
26
  s.add_development_dependency 'rspec-activemodel-mocks'
29
27
  s.add_development_dependency 'rspec-its'
30
- s.add_development_dependency 'sqlite3', ['~> 1.3.11']
31
28
  end
@@ -3,7 +3,9 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", :require => false
6
- gem "rubocop", :require => false
6
+ gem "rubocop", "~> 0.67.2", :require => false
7
+ gem "rubocop-performance", :require => false
8
+ gem "sqlite3"
7
9
  gem "activesupport", "5.0.7.2"
8
10
  gem "activerecord", "5.0.7.2"
9
11
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.3.2)
4
+ comma (4.4.0)
5
5
  activesupport (>= 4.2.0, < 6.1)
6
6
 
7
7
  GEM
@@ -23,27 +23,27 @@ GEM
23
23
  rake
24
24
  thor (>= 0.14.0)
25
25
  arel (7.1.4)
26
- ast (2.4.0)
27
- concurrent-ruby (1.1.5)
28
- coveralls (0.8.22)
26
+ ast (2.4.1)
27
+ concurrent-ruby (1.1.6)
28
+ coveralls (0.8.23)
29
29
  json (>= 1.8, < 3)
30
30
  simplecov (~> 0.16.1)
31
31
  term-ansicolor (~> 1.3)
32
- thor (~> 0.19.4)
32
+ thor (>= 0.19.4, < 2.0)
33
33
  tins (~> 1.6)
34
34
  diff-lcs (1.3)
35
- docile (1.3.1)
36
- i18n (1.6.0)
35
+ docile (1.3.2)
36
+ i18n (1.8.3)
37
37
  concurrent-ruby (~> 1.0)
38
- jaro_winkler (1.5.2)
39
- json (2.2.0)
40
- minitest (5.11.3)
41
- parallel (1.17.0)
42
- parser (2.6.2.1)
38
+ jaro_winkler (1.5.4)
39
+ json (2.3.0)
40
+ minitest (5.14.1)
41
+ parallel (1.19.1)
42
+ parser (2.7.1.3)
43
43
  ast (~> 2.4.0)
44
44
  psych (3.1.0)
45
45
  rainbow (3.0.0)
46
- rake (10.5.0)
46
+ rake (13.0.1)
47
47
  rspec (3.5.0)
48
48
  rspec-core (~> 3.5.0)
49
49
  rspec-expectations (~> 3.5.0)
@@ -72,19 +72,23 @@ GEM
72
72
  rainbow (>= 2.2.2, < 4.0)
73
73
  ruby-progressbar (~> 1.7)
74
74
  unicode-display_width (>= 1.4.0, < 1.6)
75
- ruby-progressbar (1.10.0)
75
+ rubocop-performance (1.1.0)
76
+ rubocop (>= 0.67.0)
77
+ ruby-progressbar (1.10.1)
76
78
  simplecov (0.16.1)
77
79
  docile (~> 1.1)
78
80
  json (>= 1.8, < 3)
79
81
  simplecov-html (~> 0.10.0)
80
82
  simplecov-html (0.10.2)
81
- sqlite3 (1.3.13)
83
+ sqlite3 (1.3.11)
84
+ sync (0.5.0)
82
85
  term-ansicolor (1.7.1)
83
86
  tins (~> 1.0)
84
- thor (0.19.4)
87
+ thor (1.0.1)
85
88
  thread_safe (0.3.6)
86
- tins (1.20.2)
87
- tzinfo (1.2.5)
89
+ tins (1.25.0)
90
+ sync
91
+ tzinfo (1.2.7)
88
92
  thread_safe (~> 0.1)
89
93
  unicode-display_width (1.5.0)
90
94
 
@@ -97,12 +101,13 @@ DEPENDENCIES
97
101
  appraisal (~> 1.0.0)
98
102
  comma!
99
103
  coveralls
100
- rake (~> 10.5.0)
104
+ rake (~> 13.0.1)
101
105
  rspec (~> 3.5.0)
102
106
  rspec-activemodel-mocks
103
107
  rspec-its
104
- rubocop
105
- sqlite3 (~> 1.3.11)
108
+ rubocop (~> 0.67.2)
109
+ rubocop-performance
110
+ sqlite3
106
111
 
107
112
  BUNDLED WITH
108
113
  1.17.3
@@ -3,7 +3,9 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", :require => false
6
- gem "rubocop", :require => false
6
+ gem "rubocop", "~> 0.67.2", :require => false
7
+ gem "rubocop-performance", :require => false
8
+ gem "sqlite3"
7
9
  gem "activesupport", "5.1.7"
8
10
  gem "activerecord", "5.1.7"
9
11
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.3.2)
4
+ comma (4.4.0)
5
5
  activesupport (>= 4.2.0, < 6.1)
6
6
 
7
7
  GEM
@@ -23,27 +23,27 @@ GEM
23
23
  rake
24
24
  thor (>= 0.14.0)
25
25
  arel (8.0.0)
26
- ast (2.4.0)
27
- concurrent-ruby (1.1.5)
28
- coveralls (0.8.22)
26
+ ast (2.4.1)
27
+ concurrent-ruby (1.1.6)
28
+ coveralls (0.8.23)
29
29
  json (>= 1.8, < 3)
30
30
  simplecov (~> 0.16.1)
31
31
  term-ansicolor (~> 1.3)
32
- thor (~> 0.19.4)
32
+ thor (>= 0.19.4, < 2.0)
33
33
  tins (~> 1.6)
34
34
  diff-lcs (1.3)
35
- docile (1.3.1)
36
- i18n (1.6.0)
35
+ docile (1.3.2)
36
+ i18n (1.8.3)
37
37
  concurrent-ruby (~> 1.0)
38
- jaro_winkler (1.5.2)
39
- json (2.2.0)
40
- minitest (5.11.3)
41
- parallel (1.17.0)
42
- parser (2.6.2.1)
38
+ jaro_winkler (1.5.4)
39
+ json (2.3.0)
40
+ minitest (5.14.1)
41
+ parallel (1.19.1)
42
+ parser (2.7.1.3)
43
43
  ast (~> 2.4.0)
44
44
  psych (3.1.0)
45
45
  rainbow (3.0.0)
46
- rake (10.5.0)
46
+ rake (13.0.1)
47
47
  rspec (3.5.0)
48
48
  rspec-core (~> 3.5.0)
49
49
  rspec-expectations (~> 3.5.0)
@@ -72,19 +72,23 @@ GEM
72
72
  rainbow (>= 2.2.2, < 4.0)
73
73
  ruby-progressbar (~> 1.7)
74
74
  unicode-display_width (>= 1.4.0, < 1.6)
75
- ruby-progressbar (1.10.0)
75
+ rubocop-performance (1.1.0)
76
+ rubocop (>= 0.67.0)
77
+ ruby-progressbar (1.10.1)
76
78
  simplecov (0.16.1)
77
79
  docile (~> 1.1)
78
80
  json (>= 1.8, < 3)
79
81
  simplecov-html (~> 0.10.0)
80
82
  simplecov-html (0.10.2)
81
- sqlite3 (1.3.13)
83
+ sqlite3 (1.4.2)
84
+ sync (0.5.0)
82
85
  term-ansicolor (1.7.1)
83
86
  tins (~> 1.0)
84
- thor (0.19.4)
87
+ thor (1.0.1)
85
88
  thread_safe (0.3.6)
86
- tins (1.20.2)
87
- tzinfo (1.2.5)
89
+ tins (1.25.0)
90
+ sync
91
+ tzinfo (1.2.7)
88
92
  thread_safe (~> 0.1)
89
93
  unicode-display_width (1.5.0)
90
94
 
@@ -97,12 +101,13 @@ DEPENDENCIES
97
101
  appraisal (~> 1.0.0)
98
102
  comma!
99
103
  coveralls
100
- rake (~> 10.5.0)
104
+ rake (~> 13.0.1)
101
105
  rspec (~> 3.5.0)
102
106
  rspec-activemodel-mocks
103
107
  rspec-its
104
- rubocop
105
- sqlite3 (~> 1.3.11)
108
+ rubocop (~> 0.67.2)
109
+ rubocop-performance
110
+ sqlite3
106
111
 
107
112
  BUNDLED WITH
108
113
  1.17.3