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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fc334814dcafbef15eb33adeaaea1061fdea253944b954245f962e3b3843da3
4
- data.tar.gz: 265987ad2a09b8316d8b375596c029c661ee06fcf1e86cd8bdf53bb4963929c3
3
+ metadata.gz: 7dfc75a45234c10a10e6246e156988c0cc4e19d7ad8d60fd79854d19e06fd39b
4
+ data.tar.gz: c46e74385fd360275a09a22b749d58794c2f7587aed4c1ad74715d9d5ae55d5c
5
5
  SHA512:
6
- metadata.gz: b12c45f94a7942d594ee047dea3dd7c577bf6d6c0b9628b7e1a08ab4222202289f78586e152b8b0a64a9c8897031eb9d3b6ac2dc317088f930c093b8389cba5e
7
- data.tar.gz: 91f1e7e5eea7b63015d84d5fb9e1c572a9da31242972d07e604b783fdde1b642d979ed8ce06450af4b3ed818fb49879b920ab2699d6a42ddc2c17f1fa4ee3444
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.3"
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] || time
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
@@ -141,6 +141,10 @@ module Fluent::Plugin
141
141
  end
142
142
  end
143
143
 
144
+ def multi_workers_ready?
145
+ true
146
+ end
147
+
144
148
  private
145
149
 
146
150
  def format(tag, time, record)
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.3
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-05-16 00:00:00.000000000 Z
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.6
148
+ rubygems_version: 2.7.7
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: fluent plugin for rabbitmq (AMQP)