recite_csv 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +4 -5
- data/CHANGELOG.md +12 -0
- data/lib/recite_csv/header/definition.rb +2 -0
- data/lib/recite_csv/reader/builder.rb +2 -0
- data/lib/recite_csv/reader/core.rb +2 -2
- data/lib/recite_csv/version.rb +1 -1
- data/recite_csv.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f5a9061011f58fffc11e1e2ae7ab67f53766ea56422704efb36db44d1ff9c57
|
|
4
|
+
data.tar.gz: 108b4b62ef863b13d628d3bc5103f67f79c47b521d98194fc952296d8524b0bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b17aa1153727511ec4a63e3204a7fe43ff1c7d58eec357afd9e0c660c179e7f1dc28a4c18bb0ac5621680d6a93dcf0c96727adaffa0b158a6068a50e4eab21fa
|
|
7
|
+
data.tar.gz: 6fecec4ed70b2723ec92fc4995cf2e46e1055cf5d432a6065a90375f3681c738ae474ee01a63beb1736f712ad16cc628fa039d445acdea42a2b710e09e1470c8
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -50,6 +50,7 @@ module ReciteCSV
|
|
|
50
50
|
def initialize(raw_definition)
|
|
51
51
|
raw_definition.each.with_index do |name, idx|
|
|
52
52
|
next if name.nil? || name.empty?
|
|
53
|
+
|
|
53
54
|
define_method name do
|
|
54
55
|
self[idx]
|
|
55
56
|
end
|
|
@@ -72,6 +73,7 @@ module ReciteCSV
|
|
|
72
73
|
unless definition_class
|
|
73
74
|
raise ::ArgumentError, "Unexpected header definition type"
|
|
74
75
|
end
|
|
76
|
+
|
|
75
77
|
definition_class.new(header_definition)
|
|
76
78
|
end
|
|
77
79
|
end
|
data/lib/recite_csv/version.rb
CHANGED
data/recite_csv.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
lib = File.expand_path("
|
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require "recite_csv/version"
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
23
23
|
spec.require_paths = ["lib"]
|
|
24
24
|
|
|
25
|
-
spec.required_ruby_version = ">= 2.
|
|
25
|
+
spec.required_ruby_version = ">= 2.3"
|
|
26
26
|
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.14"
|
|
28
28
|
spec.add_development_dependency "pry", ">= 0.10.0"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recite_csv
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuji Hanamura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
requirements:
|
|
123
123
|
- - ">="
|
|
124
124
|
- !ruby/object:Gem::Version
|
|
125
|
-
version: 2.
|
|
125
|
+
version: '2.3'
|
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
128
|
- - ">="
|
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
130
130
|
version: '0'
|
|
131
131
|
requirements: []
|
|
132
132
|
rubyforge_project:
|
|
133
|
-
rubygems_version: 2.7.
|
|
133
|
+
rubygems_version: 2.7.6
|
|
134
134
|
signing_key:
|
|
135
135
|
specification_version: 4
|
|
136
136
|
summary: ReciteCSV helps to build a class for CSV reader.
|