embulk-filter-query_string_ruby 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b25a9715f0187cf3e6779832f26d3e3d200c1b75
4
- data.tar.gz: 8ef68b20be1212ef3e4b83bdc192447d248da26a
3
+ metadata.gz: 330226327df90f0bb439a35ce2ccf2eb2ddbbeb8
4
+ data.tar.gz: 96d5331cfb16e5f5caa1e8bc854aafa50526a863
5
5
  SHA512:
6
- metadata.gz: 489c77e03703aeae54102ae6f072bf934b75e7ad1e1b435be4c06e56c8bbb39b245a9b84323656ec6c244d8d6241141badb4d0c518bdc86140c0ed636117d07f
7
- data.tar.gz: 7ed1b8786ed75f1d3ea91bc51fd1b1db9f62a06781d0d09cbc38a2b930a49dcc5794637a882cd9911127adeeead261f63b58b899d5bd77513713ea773a468163
6
+ metadata.gz: 4aeb1b596783eabd87b10709b5d494bf61c887c52963368a58148b9298c41f9a9a49acd6f47248ffc2b99b201272cc844bc599e20edaad413d285835cf1193dd
7
+ data.tar.gz: 8569db1b5f909f879cf0cfadf4fe2d0231b9228ecaae46a71af264f0e681e87358e44a1054a2da8e3359a9dc0fdea6f5ef301edb83973fba2191adef1858b075
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- embulk-filter-query_string_ruby (0.1.0)
4
+ embulk-filter-query_string_ruby (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-filter-query_string_ruby"
4
- spec.version = "0.1.1"
4
+ spec.version = "0.1.2"
5
5
  spec.authors = ["Yuma Murata"]
6
6
  spec.summary = "Query String Ruby filter plugin for Embulk"
7
7
  spec.description = "Query String Ruby"
Binary file
@@ -51,16 +51,16 @@ module Embulk
51
51
  begin
52
52
  case col["type"]
53
53
  when "long"
54
- v.to_i
54
+ Integer(v)
55
55
  when "double"
56
- v.to_f
56
+ Float(v)
57
57
  when "timestamp"
58
58
  Time.parse(v)
59
59
  else
60
60
  v.to_s
61
61
  end
62
62
  rescue => e
63
- raise ConfigError.new("Cast failed '#{v}' as '#{col["type"]}' (query name is '#{col["name"]}')")
63
+ Embulk.logger.warn("Cast failed '#{v}' as '#{col["type"]}' (query name is '#{col["name"]}')")
64
64
  end
65
65
  end
66
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-query_string_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuma Murata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: embulk