fluent-plugin-record-reformer 0.0.3 → 0.1.0

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: 6215d33a2b111ebb725f18a0e7c005c3ac61941d
4
- data.tar.gz: 9ae28141af77da97e9f1d184a64573114e22c1ad
3
+ metadata.gz: 7f559864ef660d47eddb8014db068e4bde4ada84
4
+ data.tar.gz: d386239a2519be28502c088d5943ac6fa40a8271
5
5
  SHA512:
6
- metadata.gz: 3e9b89f7c08477689912fefa5766f30fab6dca8083e28932b60ac602dac1f6310cd8953722c69b92d961682cd5eebed36112b09193b874629bdd58c7ecdbbc38
7
- data.tar.gz: a1c5312176c270143bb9cf8d86b4245917dc5961450938de67953855a26f7327eea9066eda2e1ed7948843322f9424c191f3745776257e207ee56617611a92d0
6
+ metadata.gz: f4803fe2a264683ad621602819a4e646afcd94b3a22a7263344a3278df4bd8240dd41bee86b566437c831afbf7b864f69ef8beeaf62295d6967c4e01c9bf7a57
7
+ data.tar.gz: 96de88d6872141f4804c168baa526767be7cb49ab2ea14389bad1d5255bee9508b872c7c906f5e17e74023bc95303d48eaea0ea518729e3f8daf4642cf17b3b2
@@ -1,3 +1,9 @@
1
+ ## 0.1.0 (2013/09/09)
2
+
3
+ Enhancement:
4
+
5
+ * require 'pathname', 'uri', 'cgi' to use these utilities in a placeholder
6
+
1
7
  ## 0.0.3 (2013/08/07)
2
8
 
3
9
  Enhancement:
data/README.md CHANGED
@@ -42,6 +42,8 @@ reformed.foo.bar {
42
42
  }
43
43
  ```
44
44
 
45
+ Note that the keyword `output_tag` is reserved for the output tag. It can not be used as a record key.
46
+
45
47
  ### Placeholders
46
48
 
47
49
  The keys of input json are available as placeholders. In the above example,
@@ -67,7 +69,8 @@ Please note that this plugin enables to execute any ruby codes. Do not allow any
67
69
 
68
70
  ## Relatives
69
71
 
70
- * inspired by [fluent-plugin-record-modifier](https://github.com/repeatedly/fluent-plugin-record-modifier)
72
+ I created this plugin inspired by [fluent-plugin-record-modifier](https://github.com/repeatedly/fluent-plugin-record-modifier).
73
+ I chose not to send pull requests because the implementation of this plugin became completely different with it.
71
74
 
72
75
  ## ChangeLog
73
76
 
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "fluent-plugin-record-reformer"
6
- gem.version = "0.0.3"
6
+ gem.version = "0.1.0"
7
7
  gem.authors = ["Naotoshi Seo"]
8
8
  gem.email = "sonots@gmail.com"
9
9
  gem.homepage = "https://github.com/sonots/fluent-plugin-record-reformer"
@@ -4,6 +4,14 @@ module Fluent
4
4
  class RecordReformerOutput < Output
5
5
  Fluent::Plugin.register_output('record_reformer', self)
6
6
 
7
+ def initialize
8
+ super
9
+ # require utilities for placeholder
10
+ require 'pathname'
11
+ require 'uri'
12
+ require 'cgi'
13
+ end
14
+
7
15
  config_param :output_tag, :string
8
16
 
9
17
  BUILTIN_CONFIGURATIONS = %W(type output_tag)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-record-reformer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-07 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd