fluent-plugin-kinesis-alt 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cfc7866ce0006f1ffdcfb0f0ecdc30558a5df997
4
- data.tar.gz: e45f0d00255c99bc6cd786fc54f322e081c43f36
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YWMyODQxZDU2MjQzYjliODJiOGMxNzM2MzUzNjIzOGQxYTJlNjU1ZQ==
5
+ data.tar.gz: !binary |-
6
+ MjU3ZDVkNmQwMzdmOTRkYjM0NDIyODFmNTljOTdhMTAwMDY0MmM5Ng==
5
7
  SHA512:
6
- metadata.gz: 98706b5fe436280c1ab66fa3191137b9936ea9db6dcacc1d6033761438d3f2fd4ef906b8b6174639542b9e63520c8199bb338bdb94ed2da6af2c2fa99bd3b3c3
7
- data.tar.gz: 744f4540579994a7ec5448215cdcd2bc57fa767c5ffabdb569c0bb7d87f1c20e7b157c20940d50fa9a58eef10a07d9e01c0f009f01af12821c66efbfd93d2cc1
8
+ metadata.gz: !binary |-
9
+ MWY0OTgzZDAwYTk0ZjVlNmU3YTc2ODdkM2NkMDNiNjQ4YmI0M2RkMzU1ZDE2
10
+ OGY1YTEyNzQ5NzYyYzJkYWQ2ZjM0YTA2MTY1YzkwZjBjN2IyNDEwNTMzMGE2
11
+ MDQwMjkzYjdjMTNlZThmMmEyNzE1YzczNjAwNDk0ZTRkMTQ3ZjU=
12
+ data.tar.gz: !binary |-
13
+ OTVhZjgyMDQyNGYyYjdjNTUzNzI1NjdlMDZjYWNmMjljMjQ1MjY3MTgwYzA3
14
+ NThjNTZiMjY5MjQ4MzZhYTY5MTkwZTBmM2JkNDk2N2Q2ZGRkZTQ3MzljOGIy
15
+ ZTIzNmEzMWJiY2IxOGJiN2E2OWIwNWYwYTExZGRjMDY2ZTRlOGM=
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Output filter plugin for Amazon Kinesis
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/fluent-plugin-kinesis-alt.png)](http://badge.fury.io/rb/fluent-plugin-kinesis-alt)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -35,7 +37,7 @@ Or install it yourself as:
35
37
  # JSON Object Hash Key for PartitionKey
36
38
  # e.g.)
37
39
  # JSON Object: {'foo': 100, 'bar': 200}
38
- # fluent config: partition_key=foo
40
+ # fluentd conf: partition_key=foo
39
41
  # -> PutRecord Action: PartitionKey=100
40
42
 
41
43
  partition_key_proc proc {|i| Time.now.to_i.to_s }
@@ -43,8 +45,9 @@ Or install it yourself as:
43
45
  # partition_key_proc:
44
46
  # Ruby Code to create PartitionKey
45
47
  # e.g.)
46
- # fluent config: partition_key_proc=proc {|i| 100 + 200 }
47
- # -> PutRecord Action: PartitionKey=300
48
+ # JSON Object: {'foo': 100, 'bar': 200}
49
+ # fluentd conf: partition_key_proc=proc {|i| i['bar'] }
50
+ # -> PutRecord Action: PartitionKey=200
48
51
 
49
52
  #explicit_hash_key ...
50
53
  #explicit_hash_key_proc ...
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'fluent-plugin-kinesis-alt'
7
- spec.version = '0.0.1'
7
+ spec.version = '0.0.2'
8
8
  spec.authors = ['Genki Sugawara']
9
9
  spec.email = ['sgwr_dts@yahoo.co.jp']
10
10
  spec.description = 'Output filter plugin for Amazon Kinesis'
11
11
  spec.summary = 'Output filter plugin for Amazon Kinesis'
12
- spec.homepage = ''
12
+ spec.homepage = 'https://bitbucket.org/winebarrel/fluent-plugin-kinesis-alt'
13
13
  spec.license = 'MIT'
14
14
 
15
15
  spec.files = `git ls-files`.split($/)
@@ -94,7 +94,7 @@ module Fluent
94
94
 
95
95
  def configure_aws
96
96
  options = {
97
- :access_key_id => @aws_key_id ,
97
+ :access_key_id => @aws_key_id,
98
98
  :secret_access_key => @aws_sec_key,
99
99
  :region => @region
100
100
  }
@@ -115,7 +115,10 @@ module Fluent
115
115
  key_proc = self.instance_variable_get("@#{name}_proc")
116
116
 
117
117
  value = key ? record[key] : record
118
- value = key_proc.call(value) if key_proc
118
+
119
+ if key_proc
120
+ value = key_proc.arity.zero? ? key_proc.call : key_proc.call(value)
121
+ end
119
122
 
120
123
  value.to_s
121
124
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kinesis-alt
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
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-23 00:00:00.000000000 Z
11
+ date: 2013-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sdk
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.31.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.31.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Output filter plugin for Amazon Kinesis
@@ -96,7 +96,7 @@ files:
96
96
  - lib/fluent/plugin/out_kinesis_alt.rb
97
97
  - test/helper.rb
98
98
  - test/plugin/test_out_kinesis_alt.rb
99
- homepage: ''
99
+ homepage: https://bitbucket.org/winebarrel/fluent-plugin-kinesis-alt
100
100
  licenses:
101
101
  - MIT
102
102
  metadata: {}
@@ -106,17 +106,17 @@ require_paths:
106
106
  - lib
107
107
  required_ruby_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ! '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - '>='
114
+ - - ! '>='
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.0.14
119
+ rubygems_version: 2.1.11
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Output filter plugin for Amazon Kinesis