embulk-filter-ruby_proc 0.1.0 → 0.1.1
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/README.md +2 -2
- data/embulk-filter-ruby_proc.gemspec +2 -2
- data/example/config.yml +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69bb84ba17676cef2b758609976a1eea10c774c5
|
4
|
+
data.tar.gz: 458c5b32584e6faf8028f5742ff9f283eb261123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83364a693c203516cbef89c2f6678ea2f16822d772dcf20589afd685d25632f7dedf43b207120bdb31f166b894148a6eb9c36bae35114cd316475fb327dd9168
|
7
|
+
data.tar.gz: 99a2a967da43ed164c32d8c7534bc1da6d647bcc4f5963b2ccb1bd2b0f5ee376729914fd0c7dfeb4b151b98f29b2662fdeef0814ac11975d8fd604b99a8179e4
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ filters:
|
|
39
39
|
data["events"] = data["events"].map.with_index do |e, idx|
|
40
40
|
e.tap { |e_| e_["idx"] = idx }
|
41
41
|
end
|
42
|
-
data
|
42
|
+
data
|
43
43
|
end
|
44
44
|
- name: id
|
45
45
|
proc: |
|
@@ -51,7 +51,7 @@ filters:
|
|
51
51
|
proc: |
|
52
52
|
->(comment, record) do
|
53
53
|
return [record["account"].to_s].to_json unless comment
|
54
|
-
comment.upcase.split(" ").map { |s| CGI.escape(s) }
|
54
|
+
comment.upcase.split(" ").map { |s| CGI.escape(s) }
|
55
55
|
end
|
56
56
|
skip_nil: false
|
57
57
|
type: json
|
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "embulk-filter-ruby_proc"
|
4
|
-
spec.version = "0.1.
|
4
|
+
spec.version = "0.1.1"
|
5
5
|
spec.authors = ["joker1007"]
|
6
6
|
spec.summary = "Ruby Proc filter plugin for Embulk"
|
7
7
|
spec.description = "Filter each record by ruby proc"
|
8
8
|
spec.email = ["kakyoin.hierophant@gmail.com"]
|
9
9
|
spec.licenses = ["MIT"]
|
10
|
-
spec.homepage = "https://github.com/
|
10
|
+
spec.homepage = "https://github.com/joker1007/embulk-filter-ruby_proc"
|
11
11
|
|
12
12
|
spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
|
13
13
|
spec.test_files = spec.files.grep(%r{^(test|spec)/})
|
data/example/config.yml
CHANGED
@@ -32,7 +32,7 @@ filters:
|
|
32
32
|
data["events"] = data["events"].map.with_index do |e, idx|
|
33
33
|
e.tap { |e_| e_["idx"] = idx }
|
34
34
|
end
|
35
|
-
data
|
35
|
+
data
|
36
36
|
end
|
37
37
|
- name: id
|
38
38
|
proc: |
|
@@ -44,7 +44,7 @@ filters:
|
|
44
44
|
proc: |
|
45
45
|
->(comment, record) do
|
46
46
|
return [record["account"].to_s].to_json unless comment
|
47
|
-
comment.upcase.split(" ").map { |s| CGI.escape(s) }
|
47
|
+
comment.upcase.split(" ").map { |s| CGI.escape(s) }
|
48
48
|
end
|
49
49
|
skip_nil: false
|
50
50
|
type: json
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-filter-ruby_proc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
@@ -69,7 +69,7 @@ files:
|
|
69
69
|
- example/config.yml
|
70
70
|
- example/sample_01.csv
|
71
71
|
- lib/embulk/filter/ruby_proc.rb
|
72
|
-
homepage: https://github.com/
|
72
|
+
homepage: https://github.com/joker1007/embulk-filter-ruby_proc
|
73
73
|
licenses:
|
74
74
|
- MIT
|
75
75
|
metadata: {}
|