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 +4 -4
- data/README.md +2 -2
- data/embulk-filter-query_string_ruby.gemspec +1 -1
- data/lib/embulk/filter/query_string_ruby.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b25a9715f0187cf3e6779832f26d3e3d200c1b75
|
4
|
+
data.tar.gz: 8ef68b20be1212ef3e4b83bdc192447d248da26a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
31
|
+
schema:
|
32
32
|
- {name: hoge, type: string}
|
33
33
|
- {name: fuga, type: long}
|
34
|
-
- {name: piyo, type: timestamp
|
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.
|
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
|
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.
|
58
|
+
Time.parse(v)
|
59
59
|
else
|
60
60
|
v.to_s
|
61
61
|
end
|