fluent-plugin-rabbitmq 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-rabbitmq.gemspec +1 -1
- data/lib/fluent/plugin/in_rabbitmq.rb +9 -1
- data/lib/fluent/plugin/out_rabbitmq.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dfc75a45234c10a10e6246e156988c0cc4e19d7ad8d60fd79854d19e06fd39b
|
4
|
+
data.tar.gz: c46e74385fd360275a09a22b749d58794c2f7587aed4c1ad74715d9d5ae55d5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8e5e837e33d65fdd794e514f7d21919e9c743175eab575780806d0ac35ab3bc1afe21a51a661be47442fbe93cb1378c26b7d42157402f4cc977248a51aef7e
|
7
|
+
data.tar.gz: 992f9faa7efd9447198dc2ce11c47b2244242a35da31bfc15188f68e427928ac45c492a65b35cdbb7d5fef401c2ad95f2ea063302940716fcdf216e7f5326622
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "fluent-plugin-rabbitmq"
|
6
|
-
spec.version = "0.0.
|
6
|
+
spec.version = "0.0.4"
|
7
7
|
spec.authors = ["NTT Communications"]
|
8
8
|
spec.email = ["masaki.matsushita@ntt.com"]
|
9
9
|
|
@@ -114,12 +114,20 @@ module Fluent::Plugin
|
|
114
114
|
end
|
115
115
|
queue.subscribe do |delivery_info, properties, payload|
|
116
116
|
@parser.parse(payload) do |time, record|
|
117
|
-
time = properties[:timestamp]
|
117
|
+
time = if properties[:timestamp]
|
118
|
+
Fluent::EventTime.from_time(properties[:timestamp])
|
119
|
+
else
|
120
|
+
time
|
121
|
+
end
|
118
122
|
router.emit(@tag, time, record)
|
119
123
|
end
|
120
124
|
end
|
121
125
|
end
|
122
126
|
|
127
|
+
def multi_workers_ready?
|
128
|
+
true
|
129
|
+
end
|
130
|
+
|
123
131
|
def shutdown
|
124
132
|
@bunny.close
|
125
133
|
super
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-rabbitmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NTT Communications
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.7.
|
148
|
+
rubygems_version: 2.7.7
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: fluent plugin for rabbitmq (AMQP)
|