fluent-plugin-sqs 1.6.2 → 1.6.3

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: 0628a3f6f51b51080064b97080ac79738f939017
4
- data.tar.gz: d19800d15df393d4d7395dafe5cc00398b55126a
3
+ metadata.gz: 2c999fdec11adda86dff1b9ec330d8f942df1b23
4
+ data.tar.gz: 8cfbcb31d727fb84b30f1da0b4c48d04c3f90454
5
5
  SHA512:
6
- metadata.gz: e43bc1ad131e4636ca9e074490886e6b6b123a7d0c68da480af54a4f43015acc4a197fba4f8c546a914875d3c8896fbc4099ad615500975bd63414c27d4da910
7
- data.tar.gz: be39293222071bcbffd2234a07173523bd159292c2c62aa18c65d867950458167cdf955048436c7e0a4cdff732ef7c3e2b8d934fbafd65e8f87a84a693c429b6
6
+ metadata.gz: 74ae54a886fb7a3375f12c501c404f284cb4ca46cea054684781715612590a0a789e4a756ac7312612bebc30678e8395b2ef40da39af84dda582f9ea169854f1
7
+ data.tar.gz: 3bd990bdbd70a82cd14179aeaf79d62c7bdc1d18af7581ea1ad8951fb8e804b02d36165072827e2268685896b290e4f9e6ac2eaaac28f7e0aa53ee0ecdc3aa14
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.2
1
+ 1.6.3
@@ -5,6 +5,10 @@ module Fluent
5
5
  class SQSInput < Input
6
6
  Plugin.register_input('sqs', self)
7
7
 
8
+ unless method_defined?(:router)
9
+ define_method("router") { Fluent::Engine }
10
+ end
11
+
8
12
  def initialize
9
13
  super
10
14
  end
@@ -60,7 +64,7 @@ module Fluent
60
64
  record['url'] = message.queue.url.to_s
61
65
  record['sender_id'] = message.sender_id.to_s
62
66
 
63
- Engine.emit(@tag, Time.now.to_i, record)
67
+ router.emit(@tag, Time.now.to_i, record)
64
68
  end
65
69
  rescue
66
70
  $log.error "failed to emit or receive", :error => $!.to_s, :error_class => $!.class.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Odagiri