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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 911204f43abd2acd2d9ac90317e474994fbdf221
4
- data.tar.gz: 4521e06844679d721b5e9a21e7d01a368b600278
3
+ metadata.gz: 69bb84ba17676cef2b758609976a1eea10c774c5
4
+ data.tar.gz: 458c5b32584e6faf8028f5742ff9f283eb261123
5
5
  SHA512:
6
- metadata.gz: 8da351fbf8fe0f39f9e29289bd0365bce6ecc03af0f833c2088fda6fdc9a7b0789781f99a70b44e452adda9824804e192e8256e1290e5f61154c5d497084f3d9
7
- data.tar.gz: 2f1ad9b592fb2210ada815239e5bed14f1f4265c2fc43ee715102542e87f97dacef2998031ad4b44b693ecf0fc3aef1b6afdd0b3ea2ce4e3e9c6da32d2fbd600
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.to_json
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) }.to_json
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.0"
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/kakyoin.hierophant/embulk-filter-ruby_proc"
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.to_json
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) }.to_json
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.0
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/kakyoin.hierophant/embulk-filter-ruby_proc
72
+ homepage: https://github.com/joker1007/embulk-filter-ruby_proc
73
73
  licenses:
74
74
  - MIT
75
75
  metadata: {}