fluent-plugin-redis 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/CHANGELOG.md +5 -0
- data/README.rdoc +2 -0
- data/VERSION +1 -1
- data/fluent-plugin-redis.gemspec +4 -3
- data/gemfiles/fluentd_v0.10.gemfile +7 -0
- data/gemfiles/fluentd_v0.12.gemfile +7 -0
- data/gemfiles/fluentd_v0.14.gemfile +7 -0
- data/lib/fluent/plugin/out_redis.rb +10 -2
- data/test/plugin/test_out_redis.rb +14 -0
- metadata +21 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41648b43953e7dc91a3ba47acfc658197f3a721a
|
4
|
+
data.tar.gz: 8846bf4342196fe12013f6caa4660835fcd73ea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c71b6fab028ea175e9bb48cdbd0650cdfbdf57de79a006844dfae02b4b438b339b501ecdcb58102aad28e22a42fc76e0248929d99a3d4afe3487370b2b01e24e
|
7
|
+
data.tar.gz: 331dd585d64b33b9c064aed0b2365fa87dc537876688445bfd864a82f283d9756670f8059fc0db4402830097fb20e10c6b9ed648e1d1fc7cba13fbc319a0ad72
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
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.2.
|
6
|
+
s.version = "0.2.2"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Yuki Nishijima", "Hiroshi Hatake", "Kenji Okimoto"]
|
9
|
-
s.date = %q{2016-10-
|
9
|
+
s.date = %q{2016-10-28}
|
10
10
|
s.email = ["mail@yukinishijima.net", "fluent@clear-code.com"]
|
11
11
|
s.homepage = "http://github.com/yuki24/fluent-plugin-redis"
|
12
12
|
s.summary = "Redis output plugin for Fluent"
|
@@ -17,8 +17,9 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
19
|
s.add_dependency %q<fluentd>, [">= 0.10.0", "< 2"]
|
20
|
-
s.add_dependency %q<redis>, ["~>
|
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>
|
23
23
|
s.add_development_dependency %q<test-unit>, ["~> 3.1.0"]
|
24
|
+
s.add_development_dependency %q<appraisal>, ["~> 2.1.0"]
|
24
25
|
end
|
@@ -6,6 +6,7 @@ module Fluent
|
|
6
6
|
config_param :host, :string, :default => 'localhost'
|
7
7
|
config_param :port, :integer, :default => 6379
|
8
8
|
config_param :db_number, :integer, :default => 0
|
9
|
+
config_param :password, :string, :default => nil, :secret => true
|
9
10
|
|
10
11
|
# To support log_level option implemented by Fluentd v0.10.43
|
11
12
|
unless method_defined?(:log)
|
@@ -29,8 +30,15 @@ module Fluent
|
|
29
30
|
def start
|
30
31
|
super
|
31
32
|
|
32
|
-
|
33
|
-
|
33
|
+
options = {
|
34
|
+
:host => @host,
|
35
|
+
:port => @port,
|
36
|
+
:thread_safe => true,
|
37
|
+
:db => @db_number
|
38
|
+
}
|
39
|
+
options[:password] = @password if @password
|
40
|
+
|
41
|
+
@redis = Redis.new(options)
|
34
42
|
end
|
35
43
|
|
36
44
|
def shutdown
|
@@ -21,6 +21,20 @@ class FileOutputTest < Test::Unit::TestCase
|
|
21
21
|
assert_equal 'localhost', @d.instance.host
|
22
22
|
assert_equal 6379, @d.instance.port
|
23
23
|
assert_equal 1, @d.instance.db_number
|
24
|
+
assert_nil @d.instance.password
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_configure_with_password
|
28
|
+
d = create_driver %[
|
29
|
+
host localhost
|
30
|
+
port 6379
|
31
|
+
db_number 1
|
32
|
+
password testpass
|
33
|
+
]
|
34
|
+
assert_equal 'localhost', d.instance.host
|
35
|
+
assert_equal 6379, d.instance.port
|
36
|
+
assert_equal 1, d.instance.db_number
|
37
|
+
assert_equal 'testpass', d.instance.password
|
24
38
|
end
|
25
39
|
|
26
40
|
def test_format
|
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.2.
|
4
|
+
version: 0.2.2
|
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: 2016-10-
|
13
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
@@ -38,14 +38,14 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 3.3.0
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 3.3.0
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rake
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,6 +88,20 @@ dependencies:
|
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 3.1.0
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: appraisal
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 2.1.0
|
98
|
+
type: :development
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 2.1.0
|
91
105
|
description:
|
92
106
|
email:
|
93
107
|
- mail@yukinishijima.net
|
@@ -104,6 +118,9 @@ files:
|
|
104
118
|
- Rakefile
|
105
119
|
- VERSION
|
106
120
|
- fluent-plugin-redis.gemspec
|
121
|
+
- gemfiles/fluentd_v0.10.gemfile
|
122
|
+
- gemfiles/fluentd_v0.12.gemfile
|
123
|
+
- gemfiles/fluentd_v0.14.gemfile
|
107
124
|
- lib/fluent/plugin/out_redis.rb
|
108
125
|
- test/plugin/test_out_redis.rb
|
109
126
|
homepage: http://github.com/yuki24/fluent-plugin-redis
|