fluent-plugin-rabbitmq 0.0.7 → 0.0.9

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: ba10e05d65915a58bac7723586f08bab88d3eb265a44cdc2a4fbf60d3153dead
4
- data.tar.gz: 7c74417e879e6332f70c943b9c732e7628526687ec8e5613b45767835e36bcd5
3
+ metadata.gz: bb39b34d1e433753ccc9147fb471c96eca6a99c683529711be46556224fe8efd
4
+ data.tar.gz: 0e5339fbc5edf3e1e37d22a7e8cd6b49fcf8a7a28e374e8cfbf7ad9ed4acac13
5
5
  SHA512:
6
- metadata.gz: 11358bb5ae097666f025d6eafd3a975fa3295772ab97701c5084bb79d889db624e873d36088ff629015ffe99415ea0d3e2f5971216ce5ed4e10424284783cfd7
7
- data.tar.gz: f07b05667ca3593c0d7c858b356d4ed39ab7b7451100493bf8c9cc52e79e728d974b1afa664693db7278a79d0ed3bf6dac7a8baee286c172c60a3251b2e29a92
6
+ metadata.gz: c1c6d8e9987b7d52e72137c2e63af0c63290c0bad884a4aa277ea744bbac54c7b761f25da41349e423f945e08f918be20277f6436303f3c66c91f1bea2207782
7
+ data.tar.gz: f935b733e4fe986cf17d190d1eccc002c08507254c2a4cb82f0a50c321411474368e31dfe86947bc83c30d94084926b3e8263aa78a990db5f26553d6fbd64ac7
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .gem
11
+ *.gem
11
12
  .idea
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
4
  Rake::TestTask.new(:test) do |test|
5
- test.libs << "lib" << "test"
5
+ test.libs << "test"
6
6
  test.pattern = "test/**/test_*.rb"
7
7
  test.verbose = false
8
8
  test.warning = false
@@ -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.7"
6
+ spec.version = "0.0.9"
7
7
  spec.authors = ["NTT Communications"]
8
8
  spec.email = ["masaki.matsushita@ntt.com"]
9
9
 
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_runtime_dependency "fluentd", ">= 0.14.0"
25
25
 
26
- spec.add_dependency "bunny", "~> 2.14.2"
26
+ spec.add_dependency "bunny", "~> 2.14.4"
27
27
  end
@@ -68,7 +68,9 @@ module Fluent::Plugin
68
68
  config_param :ttl, :integer, default: nil
69
69
 
70
70
  config_param :include_headers, :bool, default: false
71
+ config_param :include_delivery_info, :bool, default: false
71
72
  config_param :headers_key, :string, default: "headers"
73
+ config_param :delivery_info_key, :string, default: "delivery_info"
72
74
 
73
75
  def initialize
74
76
  super
@@ -94,7 +96,6 @@ module Fluent::Plugin
94
96
  bunny_options[:recovery_attempts] = @recovery_attempts
95
97
  bunny_options[:auth_mechanism] = @auth_mechanism if @auth_mechanism
96
98
  bunny_options[:heartbeat] = @heartbeat if @heartbeat
97
- bunny_options[:logger] = log
98
99
 
99
100
  bunny_options[:tls] = @tls
100
101
  bunny_options[:tls_cert] = @tls_cert if @tls_cert
@@ -144,6 +145,9 @@ module Fluent::Plugin
144
145
  if @include_headers
145
146
  record[@headers_key] = properties.headers
146
147
  end
148
+ if @include_delivery_info
149
+ record[@delivery_info_key] = delivery_info
150
+ end
147
151
  router.emit(@tag, time, record)
148
152
  end
149
153
  end
@@ -89,7 +89,6 @@ module Fluent::Plugin
89
89
  bunny_options[:recovery_attempts] = @recovery_attempts
90
90
  bunny_options[:auth_mechanism] = @auth_mechanism if @auth_mechanism
91
91
  bunny_options[:heartbeat] = @heartbeat if @heartbeat
92
- bunny_options[:logger] = log
93
92
  bunny_options[:frame_max] = @frame_max if @frame_max
94
93
 
95
94
  bunny_options[:tls] = @tls
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.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - NTT Communications
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.14.2
103
+ version: 2.14.4
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.14.2
110
+ version: 2.14.4
111
111
  description: fluent plugin for rabbitmq (AMQP)
112
112
  email:
113
113
  - masaki.matsushita@ntt.com
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.0.3
147
+ rubygems_version: 3.1.2
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: fluent plugin for rabbitmq (AMQP)