comma 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +26 -7
  3. data/Appraisals +1 -1
  4. data/Gemfile.lock +3 -3
  5. data/README.md +59 -0
  6. data/comma.gemspec +3 -5
  7. data/gemfiles/active4.1.16.gemfile.lock +4 -4
  8. data/gemfiles/active4.2.8.gemfile.lock +3 -3
  9. data/gemfiles/active5.0.1.gemfile.lock +3 -3
  10. data/gemfiles/active5.1.0.gemfile.lock +3 -3
  11. data/gemfiles/active5.2.0.gemfile +10 -0
  12. data/gemfiles/active5.2.0.gemfile.lock +106 -0
  13. data/gemfiles/rails4.1.16.gemfile.lock +16 -17
  14. data/gemfiles/rails4.2.8.gemfile.lock +3 -3
  15. data/gemfiles/rails5.0.1.gemfile.lock +3 -3
  16. data/gemfiles/rails5.1.0.gemfile.lock +3 -3
  17. data/gemfiles/rails5.2.0.gemfile +11 -0
  18. data/gemfiles/rails5.2.0.gemfile.lock +204 -0
  19. data/lib/comma.rb +2 -3
  20. data/lib/comma/data_extractor.rb +2 -4
  21. data/lib/comma/data_mapper_collection.rb +0 -2
  22. data/lib/comma/extractor.rb +0 -2
  23. data/lib/comma/generator.rb +2 -3
  24. data/lib/comma/header_extractor.rb +0 -1
  25. data/lib/comma/object.rb +0 -1
  26. data/lib/comma/version.rb +1 -1
  27. data/spec/comma/data_extractor_spec.rb +0 -1
  28. data/spec/comma/header_extractor_spec.rb +1 -2
  29. data/spec/comma/rails/active_record_spec.rb +0 -1
  30. data/spec/comma/rails/data_mapper_collection_spec.rb +0 -1
  31. data/spec/comma/rails/mongoid_spec.rb +0 -1
  32. data/spec/rails_app/active_record/config.rb +0 -2
  33. data/spec/rails_app/active_record/models.rb +0 -2
  34. data/spec/rails_app/data_mapper/config.rb +0 -2
  35. data/spec/rails_app/mongoid/config.rb +0 -2
  36. data/spec/rails_app/rails_app.rb +1 -2
  37. data/spec/spec_helper.rb +1 -2
  38. metadata +11 -7
  39. data/README.markdown +0 -353
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4dd3a4c6d04f89ab76f02535338b58404c28f796
4
- data.tar.gz: 6de4be3fa7a3445774dca45a0a1a853236c5d1fa
2
+ SHA256:
3
+ metadata.gz: b02d517f98eed136e0730795406aa4aef0a746ab7bcf17a85079615db2a61750
4
+ data.tar.gz: 87a0807f59d155d6728772b5998c20383f40dd8ebeda81b31600529c002d91f4
5
5
  SHA512:
6
- metadata.gz: a3eadfe100b0b1018904d340e119770f5dc19dd5f542a088e77ba75cb1befc9bd591566219683e8c11452436a2faa84527d782ef85f113d29e30d7ab0276df80
7
- data.tar.gz: e8b9d98ad277c624ce9173662edc5fa2e7b8c2de6cb15387c4ce30ca61014e7f9bc052084868e3a17a097563702c0b2591fd6108b1b33519107bec606bb0f79d
6
+ metadata.gz: 997614df5dd1f0d6c1b19507d7ad0ead2ee2132cd138389e75ce573ac0b89073d08101552e1e85fc71904ff965a22492da39de72cb6e82bc3c85ecbf02f0e5a3
7
+ data.tar.gz: c97395442a447a96cb5943b6b814b7927c182d4e1a42c0b69d2fbd4ceec7833ad1160dbda4f85c7aee528fec126ee0d476dd9203776723e9e51d58b66a4b186f
@@ -6,9 +6,10 @@ language: ruby
6
6
  cache: bundler
7
7
  rvm:
8
8
  - 2.1.10
9
- - 2.2.7
10
- - 2.3.4
11
- - 2.4.1
9
+ - 2.2.10
10
+ - 2.3.7
11
+ - 2.4.4
12
+ - 2.5.1
12
13
  - rbx-2
13
14
  - jruby
14
15
  gemfile:
@@ -16,27 +17,45 @@ gemfile:
16
17
  - gemfiles/active4.2.8.gemfile
17
18
  - gemfiles/active5.0.1.gemfile
18
19
  - gemfiles/active5.1.0.gemfile
20
+ - gemfiles/active5.2.0.gemfile
19
21
  - gemfiles/rails4.1.16.gemfile
20
22
  - gemfiles/rails4.2.8.gemfile
21
23
  - gemfiles/rails5.0.1.gemfile
22
24
  - gemfiles/rails5.1.0.gemfile
25
+ - gemfiles/rails5.2.0.gemfile
23
26
  matrix:
24
27
  exclude:
25
28
  - rvm: 2.1.10
26
29
  gemfile: gemfiles/active5.0.1.gemfile
27
30
  - rvm: 2.1.10
28
31
  gemfile: gemfiles/active5.1.0.gemfile
32
+ - rvm: 2.1.10
33
+ gemfile: gemfiles/active5.2.0.gemfile
29
34
  - rvm: 2.1.10
30
35
  gemfile: gemfiles/rails5.0.1.gemfile
31
36
  - rvm: 2.1.10
32
37
  gemfile: gemfiles/rails5.1.0.gemfile
33
- - rvm: 2.4.1
38
+ - rvm: 2.1.10
39
+ gemfile: gemfiles/rails5.2.0.gemfile
40
+ - rvm: 2.2.10
41
+ gemfile: gemfiles/active5.2.0.gemfile
42
+ - rvm: 2.2.10
43
+ gemfile: gemfiles/rails5.2.0.gemfile
44
+ - rvm: 2.4.4
45
+ gemfile: gemfiles/active4.1.16.gemfile
46
+ - rvm: 2.4.4
47
+ gemfile: gemfiles/active4.2.8.gemfile
48
+ - rvm: 2.4.4
49
+ gemfile: gemfiles/rails4.1.16.gemfile
50
+ - rvm: 2.4.4
51
+ gemfile: gemfiles/rails4.2.8.gemfile
52
+ - rvm: 2.5.1
34
53
  gemfile: gemfiles/active4.1.16.gemfile
35
- - rvm: 2.4.1
54
+ - rvm: 2.5.1
36
55
  gemfile: gemfiles/active4.2.8.gemfile
37
- - rvm: 2.4.1
56
+ - rvm: 2.5.1
38
57
  gemfile: gemfiles/rails4.1.16.gemfile
39
- - rvm: 2.4.1
58
+ - rvm: 2.5.1
40
59
  gemfile: gemfiles/rails4.2.8.gemfile
41
60
  allow_failures:
42
61
  - rvm: rbx-2
data/Appraisals CHANGED
@@ -1,4 +1,4 @@
1
- ['4.1.16', '4.2.8', '5.0.1', '5.1.0'].each do |version_number|
1
+ ['4.1.16', '4.2.8', '5.0.1', '5.1.0', '5.2.0'].each do |version_number|
2
2
  clean_number = version_number.gsub(/[<>~=]*/, '')
3
3
 
4
4
  appraise "rails#{clean_number}" do
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comma (4.1.0)
5
- activesupport (>= 4.0.0, < 5.2)
4
+ comma (4.2.0)
5
+ activesupport (>= 4.0.0, < 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -30,7 +30,7 @@ GEM
30
30
  diff-lcs (1.2.5)
31
31
  docile (1.1.5)
32
32
  i18n (0.7.0)
33
- json (1.8.2)
33
+ json (1.8.6)
34
34
  mime-types (1.25.1)
35
35
  minitest (5.9.0)
36
36
  multi_json (1.1.0)
@@ -0,0 +1,59 @@
1
+ # Comma
2
+
3
+ A library to generate comma seperated value (CSV) for Ruby objects like ActiveRecord and Array
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)
6
+
7
+ ## Getting Started
8
+
9
+ ### Prerequisites
10
+
11
+ You need to use ruby 2.1 or later. If you generate CSV from ActiveRecord models, you need to have ActiveRecord 4.x or later.
12
+
13
+ ### Installing
14
+
15
+ Comma is distributed as a gem, best installed via Bundler.
16
+
17
+ Include the gem in your Gemfile:
18
+
19
+ ```ruby
20
+ gem 'comma', '~> 4.2.0'
21
+ ```
22
+
23
+ Or, if you want to live life on the edge, you can get master from the main comma repository:
24
+
25
+ ```ruby
26
+ gem 'comma', git: 'git://github.com/comma-csv/comma.git'
27
+ ```
28
+
29
+ Then, run `bundle install`.
30
+
31
+ ### Usage
32
+
33
+ See [this page](https://github.com/comma-csv/comma/wiki) for usages.
34
+
35
+ ## Running the tests
36
+
37
+ To run the test suite across multiple gem file sets, we're using [Appraisal](https://github.com/thoughtbot/appraisal), use the following commands:
38
+
39
+ ```sh
40
+ $ bundle exec appraisal install
41
+ $ bundle exec appraisal rake spec
42
+
43
+ ```
44
+
45
+ ## Contributing
46
+
47
+ ## Versioning
48
+
49
+ We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/comma-csv/comma/tags).
50
+
51
+ ## Authors
52
+
53
+ * Marcus Crafter - Initial work
54
+ * Tom Meier - Initial work
55
+ * Eito Katagiri
56
+
57
+ ## License
58
+
59
+ This project is licensed under the MIT License - see the [MIT-LICENSE](https://github.com/comma-csv/comma/blob/master/MIT-LICENSE) file fore details.
@@ -1,6 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- $:.push File.expand_path("../lib", __FILE__)
1
+ $:.push File.expand_path("lib", __dir__)
4
2
  require "comma/version"
5
3
 
6
4
  Gem::Specification.new do |s|
@@ -8,7 +6,7 @@ Gem::Specification.new do |s|
8
6
  s.version = Comma::VERSION
9
7
  s.authors = ["Marcus Crafter", "Tom Meier"]
10
8
  s.email = ["crafterm@redartisan.com", "tom@venombytes.com"]
11
- s.homepage = "http://github.com/crafterm/comma"
9
+ s.homepage = "http://github.com/comma-csv/comma"
12
10
  s.summary = %q{Ruby Comma Seperated Values generation library}
13
11
  s.description = %q{Ruby Comma Seperated Values generation library}
14
12
 
@@ -20,7 +18,7 @@ Gem::Specification.new do |s|
20
18
 
21
19
  s.licenses = ['MIT']
22
20
 
23
- s.add_dependency 'activesupport', ['>= 4.0.0', '< 5.2']
21
+ s.add_dependency 'activesupport', ['>= 4.0.0', '< 6']
24
22
 
25
23
  s.add_development_dependency 'appraisal', ['~> 1.0.0']
26
24
  s.add_development_dependency 'rake', ['~> 10.5.0']
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.1.0)
5
- activesupport (>= 4.0.0, < 5.2)
4
+ comma (4.2.0)
5
+ activesupport (>= 4.0.0, < 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -36,7 +36,7 @@ GEM
36
36
  diff-lcs (1.2.5)
37
37
  docile (1.1.5)
38
38
  i18n (0.7.0)
39
- json (1.8.3)
39
+ json (1.8.6)
40
40
  minitest (5.9.0)
41
41
  parser (2.4.0.0)
42
42
  ast (~> 2.2)
@@ -103,4 +103,4 @@ DEPENDENCIES
103
103
  sqlite3 (~> 1.3.11)
104
104
 
105
105
  BUNDLED WITH
106
- 1.14.6
106
+ 1.16.1
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.1.0)
5
- activesupport (>= 4.0.0, < 5.2)
4
+ comma (4.2.0)
5
+ activesupport (>= 4.0.0, < 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -102,4 +102,4 @@ DEPENDENCIES
102
102
  sqlite3 (~> 1.3.11)
103
103
 
104
104
  BUNDLED WITH
105
- 1.14.6
105
+ 1.16.1
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.1.0)
5
- activesupport (>= 4.0.0, < 5.2)
4
+ comma (4.2.0)
5
+ activesupport (>= 4.0.0, < 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -101,4 +101,4 @@ DEPENDENCIES
101
101
  sqlite3 (~> 1.3.11)
102
102
 
103
103
  BUNDLED WITH
104
- 1.14.6
104
+ 1.16.1
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.1.0)
5
- activesupport (>= 4.0.0, < 5.2)
4
+ comma (4.2.0)
5
+ activesupport (>= 4.0.0, < 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -101,4 +101,4 @@ DEPENDENCIES
101
101
  sqlite3 (~> 1.3.11)
102
102
 
103
103
  BUNDLED WITH
104
- 1.14.6
104
+ 1.16.1
@@ -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.2.0"
8
+ gem "activerecord", "5.2.0"
9
+
10
+ gemspec :path => "../"
@@ -0,0 +1,106 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ comma (4.2.0)
5
+ activesupport (>= 4.0.0, < 6)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.2.0)
11
+ activesupport (= 5.2.0)
12
+ activerecord (5.2.0)
13
+ activemodel (= 5.2.0)
14
+ activesupport (= 5.2.0)
15
+ arel (>= 9.0)
16
+ activesupport (5.2.0)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ appraisal (1.0.3)
22
+ bundler
23
+ rake
24
+ thor (>= 0.14.0)
25
+ arel (9.0.0)
26
+ ast (2.4.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 (1.0.0)
37
+ concurrent-ruby (~> 1.0)
38
+ json (2.1.0)
39
+ minitest (5.11.3)
40
+ parallel (1.12.1)
41
+ parser (2.5.0.5)
42
+ ast (~> 2.4.0)
43
+ powerpack (0.1.1)
44
+ rainbow (3.0.0)
45
+ rake (10.5.0)
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.0.3)
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.2.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.54.0)
67
+ parallel (~> 1.10)
68
+ parser (>= 2.5)
69
+ powerpack (~> 0.1)
70
+ rainbow (>= 2.2.2, < 4.0)
71
+ ruby-progressbar (~> 1.7)
72
+ unicode-display_width (~> 1.0, >= 1.0.1)
73
+ ruby-progressbar (1.9.0)
74
+ simplecov (0.14.1)
75
+ docile (~> 1.1.0)
76
+ json (>= 1.8, < 3)
77
+ simplecov-html (~> 0.10.0)
78
+ simplecov-html (0.10.2)
79
+ sqlite3 (1.3.13)
80
+ term-ansicolor (1.6.0)
81
+ tins (~> 1.0)
82
+ thor (0.19.4)
83
+ thread_safe (0.3.6)
84
+ tins (1.16.3)
85
+ tzinfo (1.2.5)
86
+ thread_safe (~> 0.1)
87
+ unicode-display_width (1.3.0)
88
+
89
+ PLATFORMS
90
+ ruby
91
+
92
+ DEPENDENCIES
93
+ activerecord (= 5.2.0)
94
+ activesupport (= 5.2.0)
95
+ appraisal (~> 1.0.0)
96
+ comma!
97
+ coveralls
98
+ rake (~> 10.5.0)
99
+ rspec (~> 3.5.0)
100
+ rspec-activemodel-mocks
101
+ rspec-its
102
+ rubocop
103
+ sqlite3 (~> 1.3.11)
104
+
105
+ BUNDLED WITH
106
+ 1.16.1
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- comma (4.1.0)
5
- activesupport (>= 4.0.0, < 5.2)
4
+ comma (4.2.0)
5
+ activesupport (>= 4.0.0, < 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -39,8 +39,8 @@ GEM
39
39
  thor (>= 0.14.0)
40
40
  arel (5.0.1.20140414130214)
41
41
  ast (2.3.0)
42
- builder (3.2.2)
43
- concurrent-ruby (1.0.2)
42
+ builder (3.2.3)
43
+ concurrent-ruby (1.0.5)
44
44
  coveralls (0.8.15)
45
45
  json (>= 1.8, < 3)
46
46
  simplecov (~> 0.12.0)
@@ -50,14 +50,13 @@ GEM
50
50
  diff-lcs (1.2.5)
51
51
  docile (1.1.5)
52
52
  erubis (2.7.0)
53
- i18n (0.7.0)
54
- json (1.8.3)
55
- mail (2.6.4)
56
- mime-types (>= 1.16, < 4)
57
- mime-types (3.1)
58
- mime-types-data (~> 3.2015)
59
- mime-types-data (3.2016.0521)
60
- minitest (5.9.0)
53
+ i18n (0.9.5)
54
+ concurrent-ruby (~> 1.0)
55
+ json (1.8.6)
56
+ mail (2.7.0)
57
+ mini_mime (>= 0.1.1)
58
+ mini_mime (1.0.0)
59
+ minitest (5.11.3)
61
60
  parser (2.4.0.0)
62
61
  ast (~> 2.2)
63
62
  power_assert (0.3.0)
@@ -123,7 +122,7 @@ GEM
123
122
  json (>= 1.8, < 3)
124
123
  simplecov-html (~> 0.10.0)
125
124
  simplecov-html (0.10.0)
126
- sprockets (3.7.0)
125
+ sprockets (3.7.1)
127
126
  concurrent-ruby (~> 1.0)
128
127
  rack (> 1, < 3)
129
128
  sprockets-rails (2.3.3)
@@ -135,10 +134,10 @@ GEM
135
134
  tins (~> 1.0)
136
135
  test-unit (3.2.1)
137
136
  power_assert
138
- thor (0.19.1)
139
- thread_safe (0.3.5)
137
+ thor (0.19.4)
138
+ thread_safe (0.3.6)
140
139
  tins (1.12.0)
141
- tzinfo (1.2.2)
140
+ tzinfo (1.2.5)
142
141
  thread_safe (~> 0.1)
143
142
  unicode-display_width (1.2.1)
144
143
 
@@ -160,4 +159,4 @@ DEPENDENCIES
160
159
  test-unit
161
160
 
162
161
  BUNDLED WITH
163
- 1.14.6
162
+ 1.16.1