comma 4.4.0 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 248d043106e94ec7a4e9b794fb880f4e1873f95b330d60ea7fb526bd1baa9b7a
4
- data.tar.gz: 67cb2c60aa8cfd23e9349595184be93192540bd066af6fb307442890f6d4d875
3
+ metadata.gz: 614ba7e7248d40786a931f96b66cd7adca4f5b34596ae88b55ce135d1c7a620c
4
+ data.tar.gz: d24b87a98012112d4f31b1e33b949832783ee40f793d425381914701acf1cbd9
5
5
  SHA512:
6
- metadata.gz: e46f27fec1731062a30240672b159f2a1b04159f5dc61766b2d04c1ac473dc01438d5c1233ca15bcabfe227873938a098af2f81a1b207f45fed7f7a6a85e0a67
7
- data.tar.gz: a196a677d7a73e927d71dea3e3407a5dc806e4727f6a20431f21d48b2bc13b16826c8a9234db26ac62b6881d5444a6358e1c94e93c4ab276d97a126d57fb7ca9
6
+ metadata.gz: d44931b83e3bfd18f934691587c420f2a6aaba5eca39892992c3e4a3b4e7abad2d83d5a0c18abfb4eda0496e34e05052988eaa757c0b1b7de114335819613c5e
7
+ data.tar.gz: d883ae1246f570ea67b04529faa50be2ea02e73d8da75bca508899618a9ed25194a302ff833a217da266085c348adc5c36c307989849a69d75428a08fabe54fb
@@ -8,22 +8,28 @@ rvm:
8
8
  - 2.4.10
9
9
  - 2.5.8
10
10
  - 2.6.6
11
- - 2.7.1
11
+ - 2.7.2
12
12
  gemfile:
13
13
  - gemfiles/active5.0.7.2.gemfile
14
14
  - gemfiles/active5.1.7.gemfile
15
15
  - gemfiles/active5.2.4.3.gemfile
16
16
  - gemfiles/active6.0.3.1.gemfile
17
+ - gemfiles/active6.1.0.gemfile
17
18
  - gemfiles/rails5.0.7.2.gemfile
18
19
  - gemfiles/rails5.1.7.gemfile
19
20
  - gemfiles/rails5.2.4.3.gemfile
20
21
  - gemfiles/rails6.0.3.1.gemfile
22
+ - gemfiles/rails6.1.0.gemfile
21
23
  matrix:
22
24
  exclude:
23
25
  - rvm: 2.4.10
24
26
  gemfile: gemfiles/active6.0.3.1.gemfile
27
+ - rvm: 2.4.10
28
+ gemfile: gemfiles/active6.1.0.gemfile
25
29
  - rvm: 2.4.10
26
30
  gemfile: gemfiles/rails6.0.3.1.gemfile
31
+ - rvm: 2.4.10
32
+ gemfile: gemfiles/rails6.1.0.gemfile
27
33
  fast_finish: true
28
34
  before_install:
29
35
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
data/Appraisals CHANGED
@@ -31,3 +31,14 @@ appraise 'active6.0.3.1' do
31
31
  gem 'activesupport', '6.0.3.1'
32
32
  gem 'activerecord', '6.0.3.1'
33
33
  end
34
+
35
+ appraise 'rails6.1.0' do
36
+ gem 'rails', '6.1.0'
37
+ gem 'rspec-rails'
38
+ gem 'test-unit'
39
+ end
40
+
41
+ appraise 'active6.1.0' do
42
+ gem 'activesupport', '6.1.0'
43
+ gem 'activerecord', '6.1.0'
44
+ end
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -37,7 +37,7 @@ GEM
37
37
  i18n (1.8.3)
38
38
  concurrent-ruby (~> 1.0)
39
39
  jaro_winkler (1.5.2)
40
- json (2.2.0)
40
+ json (2.3.1)
41
41
  mime-types (3.2.2)
42
42
  mime-types-data (~> 3.2015)
43
43
  mime-types-data (3.2019.0331)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A library to generate comma seperated value (CSV) for Ruby objects like ActiveRecord and Array
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/comma.png)](http://badge.fury.io/rb/comma) [![Build Status](https://travis-ci.org/comma-csv/comma.png?branch=master)](https://travis-ci.org/comma-csv/comma) [![Code Climate](https://codeclimate.com/github/comma-csv/comma.png)](https://codeclimate.com/github/comma-csv/comma)
5
+ [![Gem Version](https://badge.fury.io/rb/comma.svg)](http://badge.fury.io/rb/comma) [![Build Status](https://travis-ci.org/comma-csv/comma.svg?branch=master)](https://travis-ci.org/comma-csv/comma) [![Code Climate](https://codeclimate.com/github/comma-csv/comma.svg)](https://codeclimate.com/github/comma-csv/comma)
6
6
 
7
7
  ## Getting Started
8
8
 
@@ -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.4.0'
20
+ gem 'comma', '~> 4.5.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:
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.licenses = ['MIT']
20
20
 
21
- s.add_dependency 'activesupport', ['>= 4.2.0', '< 6.1']
21
+ s.add_dependency 'activesupport', ['>= 4.2.0', '< 6.2']
22
22
 
23
23
  s.add_development_dependency 'appraisal', ['~> 1.0.0']
24
24
  s.add_development_dependency 'rake', '~> 13.0.1'
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -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", "~> 0.67.2", :require => false
7
+ gem "rubocop-performance", :require => false
8
+ gem "sqlite3"
9
+ gem "activesupport", "6.1.0"
10
+ gem "activerecord", "6.1.0"
11
+
12
+ gemspec :path => "../"
@@ -0,0 +1,112 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (6.1.0)
11
+ activesupport (= 6.1.0)
12
+ activerecord (6.1.0)
13
+ activemodel (= 6.1.0)
14
+ activesupport (= 6.1.0)
15
+ activesupport (6.1.0)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ zeitwerk (~> 2.3)
21
+ appraisal (1.0.3)
22
+ bundler
23
+ rake
24
+ thor (>= 0.14.0)
25
+ ast (2.4.1)
26
+ concurrent-ruby (1.1.7)
27
+ coveralls (0.8.23)
28
+ json (>= 1.8, < 3)
29
+ simplecov (~> 0.16.1)
30
+ term-ansicolor (~> 1.3)
31
+ thor (>= 0.19.4, < 2.0)
32
+ tins (~> 1.6)
33
+ diff-lcs (1.4.4)
34
+ docile (1.3.3)
35
+ i18n (1.8.5)
36
+ concurrent-ruby (~> 1.0)
37
+ jaro_winkler (1.5.4)
38
+ json (2.4.1)
39
+ minitest (5.14.2)
40
+ parallel (1.20.1)
41
+ parser (2.7.2.0)
42
+ ast (~> 2.4.1)
43
+ psych (3.2.1)
44
+ rainbow (3.0.0)
45
+ rake (13.0.3)
46
+ rspec (3.5.0)
47
+ rspec-core (~> 3.5.0)
48
+ rspec-expectations (~> 3.5.0)
49
+ rspec-mocks (~> 3.5.0)
50
+ rspec-activemodel-mocks (1.1.0)
51
+ activemodel (>= 3.0)
52
+ activesupport (>= 3.0)
53
+ rspec-mocks (>= 2.99, < 4.0)
54
+ rspec-core (3.5.4)
55
+ rspec-support (~> 3.5.0)
56
+ rspec-expectations (3.5.0)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.5.0)
59
+ rspec-its (1.3.0)
60
+ rspec-core (>= 3.0.0)
61
+ rspec-expectations (>= 3.0.0)
62
+ rspec-mocks (3.5.0)
63
+ diff-lcs (>= 1.2.0, < 2.0)
64
+ rspec-support (~> 3.5.0)
65
+ rspec-support (3.5.0)
66
+ rubocop (0.67.2)
67
+ jaro_winkler (~> 1.5.1)
68
+ parallel (~> 1.10)
69
+ parser (>= 2.5, != 2.5.1.1)
70
+ psych (>= 3.1.0)
71
+ rainbow (>= 2.2.2, < 4.0)
72
+ ruby-progressbar (~> 1.7)
73
+ unicode-display_width (>= 1.4.0, < 1.6)
74
+ rubocop-performance (1.1.0)
75
+ rubocop (>= 0.67.0)
76
+ ruby-progressbar (1.10.1)
77
+ simplecov (0.16.1)
78
+ docile (~> 1.1)
79
+ json (>= 1.8, < 3)
80
+ simplecov-html (~> 0.10.0)
81
+ simplecov-html (0.10.2)
82
+ sqlite3 (1.4.2)
83
+ sync (0.5.0)
84
+ term-ansicolor (1.7.1)
85
+ tins (~> 1.0)
86
+ thor (1.0.1)
87
+ tins (1.26.0)
88
+ sync
89
+ tzinfo (2.0.4)
90
+ concurrent-ruby (~> 1.0)
91
+ unicode-display_width (1.5.0)
92
+ zeitwerk (2.4.2)
93
+
94
+ PLATFORMS
95
+ ruby
96
+
97
+ DEPENDENCIES
98
+ activerecord (= 6.1.0)
99
+ activesupport (= 6.1.0)
100
+ appraisal (~> 1.0.0)
101
+ comma!
102
+ coveralls
103
+ rake (~> 13.0.1)
104
+ rspec (~> 3.5.0)
105
+ rspec-activemodel-mocks
106
+ rspec-its
107
+ rubocop (~> 0.67.2)
108
+ rubocop-performance
109
+ sqlite3
110
+
111
+ BUNDLED WITH
112
+ 1.17.3
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.4.0)
5
- activesupport (>= 4.2.0, < 6.1)
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -0,0 +1,13 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", :require => false
6
+ gem "rubocop", "~> 0.67.2", :require => false
7
+ gem "rubocop-performance", :require => false
8
+ gem "sqlite3"
9
+ gem "rails", "6.1.0"
10
+ gem "rspec-rails"
11
+ gem "test-unit"
12
+
13
+ gemspec :path => "../"
@@ -0,0 +1,230 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ comma (4.5.0)
5
+ activesupport (>= 4.2.0, < 6.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.0)
11
+ actionpack (= 6.1.0)
12
+ activesupport (= 6.1.0)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.0)
16
+ actionpack (= 6.1.0)
17
+ activejob (= 6.1.0)
18
+ activerecord (= 6.1.0)
19
+ activestorage (= 6.1.0)
20
+ activesupport (= 6.1.0)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.0)
23
+ actionpack (= 6.1.0)
24
+ actionview (= 6.1.0)
25
+ activejob (= 6.1.0)
26
+ activesupport (= 6.1.0)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.0)
30
+ actionview (= 6.1.0)
31
+ activesupport (= 6.1.0)
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.0)
37
+ actionpack (= 6.1.0)
38
+ activerecord (= 6.1.0)
39
+ activestorage (= 6.1.0)
40
+ activesupport (= 6.1.0)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.0)
43
+ activesupport (= 6.1.0)
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.0)
49
+ activesupport (= 6.1.0)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.0)
52
+ activesupport (= 6.1.0)
53
+ activerecord (6.1.0)
54
+ activemodel (= 6.1.0)
55
+ activesupport (= 6.1.0)
56
+ activestorage (6.1.0)
57
+ actionpack (= 6.1.0)
58
+ activejob (= 6.1.0)
59
+ activerecord (= 6.1.0)
60
+ activesupport (= 6.1.0)
61
+ marcel (~> 0.3.1)
62
+ mimemagic (~> 0.3.2)
63
+ activesupport (6.1.0)
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.1)
74
+ builder (3.2.4)
75
+ concurrent-ruby (1.1.7)
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.3.3)
85
+ erubi (1.10.0)
86
+ globalid (0.4.2)
87
+ activesupport (>= 4.2.0)
88
+ i18n (1.8.5)
89
+ concurrent-ruby (~> 1.0)
90
+ jaro_winkler (1.5.4)
91
+ json (2.4.1)
92
+ loofah (2.8.0)
93
+ crass (~> 1.0.2)
94
+ nokogiri (>= 1.5.9)
95
+ mail (2.7.1)
96
+ mini_mime (>= 0.1.1)
97
+ marcel (0.3.3)
98
+ mimemagic (~> 0.3.2)
99
+ method_source (1.0.0)
100
+ mimemagic (0.3.5)
101
+ mini_mime (1.0.2)
102
+ mini_portile2 (2.4.0)
103
+ minitest (5.14.2)
104
+ nio4r (2.5.4)
105
+ nokogiri (1.10.10)
106
+ mini_portile2 (~> 2.4.0)
107
+ parallel (1.20.1)
108
+ parser (2.7.2.0)
109
+ ast (~> 2.4.1)
110
+ power_assert (1.2.0)
111
+ psych (3.2.1)
112
+ rack (2.2.3)
113
+ rack-test (1.1.0)
114
+ rack (>= 1.0, < 3)
115
+ rails (6.1.0)
116
+ actioncable (= 6.1.0)
117
+ actionmailbox (= 6.1.0)
118
+ actionmailer (= 6.1.0)
119
+ actionpack (= 6.1.0)
120
+ actiontext (= 6.1.0)
121
+ actionview (= 6.1.0)
122
+ activejob (= 6.1.0)
123
+ activemodel (= 6.1.0)
124
+ activerecord (= 6.1.0)
125
+ activestorage (= 6.1.0)
126
+ activesupport (= 6.1.0)
127
+ bundler (>= 1.15.0)
128
+ railties (= 6.1.0)
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.3.0)
134
+ loofah (~> 2.3)
135
+ railties (6.1.0)
136
+ actionpack (= 6.1.0)
137
+ activesupport (= 6.1.0)
138
+ method_source
139
+ rake (>= 0.8.7)
140
+ thor (~> 1.0)
141
+ rainbow (3.0.0)
142
+ rake (13.0.3)
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.10.1)
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.3.7)
199
+ power_assert
200
+ thor (1.0.1)
201
+ tins (1.26.0)
202
+ sync
203
+ tzinfo (2.0.4)
204
+ concurrent-ruby (~> 1.0)
205
+ unicode-display_width (1.5.0)
206
+ websocket-driver (0.7.3)
207
+ websocket-extensions (>= 0.1.0)
208
+ websocket-extensions (0.1.5)
209
+ zeitwerk (2.4.2)
210
+
211
+ PLATFORMS
212
+ ruby
213
+
214
+ DEPENDENCIES
215
+ appraisal (~> 1.0.0)
216
+ comma!
217
+ coveralls
218
+ rails (= 6.1.0)
219
+ rake (~> 13.0.1)
220
+ rspec (~> 3.5.0)
221
+ rspec-activemodel-mocks
222
+ rspec-its
223
+ rspec-rails
224
+ rubocop (~> 0.67.2)
225
+ rubocop-performance
226
+ sqlite3
227
+ test-unit
228
+
229
+ BUNDLED WITH
230
+ 1.17.3
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Comma
4
- VERSION = '4.4.0'
4
+ VERSION = '4.5.0'
5
5
  end
@@ -26,7 +26,7 @@ if defined?(Rails)
26
26
  get :index
27
27
 
28
28
  expect(response.status).to eq 200
29
- expect(response.content_type).to eq 'text/html'
29
+ expect(response.media_type).to eq 'text/html'
30
30
  expect(response.body).to eq 'Users!'
31
31
  end
32
32
 
@@ -34,7 +34,7 @@ if defined?(Rails)
34
34
  get :index, format: :csv
35
35
 
36
36
  expect(response.status).to eq 200
37
- expect(response.content_type).to eq 'text/csv'
37
+ expect(response.media_type).to eq 'text/csv'
38
38
  expect(response.header['Content-Disposition']).to include('filename="data.csv"')
39
39
 
40
40
  expected_content = <<-CSV.gsub(/^\s+/, '')
@@ -80,7 +80,7 @@ if defined?(Rails)
80
80
  get_ :with_custom_options, format: :csv, params: { custom_options: { filename: 'my_custom_name' } }
81
81
 
82
82
  expect(response.status).to eq 200
83
- expect(response.content_type).to eq 'text/csv'
83
+ expect(response.media_type).to eq 'text/csv'
84
84
  expect(response.header['Content-Disposition']).to include('filename="my_custom_name.csv"')
85
85
  end
86
86
 
@@ -90,7 +90,7 @@ if defined?(Rails)
90
90
  get_ :with_custom_options, format: :csv, params: params
91
91
 
92
92
  expect(response.status).to eq 200
93
- expect(response.content_type).to eq 'text/csv'
93
+ expect(response.media_type).to eq 'text/csv'
94
94
  expect(response.header['Content-Disposition']).to include('filename="filename with a lot of spaces.csv"')
95
95
 
96
96
  filename_string = response.header['Content-Disposition'].split('=').last
@@ -102,14 +102,14 @@ if defined?(Rails)
102
102
  get_ :with_custom_options, format: :csv, params: { custom_options: { extension: :txt } }
103
103
 
104
104
  expect(response.status).to eq 200
105
- expect(response.content_type).to eq 'text/csv'
105
+ expect(response.media_type).to eq 'text/csv'
106
106
  expect(response.header['Content-Disposition']).to include('filename="data.txt"')
107
107
  end
108
108
 
109
109
  it 'should allow mime type to be set' do
110
110
  get_ :with_custom_options, format: :csv, params: { custom_options: { mime_type: 'text/plain' } }
111
111
  expect(response.status).to eq 200
112
- expect(response.content_type).to eq 'text/plain'
112
+ expect(response.media_type).to eq 'text/plain'
113
113
  end
114
114
 
115
115
  it 'should allow bom to be set' do
@@ -129,7 +129,7 @@ if defined?(Rails)
129
129
  get_ :with_custom_options, format: :csv, params: { custom_options: { write_headers: 'true' } }
130
130
 
131
131
  expect(response.status).to eq 200
132
- expect(response.content_type).to eq 'text/csv'
132
+ expect(response.media_type).to eq 'text/csv'
133
133
 
134
134
  expected_content = <<-CSV.gsub(/^\s+/, '')
135
135
  First name,Last name,Name
@@ -144,7 +144,7 @@ if defined?(Rails)
144
144
  get_ :with_custom_options, format: :csv, params: { custom_options: { write_headers: false } }
145
145
 
146
146
  expect(response.status).to eq 200
147
- expect(response.content_type).to eq 'text/csv'
147
+ expect(response.media_type).to eq 'text/csv'
148
148
 
149
149
  expected_content = <<-CSV.gsub(/^\s+/, '')
150
150
  Fred,Flintstone,Fred Flintstone
@@ -159,7 +159,7 @@ if defined?(Rails)
159
159
  get_ :with_custom_options, format: :csv, params: { custom_options: { force_quotes: true } }
160
160
 
161
161
  expect(response.status).to eq 200
162
- expect(response.content_type).to eq 'text/csv'
162
+ expect(response.media_type).to eq 'text/csv'
163
163
 
164
164
  expected_content = <<-CSV.gsub(/^\s+/, '')
165
165
  "First name","Last name","Name"
@@ -182,7 +182,7 @@ if defined?(Rails)
182
182
  get_ :with_custom_options, format: :csv, params: params
183
183
 
184
184
  expect(response.status).to eq 200
185
- expect(response.content_type).to eq 'text/csv'
185
+ expect(response.media_type).to eq 'text/csv'
186
186
 
187
187
  expected_content = <<-CSV.gsub(/^\s+/, '')
188
188
  "Fred"||"Flintstone"||"Fred Flintstone"ENDOFLINE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comma
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Crafter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-23 00:00:00.000000000 Z
12
+ date: 2020-12-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 4.2.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '6.1'
23
+ version: '6.2'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: 4.2.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '6.1'
33
+ version: '6.2'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: appraisal
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +130,8 @@ files:
130
130
  - gemfiles/active5.2.4.3.gemfile.lock
131
131
  - gemfiles/active6.0.3.1.gemfile
132
132
  - gemfiles/active6.0.3.1.gemfile.lock
133
+ - gemfiles/active6.1.0.gemfile
134
+ - gemfiles/active6.1.0.gemfile.lock
133
135
  - gemfiles/rails5.0.7.2.gemfile
134
136
  - gemfiles/rails5.0.7.2.gemfile.lock
135
137
  - gemfiles/rails5.1.7.gemfile
@@ -138,6 +140,8 @@ files:
138
140
  - gemfiles/rails5.2.4.3.gemfile.lock
139
141
  - gemfiles/rails6.0.3.1.gemfile
140
142
  - gemfiles/rails6.0.3.1.gemfile.lock
143
+ - gemfiles/rails6.1.0.gemfile
144
+ - gemfiles/rails6.1.0.gemfile.lock
141
145
  - init.rb
142
146
  - lib/comma.rb
143
147
  - lib/comma/array.rb
@@ -184,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
188
  - !ruby/object:Gem::Version
185
189
  version: '0'
186
190
  requirements: []
187
- rubygems_version: 3.1.2
191
+ rubygems_version: 3.1.4
188
192
  signing_key:
189
193
  specification_version: 4
190
194
  summary: Ruby Comma Seperated Values generation library