isimud 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -2
- data/checksum/isimud-1.4.3.gem.sha512 +1 -0
- data/checksum/isimud-1.4.4.gem.sha512 +1 -0
- data/doc/_index.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +8 -3
- data/doc/index.html +8 -3
- data/doc/top-level-namespace.html +1 -1
- data/lib/isimud/bunny_client.rb +8 -4
- data/lib/isimud/event.rb +1 -1
- data/lib/isimud/version.rb +1 -1
- data/release +2 -0
- metadata +4 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be25c243b83ec1ee3fb00c2fe168cec3e7691ad9
|
|
4
|
+
data.tar.gz: dc9effc0a4c327ac938dfc5653e758fc6cc5825c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96ca6a4a31d85920e01b8eacd49616c0fe3019f304c6ce09cc60a99d35ab023371191cd511ec642958794d908b7c554833544fc80b59269164470f5b5f7863a6
|
|
7
|
+
data.tar.gz: 54dfe6198a5fdef27aa259ff3f6a69f83c51aed6033c136e87fa3fce4079647e5e772b8e0325148d24ba054a2ba44d94b9d371fd2054ec1d2fd4c049f6680ddb
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -96,8 +96,8 @@ Each time that a message is retrieved from the queue, the following properties a
|
|
|
96
96
|
| name | contents |
|
|
97
97
|
| ---- | -------- |
|
|
98
98
|
| isimud_queue_name | Name of the queue processing the thread |
|
|
99
|
-
| isimud_delivery_info | Message delivery information
|
|
100
|
-
| isimud_properties | Message properties metadata (
|
|
99
|
+
| isimud_delivery_info | Message delivery information *(Bunny::DeliveryInfo)* |
|
|
100
|
+
| isimud_properties | Message properties metadata *(Bunny::MessageProperties)* |
|
|
101
101
|
|
|
102
102
|
### Exception Handling
|
|
103
103
|
|
|
@@ -120,6 +120,10 @@ the message is not re-queued.
|
|
|
120
120
|
|
|
121
121
|
# Changes
|
|
122
122
|
|
|
123
|
+
## 1.4.4
|
|
124
|
+
|
|
125
|
+
* Check if current channel is open before sending message ack
|
|
126
|
+
|
|
123
127
|
## 1.4.3
|
|
124
128
|
|
|
125
129
|
* When an exception is raised during message processing, check status of channel before calling reject()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ae92cd98e9aabab65bcc96ed1d4e091270caed04fb18fc401094a1cd8fcbfa55f465f00c41d58fda203697868098833c25e0b5e6fdb3443f175b0e4360384839
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0b84b244583deef76b0ecdeadcb8d003eea29bfb8a2d69dc0c6699ee3606e4b8768c14e6d6fb7e5ee242258a795dd9ba9cc7c73d2dbb5ccf725769fda67e7564
|
data/doc/_index.html
CHANGED
data/doc/file.LICENSE.html
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<div id="content"><div id='filecontents'>Copyright (c) 2016 Welltok Inc.<br/><br/>Permission is hereby granted, free of charge, to any person obtaining a copy<br/>of this software and associated documentation files (the "Software"), to deal<br/>in the Software without restriction, including without limitation the rights<br/>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br/>copies of the Software, and to permit persons to whom the Software is<br/>furnished to do so, subject to the following conditions:<br/><br/>The above copyright notice and this permission notice shall be included in all<br/>copies or substantial portions of the Software.<br/><br/>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br/>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br/>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br/>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br/>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br/>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>SOFTWARE.</div></div>
|
|
65
65
|
|
|
66
66
|
<div id="footer">
|
|
67
|
-
Generated on
|
|
67
|
+
Generated on Tue Sep 20 11:31:59 2016 by
|
|
68
68
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
69
69
|
0.8.7.6 (ruby-2.3.0).
|
|
70
70
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -191,8 +191,8 @@ properties are set in the current thread:</p>
|
|
|
191
191
|
|
|
192
192
|
<p>| name | contents | | —- | ——– | | isimud_queue_name | Name of the queue
|
|
193
193
|
processing the thread | | isimud_delivery_info | Message delivery
|
|
194
|
-
information
|
|
195
|
-
properties metadata
|
|
194
|
+
information <em>(Bunny::DeliveryInfo)</em> | | isimud_properties | Message
|
|
195
|
+
properties metadata <em>(Bunny::MessageProperties)</em> |</p>
|
|
196
196
|
|
|
197
197
|
<h3 id="label-Exception+Handling">Exception Handling</h3>
|
|
198
198
|
|
|
@@ -217,6 +217,11 @@ falsey, the message is not re-queued.</p>
|
|
|
217
217
|
|
|
218
218
|
<h1 id="label-Changes">Changes</h1>
|
|
219
219
|
|
|
220
|
+
<h2 id="label-1.4.4">1.4.4</h2>
|
|
221
|
+
<ul><li>
|
|
222
|
+
<p>Check if current channel is open before sending message ack</p>
|
|
223
|
+
</li></ul>
|
|
224
|
+
|
|
220
225
|
<h2 id="label-1.4.3">1.4.3</h2>
|
|
221
226
|
<ul><li>
|
|
222
227
|
<p>When an exception is raised during message processing, check status of
|
|
@@ -582,7 +587,7 @@ feature'</code>)</p>
|
|
|
582
587
|
</div></div>
|
|
583
588
|
|
|
584
589
|
<div id="footer">
|
|
585
|
-
Generated on
|
|
590
|
+
Generated on Tue Sep 20 11:31:59 2016 by
|
|
586
591
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
587
592
|
0.8.7.6 (ruby-2.3.0).
|
|
588
593
|
</div>
|
data/doc/index.html
CHANGED
|
@@ -191,8 +191,8 @@ properties are set in the current thread:</p>
|
|
|
191
191
|
|
|
192
192
|
<p>| name | contents | | —- | ——– | | isimud_queue_name | Name of the queue
|
|
193
193
|
processing the thread | | isimud_delivery_info | Message delivery
|
|
194
|
-
information
|
|
195
|
-
properties metadata
|
|
194
|
+
information <em>(Bunny::DeliveryInfo)</em> | | isimud_properties | Message
|
|
195
|
+
properties metadata <em>(Bunny::MessageProperties)</em> |</p>
|
|
196
196
|
|
|
197
197
|
<h3 id="label-Exception+Handling">Exception Handling</h3>
|
|
198
198
|
|
|
@@ -217,6 +217,11 @@ falsey, the message is not re-queued.</p>
|
|
|
217
217
|
|
|
218
218
|
<h1 id="label-Changes">Changes</h1>
|
|
219
219
|
|
|
220
|
+
<h2 id="label-1.4.4">1.4.4</h2>
|
|
221
|
+
<ul><li>
|
|
222
|
+
<p>Check if current channel is open before sending message ack</p>
|
|
223
|
+
</li></ul>
|
|
224
|
+
|
|
220
225
|
<h2 id="label-1.4.3">1.4.3</h2>
|
|
221
226
|
<ul><li>
|
|
222
227
|
<p>When an exception is raised during message processing, check status of
|
|
@@ -582,7 +587,7 @@ feature'</code>)</p>
|
|
|
582
587
|
</div></div>
|
|
583
588
|
|
|
584
589
|
<div id="footer">
|
|
585
|
-
Generated on
|
|
590
|
+
Generated on Tue Sep 20 11:31:59 2016 by
|
|
586
591
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
587
592
|
0.8.7.6 (ruby-2.3.0).
|
|
588
593
|
</div>
|
data/lib/isimud/bunny_client.rb
CHANGED
|
@@ -17,7 +17,7 @@ module Isimud
|
|
|
17
17
|
# @see Bunny.new for connection options
|
|
18
18
|
def initialize(_url = nil, _bunny_options = {})
|
|
19
19
|
log "Isimud::BunnyClient.initialize: options = #{_bunny_options.inspect}"
|
|
20
|
-
@url
|
|
20
|
+
@url = _url || DEFAULT_URL
|
|
21
21
|
@url.symbolize_keys! if @url.respond_to?(:symbolize_keys!)
|
|
22
22
|
@bunny_options = _bunny_options.symbolize_keys
|
|
23
23
|
end
|
|
@@ -74,11 +74,15 @@ module Isimud
|
|
|
74
74
|
Thread.current['isimud_delivery_info'] = delivery_info
|
|
75
75
|
Thread.current['isimud_properties'] = properties
|
|
76
76
|
block.call(payload)
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
if current_channel.open?
|
|
78
|
+
log "Isimud: queue #{queue.name} finished with #{properties[:message_id]}, acknowledging", :debug
|
|
79
|
+
current_channel.ack(delivery_info.delivery_tag)
|
|
80
|
+
else
|
|
81
|
+
log "Isimud: queue #{queue.name} unable to acknowledge #{properties[:message_id]}", :warn
|
|
82
|
+
end
|
|
79
83
|
rescue => e
|
|
80
84
|
log("Isimud: queue #{queue.name} error processing #{properties[:message_id]} payload #{payload.inspect}: #{e.class.name} #{e.message}\n #{e.backtrace.join("\n ")}", :warn)
|
|
81
|
-
retry_status
|
|
85
|
+
retry_status = run_exception_handlers(e)
|
|
82
86
|
log "Isimud: rejecting #{properties[:message_id]} requeue=#{retry_status}", :warn
|
|
83
87
|
current_channel.open? && current_channel.reject(delivery_info.delivery_tag, retry_status)
|
|
84
88
|
end
|
data/lib/isimud/event.rb
CHANGED
|
@@ -119,7 +119,7 @@ module Isimud
|
|
|
119
119
|
|
|
120
120
|
def publish
|
|
121
121
|
data = self.serialize
|
|
122
|
-
log "Event#publish: #{
|
|
122
|
+
log "Event#publish: exchange #{exchange} message_id=#{message_id}"
|
|
123
123
|
Isimud.client.publish(exchange, routing_key, data, message_id: message_id)
|
|
124
124
|
end
|
|
125
125
|
end
|
data/lib/isimud/version.rb
CHANGED
data/release
CHANGED
|
@@ -22,6 +22,8 @@ checksum_path = "checksum/#{gem_name}-#{Isimud::VERSION}.gem.sha512"
|
|
|
22
22
|
File.open(checksum_path, 'w') { |f| f.write(checksum) }
|
|
23
23
|
run! "git add #{checksum_path}"
|
|
24
24
|
run! "git commit -m 'added checksum for #{gem_version}' && git push origin"
|
|
25
|
+
run! "git tag -a v#{Isimud::VERSION} -m 'tagged version #{Isimud::VERSION}'"
|
|
26
|
+
run! 'git push origin --tags'
|
|
25
27
|
|
|
26
28
|
puts 'Publishing to RubyGems'.cyan
|
|
27
29
|
run! "gem push #{built_gem_path}"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isimud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- George Feil
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
wSKk31gq6KY7rgi11mcLvVzwSuwZFqnonAmu/uin3cbXcOUkqNsyzZ0LQLXNKiwi
|
|
32
32
|
k0RgrsSNtQ8hcsVSQla0Ot+X3WpFI4ZuIfSLFA==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-09-
|
|
34
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: activerecord
|
|
@@ -117,6 +117,8 @@ files:
|
|
|
117
117
|
- checksum/isimud-1.4.0.gem.sha512
|
|
118
118
|
- checksum/isimud-1.4.1.gem.sha512
|
|
119
119
|
- checksum/isimud-1.4.2.gem.sha512
|
|
120
|
+
- checksum/isimud-1.4.3.gem.sha512
|
|
121
|
+
- checksum/isimud-1.4.4.gem.sha512
|
|
120
122
|
- config.ru
|
|
121
123
|
- config/tddium.yml
|
|
122
124
|
- doc/Isimud.html
|
metadata.gz.sig
CHANGED
|
Binary file
|