fluent-plugin-redis 0.3.3 → 0.3.4
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 +5 -5
- data/.github/ISSUE_TEMPLATE.md +19 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/fluent-plugin-redis.gemspec +3 -3
- data/lib/fluent/plugin/out_redis.rb +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ae84eb6a9435b40bcd189c605de835a276705435fc796a0934f737893dac449b
|
4
|
+
data.tar.gz: c4bc2ac4c90180e9b0307e217f1834e528f43060cbdabe38ffdec1ef7ba724f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9a6ddbb29ee2a29b8af0aed3d1bb7e26ec4a8a51cc2aa6d464d0f839f3faefb3808c99191918c5bc41841146bdfc299485da99b29838dcc70478b0822f6779
|
7
|
+
data.tar.gz: 194beaafb481ffa2c2690c72ce0711b44f7caf2e3071db1e6d585643b4d68617bc036e4d022d24e9c763c2246c263843e5bcd54009e3f24185c0fb31c907535b
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#### Problem
|
2
|
+
|
3
|
+
...
|
4
|
+
|
5
|
+
#### Steps to replicate
|
6
|
+
|
7
|
+
Provide example config and message
|
8
|
+
|
9
|
+
#### Expected Behavior
|
10
|
+
|
11
|
+
...
|
12
|
+
|
13
|
+
#### Your environment
|
14
|
+
|
15
|
+
* OS version
|
16
|
+
* paste result of ``fluentd --version`` or ``td-agent --version``
|
17
|
+
* plugin version
|
18
|
+
* paste boot log of fluentd or td-agent
|
19
|
+
* paste result of ``fluent-gem list``, ``td-agent-gem list`` or your Gemfile.lock
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -60,7 +60,7 @@ They can use v0.3.0 or later. To use this parameters, users must update Fluentd
|
|
60
60
|
|
61
61
|
<em>multi workers</em> are newly introduced feature in Fluentd v0.14.
|
62
62
|
|
63
|
-
It can use this
|
63
|
+
It can use this feature in this plugin in v0.3.3 or later.
|
64
64
|
|
65
65
|
## Contributing to fluent-plugin-redis
|
66
66
|
|
data/fluent-plugin-redis.gemspec
CHANGED
@@ -3,10 +3,10 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-redis"
|
6
|
-
s.version = "0.3.
|
6
|
+
s.version = "0.3.4"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Yuki Nishijima", "Hiroshi Hatake", "Kenji Okimoto"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2019-02-26}
|
10
10
|
s.email = ["mail@yukinishijima.net", "fluent@clear-code.com"]
|
11
11
|
s.homepage = "https://github.com/fluent-plugins-nursery/fluent-plugin-redis"
|
12
12
|
s.summary = "Redis output plugin for Fluent"
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_dependency %q<fluentd>, [">= 0.14.
|
19
|
+
s.add_dependency %q<fluentd>, [">= 0.14.22", "< 2"]
|
20
20
|
s.add_dependency %q<redis>, ["~> 3.3.0"]
|
21
21
|
s.add_development_dependency %q<rake>, [">= 11.3.0"]
|
22
22
|
s.add_development_dependency %q<bundler>
|
@@ -74,7 +74,7 @@ module Fluent::Plugin
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def write(chunk)
|
77
|
-
tag, time = expand_placeholders(chunk
|
77
|
+
tag, time = expand_placeholders(chunk)
|
78
78
|
@redis.pipelined {
|
79
79
|
unless @allow_duplicate_key
|
80
80
|
stream = chunk.to_msgpack_stream
|
@@ -102,9 +102,9 @@ module Fluent::Plugin
|
|
102
102
|
|
103
103
|
private
|
104
104
|
|
105
|
-
def expand_placeholders(
|
106
|
-
tag = extract_placeholders(@insert_key_prefix,
|
107
|
-
time = extract_placeholders(@strftime_format,
|
105
|
+
def expand_placeholders(chunk)
|
106
|
+
tag = extract_placeholders(@insert_key_prefix, chunk)
|
107
|
+
time = extract_placeholders(@strftime_format, chunk)
|
108
108
|
return tag, time
|
109
109
|
end
|
110
110
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuki Nishijima
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.14.
|
21
|
+
version: 0.14.22
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: '2'
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: 0.14.
|
31
|
+
version: 0.14.22
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '2'
|
@@ -110,6 +110,7 @@ executables: []
|
|
110
110
|
extensions: []
|
111
111
|
extra_rdoc_files: []
|
112
112
|
files:
|
113
|
+
- ".github/ISSUE_TEMPLATE.md"
|
113
114
|
- ".gitignore"
|
114
115
|
- ".travis.yml"
|
115
116
|
- CHANGELOG.md
|
@@ -141,8 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
142
|
- !ruby/object:Gem::Version
|
142
143
|
version: '0'
|
143
144
|
requirements: []
|
144
|
-
|
145
|
-
rubygems_version: 2.6.11
|
145
|
+
rubygems_version: 3.0.1
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Redis output plugin for Fluent
|