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 +4 -4
- data/Changelog.md +8 -0
- data/lib/lapine/consumer/dispatcher.rb +1 -1
- data/lib/lapine/consumer/message.rb +4 -0
- data/lib/lapine/version.rb +1 -1
- data/spec/lib/lapine/consumer/dispatcher_spec.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8285bfd1148472650488e3124f518401c42f0e2
|
4
|
+
data.tar.gz: 86e1d988c0ffb209a66a0a90fe37b6c48a773eca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2740483f5cffa44e1a5fe2d142cd99e2f0f87b71423bc3fceaf028011b9c25b2bcd6dc65bd21cf40ed73080e975c4efa0b55ce3f72f58b9a62eb720d538e08d
|
7
|
+
data.tar.gz: d1f84f3a6c19a923ee810dfaeeef1ef5cb3cf11081ccd3f83946548956d6f63688c899686ec110e935ea5f70396a9a63afc5be8f8bdc27e0cccacdb42d9a3041
|
data/Changelog.md
CHANGED
@@ -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
|
|
data/lib/lapine/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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:
|