embulk-filter-query_string_ruby 0.1.0 → 0.1.1

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: 591ce72de6e39b9f5f79783bd0a44cb51c6e39eb
4
- data.tar.gz: a176d29d7f286ddc380b27e9daa576a86fdb8792
3
+ metadata.gz: b25a9715f0187cf3e6779832f26d3e3d200c1b75
4
+ data.tar.gz: 8ef68b20be1212ef3e4b83bdc192447d248da26a
5
5
  SHA512:
6
- metadata.gz: 19063b65528f5753907de808958a3179ed07f864b9104736b39a410b64c0c7f7ec940e89bfbf6819f8597ecedd96954ff2063eef89a42892c8c5bc9205facf23
7
- data.tar.gz: 3a8c26a48f962ff0833900152e02bba91dc047fc4f6adc201361492c383fa03b23f58fffa357a6583bf317b562b105bdfae791a8476f330da254a42afb7e06f7
6
+ metadata.gz: 489c77e03703aeae54102ae6f072bf934b75e7ad1e1b435be4c06e56c8bbb39b245a9b84323656ec6c244d8d6241141badb4d0c518bdc86140c0ed636117d07f
7
+ data.tar.gz: 7ed1b8786ed75f1d3ea91bc51fd1b1db9f62a06781d0d09cbc38a2b930a49dcc5794637a882cd9911127adeeead261f63b58b899d5bd77513713ea773a468163
data/README.md CHANGED
@@ -28,10 +28,10 @@ configuration
28
28
  filters:
29
29
  - type: query_string_ruby
30
30
  column: query_string
31
- query_params:
31
+ schema:
32
32
  - {name: hoge, type: string}
33
33
  - {name: fuga, type: long}
34
- - {name: piyo, type: timestamp, format: '%Y-%m-%d'}
34
+ - {name: piyo, type: timestamp}
35
35
  ```
36
36
 
37
37
  result
@@ -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.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["Yuma Murata"]
6
6
  spec.summary = "Query String Ruby filter plugin for Embulk"
7
7
  spec.description = "Query String Ruby"
@@ -12,7 +12,7 @@ module Embulk
12
12
  "schema" => config.param("schema", :array, :default => [])
13
13
  }
14
14
 
15
- out_columns = in_schema + task["schema"].map {|col| Column.new(nil, col["name"], col["type"].to_sym, col["format"])}
15
+ out_columns = in_schema + task["schema"].map {|col| Column.new(nil, col["name"], col["type"].to_sym)}
16
16
  yield(task, out_columns)
17
17
  end
18
18
 
@@ -55,7 +55,7 @@ module Embulk
55
55
  when "double"
56
56
  v.to_f
57
57
  when "timestamp"
58
- Time.strptime(v, col["format"])
58
+ Time.parse(v)
59
59
  else
60
60
  v.to_s
61
61
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuma Murata