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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3ea8b3fcc23f186826e6d99e3e172d9cbd59585
4
- data.tar.gz: 27f1d63f6cb52276fb56f9d867bdba34b5d84c54
3
+ metadata.gz: 41648b43953e7dc91a3ba47acfc658197f3a721a
4
+ data.tar.gz: 8846bf4342196fe12013f6caa4660835fcd73ea4
5
5
  SHA512:
6
- metadata.gz: d0661155c6258417afece07b73b1754887391304f3ba881fd228519da7bcee309a1af691d9026f2c1a8281a5a1ceeca3eca6a769a275bdab2b637604351360c3
7
- data.tar.gz: 6fa9867c2bede27d7089bc571b832b5bc949694f4efb7f8bf20f6fdfabc0dbba58010a39824d00b4f80a8a8daa9cddca278f0e6e6b2d6f804ffbb823506b0fc1
6
+ metadata.gz: c71b6fab028ea175e9bb48cdbd0650cdfbdf57de79a006844dfae02b4b438b339b501ecdcb58102aad28e22a42fc76e0248929d99a3d4afe3487370b2b01e24e
7
+ data.tar.gz: 331dd585d64b33b9c064aed0b2365fa87dc537876688445bfd864a82f283d9756670f8059fc0db4402830097fb20e10c6b9ed648e1d1fc7cba13fbc319a0ad72
@@ -5,5 +5,10 @@ rvm:
5
5
  - 2.1
6
6
  - 2.2
7
7
  - 2.3.3
8
+ gemfile:
9
+ - gemfiles/fluentd_v0.10.gemfile
10
+ - gemfiles/fluentd_v0.12.gemfile
11
+ - gemfiles/fluentd_v0.14.gemfile
12
+ - Gemfile
8
13
  before_install:
9
14
  - gem update bundler
@@ -1,3 +1,8 @@
1
+ ## 0.2.2
2
+
3
+ * Use redis-rb 3.2.x
4
+ * Support requirepass authentication
5
+
1
6
  ## 0.2.1
2
7
 
3
8
  * Use config_param to clarify supported/default parameters.
@@ -20,6 +20,8 @@ Then fluent automatically loads the plugin installed.
20
20
 
21
21
  # database number is optional.
22
22
  db_number 0 # 0 is default
23
+ # If requirepass is set, please specify this.
24
+ # password hogefuga
23
25
  </match>
24
26
 
25
27
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.2
@@ -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.1"
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-25}
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>, ["~> 2.2.2"]
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
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "fluentd", "~> 0.10.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "fluentd", "~> 0.12.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "fluentd", "~> 0.14.0"
6
+
7
+ gemspec :path => "../"
@@ -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
- @redis = Redis.new(:host => @host, :port => @port,
33
- :thread_safe => true, :db => @db_number)
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.1
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-25 00:00:00.000000000 Z
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: 2.2.2
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: 2.2.2
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