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
@@ -0,0 +1,289 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ comma (4.9.0)
5
+ activesupport (>= 4.2.0)
6
+ csv (>= 3.3)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (7.1.3)
12
+ actionpack (= 7.1.3)
13
+ activesupport (= 7.1.3)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (>= 0.6.1)
16
+ zeitwerk (~> 2.6)
17
+ actionmailbox (7.1.3)
18
+ actionpack (= 7.1.3)
19
+ activejob (= 7.1.3)
20
+ activerecord (= 7.1.3)
21
+ activestorage (= 7.1.3)
22
+ activesupport (= 7.1.3)
23
+ mail (>= 2.7.1)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.1.3)
28
+ actionpack (= 7.1.3)
29
+ actionview (= 7.1.3)
30
+ activejob (= 7.1.3)
31
+ activesupport (= 7.1.3)
32
+ mail (~> 2.5, >= 2.5.4)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
36
+ rails-dom-testing (~> 2.2)
37
+ actionpack (7.1.3)
38
+ actionview (= 7.1.3)
39
+ activesupport (= 7.1.3)
40
+ nokogiri (>= 1.8.5)
41
+ racc
42
+ rack (>= 2.2.4)
43
+ rack-session (>= 1.0.1)
44
+ rack-test (>= 0.6.3)
45
+ rails-dom-testing (~> 2.2)
46
+ rails-html-sanitizer (~> 1.6)
47
+ actiontext (7.1.3)
48
+ actionpack (= 7.1.3)
49
+ activerecord (= 7.1.3)
50
+ activestorage (= 7.1.3)
51
+ activesupport (= 7.1.3)
52
+ globalid (>= 0.6.0)
53
+ nokogiri (>= 1.8.5)
54
+ actionview (7.1.3)
55
+ activesupport (= 7.1.3)
56
+ builder (~> 3.1)
57
+ erubi (~> 1.11)
58
+ rails-dom-testing (~> 2.2)
59
+ rails-html-sanitizer (~> 1.6)
60
+ activejob (7.1.3)
61
+ activesupport (= 7.1.3)
62
+ globalid (>= 0.3.6)
63
+ activemodel (7.1.3)
64
+ activesupport (= 7.1.3)
65
+ activerecord (7.1.3)
66
+ activemodel (= 7.1.3)
67
+ activesupport (= 7.1.3)
68
+ timeout (>= 0.4.0)
69
+ activestorage (7.1.3)
70
+ actionpack (= 7.1.3)
71
+ activejob (= 7.1.3)
72
+ activerecord (= 7.1.3)
73
+ activesupport (= 7.1.3)
74
+ marcel (~> 1.0)
75
+ activesupport (7.1.3)
76
+ base64
77
+ bigdecimal
78
+ concurrent-ruby (~> 1.0, >= 1.0.2)
79
+ connection_pool (>= 2.2.5)
80
+ drb
81
+ i18n (>= 1.6, < 2)
82
+ minitest (>= 5.1)
83
+ mutex_m
84
+ tzinfo (~> 2.0)
85
+ appraisal (1.0.3)
86
+ bundler
87
+ rake
88
+ thor (>= 0.14.0)
89
+ ast (2.4.2)
90
+ base64 (0.3.0)
91
+ bigdecimal (4.1.2)
92
+ builder (3.2.4)
93
+ concurrent-ruby (1.3.6)
94
+ connection_pool (2.5.5)
95
+ coveralls (0.8.23)
96
+ json (>= 1.8, < 3)
97
+ simplecov (~> 0.16.1)
98
+ term-ansicolor (~> 1.3)
99
+ thor (>= 0.19.4, < 2.0)
100
+ tins (~> 1.6)
101
+ crass (1.0.6)
102
+ csv (3.3.5)
103
+ date (3.3.4)
104
+ diff-lcs (1.5.0)
105
+ docile (1.4.0)
106
+ drb (2.2.3)
107
+ erubi (1.12.0)
108
+ globalid (1.2.1)
109
+ activesupport (>= 6.1)
110
+ i18n (1.14.8)
111
+ concurrent-ruby (~> 1.0)
112
+ io-console (0.7.2)
113
+ irb (1.11.1)
114
+ rdoc
115
+ reline (>= 0.4.2)
116
+ json (2.7.1)
117
+ loofah (2.22.0)
118
+ crass (~> 1.0.2)
119
+ nokogiri (>= 1.12.0)
120
+ mail (2.8.1)
121
+ mini_mime (>= 0.1.1)
122
+ net-imap
123
+ net-pop
124
+ net-smtp
125
+ marcel (1.0.2)
126
+ mini_mime (1.1.5)
127
+ mini_portile2 (2.8.5)
128
+ minitest (5.14.4)
129
+ mutex_m (0.3.0)
130
+ net-imap (0.4.9.1)
131
+ date
132
+ net-protocol
133
+ net-pop (0.1.2)
134
+ net-protocol
135
+ net-protocol (0.2.2)
136
+ timeout
137
+ net-smtp (0.4.0.1)
138
+ net-protocol
139
+ nio4r (2.7.0)
140
+ nokogiri (1.16.0)
141
+ mini_portile2 (~> 2.8.2)
142
+ racc (~> 1.4)
143
+ nokogiri (1.16.0-x86_64-linux)
144
+ racc (~> 1.4)
145
+ parallel (1.24.0)
146
+ parser (3.3.0.4)
147
+ ast (~> 2.4.1)
148
+ racc
149
+ psych (5.1.2)
150
+ stringio
151
+ racc (1.7.3)
152
+ rack (3.0.8)
153
+ rack-session (2.0.0)
154
+ rack (>= 3.0.0)
155
+ rack-test (2.1.0)
156
+ rack (>= 1.3)
157
+ rackup (2.1.0)
158
+ rack (>= 3)
159
+ webrick (~> 1.8)
160
+ rails (7.1.3)
161
+ actioncable (= 7.1.3)
162
+ actionmailbox (= 7.1.3)
163
+ actionmailer (= 7.1.3)
164
+ actionpack (= 7.1.3)
165
+ actiontext (= 7.1.3)
166
+ actionview (= 7.1.3)
167
+ activejob (= 7.1.3)
168
+ activemodel (= 7.1.3)
169
+ activerecord (= 7.1.3)
170
+ activestorage (= 7.1.3)
171
+ activesupport (= 7.1.3)
172
+ bundler (>= 1.15.0)
173
+ railties (= 7.1.3)
174
+ rails-dom-testing (2.2.0)
175
+ activesupport (>= 5.0.0)
176
+ minitest
177
+ nokogiri (>= 1.6)
178
+ rails-html-sanitizer (1.6.0)
179
+ loofah (~> 2.21)
180
+ nokogiri (~> 1.14)
181
+ railties (7.1.3)
182
+ actionpack (= 7.1.3)
183
+ activesupport (= 7.1.3)
184
+ irb
185
+ rackup (>= 1.0.0)
186
+ rake (>= 12.2)
187
+ thor (~> 1.0, >= 1.2.2)
188
+ zeitwerk (~> 2.6)
189
+ rainbow (3.1.1)
190
+ rake (13.0.6)
191
+ rdoc (6.6.2)
192
+ psych (>= 4.0.0)
193
+ regexp_parser (2.9.0)
194
+ reline (0.4.2)
195
+ io-console (~> 0.5)
196
+ rexml (3.2.6)
197
+ rspec (3.5.0)
198
+ rspec-core (~> 3.5.0)
199
+ rspec-expectations (~> 3.5.0)
200
+ rspec-mocks (~> 3.5.0)
201
+ rspec-activemodel-mocks (1.2.0)
202
+ activemodel (>= 3.0)
203
+ activesupport (>= 3.0)
204
+ rspec-mocks (>= 2.99, < 4.0)
205
+ rspec-core (3.5.4)
206
+ rspec-support (~> 3.5.0)
207
+ rspec-expectations (3.5.0)
208
+ diff-lcs (>= 1.2.0, < 2.0)
209
+ rspec-support (~> 3.5.0)
210
+ rspec-its (1.3.0)
211
+ rspec-core (>= 3.0.0)
212
+ rspec-expectations (>= 3.0.0)
213
+ rspec-mocks (3.5.0)
214
+ diff-lcs (>= 1.2.0, < 2.0)
215
+ rspec-support (~> 3.5.0)
216
+ rspec-rails (3.5.2)
217
+ actionpack (>= 3.0)
218
+ activesupport (>= 3.0)
219
+ railties (>= 3.0)
220
+ rspec-core (~> 3.5.0)
221
+ rspec-expectations (~> 3.5.0)
222
+ rspec-mocks (~> 3.5.0)
223
+ rspec-support (~> 3.5.0)
224
+ rspec-support (3.5.0)
225
+ rubocop (1.30.1)
226
+ parallel (~> 1.10)
227
+ parser (>= 3.1.0.0)
228
+ rainbow (>= 2.2.2, < 4.0)
229
+ regexp_parser (>= 1.8, < 3.0)
230
+ rexml (>= 3.2.5, < 4.0)
231
+ rubocop-ast (>= 1.18.0, < 2.0)
232
+ ruby-progressbar (~> 1.7)
233
+ unicode-display_width (>= 1.4.0, < 3.0)
234
+ rubocop-ast (1.30.0)
235
+ parser (>= 3.2.1.0)
236
+ rubocop-performance (1.19.1)
237
+ rubocop (>= 1.7.0, < 2.0)
238
+ rubocop-ast (>= 0.4.0)
239
+ ruby-progressbar (1.13.0)
240
+ simplecov (0.16.1)
241
+ docile (~> 1.1)
242
+ json (>= 1.8, < 3)
243
+ simplecov-html (~> 0.10.0)
244
+ simplecov-html (0.10.2)
245
+ sqlite3 (1.7.0)
246
+ mini_portile2 (~> 2.8.0)
247
+ sqlite3 (1.7.0-x86_64-linux)
248
+ stringio (3.1.0)
249
+ sync (0.5.0)
250
+ term-ansicolor (1.7.1)
251
+ tins (~> 1.0)
252
+ thor (1.3.0)
253
+ timeout (0.4.1)
254
+ tins (1.32.1)
255
+ sync
256
+ tzinfo (2.0.6)
257
+ concurrent-ruby (~> 1.0)
258
+ unicode-display_width (2.5.0)
259
+ webrick (1.8.1)
260
+ websocket-driver (0.7.6)
261
+ websocket-extensions (>= 0.1.0)
262
+ websocket-extensions (0.1.5)
263
+ zeitwerk (2.6.12)
264
+
265
+ PLATFORMS
266
+ ruby
267
+ x86_64-linux
268
+
269
+ DEPENDENCIES
270
+ appraisal (~> 1.0.0)
271
+ base64
272
+ bigdecimal
273
+ comma!
274
+ coveralls
275
+ drb
276
+ minitest (= 5.14.4)
277
+ mutex_m
278
+ rails (= 7.1.3)
279
+ rake (~> 13.0.1)
280
+ rspec (~> 3.5.0)
281
+ rspec-activemodel-mocks
282
+ rspec-its
283
+ rspec-rails
284
+ rubocop (~> 1.30.0)
285
+ rubocop-performance
286
+ sqlite3
287
+
288
+ BUNDLED WITH
289
+ 2.5.5
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'comma/extractor'
4
+ require 'active_support'
4
5
  require 'active_support/core_ext/class/attribute'
5
6
  require 'active_support/core_ext/date_time/conversions'
6
7
  require 'active_support/core_ext/object/blank'
data/lib/comma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Comma
4
- VERSION = '4.7.0'
4
+ VERSION = '4.9.0'
5
5
  end
data/lib/comma.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'csv'
4
+ require 'logger'
4
5
  CSV_HANDLER = CSV
5
6
 
6
7
  module Comma
@@ -10,6 +11,7 @@ module Comma
10
11
  }.freeze
11
12
  end
12
13
 
14
+ require 'active_support'
13
15
  require 'active_support/lazy_load_hooks'
14
16
  ActiveSupport.on_load(:active_record) do
15
17
  require 'comma/relation' if defined?(ActiveRecord::Relation)
@@ -40,7 +40,7 @@ describe Comma, 'generating CSV' do # rubocop:disable Metrics/BlockLength
40
40
  end
41
41
 
42
42
  it 'should extend Array to add a #to_comma method which will return CSV content for objects within the array' do
43
- expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Metrics/LineLength
43
+ expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Layout/LineLength
44
44
  expect(@books.to_comma).to eq(expected)
45
45
  end
46
46
 
@@ -57,25 +57,25 @@ describe Comma, 'generating CSV' do # rubocop:disable Metrics/BlockLength
57
57
 
58
58
  it 'should write to the file' do
59
59
  @books.to_comma(filename: 'comma.csv')
60
- expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Metrics/LineLength
60
+ expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Layout/LineLength
61
61
  expect(File.read('comma.csv')).to eq(expected)
62
62
  end
63
63
 
64
64
  it 'should accept FasterCSV options' do
65
65
  @books.to_comma(filename: 'comma.csv', col_sep: ';', force_quotes: true)
66
- expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Metrics/LineLength
66
+ expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Layout/LineLength
67
67
  expect(File.read('comma.csv')).to eq(expected)
68
68
  end
69
69
  end
70
70
 
71
71
  describe 'with FasterCSV options' do
72
72
  it 'should not change when options are empty' do
73
- expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Metrics/LineLength
73
+ expected = "Title,Description,Issuer,ISBN-10,ISBN-13\nSmalltalk-80,Language and Implementation,ISBN,123123123,321321321\n" # rubocop:disable Layout/LineLength
74
74
  expect(@books.to_comma({})).to eq(expected)
75
75
  end
76
76
 
77
77
  it 'should accept the options in #to_comma and generate the appropriate CSV' do
78
- expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Metrics/LineLength
78
+ expected = "\"Title\";\"Description\";\"Issuer\";\"ISBN-10\";\"ISBN-13\"\n\"Smalltalk-80\";\"Language and Implementation\";\"ISBN\";\"123123123\";\"321321321\"\n" # rubocop:disable Layout/LineLength
79
79
  expect(@books.to_comma(col_sep: ';', force_quotes: true)).to eq(expected)
80
80
  end
81
81
 
@@ -177,17 +177,17 @@ describe Comma, 'to_comma data/headers object extensions' do # rubocop:disable M
177
177
  end
178
178
  end
179
179
 
180
- describe 'with block' do # rubocop:disable BlockLength
180
+ describe 'with block' do # rubocop:disable Metrics/BlockLength
181
181
  before do
182
182
  class Foo
183
183
  attr_accessor :content, :created_at, :updated_at
184
184
  comma do
185
185
  content
186
186
  content('Truncated Content') { |i| i && i.length > 10 ? i[0..10] : '---' }
187
- created_at { |i| i&.to_s(:db) }
188
- updated_at { |i| i&.to_s(:db) }
189
- created_at 'Created Custom Label' do |i| i&.to_s(:short) end
190
- updated_at 'Updated at Custom Label' do |i| i&.to_s(:short) end
187
+ created_at { |i| i&.to_formatted_s(:db) }
188
+ updated_at { |i| i&.to_formatted_s(:db) }
189
+ created_at 'Created Custom Label' do |i| i&.to_formatted_s(:short) end
190
+ updated_at 'Updated at Custom Label' do |i| i&.to_formatted_s(:short) end
191
191
  end
192
192
 
193
193
  def initialize(content, created_at = Time.now, updated_at = Time.now)
@@ -207,10 +207,10 @@ describe Comma, 'to_comma data/headers object extensions' do # rubocop:disable M
207
207
  expected = [
208
208
  @content,
209
209
  @content[0..10],
210
- @time.to_s(:db),
211
- @time.to_s(:db),
212
- @time.to_s(:short),
213
- @time.to_s(:short)
210
+ @time.to_formatted_s(:db),
211
+ @time.to_formatted_s(:db),
212
+ @time.to_formatted_s(:short),
213
+ @time.to_formatted_s(:short)
214
214
  ].join(',')
215
215
  expect(foo).to eq(expected)
216
216
  end
@@ -246,10 +246,10 @@ describe Comma, 'to_comma data/headers object extensions' do # rubocop:disable M
246
246
  expected = [
247
247
  @content,
248
248
  @content[0..10],
249
- @time.to_s(:db),
250
- @time.to_s(:db),
251
- @time.to_s(:short),
252
- @time.to_s(:short)
249
+ @time.to_formatted_s(:db),
250
+ @time.to_formatted_s(:db),
251
+ @time.to_formatted_s(:short),
252
+ @time.to_formatted_s(:short)
253
253
  ].join(',')
254
254
  expect(header).to eq(expected)
255
255
  end
@@ -79,7 +79,7 @@ if defined? ActiveRecord
79
79
  end
80
80
 
81
81
  describe '#to_comma on scopes' do
82
- it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Metrics/LineLength
82
+ it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Layout/LineLength
83
83
  expect(Person.teenagers.to_comma).to eq "Name,Age\nJunior,18\n"
84
84
  end
85
85
 
@@ -29,7 +29,7 @@ if defined? Mongoid
29
29
  @person.save
30
30
  end
31
31
 
32
- it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Metrics/LineLength
32
+ it 'should extend ActiveRecord::NamedScope::Scope to add a #to_comma method which will return CSV content for objects within the scope' do # rubocop:disable Layout/LineLength
33
33
  Person.teenagers.to_comma.should == "Name,Age\nJunior,18\n"
34
34
  end
35
35
 
data/spec/spec_helper.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'rubygems'
4
4
  $LOAD_PATH.unshift(File.expand_path(File.join('..', '..', 'lib'), __FILE__))
5
5
 
6
+ require 'logger'
6
7
  require 'simplecov'
7
8
  require 'coveralls'
8
9
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comma
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Crafter
8
8
  - Tom Meier
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-29 00:00:00.000000000 Z
12
+ date: 2026-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -25,6 +25,20 @@ dependencies:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 4.2.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: csv
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '3.3'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '3.3'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: appraisal
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -39,6 +53,48 @@ dependencies:
39
53
  - - "~>"
40
54
  - !ruby/object:Gem::Version
41
55
  version: 1.0.0
56
+ - !ruby/object:Gem::Dependency
57
+ name: base64
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: bigdecimal
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: drb
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
42
98
  - !ruby/object:Gem::Dependency
43
99
  name: minitest
44
100
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +109,20 @@ dependencies:
53
109
  - - '='
54
110
  - !ruby/object:Gem::Version
55
111
  version: 5.14.4
112
+ - !ruby/object:Gem::Dependency
113
+ name: mutex_m
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
56
126
  - !ruby/object:Gem::Dependency
57
127
  name: rake
58
128
  requirement: !ruby/object:Gem::Requirement
@@ -131,22 +201,22 @@ files:
131
201
  - README.md
132
202
  - Rakefile
133
203
  - comma.gemspec
134
- - gemfiles/active5.2.5.gemfile
135
- - gemfiles/active5.2.5.gemfile.lock
136
- - gemfiles/active6.0.3.6.gemfile
137
- - gemfiles/active6.0.3.6.gemfile.lock
138
- - gemfiles/active6.1.3.1.gemfile
139
- - gemfiles/active6.1.3.1.gemfile.lock
140
- - gemfiles/active7.0.0.gemfile
141
- - gemfiles/active7.0.0.gemfile.lock
142
- - gemfiles/rails5.2.5.gemfile
143
- - gemfiles/rails5.2.5.gemfile.lock
144
- - gemfiles/rails6.0.3.6.gemfile
145
- - gemfiles/rails6.0.3.6.gemfile.lock
146
- - gemfiles/rails6.1.3.1.gemfile
147
- - gemfiles/rails6.1.3.1.gemfile.lock
148
- - gemfiles/rails7.0.0.gemfile
149
- - gemfiles/rails7.0.0.gemfile.lock
204
+ - gemfiles/active6.0.6.gemfile
205
+ - gemfiles/active6.0.6.gemfile.lock
206
+ - gemfiles/active6.1.7.6.gemfile
207
+ - gemfiles/active6.1.7.6.gemfile.lock
208
+ - gemfiles/active7.0.8.gemfile
209
+ - gemfiles/active7.0.8.gemfile.lock
210
+ - gemfiles/active7.1.3.gemfile
211
+ - gemfiles/active7.1.3.gemfile.lock
212
+ - gemfiles/rails6.0.6.gemfile
213
+ - gemfiles/rails6.0.6.gemfile.lock
214
+ - gemfiles/rails6.1.7.6.gemfile
215
+ - gemfiles/rails6.1.7.6.gemfile.lock
216
+ - gemfiles/rails7.0.8.gemfile
217
+ - gemfiles/rails7.0.8.gemfile.lock
218
+ - gemfiles/rails7.1.3.gemfile
219
+ - gemfiles/rails7.1.3.gemfile.lock
150
220
  - init.rb
151
221
  - lib/comma.rb
152
222
  - lib/comma/array.rb
@@ -178,7 +248,7 @@ homepage: http://github.com/comma-csv/comma
178
248
  licenses:
179
249
  - MIT
180
250
  metadata: {}
181
- post_install_message:
251
+ post_install_message:
182
252
  rdoc_options: []
183
253
  require_paths:
184
254
  - lib
@@ -193,8 +263,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
263
  - !ruby/object:Gem::Version
194
264
  version: '0'
195
265
  requirements: []
196
- rubygems_version: 3.1.6
197
- signing_key:
266
+ rubygems_version: 3.5.15
267
+ signing_key:
198
268
  specification_version: 4
199
269
  summary: Ruby Comma Seperated Values generation library
200
- test_files: []
270
+ test_files:
271
+ - spec/comma/comma_spec.rb
272
+ - spec/comma/data_extractor_spec.rb
273
+ - spec/comma/header_extractor_spec.rb
274
+ - spec/comma/rails/active_record_spec.rb
275
+ - spec/comma/rails/data_mapper_collection_spec.rb
276
+ - spec/comma/rails/mongoid_spec.rb
277
+ - spec/controllers/users_controller_spec.rb
278
+ - spec/non_rails_app/ruby_classes.rb
279
+ - spec/rails_app/active_record/config.rb
280
+ - spec/rails_app/active_record/models.rb
281
+ - spec/rails_app/data_mapper/config.rb
282
+ - spec/rails_app/mongoid/config.rb
283
+ - spec/rails_app/rails_app.rb
284
+ - spec/rails_app/tmp/.gitkeep
285
+ - spec/spec_helper.rb
@@ -1,12 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "coveralls", :require => false
6
- gem "rubocop", "~> 1.0.0", :require => false
7
- gem "rubocop-performance", :require => false
8
- gem "sqlite3"
9
- gem "activesupport", "6.0.3.6"
10
- gem "activerecord", "6.0.3.6"
11
-
12
- gemspec :path => "../"
@@ -1,14 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "coveralls", :require => false
6
- gem "rubocop", "~> 1.0.0", :require => false
7
- gem "rubocop-performance", :require => false
8
- gem "sqlite3", "~> 1.3.11"
9
- gem "rails", "5.2.5"
10
- gem "rspec-rails"
11
- gem "sprockets", "< 4"
12
- gem "test-unit"
13
-
14
- gemspec :path => "../"