comma 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/{spec/spec.opts → .rspec} +0 -0
- data/.travis.yml +51 -4
- data/Appraisals +3 -3
- data/Gemfile.lock +1 -1
- data/README.markdown +3 -3
- data/Rakefile +2 -1
- data/gemfiles/active3.0.20.gemfile.lock +1 -1
- data/gemfiles/active3.1.12.gemfile.lock +1 -1
- data/gemfiles/{active3.2.14.gemfile → active3.2.17.gemfile} +2 -2
- data/gemfiles/{active3.2.14.gemfile.lock → active3.2.17.gemfile.lock} +20 -18
- data/gemfiles/{active4.0.0.gemfile → active4.0.4.gemfile} +2 -2
- data/gemfiles/{active4.0.0.gemfile.lock → active4.0.4.gemfile.lock} +24 -22
- data/gemfiles/active4.1.1.gemfile +9 -0
- data/gemfiles/active4.1.1.gemfile.lock +66 -0
- data/gemfiles/data_mapper1.2.0.gemfile.lock +1 -1
- data/gemfiles/{mongoid3.1.4.gemfile → mongoid3.1.6.gemfile} +1 -1
- data/gemfiles/{mongoid3.1.4.gemfile.lock → mongoid3.1.6.gemfile.lock} +18 -16
- data/gemfiles/rails3.0.20.gemfile.lock +1 -1
- data/gemfiles/rails3.1.12.gemfile.lock +1 -1
- data/gemfiles/{rails3.2.14.gemfile → rails3.2.17.gemfile} +1 -1
- data/gemfiles/{rails3.2.14.gemfile.lock → rails3.2.17.gemfile.lock} +42 -40
- data/gemfiles/{rails4.0.0.gemfile → rails4.0.4.gemfile} +1 -1
- data/gemfiles/{rails4.0.0.gemfile.lock → rails4.0.4.gemfile.lock} +43 -41
- data/gemfiles/rails4.1.1.gemfile +9 -0
- data/gemfiles/rails4.1.1.gemfile.lock +123 -0
- data/lib/comma.rb +1 -1
- data/lib/comma/header_extractor.rb +5 -3
- data/lib/comma/version.rb +1 -1
- data/spec/comma/rails/active_record_spec.rb +48 -0
- data/spec/controllers/users_controller_spec.rb +17 -4
- data/spec/rails_app/active_record/config.rb +4 -0
- data/spec/rails_app/active_record/models.rb +53 -0
- data/spec/rails_app/data_mapper/config.rb +3 -0
- data/spec/rails_app/mongoid/config.rb +9 -0
- data/spec/rails_app/rails_app.rb +54 -0
- data/spec/spec_helper.rb +15 -45
- metadata +114 -186
- data/spec/rails_app/Rakefile +0 -7
- data/spec/rails_app/app/controllers/application_controller.rb +0 -2
- data/spec/rails_app/app/controllers/users_controller.rb +0 -23
- data/spec/rails_app/app/helpers/application_helper.rb +0 -3
- data/spec/rails_app/app/models/post.rb +0 -10
- data/spec/rails_app/app/models/user.rb +0 -16
- data/spec/rails_app/app/views/layouts/application.html.erb +0 -12
- data/spec/rails_app/app/views/users/index.html.erb +0 -1
- data/spec/rails_app/config.ru +0 -4
- data/spec/rails_app/config/application.rb +0 -42
- data/spec/rails_app/config/boot.rb +0 -8
- data/spec/rails_app/config/database.yml +0 -18
- data/spec/rails_app/config/environment.rb +0 -5
- data/spec/rails_app/config/environments/development.rb +0 -19
- data/spec/rails_app/config/environments/production.rb +0 -37
- data/spec/rails_app/config/environments/test.rb +0 -32
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails_app/config/initializers/inflections.rb +0 -2
- data/spec/rails_app/config/initializers/secret_token.rb +0 -2
- data/spec/rails_app/config/routes.rb +0 -9
- data/spec/rails_app/db/migrate/20120224085510_create_tables.rb +0 -24
- data/spec/rails_app/db/schema.rb +0 -32
- data/spec/rails_app/public/404.html +0 -26
- data/spec/rails_app/public/422.html +0 -26
- data/spec/rails_app/public/500.html +0 -26
- data/spec/rails_app/public/favicon.ico +0 -0
- data/spec/rails_app/script/rails +0 -6
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1148831b95a426abff5aabe2b4df1819104d0dbb
|
4
|
+
data.tar.gz: 785c98020b1551dc55dc60dbf2337b8d80367acb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2141128fdb4407e95e14a5a4b0559a1abee06dcb66f473d85e77ff1efb1ca29795033b72e79898a70f575a3f0cdd5eb64a7412f819482825dbce21641c7d314e
|
7
|
+
data.tar.gz: 73a43cc8f172653e40f42d6e1fe60a22c5c09cfd74889014ce18f424eb7711d9070932a9d927b975f1aee1b155ad07f49d36427196a27256b6a31c0e980588f8
|
data/{spec/spec.opts → .rspec}
RENAMED
File without changes
|
data/.travis.yml
CHANGED
@@ -7,7 +7,54 @@ rvm:
|
|
7
7
|
- '1.9.2'
|
8
8
|
- '1.9.3'
|
9
9
|
- '2.0.0'
|
10
|
-
- '
|
11
|
-
- 'rbx-
|
12
|
-
|
13
|
-
|
10
|
+
- '2.1.0'
|
11
|
+
- 'rbx-2.1.1'
|
12
|
+
gemfile:
|
13
|
+
- gemfiles/active3.0.20.gemfile
|
14
|
+
- gemfiles/active3.1.12.gemfile
|
15
|
+
- gemfiles/active3.2.17.gemfile
|
16
|
+
- gemfiles/active4.0.4.gemfile
|
17
|
+
- gemfiles/active4.1.1.gemfile
|
18
|
+
- gemfiles/data_mapper1.2.0.gemfile
|
19
|
+
- gemfiles/mongoid3.1.6.gemfile
|
20
|
+
- gemfiles/rails3.0.20.gemfile
|
21
|
+
- gemfiles/rails3.1.12.gemfile
|
22
|
+
- gemfiles/rails3.2.17.gemfile
|
23
|
+
- gemfiles/rails4.0.4.gemfile
|
24
|
+
- gemfiles/rails4.1.1.gemfile
|
25
|
+
matrix:
|
26
|
+
exclude:
|
27
|
+
- rvm: ree
|
28
|
+
gemfile: gemfiles/active4.0.4.gemfile
|
29
|
+
- rvm: ree
|
30
|
+
gemfile: gemfiles/active4.1.1.gemfile
|
31
|
+
- rvm: ree
|
32
|
+
gemfile: gemfiles/mongoid3.1.6.gemfile
|
33
|
+
- rvm: ree
|
34
|
+
gemfile: gemfiles/rails4.0.4.gemfile
|
35
|
+
- rvm: ree
|
36
|
+
gemfile: gemfiles/rails4.1.1.gemfile
|
37
|
+
- rvm: 1.8.7
|
38
|
+
gemfile: gemfiles/active4.0.4.gemfile
|
39
|
+
- rvm: 1.8.7
|
40
|
+
gemfile: gemfiles/active4.1.1.gemfile
|
41
|
+
- rvm: 1.8.7
|
42
|
+
gemfile: gemfiles/mongoid3.1.6.gemfile
|
43
|
+
- rvm: 1.8.7
|
44
|
+
gemfile: gemfiles/rails4.0.4.gemfile
|
45
|
+
- rvm: 1.8.7
|
46
|
+
gemfile: gemfiles/rails4.1.1.gemfile
|
47
|
+
- rvm: 1.9.2
|
48
|
+
gemfile: gemfiles/active4.0.4.gemfile
|
49
|
+
- rvm: 1.9.2
|
50
|
+
gemfile: gemfiles/active4.1.1.gemfile
|
51
|
+
- rvm: 1.9.2
|
52
|
+
gemfile: gemfiles/mongoid3.1.6.gemfile
|
53
|
+
- rvm: 1.9.2
|
54
|
+
gemfile: gemfiles/rails4.0.4.gemfile
|
55
|
+
- rvm: 1.9.2
|
56
|
+
gemfile: gemfiles/rails4.1.1.gemfile
|
57
|
+
allow_failures:
|
58
|
+
- rvm: rbx-2.1.1
|
59
|
+
fast_finish: true
|
60
|
+
script: 'bundle exec rake spec'
|
data/Appraisals
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
['3.0.20', '3.1.12', '3.2.
|
1
|
+
['3.0.20', '3.1.12', '3.2.17', '4.0.4', '4.1.1'].each do |version_number|
|
2
2
|
clean_number = version_number.gsub(/[<>~=]*/, '')
|
3
3
|
next if RUBY_VERSION < '1.9.3' && version_number >= '4.0.0'
|
4
4
|
|
@@ -14,8 +14,8 @@
|
|
14
14
|
end
|
15
15
|
|
16
16
|
if RUBY_VERSION >= '1.9.3'
|
17
|
-
appraise 'mongoid3.1.
|
18
|
-
gem 'mongoid', '3.1.
|
17
|
+
appraise 'mongoid3.1.6' do
|
18
|
+
gem 'mongoid', '3.1.6'
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
data/Gemfile.lock
CHANGED
data/README.markdown
CHANGED
@@ -7,10 +7,10 @@ http://github.com/comma-csv/comma
|
|
7
7
|
##COMPATIBILITY
|
8
8
|
The mainline of this project builds gems to the 3.x version series, and is compatible and tested with :
|
9
9
|
|
10
|
-
* Ruby 1.8.7, 1.9.2, 1.9.3, 2.0.0
|
10
|
+
* Ruby 1.8.7, 1.9.2, 1.9.3, 2.0.0, 2.1
|
11
11
|
* REE 1.8.7
|
12
12
|
* RBX 1.8 mode, 1.9 mode
|
13
|
-
* Rails 3.x (all versions, with ActiveRecord, DataMapper and Mongoid support)
|
13
|
+
* Rails 3.x, 4.x (all versions, with ActiveRecord, DataMapper and Mongoid support)
|
14
14
|
|
15
15
|
[![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)
|
16
16
|
|
@@ -24,7 +24,7 @@ Comma is distributed as a gem, best installed via Bundler.
|
|
24
24
|
Include the gem in your Gemfile:
|
25
25
|
|
26
26
|
```Ruby
|
27
|
-
gem "comma", "~> 3.1
|
27
|
+
gem "comma", "~> 3.2.1"
|
28
28
|
```
|
29
29
|
|
30
30
|
Or, if you want to live life on the edge, you can get master from the main comma repository:
|
data/Rakefile
CHANGED
@@ -1,32 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
comma (3.2.
|
4
|
+
comma (3.2.1)
|
5
5
|
activesupport (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (3.2.
|
11
|
-
activesupport (= 3.2.
|
10
|
+
activemodel (3.2.17)
|
11
|
+
activesupport (= 3.2.17)
|
12
12
|
builder (~> 3.0.0)
|
13
|
-
activerecord (3.2.
|
14
|
-
activemodel (= 3.2.
|
15
|
-
activesupport (= 3.2.
|
13
|
+
activerecord (3.2.17)
|
14
|
+
activemodel (= 3.2.17)
|
15
|
+
activesupport (= 3.2.17)
|
16
16
|
arel (~> 3.0.2)
|
17
17
|
tzinfo (~> 0.3.29)
|
18
|
-
activesupport (3.2.
|
18
|
+
activesupport (3.2.17)
|
19
19
|
i18n (~> 0.6, >= 0.6.4)
|
20
20
|
multi_json (~> 1.0)
|
21
21
|
appraisal (0.4.1)
|
22
22
|
bundler
|
23
23
|
rake
|
24
|
-
arel (3.0.
|
24
|
+
arel (3.0.3)
|
25
25
|
builder (3.0.4)
|
26
26
|
diff-lcs (1.1.3)
|
27
|
+
docile (1.1.3)
|
27
28
|
fastercsv (1.5.5)
|
28
|
-
i18n (0.6.
|
29
|
-
multi_json (1.
|
29
|
+
i18n (0.6.9)
|
30
|
+
multi_json (1.9.2)
|
30
31
|
rake (0.9.6)
|
31
32
|
rspec (2.8.0)
|
32
33
|
rspec-core (~> 2.8.0)
|
@@ -36,19 +37,20 @@ GEM
|
|
36
37
|
rspec-expectations (2.8.0)
|
37
38
|
diff-lcs (~> 1.1.2)
|
38
39
|
rspec-mocks (2.8.0)
|
39
|
-
simplecov (0.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
simplecov (0.8.2)
|
41
|
+
docile (~> 1.1.0)
|
42
|
+
multi_json
|
43
|
+
simplecov-html (~> 0.8.0)
|
44
|
+
simplecov-html (0.8.0)
|
45
|
+
sqlite3 (1.3.9)
|
46
|
+
tzinfo (0.3.39)
|
45
47
|
|
46
48
|
PLATFORMS
|
47
49
|
ruby
|
48
50
|
|
49
51
|
DEPENDENCIES
|
50
|
-
activerecord (= 3.2.
|
51
|
-
activesupport (= 3.2.
|
52
|
+
activerecord (= 3.2.17)
|
53
|
+
activesupport (= 3.2.17)
|
52
54
|
appraisal (~> 0.4.1)
|
53
55
|
comma!
|
54
56
|
fastercsv
|
@@ -1,23 +1,23 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
comma (3.
|
4
|
+
comma (3.2.1)
|
5
5
|
activesupport (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (4.0.
|
11
|
-
activesupport (= 4.0.
|
10
|
+
activemodel (4.0.4)
|
11
|
+
activesupport (= 4.0.4)
|
12
12
|
builder (~> 3.1.0)
|
13
|
-
activerecord (4.0.
|
14
|
-
activemodel (= 4.0.
|
13
|
+
activerecord (4.0.4)
|
14
|
+
activemodel (= 4.0.4)
|
15
15
|
activerecord-deprecated_finders (~> 1.0.2)
|
16
|
-
activesupport (= 4.0.
|
16
|
+
activesupport (= 4.0.4)
|
17
17
|
arel (~> 4.0.0)
|
18
18
|
activerecord-deprecated_finders (1.0.3)
|
19
|
-
activesupport (4.0.
|
20
|
-
i18n (~> 0.6, >= 0.6.
|
19
|
+
activesupport (4.0.4)
|
20
|
+
i18n (~> 0.6, >= 0.6.9)
|
21
21
|
minitest (~> 4.2)
|
22
22
|
multi_json (~> 1.3)
|
23
23
|
thread_safe (~> 0.1)
|
@@ -25,14 +25,15 @@ GEM
|
|
25
25
|
appraisal (0.4.1)
|
26
26
|
bundler
|
27
27
|
rake
|
28
|
-
arel (4.0.
|
29
|
-
atomic (1.1.
|
28
|
+
arel (4.0.2)
|
29
|
+
atomic (1.1.16)
|
30
30
|
builder (3.1.4)
|
31
31
|
diff-lcs (1.1.3)
|
32
|
+
docile (1.1.3)
|
32
33
|
fastercsv (1.5.5)
|
33
|
-
i18n (0.6.
|
34
|
+
i18n (0.6.9)
|
34
35
|
minitest (4.7.5)
|
35
|
-
multi_json (1.
|
36
|
+
multi_json (1.9.2)
|
36
37
|
rake (0.9.6)
|
37
38
|
rspec (2.8.0)
|
38
39
|
rspec-core (~> 2.8.0)
|
@@ -42,21 +43,22 @@ GEM
|
|
42
43
|
rspec-expectations (2.8.0)
|
43
44
|
diff-lcs (~> 1.1.2)
|
44
45
|
rspec-mocks (2.8.0)
|
45
|
-
simplecov (0.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
46
|
+
simplecov (0.8.2)
|
47
|
+
docile (~> 1.1.0)
|
48
|
+
multi_json
|
49
|
+
simplecov-html (~> 0.8.0)
|
50
|
+
simplecov-html (0.8.0)
|
51
|
+
sqlite3 (1.3.9)
|
52
|
+
thread_safe (0.3.1)
|
53
|
+
atomic (>= 1.1.7, < 2)
|
54
|
+
tzinfo (0.3.39)
|
53
55
|
|
54
56
|
PLATFORMS
|
55
57
|
ruby
|
56
58
|
|
57
59
|
DEPENDENCIES
|
58
|
-
activerecord (= 4.0.
|
59
|
-
activesupport (= 4.0.
|
60
|
+
activerecord (= 4.0.4)
|
61
|
+
activesupport (= 4.0.4)
|
60
62
|
appraisal (~> 0.4.1)
|
61
63
|
comma!
|
62
64
|
fastercsv
|
@@ -0,0 +1,66 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
comma (3.2.1)
|
5
|
+
activesupport (>= 3.0.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (4.1.1)
|
11
|
+
activesupport (= 4.1.1)
|
12
|
+
builder (~> 3.1)
|
13
|
+
activerecord (4.1.1)
|
14
|
+
activemodel (= 4.1.1)
|
15
|
+
activesupport (= 4.1.1)
|
16
|
+
arel (~> 5.0.0)
|
17
|
+
activesupport (4.1.1)
|
18
|
+
i18n (~> 0.6, >= 0.6.9)
|
19
|
+
json (~> 1.7, >= 1.7.7)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
thread_safe (~> 0.1)
|
22
|
+
tzinfo (~> 1.1)
|
23
|
+
appraisal (0.4.1)
|
24
|
+
bundler
|
25
|
+
rake
|
26
|
+
arel (5.0.1.20140414130214)
|
27
|
+
builder (3.2.2)
|
28
|
+
diff-lcs (1.1.3)
|
29
|
+
docile (1.1.3)
|
30
|
+
fastercsv (1.5.5)
|
31
|
+
i18n (0.6.9)
|
32
|
+
json (1.8.1)
|
33
|
+
minitest (5.3.3)
|
34
|
+
multi_json (1.10.0)
|
35
|
+
rake (0.9.6)
|
36
|
+
rspec (2.8.0)
|
37
|
+
rspec-core (~> 2.8.0)
|
38
|
+
rspec-expectations (~> 2.8.0)
|
39
|
+
rspec-mocks (~> 2.8.0)
|
40
|
+
rspec-core (2.8.0)
|
41
|
+
rspec-expectations (2.8.0)
|
42
|
+
diff-lcs (~> 1.1.2)
|
43
|
+
rspec-mocks (2.8.0)
|
44
|
+
simplecov (0.8.2)
|
45
|
+
docile (~> 1.1.0)
|
46
|
+
multi_json
|
47
|
+
simplecov-html (~> 0.8.0)
|
48
|
+
simplecov-html (0.8.0)
|
49
|
+
sqlite3 (1.3.9)
|
50
|
+
thread_safe (0.3.3)
|
51
|
+
tzinfo (1.1.0)
|
52
|
+
thread_safe (~> 0.1)
|
53
|
+
|
54
|
+
PLATFORMS
|
55
|
+
ruby
|
56
|
+
|
57
|
+
DEPENDENCIES
|
58
|
+
activerecord (= 4.1.1)
|
59
|
+
activesupport (= 4.1.1)
|
60
|
+
appraisal (~> 0.4.1)
|
61
|
+
comma!
|
62
|
+
fastercsv
|
63
|
+
rake (~> 0.9.2)
|
64
|
+
rspec (~> 2.8.0)
|
65
|
+
simplecov
|
66
|
+
sqlite3 (~> 1.3.4)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
comma (3.
|
4
|
+
comma (3.2.1)
|
5
5
|
activesupport (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (3.2.
|
11
|
-
activesupport (= 3.2.
|
10
|
+
activemodel (3.2.17)
|
11
|
+
activesupport (= 3.2.17)
|
12
12
|
builder (~> 3.0.0)
|
13
|
-
activesupport (3.2.
|
13
|
+
activesupport (3.2.17)
|
14
14
|
i18n (~> 0.6, >= 0.6.4)
|
15
15
|
multi_json (~> 1.0)
|
16
16
|
appraisal (0.4.1)
|
@@ -18,15 +18,16 @@ GEM
|
|
18
18
|
rake
|
19
19
|
builder (3.0.4)
|
20
20
|
diff-lcs (1.1.3)
|
21
|
+
docile (1.1.3)
|
21
22
|
fastercsv (1.5.5)
|
22
|
-
i18n (0.6.
|
23
|
-
mongoid (3.1.
|
23
|
+
i18n (0.6.9)
|
24
|
+
mongoid (3.1.6)
|
24
25
|
activemodel (~> 3.2)
|
25
26
|
moped (~> 1.4)
|
26
27
|
origin (~> 1.0)
|
27
|
-
tzinfo (~> 0.3.
|
28
|
-
moped (1.5.
|
29
|
-
multi_json (1.
|
28
|
+
tzinfo (~> 0.3.29)
|
29
|
+
moped (1.5.2)
|
30
|
+
multi_json (1.9.2)
|
30
31
|
origin (1.1.0)
|
31
32
|
rake (0.9.6)
|
32
33
|
rspec (2.8.0)
|
@@ -37,12 +38,13 @@ GEM
|
|
37
38
|
rspec-expectations (2.8.0)
|
38
39
|
diff-lcs (~> 1.1.2)
|
39
40
|
rspec-mocks (2.8.0)
|
40
|
-
simplecov (0.
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
simplecov (0.8.2)
|
42
|
+
docile (~> 1.1.0)
|
43
|
+
multi_json
|
44
|
+
simplecov-html (~> 0.8.0)
|
45
|
+
simplecov-html (0.8.0)
|
46
|
+
sqlite3 (1.3.9)
|
47
|
+
tzinfo (0.3.39)
|
46
48
|
|
47
49
|
PLATFORMS
|
48
50
|
ruby
|
@@ -51,7 +53,7 @@ DEPENDENCIES
|
|
51
53
|
appraisal (~> 0.4.1)
|
52
54
|
comma!
|
53
55
|
fastercsv
|
54
|
-
mongoid (= 3.1.
|
56
|
+
mongoid (= 3.1.6)
|
55
57
|
rake (~> 0.9.2)
|
56
58
|
rspec (~> 2.8.0)
|
57
59
|
simplecov
|