embulk-input-lkqd 0.7.0 → 0.8.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/embulk-input-lkqd.gemspec +1 -1
- data/lib/embulk/input/lkqd.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 000fd662d4b47eeb18973de52ee5c6f57aeab13b
|
|
4
|
+
data.tar.gz: 1bce2d78a8a221a94ebee7acb1ed4e60675be499
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1aae6c6f7229f584b5cc7933bf8bea4caaa91abc545ae2f79d7cf6d6136c94604d7e73cc347e7fc3978c5ffc7c43e5bb1546d8419e8c3ceedec79b4eae55a8e6
|
|
7
|
+
data.tar.gz: 0dcbb322ee556b75ce90524dd3ce134c72186f0efa8345b7706e225342c9477ee94b2a155f11146ed8676756d500ee82364de4af4946b17db983103500127774
|
data/embulk-input-lkqd.gemspec
CHANGED
data/lib/embulk/input/lkqd.rb
CHANGED
|
@@ -94,8 +94,10 @@ module Embulk
|
|
|
94
94
|
# next Time.strptime(value + " " + options[:timezone], column_option['format'] + " %Z").to_i
|
|
95
95
|
elsif column_option['type'] == 'long'
|
|
96
96
|
next value.gsub(',','').to_i
|
|
97
|
-
elsif column_option['type'] == 'double' && value.match(/%$/)
|
|
97
|
+
elsif column_option['type'] == 'double' && value.match(/%$/) # handle x,xxxx.yy%
|
|
98
98
|
next value.gsub(',','').to_f / 100.0
|
|
99
|
+
elsif column_option['type'] == 'double' && value.match(/^\$[\d\.,]+$/) # handle $x,xxxx.yy%
|
|
100
|
+
next value.gsub(/[$,]/,'').to_f / 100.0
|
|
99
101
|
elsif column_option['type'] == 'double'
|
|
100
102
|
next value.gsub(',','').to_f
|
|
101
103
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: embulk-input-lkqd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ming Liu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
version: '0'
|
|
102
102
|
requirements: []
|
|
103
103
|
rubyforge_project:
|
|
104
|
-
rubygems_version: 2.6.
|
|
104
|
+
rubygems_version: 2.6.13
|
|
105
105
|
signing_key:
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: LKQD input plugin for Embulk
|