fluent-plugin-rawexec 0.0.1 → 0.0.2

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: c5d55c9f4ba6ebff89980ca7d7d7bb408fbd9295
4
- data.tar.gz: b7f6bf2b43dbfb5c1a0d685036b7e0372d95a72e
3
+ metadata.gz: 3f174c55dc5b9dc66e83f1fbce80a2555fad2214
4
+ data.tar.gz: e2cabc2d0cec3e3e3cd32e08499931fe190e4672
5
5
  SHA512:
6
- metadata.gz: c00630e1705ebdf162cbd3976678e29a396d6586e637374b02e0962e48f0b82275cdde7ca51f8bfeb1f446270a92169d1816902b596b88ca2ce8d4078d44f4e9
7
- data.tar.gz: d6671db8a858380d07e9f85ce18181048a10abaac5319ce0d5449013215cc487ab4154a40de14211b9b78dbce2b9ab316e1e153fff694c4f77ca543ea3073d0d
6
+ metadata.gz: a20849ee732f633a509b2eede2c70d54758bfa6330ec042a0e7134b0a93c019d43a0428cc17a9d088fe1e00dd958b4f4093bd2bbad5ab4129803a9b33ff3cbf3
7
+ data.tar.gz: 0d95e3f402aa4b0e3b8d816e1046a122c4f57d1851a4f501852806db12a45aeb674a57e561208a58cac3b390c62dd4f6345b451595bf5184389faf8a5cf89f6f
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.0.2
5
+ =====
6
+
7
+ - Add tag merge option
8
+
4
9
  0.0.1
5
10
  =====
6
11
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-rawexec"
6
- s.version = '0.0.1'
6
+ s.version = '0.0.2'
7
7
  s.authors = ["FangLi"]
8
8
  s.email = ["surivlee@gmail.com"]
9
9
  s.description = %q{Execute user script with RAW message output plugin for Fluentd}
@@ -26,11 +26,15 @@ module Fluent
26
26
  end
27
27
 
28
28
  config_param :command, :string
29
+ config_param :tag, :string, :default => nil
29
30
 
30
31
  def configure(conf)
31
32
  super
32
33
 
33
34
  def format(tag, time, record)
35
+ if @tag
36
+ record.merge!(@tag => tag)
37
+ end
34
38
  out = ''
35
39
  out << record.to_s
36
40
  out << "\n"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-rawexec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FangLi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-21 00:00:00.000000000 Z
11
+ date: 2014-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd