csv-omg 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/csv-omg.gemspec +1 -1
- data/lib/csv-omg.rb +2 -2
- data/lib/csv-omg/version.rb +1 -1
- data/test/csv_omg_test.rb +2 -2
- data/test/{test_helper.rb → helper.rb} +1 -2
- metadata +54 -98
data/csv-omg.gemspec
CHANGED
@@ -24,7 +24,7 @@ desc
|
|
24
24
|
s.add_dependency('fastercsv', '~>1.5.4')
|
25
25
|
|
26
26
|
s.add_development_dependency('test-spec', '~>0.10.0')
|
27
|
-
s.add_development_dependency('
|
27
|
+
s.add_development_dependency('test-unit')
|
28
28
|
s.add_development_dependency('activerecord', '~>3.0.6')
|
29
29
|
s.add_development_dependency('sqlite3', '~>1.3.3')
|
30
30
|
end
|
data/lib/csv-omg.rb
CHANGED
@@ -95,8 +95,8 @@ module CsvOmg
|
|
95
95
|
|
96
96
|
def create_accessor(name)
|
97
97
|
unless respond_to?('column_names') && column_names.include?(name)
|
98
|
-
create_getter(name) unless
|
99
|
-
create_setter(name) unless
|
98
|
+
create_getter(name) unless instance_methods.include?("#{name}")
|
99
|
+
create_setter(name) unless instance_methods.include?("#{name}=")
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
data/lib/csv-omg/version.rb
CHANGED
data/test/csv_omg_test.rb
CHANGED
metadata
CHANGED
@@ -1,114 +1,80 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv-omg
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 1.1.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Gert Goet
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-04-11 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: fastercsv
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &18514680 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 11
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 5
|
32
|
-
- 4
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 1.5.4
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: test-spec
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: *18514680
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: test-spec
|
27
|
+
requirement: &18514180 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
29
|
+
requirements:
|
42
30
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 55
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
- 10
|
48
|
-
- 0
|
31
|
+
- !ruby/object:Gem::Version
|
49
32
|
version: 0.10.0
|
50
33
|
type: :development
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: rr
|
54
34
|
prerelease: false
|
55
|
-
|
35
|
+
version_requirements: *18514180
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: test-unit
|
38
|
+
requirement: &18513800 !ruby/object:Gem::Requirement
|
56
39
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
segments:
|
62
|
-
- 1
|
63
|
-
- 0
|
64
|
-
- 2
|
65
|
-
version: 1.0.2
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
66
44
|
type: :development
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: activerecord
|
70
45
|
prerelease: false
|
71
|
-
|
46
|
+
version_requirements: *18513800
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: activerecord
|
49
|
+
requirement: &18513260 !ruby/object:Gem::Requirement
|
72
50
|
none: false
|
73
|
-
requirements:
|
51
|
+
requirements:
|
74
52
|
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 11
|
77
|
-
segments:
|
78
|
-
- 3
|
79
|
-
- 0
|
80
|
-
- 6
|
53
|
+
- !ruby/object:Gem::Version
|
81
54
|
version: 3.0.6
|
82
55
|
type: :development
|
83
|
-
version_requirements: *id004
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: sqlite3
|
86
56
|
prerelease: false
|
87
|
-
|
57
|
+
version_requirements: *18513260
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: sqlite3
|
60
|
+
requirement: &18512760 !ruby/object:Gem::Requirement
|
88
61
|
none: false
|
89
|
-
requirements:
|
62
|
+
requirements:
|
90
63
|
- - ~>
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
hash: 29
|
93
|
-
segments:
|
94
|
-
- 1
|
95
|
-
- 3
|
96
|
-
- 3
|
64
|
+
- !ruby/object:Gem::Version
|
97
65
|
version: 1.3.3
|
98
66
|
type: :development
|
99
|
-
|
100
|
-
|
101
|
-
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *18512760
|
69
|
+
description: ! 'CsvOmg easily lets you map CSV to objects. Inspired by happymapper.
|
102
70
|
|
103
|
-
|
71
|
+
'
|
72
|
+
email:
|
104
73
|
- gert@thinkcreate.nl
|
105
74
|
executables: []
|
106
|
-
|
107
75
|
extensions: []
|
108
|
-
|
109
76
|
extra_rdoc_files: []
|
110
|
-
|
111
|
-
files:
|
77
|
+
files:
|
112
78
|
- .gitignore
|
113
79
|
- .rvmrc
|
114
80
|
- Gemfile
|
@@ -120,39 +86,29 @@ files:
|
|
120
86
|
- lib/csv-omg/version.rb
|
121
87
|
- test/csv_omg_test.rb
|
122
88
|
- test/fixtures/large.csv
|
123
|
-
- test/
|
89
|
+
- test/helper.rb
|
124
90
|
homepage: http://github.com/eval/csv-omg
|
125
91
|
licenses: []
|
126
|
-
|
127
92
|
post_install_message:
|
128
93
|
rdoc_options: []
|
129
|
-
|
130
|
-
require_paths:
|
94
|
+
require_paths:
|
131
95
|
- lib
|
132
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
97
|
none: false
|
134
|
-
requirements:
|
135
|
-
- -
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
|
138
|
-
|
139
|
-
- 0
|
140
|
-
version: "0"
|
141
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
103
|
none: false
|
143
|
-
requirements:
|
144
|
-
- -
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
|
147
|
-
segments:
|
148
|
-
- 0
|
149
|
-
version: "0"
|
104
|
+
requirements:
|
105
|
+
- - ! '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
150
108
|
requirements: []
|
151
|
-
|
152
109
|
rubyforge_project: csv-omg
|
153
110
|
rubygems_version: 1.7.2
|
154
111
|
signing_key:
|
155
112
|
specification_version: 3
|
156
113
|
summary: Easily map CSV to objects
|
157
114
|
test_files: []
|
158
|
-
|