csv-omg 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/csv-omg.rb +12 -1
- data/lib/csv-omg/version.rb +1 -1
- metadata +11 -11
data/lib/csv-omg.rb
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
|
1
|
+
# copied from csv-mapper (https://github.com/pillowfactory/csv-mapper)
|
2
|
+
if RUBY_VERSION > "1.9"
|
3
|
+
require "csv"
|
4
|
+
unless defined? FCSV
|
5
|
+
class Object
|
6
|
+
FasterCSV = CSV
|
7
|
+
alias_method :FasterCSV, :CSV
|
8
|
+
end
|
9
|
+
end
|
10
|
+
else
|
11
|
+
require "fastercsv"
|
12
|
+
end
|
2
13
|
|
3
14
|
module CsvOmg
|
4
15
|
|
data/lib/csv-omg/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv-omg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease: !!null
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable: !!null
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fastercsv
|
17
|
-
requirement: &
|
17
|
+
requirement: &21816560 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 1.5.4
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *21816560
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: test-spec
|
28
|
-
requirement: &
|
28
|
+
requirement: &21816060 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 0.10.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *21816060
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rr
|
39
|
-
requirement: &
|
39
|
+
requirement: &21815600 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 1.0.2
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *21815600
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: activerecord
|
50
|
-
requirement: &
|
50
|
+
requirement: &21815140 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 3.0.6
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *21815140
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: sqlite3
|
61
|
-
requirement: &
|
61
|
+
requirement: &21814680 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: 1.3.3
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *21814680
|
70
70
|
description: ! 'CsvOmg easily lets you map CSV to objects. Inspired by happymapper.
|
71
71
|
|
72
72
|
'
|