fluent-plugin-redis-counter 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,13 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
 
7
+ services:
8
+ - redis-server
9
+
7
10
  script: bundle exec ruby -S -Itest test/plugin/out_redis_counter.rb
8
11
 
9
12
  branches:
10
13
  only:
11
14
  - master
15
+ - develop
16
+
@@ -1,3 +1,6 @@
1
+ ## 0.3.2
2
+ * add password support for Redis connection.
3
+
1
4
  ## 0.3.1
2
5
  * improve performance
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -3,11 +3,11 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-redis-counter"
6
- s.version = "0.3.1"
6
+ s.version = "0.3.2"
7
7
  s.description = "fluent-plugin-redis-counter is a fluent plugin to count-up/down redis keys."
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Buntaro Okada"]
10
- s.date = %q{2013-05-06}
10
+ s.date = %q{2013-12-18}
11
11
  s.email = "kbinani.bt@gmail.com"
12
12
  s.homepage = "https://github.com/kbinani/fluent-plugin-redis-counter"
13
13
  s.summary = "Redis counter plugin for fluent"
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  class RedisCounterOutput < BufferedOutput
3
3
  Fluent::Plugin.register_output('redis_counter', self)
4
- attr_reader :host, :port, :db_number, :redis, :patterns
4
+ attr_reader :host, :port, :db_number, :password, :redis, :patterns
5
5
 
6
6
  config_param :max_pipelining, :integer, :default => 1000
7
7
 
@@ -15,6 +15,7 @@ module Fluent
15
15
  super
16
16
  @host = conf.has_key?('host') ? conf['host'] : 'localhost'
17
17
  @port = conf.has_key?('port') ? conf['port'].to_i : 6379
18
+ @password = conf.has_key?('password') ? conf['password'] : nil
18
19
  @db_number = conf.has_key?('db_number') ? conf['db_number'].to_i : nil
19
20
  @patterns = []
20
21
  conf.elements.select { |element|
@@ -32,6 +33,7 @@ module Fluent
32
33
  super
33
34
  @redis = Redis.new(
34
35
  :host => @host, :port => @port,
36
+ :password => @password,
35
37
  :thread_safe => true, :db => @db_number
36
38
  )
37
39
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-redis-counter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Buntaro Okada
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-05-06 00:00:00.000000000 Z
12
+ date: 2013-12-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: fluentd
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: redis
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -58,26 +63,27 @@ files:
58
63
  - test/plugin/out_redis_counter.rb
59
64
  homepage: https://github.com/kbinani/fluent-plugin-redis-counter
60
65
  licenses: []
61
- metadata: {}
62
66
  post_install_message:
63
67
  rdoc_options: []
64
68
  require_paths:
65
69
  - lib
66
70
  required_ruby_version: !ruby/object:Gem::Requirement
71
+ none: false
67
72
  requirements:
68
73
  - - ! '>='
69
74
  - !ruby/object:Gem::Version
70
75
  version: '0'
71
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
72
78
  requirements:
73
79
  - - ! '>='
74
80
  - !ruby/object:Gem::Version
75
81
  version: '0'
76
82
  requirements: []
77
83
  rubyforge_project:
78
- rubygems_version: 2.0.3
84
+ rubygems_version: 1.8.23
79
85
  signing_key:
80
- specification_version: 4
86
+ specification_version: 3
81
87
  summary: Redis counter plugin for fluent
82
88
  test_files:
83
89
  - test/plugin/out_redis_counter.rb
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YjI2ZDVjZjQ2ZjkyZGE4N2VlZDIxOTdhMGQzNWQ5MTUzYzUwYmIwYw==
5
- data.tar.gz: !binary |-
6
- MTEyN2U5MDlhZmQ0NmZlNjhiMDEzNmFhNmYwYzdhMjA5NDliMDEwNw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MmEwMjA0YTkxM2NhNWZiMWY5NmY1MzdjNTg0NDA3ZWI5YzQ3NTI5ZjhmNzQz
10
- MGVkZDkxYmZlYjlhM2NjNDY4ZWMwNGE2MWFlODhkNjgzMThjYTliYWFlN2Vm
11
- YmJmOGI2OGRmZGQ5ZmY5YzY4ZTlmYjVhMzIwY2UwNTRlYTYzMmE=
12
- data.tar.gz: !binary |-
13
- ZGUyYTI3MjYxZWRmYWVlY2M5OWEzZTI0ODM0MzNlODk4MmI1MGQ2NjU2Mzdj
14
- MTdiYWEyNjAyOTA2MWQwNzQ3NmQxNDhkY2RkOGJmYjc2ZTMzODAzNTk0M2Iz
15
- NWJkMjY3ZWJiZmZmMjRhMTY4NDNmMjEwNzlhMGUyZDA2NTdjMGI=