message-driver 0.7.1 → 0.7.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: 1296071efa2a7b9f589eddcd94d99847f515ad16
4
- data.tar.gz: 9b0a163a287824a8f2928dd13d5083b7a97b3245
3
+ metadata.gz: 981e67af84bbc4801922a9c5eddf06bded868d0d
4
+ data.tar.gz: 73e5d034754df98e6ab631ebc9ad5830fcb03f8d
5
5
  SHA512:
6
- metadata.gz: f344fef0e415eb76d0d54572390ec1311fdb1165ea9126fb59de69f70a7e324cb94b852a11b138e489b7f05cceea4132480f63ecea115b958acf69c218c9c570
7
- data.tar.gz: 0da3bc34be7f8c00c01b45cda0f9acf152bdf33640ddd947254538c58dbbb5c7a163edfda4579759430594a787754fc90dca54c5b9780d16f0321b7cce46414b
6
+ metadata.gz: 2f150c9874ad62634afc049c51e5aa9ca1243af6acf9c15397c7666b53e711f581e28a716e615f9e80bca8be19602ac680691cd1cf56367b4b257daf556c6452
7
+ data.tar.gz: bd4edb36b4c9bf14b40586baf26ae469ec0945266463aba9302a925a1d45de0c3a8e511c2bcac3c39de2d82151acce19ba7b4cea8a615423cb99845841b67381
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.2 - 2017-10-06
4
+
5
+ * Fix some additional edge cases related to #35, where an error could cause a message to be nil
6
+
3
7
  ## 0.7.1 - 2017-04-10
4
8
 
5
9
  * Move middleware processing for consumers inside the message handler so error in middleware are correctly handled - Fixes #35
@@ -1 +1 @@
1
- ../CHANGELOG.md
1
+ features/../CHANGELOG.md
@@ -195,11 +195,12 @@ module MessageDriver
195
195
  end
196
196
 
197
197
  def nack_message(e, message)
198
+ return if message.nil?
198
199
  requeue = true
199
200
  if e.is_a?(DontRequeue) || (options[:retry_redelivered] == false && message.redelivered?)
200
201
  requeue = false
201
202
  end
202
- if sub_ctx.valid?
203
+ if !sub_ctx.nil? && sub_ctx.valid?
203
204
  begin
204
205
  sub_ctx.nack_message(message, requeue: requeue)
205
206
  rescue => e
@@ -1,4 +1,4 @@
1
1
  module MessageDriver
2
2
  # @return [String] version of the library
3
- VERSION = '0.7.1'.freeze
3
+ VERSION = '0.7.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Campbell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  requirements: []
210
210
  rubyforge_project:
211
- rubygems_version: 2.5.2
211
+ rubygems_version: 2.6.12
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Easy message queues for ruby