comma 3.2.4 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +25 -62
  3. data/Appraisals +2 -13
  4. data/Gemfile +0 -5
  5. data/Gemfile.lock +49 -25
  6. data/README.markdown +3 -9
  7. data/comma.gemspec +7 -5
  8. data/gemfiles/active4.0.13.gemfile +2 -4
  9. data/gemfiles/active4.0.13.gemfile.lock +53 -42
  10. data/gemfiles/active4.1.16.gemfile +9 -0
  11. data/gemfiles/active4.1.16.gemfile.lock +91 -0
  12. data/gemfiles/active4.2.7.1.gemfile +9 -0
  13. data/gemfiles/active4.2.7.1.gemfile.lock +91 -0
  14. data/gemfiles/active5.0.0.1.gemfile +9 -0
  15. data/gemfiles/active5.0.0.1.gemfile.lock +89 -0
  16. data/gemfiles/rails4.0.13.gemfile +3 -4
  17. data/gemfiles/rails4.0.13.gemfile.lock +73 -55
  18. data/gemfiles/rails4.1.16.gemfile +10 -0
  19. data/gemfiles/rails4.1.16.gemfile.lock +148 -0
  20. data/gemfiles/rails4.2.7.1.gemfile +10 -0
  21. data/gemfiles/rails4.2.7.1.gemfile.lock +175 -0
  22. data/gemfiles/rails5.0.0.1.gemfile +10 -0
  23. data/gemfiles/rails5.0.0.1.gemfile.lock +181 -0
  24. data/lib/comma.rb +9 -1
  25. data/lib/comma/version.rb +1 -1
  26. data/spec/controllers/users_controller_spec.rb +2 -2
  27. data/spec/rails_app/active_record/config.rb +2 -2
  28. data/spec/spec_helper.rb +6 -3
  29. metadata +129 -138
  30. data/gemfiles/active3.0.20.gemfile +0 -11
  31. data/gemfiles/active3.0.20.gemfile.lock +0 -75
  32. data/gemfiles/active3.1.12.gemfile +0 -11
  33. data/gemfiles/active3.1.12.gemfile.lock +0 -76
  34. data/gemfiles/active3.2.20.gemfile +0 -11
  35. data/gemfiles/active3.2.20.gemfile.lock +0 -76
  36. data/gemfiles/active4.1.10.gemfile +0 -11
  37. data/gemfiles/active4.1.10.gemfile.lock +0 -81
  38. data/gemfiles/active4.2.1.gemfile +0 -11
  39. data/gemfiles/active4.2.1.gemfile.lock +0 -81
  40. data/gemfiles/data_mapper1.2.0.gemfile +0 -11
  41. data/gemfiles/data_mapper1.2.0.gemfile.lock +0 -118
  42. data/gemfiles/mongoid3.1.6.gemfile +0 -10
  43. data/gemfiles/mongoid3.1.6.gemfile.lock +0 -76
  44. data/gemfiles/rails3.0.20.gemfile +0 -11
  45. data/gemfiles/rails3.0.20.gemfile.lock +0 -127
  46. data/gemfiles/rails3.1.12.gemfile +0 -11
  47. data/gemfiles/rails3.1.12.gemfile.lock +0 -137
  48. data/gemfiles/rails3.2.20.gemfile +0 -11
  49. data/gemfiles/rails3.2.20.gemfile.lock +0 -135
  50. data/gemfiles/rails4.1.10.gemfile +0 -11
  51. data/gemfiles/rails4.1.10.gemfile.lock +0 -131
  52. data/gemfiles/rails4.2.1.gemfile +0 -11
  53. data/gemfiles/rails4.2.1.gemfile.lock +0 -156
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aeb6ff51137c2108c270dfb41d7425a87760060e
4
+ data.tar.gz: c1b8c7222f8d733fcc08b5a0849ff0f69c2d04cc
5
+ SHA512:
6
+ metadata.gz: 55c179dd4b1301406adf4b313c4d9c1a2ac17b8066d688af1d24d6d8aa8a3bfc3b5f03328a300fc619d7a4dd4865570b25ba24054a75c9194bccb64ff519f916
7
+ data.tar.gz: 87b0cffda105db072f9cafb14145e41f407d4a2c6d68197f52139ada6e62fa896934c837f34655f456dcf60f7f8d534de09f9c018ed5b14db9c95190d79ea205
@@ -3,73 +3,36 @@ services: mongodb
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 'ree'
7
- - '1.8.7'
8
- - '1.9.2'
9
- - '1.9.3'
10
- - '2.0.0'
11
- - '2.1.0'
12
- - 'rbx-2.1.1'
6
+ - 2.0
7
+ - 2.1
8
+ - 2.2.5
9
+ - 2.3.1
10
+ - rbx-2
11
+ - jruby
13
12
  gemfile:
14
- - gemfiles/active3.0.20.gemfile
15
- - gemfiles/active3.1.12.gemfile
16
- - gemfiles/active3.2.20.gemfile
17
13
  - gemfiles/active4.0.13.gemfile
18
- - gemfiles/active4.1.10.gemfile
19
- - gemfiles/active4.2.1.gemfile
20
- - gemfiles/data_mapper1.2.0.gemfile
21
- - gemfiles/mongoid3.1.6.gemfile
22
- - gemfiles/rails3.0.20.gemfile
23
- - gemfiles/rails3.1.12.gemfile
24
- - gemfiles/rails3.2.20.gemfile
14
+ - gemfiles/active4.1.16.gemfile
15
+ - gemfiles/active4.2.7.1.gemfile
16
+ - gemfiles/active5.0.0.1.gemfile
25
17
  - gemfiles/rails4.0.13.gemfile
26
- - gemfiles/rails4.1.10.gemfile
27
- - gemfiles/rails4.2.1.gemfile
18
+ - gemfiles/rails4.1.16.gemfile
19
+ - gemfiles/rails4.2.7.1.gemfile
20
+ - gemfiles/rails5.0.0.1.gemfile
28
21
  matrix:
29
22
  exclude:
30
- - rvm: ree
31
- gemfile: gemfiles/active4.0.13.gemfile
32
- - rvm: ree
33
- gemfile: gemfiles/active4.1.10.gemfile
34
- - rvm: ree
35
- gemfile: gemfiles/active4.2.1.gemfile
36
- - rvm: ree
37
- gemfile: gemfiles/mongoid3.1.6.gemfile
38
- - rvm: ree
39
- gemfile: gemfiles/rails4.0.13.gemfile
40
- - rvm: ree
41
- gemfile: gemfiles/rails4.1.10.gemfile
42
- - rvm: ree
43
- gemfile: gemfiles/rails4.2.1.gemfile
44
- - rvm: 1.8.7
45
- gemfile: gemfiles/active4.0.13.gemfile
46
- - rvm: 1.8.7
47
- gemfile: gemfiles/active4.1.10.gemfile
48
- - rvm: 1.8.7
49
- gemfile: gemfiles/active4.2.1.gemfile
50
- - rvm: 1.8.7
51
- gemfile: gemfiles/mongoid3.1.6.gemfile
52
- - rvm: 1.8.7
53
- gemfile: gemfiles/rails4.0.13.gemfile
54
- - rvm: 1.8.7
55
- gemfile: gemfiles/rails4.1.10.gemfile
56
- - rvm: 1.8.7
57
- gemfile: gemfiles/rails4.2.1.gemfile
58
- - rvm: 1.9.2
59
- gemfile: gemfiles/active4.0.13.gemfile
60
- - rvm: 1.9.2
61
- gemfile: gemfiles/active4.1.10.gemfile
62
- - rvm: 1.9.2
63
- gemfile: gemfiles/active4.2.1.gemfile
64
- - rvm: 1.9.2
65
- gemfile: gemfiles/mongoid3.1.6.gemfile
66
- - rvm: 1.9.2
67
- gemfile: gemfiles/rails4.0.13.gemfile
68
- - rvm: 1.9.2
69
- gemfile: gemfiles/rails4.1.10.gemfile
70
- - rvm: 1.9.2
71
- gemfile: gemfiles/rails4.2.1.gemfile
23
+ - rvm: 2.0
24
+ gemfile: gemfiles/active5.0.0.1.gemfile
25
+ - rvm: 2.1
26
+ gemfile: gemfiles/active5.0.0.1.gemfile
27
+ - rvm: 2.0
28
+ gemfile: gemfiles/rails5.0.0.1.gemfile
29
+ - rvm: 2.1
30
+ gemfile: gemfiles/rails5.0.0.1.gemfile
72
31
  allow_failures:
73
- - rvm: rbx-2.1.1
32
+ - rvm: rbx-2
33
+ - rvm: jruby
74
34
  fast_finish: true
35
+ # Need to update because there is a bug in bundler that Travis CI uses.
36
+ before_install:
37
+ - gem update bundler
75
38
  script: 'bundle exec rake spec'
data/Appraisals CHANGED
@@ -1,10 +1,10 @@
1
- ['3.0.20', '3.1.12', '3.2.20', '4.0.13', '4.1.10', '4.2.1'].each do |version_number|
1
+ ['4.0.13', '4.1.16', '4.2.7.1', '5.0.0.1'].each do |version_number|
2
2
  clean_number = version_number.gsub(/[<>~=]*/, '')
3
- next if RUBY_VERSION < '1.9.3' && version_number >= '4.0.0'
4
3
 
5
4
  appraise "rails#{ clean_number }" do
6
5
  gem "rails", version_number
7
6
  gem "rspec-rails"
7
+ gem 'test-unit'
8
8
  end
9
9
 
10
10
  appraise "active#{ clean_number }" do
@@ -12,14 +12,3 @@
12
12
  gem "activerecord", version_number
13
13
  end
14
14
  end
15
-
16
- if RUBY_VERSION >= '1.9.3'
17
- appraise 'mongoid3.1.6' do
18
- gem 'mongoid', '3.1.6'
19
- end
20
- end
21
-
22
- appraise 'data_mapper1.2.0' do
23
- gem 'data_mapper', '1.2.0'
24
- gem 'dm-sqlite-adapter', '1.2.0'
25
- end
data/Gemfile CHANGED
@@ -1,10 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'coveralls', :require => false
4
- gem 'fastercsv', :platforms => :ruby_18
5
- # coveralls gem depends on rest-client, newer rest-client gem
6
- # requires ruby 1.9.2 or above. While supporting ruby 1.8.7,
7
- # we specify rest-client gem version.
8
- gem 'rest-client', '> 1.6.2', '< 1.7', :require => false
9
4
 
10
5
  gemspec
@@ -1,63 +1,87 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comma (3.2.4)
5
- activesupport (>= 3.0.0)
4
+ comma (4.0.0)
5
+ activesupport (>= 4.0.0, < 5.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (3.2.14)
11
- i18n (~> 0.6, >= 0.6.4)
12
- multi_json (~> 1.0)
13
- appraisal (0.4.1)
10
+ activemodel (5.0.0.1)
11
+ activesupport (= 5.0.0.1)
12
+ activesupport (5.0.0.1)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (~> 0.7)
15
+ minitest (~> 5.1)
16
+ tzinfo (~> 1.1)
17
+ appraisal (1.0.3)
14
18
  bundler
15
19
  rake
20
+ thor (>= 0.14.0)
16
21
  colorize (0.7.5)
22
+ concurrent-ruby (1.0.2)
17
23
  coveralls (0.5.8)
18
24
  colorize
19
25
  json
20
26
  rest-client
21
27
  simplecov (>= 0.7)
22
28
  thor
23
- diff-lcs (1.1.3)
29
+ diff-lcs (1.2.5)
24
30
  docile (1.1.5)
25
- fastercsv (1.5.4)
26
- i18n (0.6.5)
31
+ i18n (0.7.0)
27
32
  json (1.8.2)
28
33
  mime-types (1.25.1)
34
+ minitest (5.9.0)
29
35
  multi_json (1.1.0)
30
- rake (0.9.2.2)
36
+ rake (10.5.0)
31
37
  rdoc (4.2.0)
32
38
  json (~> 1.4)
33
39
  rest-client (1.6.8)
34
40
  mime-types (~> 1.16)
35
41
  rdoc (>= 2.4.2)
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)
42
+ rspec (3.5.0)
43
+ rspec-core (~> 3.5.0)
44
+ rspec-expectations (~> 3.5.0)
45
+ rspec-mocks (~> 3.5.0)
46
+ rspec-activemodel-mocks (1.0.3)
47
+ activemodel (>= 3.0)
48
+ activesupport (>= 3.0)
49
+ rspec-mocks (>= 2.99, < 4.0)
50
+ rspec-core (3.5.2)
51
+ rspec-support (~> 3.5.0)
52
+ rspec-expectations (3.5.0)
53
+ diff-lcs (>= 1.2.0, < 2.0)
54
+ rspec-support (~> 3.5.0)
55
+ rspec-its (1.2.0)
56
+ rspec-core (>= 3.0.0)
57
+ rspec-expectations (>= 3.0.0)
58
+ rspec-mocks (3.5.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.5.0)
61
+ rspec-support (3.5.0)
44
62
  simplecov (0.9.2)
45
63
  docile (~> 1.1.0)
46
64
  multi_json (~> 1.0)
47
65
  simplecov-html (~> 0.9.0)
48
66
  simplecov-html (0.9.0)
49
- sqlite3 (1.3.5)
67
+ sqlite3 (1.3.11)
50
68
  thor (0.19.1)
69
+ thread_safe (0.3.5)
70
+ tzinfo (1.2.2)
71
+ thread_safe (~> 0.1)
51
72
 
52
73
  PLATFORMS
53
74
  ruby
54
75
 
55
76
  DEPENDENCIES
56
- appraisal (~> 0.4.1)
77
+ appraisal (~> 1.0.0)
57
78
  comma!
58
79
  coveralls
59
- fastercsv
60
- rake (~> 0.9.2)
61
- rest-client (> 1.6.2, < 1.7)
62
- rspec (~> 2.8.0)
63
- sqlite3 (~> 1.3.4)
80
+ rake (~> 10.5.0)
81
+ rspec (~> 3.5.0)
82
+ rspec-activemodel-mocks
83
+ rspec-its
84
+ sqlite3 (~> 1.3.11)
85
+
86
+ BUNDLED WITH
87
+ 1.12.5
@@ -7,18 +7,12 @@ 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, 2.1
11
- * REE 1.8.7
12
- * RBX 1.8 mode, 1.9 mode
13
- * Rails 3.x, 4.x (all versions, with ActiveRecord, DataMapper and Mongoid support)
10
+ * Ruby 2.x
11
+ * RBX2
12
+ * Rails (all versions, with ActiveRecord, DataMapper and Mongoid support)
14
13
 
15
14
  [![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
15
 
17
- ###LOOKING FOR RAILS 2?
18
- * Rails 2 is supported in the 'rails2' branch of this project, and versioned in the 2.x version of this gem. (https://github.com/comma-csv/comma/tree/rails2).
19
-
20
- ##INSTALLATION
21
-
22
16
  Comma is distributed as a gem, best installed via Bundler.
23
17
 
24
18
  Include the gem in your Gemfile:
@@ -19,10 +19,12 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.licenses = ['MIT']
21
21
 
22
- s.add_dependency 'activesupport', ['>= 3.0.0']
22
+ s.add_dependency 'activesupport', ['>= 4.0.0', '< 5.1']
23
23
 
24
- s.add_development_dependency 'appraisal', ['~> 0.4.1']
25
- s.add_development_dependency 'rake', ['~> 0.9.2']
26
- s.add_development_dependency 'rspec', ['~> 2.8.0']
27
- s.add_development_dependency 'sqlite3', ['~> 1.3.4']
24
+ s.add_development_dependency 'appraisal', ['~> 1.0.0']
25
+ s.add_development_dependency 'rake', ['~> 10.5.0']
26
+ s.add_development_dependency 'rspec', ['~> 3.5.0']
27
+ s.add_development_dependency 'rspec-activemodel-mocks'
28
+ s.add_development_dependency 'rspec-its'
29
+ s.add_development_dependency 'sqlite3', ['~> 1.3.11']
28
30
  end
@@ -2,10 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "coveralls", :require=>false
6
- gem "fastercsv", :platforms=>:ruby_18
7
- gem "rest-client", "> 1.6.2", "< 1.7", :require=>false
5
+ gem "coveralls", :require => false
8
6
  gem "activesupport", "4.0.13"
9
7
  gem "activerecord", "4.0.13"
10
8
 
11
- gemspec :path=>"../"
9
+ gemspec :path => "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- comma (3.2.4)
5
- activesupport (>= 3.0.0)
4
+ comma (4.0.0)
5
+ activesupport (>= 4.0.0, < 5.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -15,56 +15,64 @@ GEM
15
15
  activerecord-deprecated_finders (~> 1.0.2)
16
16
  activesupport (= 4.0.13)
17
17
  arel (~> 4.0.0)
18
- activerecord-deprecated_finders (1.0.3)
18
+ activerecord-deprecated_finders (1.0.4)
19
19
  activesupport (4.0.13)
20
20
  i18n (~> 0.6, >= 0.6.9)
21
21
  minitest (~> 4.2)
22
22
  multi_json (~> 1.3)
23
23
  thread_safe (~> 0.1)
24
24
  tzinfo (~> 0.3.37)
25
- appraisal (0.4.1)
25
+ appraisal (1.0.3)
26
26
  bundler
27
27
  rake
28
+ thor (>= 0.14.0)
28
29
  arel (4.0.2)
29
30
  builder (3.1.4)
30
- colorize (0.7.5)
31
- coveralls (0.5.8)
32
- colorize
33
- json
34
- rest-client
35
- simplecov (>= 0.7)
36
- thor
37
- diff-lcs (1.1.3)
31
+ coveralls (0.8.14)
32
+ json (>= 1.8, < 3)
33
+ simplecov (~> 0.12.0)
34
+ term-ansicolor (~> 1.3)
35
+ thor (~> 0.19.1)
36
+ tins (~> 1.6.0)
37
+ diff-lcs (1.2.5)
38
38
  docile (1.1.5)
39
- fastercsv (1.5.5)
40
39
  i18n (0.7.0)
41
- json (1.8.2)
42
- mime-types (1.25.1)
40
+ json (2.0.1)
43
41
  minitest (4.7.5)
44
- multi_json (1.11.0)
45
- rake (0.9.6)
46
- rdoc (4.2.0)
47
- json (~> 1.4)
48
- rest-client (1.6.8)
49
- mime-types (~> 1.16)
50
- rdoc (>= 2.4.2)
51
- rspec (2.8.0)
52
- rspec-core (~> 2.8.0)
53
- rspec-expectations (~> 2.8.0)
54
- rspec-mocks (~> 2.8.0)
55
- rspec-core (2.8.0)
56
- rspec-expectations (2.8.0)
57
- diff-lcs (~> 1.1.2)
58
- rspec-mocks (2.8.0)
59
- simplecov (0.9.2)
42
+ multi_json (1.12.1)
43
+ rake (10.5.0)
44
+ rspec (3.5.0)
45
+ rspec-core (~> 3.5.0)
46
+ rspec-expectations (~> 3.5.0)
47
+ rspec-mocks (~> 3.5.0)
48
+ rspec-activemodel-mocks (1.0.3)
49
+ activemodel (>= 3.0)
50
+ activesupport (>= 3.0)
51
+ rspec-mocks (>= 2.99, < 4.0)
52
+ rspec-core (3.5.2)
53
+ rspec-support (~> 3.5.0)
54
+ rspec-expectations (3.5.0)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.5.0)
57
+ rspec-its (1.2.0)
58
+ rspec-core (>= 3.0.0)
59
+ rspec-expectations (>= 3.0.0)
60
+ rspec-mocks (3.5.0)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.5.0)
63
+ rspec-support (3.5.0)
64
+ simplecov (0.12.0)
60
65
  docile (~> 1.1.0)
61
- multi_json (~> 1.0)
62
- simplecov-html (~> 0.9.0)
63
- simplecov-html (0.9.0)
64
- sqlite3 (1.3.10)
66
+ json (>= 1.8, < 3)
67
+ simplecov-html (~> 0.10.0)
68
+ simplecov-html (0.10.0)
69
+ sqlite3 (1.3.11)
70
+ term-ansicolor (1.3.2)
71
+ tins (~> 1.0)
65
72
  thor (0.19.1)
66
73
  thread_safe (0.3.5)
67
- tzinfo (0.3.43)
74
+ tins (1.6.0)
75
+ tzinfo (0.3.51)
68
76
 
69
77
  PLATFORMS
70
78
  ruby
@@ -72,11 +80,14 @@ PLATFORMS
72
80
  DEPENDENCIES
73
81
  activerecord (= 4.0.13)
74
82
  activesupport (= 4.0.13)
75
- appraisal (~> 0.4.1)
83
+ appraisal (~> 1.0.0)
76
84
  comma!
77
85
  coveralls
78
- fastercsv
79
- rake (~> 0.9.2)
80
- rest-client (> 1.6.2, < 1.7)
81
- rspec (~> 2.8.0)
82
- sqlite3 (~> 1.3.4)
86
+ rake (~> 10.5.0)
87
+ rspec (~> 3.5.0)
88
+ rspec-activemodel-mocks
89
+ rspec-its
90
+ sqlite3 (~> 1.3.11)
91
+
92
+ BUNDLED WITH
93
+ 1.11.2
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", :require => false
6
+ gem "activesupport", "4.1.16"
7
+ gem "activerecord", "4.1.16"
8
+
9
+ gemspec :path => "../"