lapine 1.2.1 → 1.2.2

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: fb1bdb88dff7bce6e9ebe9ed4fce325fcced6525
4
- data.tar.gz: 9d803f6e4a9248671e14f1f3d8f2d3ee2c2ce44b
3
+ metadata.gz: e8285bfd1148472650488e3124f518401c42f0e2
4
+ data.tar.gz: 86e1d988c0ffb209a66a0a90fe37b6c48a773eca
5
5
  SHA512:
6
- metadata.gz: 71503d5e8b8ec0991da814f1ae59e0caa779c094b0cbc8e7d8d4eca6cdc53f2c199931c5ee97befe660cec97b1b90e63cfd3558005b8d8f07afcf69ad73bf6dc
7
- data.tar.gz: a8f5ad38eaea838e02c527f4fdcaa3a145b0447c03acfda175096733655776acd588f631ef4d6ebfa7717859b2a714e6c2a2ad51ad61fea025f37e36699e271a
6
+ metadata.gz: f2740483f5cffa44e1a5fe2d142cd99e2f0f87b71423bc3fceaf028011b9c25b2bcd6dc65bd21cf40ed73080e975c4efa0b55ce3f72f58b9a62eb720d538e08d
7
+ data.tar.gz: d1f84f3a6c19a923ee810dfaeeef1ef5cb3cf11081ccd3f83946548956d6f63688c899686ec110e935ea5f70396a9a63afc5be8f8bdc27e0cccacdb42d9a3041
@@ -1,6 +1,14 @@
1
1
  Change Log
2
2
  ==========
3
3
 
4
+ ## 1.2.2
5
+
6
+ * Add routing key to dispatcher log
7
+
8
+ ## 1.2.0
9
+
10
+ * Queues can be deleted by using `delete_queues` to configuration YAML file
11
+
4
12
  ## 1.1.2
5
13
 
6
14
  * Exchanges are saved using thread variables instead of fiber variables
@@ -39,7 +39,7 @@ module Lapine
39
39
  ret = yield
40
40
  time_end = Time.now
41
41
  duration = (time_end - time) * 1000
42
- message.logger.info "Processing rabbit message handler:#{delegate_class.name} duration(ms):#{duration} payload:#{json.inspect}"
42
+ message.logger.info "Processing rabbit message handler:#{delegate_class.name} duration(ms):#{duration} routing_key:#{message.routing_key} payload:#{json.inspect}"
43
43
  ret
44
44
  end
45
45
 
@@ -23,6 +23,10 @@ module Lapine
23
23
  def logger
24
24
  self['logger']
25
25
  end
26
+
27
+ def routing_key
28
+ metadata.routing_key
29
+ end
26
30
  end
27
31
  end
28
32
  end
@@ -1,3 +1,3 @@
1
1
  module Lapine
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
@@ -13,7 +13,7 @@ RSpec.describe Lapine::Consumer::Dispatcher do
13
13
  let(:logger) { double('logger') }
14
14
  let(:hash) { {'foo' => 'bar'} }
15
15
  let(:json) { Oj.dump(hash) }
16
- let(:metadata) { double('metadata') }
16
+ let(:metadata) { double('metadata', routing_key: 'routing_key') }
17
17
  let(:delegate) { double('delegate', name: 'ClassName') }
18
18
 
19
19
  let(:caught_errors) { [] }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Saxby
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-04 00:00:00.000000000 Z
12
+ date: 2015-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amqp
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.2.2
229
+ rubygems_version: 2.2.3
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Talk to rabbits
@@ -242,3 +242,4 @@ test_files:
242
242
  - spec/lib/lapine_spec.rb
243
243
  - spec/spec_helper.rb
244
244
  - spec/support/rspec_test_helper.rb
245
+ has_rdoc: