fluent-plugin-amqp 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDYxODgwMGQyNmM5ZWE5ZDQyMzA4MTkwMDhjMDllZjFhZjRkODdmMA==
5
- data.tar.gz: !binary |-
6
- NzJmNTIxYTMxYzRkOTM3ZGM5Zjk4OWJkYWQwZTJjMzljNmJlNTYzZA==
2
+ SHA1:
3
+ metadata.gz: 9e5ef78a2bf85bbc437eb8df64cdb638c0337044
4
+ data.tar.gz: ee1114cb9e1da07cf4273cc4725fbdba30077f02
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NWUyNzFiMzlmZmZmNjAyNGYwZDBmZjkxYjE5NmVlNDM5NzY3Njc4ZTU1NDUy
10
- OTY1MjM2NTk1NmRlNGM4NTAyOTlkOTBiZTVmMTlkMjZjYzNmZWY2ZWNiM2Iw
11
- MmQ5MDE3NWM1MDYzNWI4NjNmMDhiYzZjZmM4ZmE0MzJhNGNlMmQ=
12
- data.tar.gz: !binary |-
13
- NTBhMTQxYTJhYWMzNmI4OWNkZGE5Mjc1Y2ZhNjhjODYzYjI2Mjk5MGQyZDgz
14
- YWM4ZmVmMzk3ZTRjNjBkMWI5YTExYTE4YzBkYzQyZGQ1NzIzMzAzYjJkMzU3
15
- OTg4MTQ3NzNjZGM4Zjc5MTk4NjBjMWNmODE3ZGY5Yjg0YmYxZTc=
6
+ metadata.gz: de068f84be516289eb63ad457fd3b79694362638930821274f6aed006f5ccdbc989f549792d0c4c8ab2a867d2dec5149fd80cba276e7af32dac660e03e275b33
7
+ data.tar.gz: 90c7ea3f6cb02d9690f426d2f1c81d09d9bb49f1374dc530addc279578f5720d4eed43fcc5ea6495fb243ac52c550164218180842d794b056d09ebe2612bbf1e
@@ -2,11 +2,16 @@ module Fluent
2
2
  class AMQPInput < Input
3
3
  Fluent::Plugin.register_input('amqp', self)
4
4
 
5
+ # Define `router` method of v0.12 to support v0.10.57 or earlier
6
+ unless method_defined?(:router)
7
+ define_method("router") { Engine }
8
+ end
9
+
5
10
  config_param :tag, :string, :default => "hunter.amqp"
6
11
 
7
12
  config_param :host, :string, :default => nil
8
13
  config_param :user, :string, :default => "guest"
9
- config_param :pass, :string, :default => "guest"
14
+ config_param :pass, :string, :default => "guest", :secret => true
10
15
  config_param :vhost, :string, :default => "/"
11
16
  config_param :port, :integer, :default => 5672
12
17
  config_param :ssl, :bool, :default => false
@@ -60,7 +65,7 @@ module Fluent
60
65
  :exclusive => @exclusive, :auto_delete => @auto_delete)
61
66
  q.subscribe do |_, _, msg|
62
67
  payload = parse_payload(msg)
63
- Engine.emit(@tag, Time.new.to_i, payload)
68
+ router.emit(@tag, Time.new.to_i, payload)
64
69
  end
65
70
  end # AMQPInput#run
66
71
 
@@ -4,7 +4,7 @@ module Fluent
4
4
 
5
5
  config_param :host, :string, :default => nil
6
6
  config_param :user, :string, :default => "guest"
7
- config_param :pass, :string, :default => "guest"
7
+ config_param :pass, :string, :default => "guest", :secret => true
8
8
  config_param :vhost, :string, :default => "/"
9
9
  config_param :port, :integer, :default => 5672
10
10
  config_param :ssl, :bool, :default => false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiromi Ishii
@@ -16,72 +16,86 @@ dependencies:
16
16
  name: fluentd
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.10.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: 0.10.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: bunny
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: 1.1.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.1.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: shoulda
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ! '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ! '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rake
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ! '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ! '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: minitest
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - <
75
+ - - "<"
76
76
  - !ruby/object:Gem::Version
77
77
  version: 5.0.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - <
82
+ - - "<"
83
83
  - !ruby/object:Gem::Version
84
84
  version: 5.0.0
85
+ - !ruby/object:Gem::Dependency
86
+ name: test-unit
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 3.1.0
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 3.1.0
85
99
  description: AMQP input/output plugin for fluentd
86
100
  email: sawanoboriyu@higanworks.com
87
101
  executables: []
@@ -104,18 +118,19 @@ require_paths:
104
118
  - lib
105
119
  required_ruby_version: !ruby/object:Gem::Requirement
106
120
  requirements:
107
- - - ! '>='
121
+ - - ">="
108
122
  - !ruby/object:Gem::Version
109
123
  version: '0'
110
124
  required_rubygems_version: !ruby/object:Gem::Requirement
111
125
  requirements:
112
- - - ! '>='
126
+ - - ">="
113
127
  - !ruby/object:Gem::Version
114
128
  version: '0'
115
129
  requirements: []
116
130
  rubyforge_project:
117
- rubygems_version: 2.2.2
131
+ rubygems_version: 2.4.6
118
132
  signing_key:
119
133
  specification_version: 4
120
134
  summary: AMQP input/output plugin or fluentd
121
135
  test_files: []
136
+ has_rdoc: