csv_model 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 13f3e351878c2cbeb2a84e7db1b3ec00dc65d4a9
4
- data.tar.gz: 1c329c38e54278ffcb327af775b32094404b7831
3
+ metadata.gz: deee95ded7415c9df8214ff5feec3c31372b0462
4
+ data.tar.gz: b7b0d5b196ca2ad8e24d5296ac3e42f8597401d7
5
5
  SHA512:
6
- metadata.gz: e8845a14b49f96f6bd03587a82ebc08bf11892b74c180120b7aadf3f1211daecd7e549ad2a742a7ae46b13a2a122a48436a6abed4bc4a0ccd33e18f67b8e8c81
7
- data.tar.gz: 37cdf9c51f2a8af92ce9b59740050c583ff8625b9d19d19bcbd5be1cd41613213857670f34b3a7a78312fb382c34faf4465a0a900f789c2f05b506322c559bd7
6
+ metadata.gz: 4c44a9daea0350ab24dda530a114c4769f04380d685394afbc95b07932d794722b45b4d63bbc0e08c53a6fdff344c8c0096d279e068f693ad1eaab9b302b651d
7
+ data.tar.gz: 319db9256f4c6148fd18b96efed584c5d4332508659ebab16bc4bcb7bb7bc27f7b31aeecc641843581cb23787944d9c49e55ecd09b11f6966bfe975e41f2b50f
data/.travis.yml CHANGED
@@ -1,6 +1,8 @@
1
1
  rvm:
2
- - 2.0.0
3
- - 2.1.1
2
+ - 2.1.10
3
+ - 2.2.6
4
+ - 2.3.3
5
+ - 2.4.0
4
6
 
5
7
  install:
6
8
  - "travis_retry bundle install"
data/Gemfile.lock CHANGED
@@ -1,25 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- csv_model (1.0.1)
4
+ csv_model (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.2.5)
10
- rake (10.3.1)
11
- rspec (3.0.0)
12
- rspec-core (~> 3.0.0)
13
- rspec-expectations (~> 3.0.0)
14
- rspec-mocks (~> 3.0.0)
15
- rspec-core (3.0.2)
16
- rspec-support (~> 3.0.0)
17
- rspec-expectations (3.0.2)
10
+ rake (10.4.2)
11
+ rspec (3.1.0)
12
+ rspec-core (~> 3.1.0)
13
+ rspec-expectations (~> 3.1.0)
14
+ rspec-mocks (~> 3.1.0)
15
+ rspec-core (3.1.7)
16
+ rspec-support (~> 3.1.0)
17
+ rspec-expectations (3.1.2)
18
18
  diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.0.0)
20
- rspec-mocks (3.0.2)
21
- rspec-support (~> 3.0.0)
22
- rspec-support (3.0.2)
19
+ rspec-support (~> 3.1.0)
20
+ rspec-mocks (3.1.3)
21
+ rspec-support (~> 3.1.0)
22
+ rspec-support (3.1.2)
23
23
 
24
24
  PLATFORMS
25
25
  ruby
@@ -28,4 +28,7 @@ DEPENDENCIES
28
28
  bundler (~> 1.6)
29
29
  csv_model!
30
30
  rake
31
- rspec (= 3.0.0)
31
+ rspec (~> 3.0)
32
+
33
+ BUNDLED WITH
34
+ 1.13.6
data/csv_model.gemspec CHANGED
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake"
23
- spec.add_development_dependency "rspec", "3.0.0"
23
+ spec.add_development_dependency "rspec", "~> 3.0"
24
24
  end
data/lib/csv_model/row.rb CHANGED
@@ -17,7 +17,7 @@ module CSVModel
17
17
 
18
18
  def index(value)
19
19
  index = column_index(value) || value
20
- data[index] if index.is_a?(Fixnum) && index >= 0
20
+ data[index] if index.is_a?(Integer) && index >= 0
21
21
  end
22
22
  alias_method :[], :index
23
23
 
@@ -118,7 +118,7 @@ module CSVModel
118
118
 
119
119
  def model_instance
120
120
  @model_instance ||= begin
121
- x = inherit_or_delegate(:find_row_model, key_attributes)
121
+ x = inherit_or_delegate(:find_row_model, key_attributes)
122
122
  x ||= inherit_or_delegate(:new_row_model, key_attributes)
123
123
  x = model_adaptor.new(x)
124
124
  end
@@ -1,3 +1,3 @@
1
1
  module CSVModel
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Chadwick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-23 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.0
47
+ version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.0
54
+ version: '3.0'
55
55
  description: ''
56
56
  email:
57
57
  - matthew.chadwick@gmail.com
@@ -59,8 +59,8 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
63
- - .travis.yml
62
+ - ".gitignore"
63
+ - ".travis.yml"
64
64
  - Gemfile
65
65
  - Gemfile.lock
66
66
  - LICENSE
@@ -95,17 +95,17 @@ require_paths:
95
95
  - lib
96
96
  required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '>='
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.2.1
108
+ rubygems_version: 2.4.8
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Utility library for importing CSV data.