csv-machine 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/lib/csv-machine.rb +2 -1
- data/lib/csv-machine/version.rb +1 -1
- metadata +9 -10
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 45dba452b61c46cd696dd768f8fa62f845bdac4d
|
4
|
+
data.tar.gz: f959a4607ef88b45afe584e1603a7d90579d6ff6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5efb2d474e9e6530f78b15313debc65a7d0ce332bc1f39787b89ca08985b85ba099bbdb1e4ca715cc6a365a28b409ba5c1bf8aa24fc9101deb7eb733de4d7395
|
7
|
+
data.tar.gz: 86a456cc93903c7308dd4aca1555b2cc11b55a90730e6e19a5b3c6daa06f59317ed5fca32ea9358d266b950f678969ceb75443275a82846c69af677931ad3bfe
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) Daniel Johnston
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/csv-machine.rb
CHANGED
@@ -19,13 +19,14 @@ module CSVMachine
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def csv_options
|
22
|
-
@csv_options ||= CSV::DEFAULT_OPTIONS
|
22
|
+
@csv_options ||= CSV::DEFAULT_OPTIONS.dup
|
23
23
|
end
|
24
24
|
|
25
25
|
# @param [Symbol] name
|
26
26
|
# @param [] value
|
27
27
|
def set_csv_option(name, value)
|
28
28
|
raise "Unknown csv option `#{name}'" unless csv_options.key?(name)
|
29
|
+
@csv_options[name] = value
|
29
30
|
end
|
30
31
|
|
31
32
|
# @param [Symbol, #to_sym] name
|
data/lib/csv-machine/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv-machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel Johnston
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: A machine for csv parsing
|
15
14
|
email: dan@dj-agiledev.com
|
@@ -17,31 +16,31 @@ executables: []
|
|
17
16
|
extensions: []
|
18
17
|
extra_rdoc_files: []
|
19
18
|
files:
|
19
|
+
- LICENSE
|
20
|
+
- lib/csv-machine.rb
|
20
21
|
- lib/csv-machine/field.rb
|
21
22
|
- lib/csv-machine/version.rb
|
22
|
-
- lib/csv-machine.rb
|
23
23
|
homepage: https://github.com/drfeelngood/csv-machine
|
24
24
|
licenses: []
|
25
|
+
metadata: {}
|
25
26
|
post_install_message:
|
26
27
|
rdoc_options: []
|
27
28
|
require_paths:
|
28
29
|
- lib
|
29
30
|
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
-
none: false
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
36
|
requirements:
|
38
|
-
- -
|
37
|
+
- - '>='
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '0'
|
41
40
|
requirements: []
|
42
41
|
rubyforge_project:
|
43
|
-
rubygems_version:
|
42
|
+
rubygems_version: 2.0.14
|
44
43
|
signing_key:
|
45
|
-
specification_version:
|
44
|
+
specification_version: 4
|
46
45
|
summary: Small library used to transform csv data to Ruby objects
|
47
46
|
test_files: []
|