active_publisher 1.2.0.pre3 → 1.2.0.pre4

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: 7e44446879e063cf04d644d6bfdc6135213175d3
4
- data.tar.gz: 2cad96924f8fa5d6b925f1d4afc4f93f5d45d698
3
+ metadata.gz: e5b7f7d1be0811f4c34772c3319b17b282fe5773
4
+ data.tar.gz: d00a6d95c8f9c7b6a6c23e640882390ed693dd28
5
5
  SHA512:
6
- metadata.gz: f115341ab0bf19e5468505918ea97a604ef4a511199421fea2f4ef09a77e620644131160acc78d265612d3be4a80c2655884b94b2e1803f07afdd35f394e8978
7
- data.tar.gz: 04151311567129a897b45dddf72123ba71d91a53aa97c84f1c3393896d65096734c720c1a367c6d68e4380858460fbe490aafa8cf6f65c95f1d7c252cabd1cb7
6
+ metadata.gz: 12bbc31fbf7c1f9d22f7ffe04960c5dc9e031cb3b85956e4498862a0c65d29762d3ec909c06174037f803b74714247d74ec253034d06eca087d9ac0799ec2795
7
+ data.tar.gz: ee6e187fe1a4c9c486c77b40c0236c914aa8e2b7674c9ae2af0bba52fcf51a8b4693e1c161972391b246f7fd3782b7d0f178123f4ea1ae3b205a2d05c441ea98
@@ -101,7 +101,7 @@ module ActivePublisher
101
101
  raise unknown_error
102
102
  ensure
103
103
  # Always requeue anything that gets stuck.
104
- queue.concat(current_messages) unless current_messages.nil?
104
+ queue.concat(current_messages) if current_messages && !current_messages.empty?
105
105
  end
106
106
  end
107
107
  end
@@ -20,6 +20,7 @@ module ActivePublisher
20
20
  def concat(*messages)
21
21
  messages = messages.flatten
22
22
  messages.compact!
23
+ return if messages.empty?
23
24
 
24
25
  encoded_messages = []
25
26
  messages.each do |message|
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "1.2.0.pre3"
2
+ VERSION = "1.2.0.pre4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.pre3
4
+ version: 1.2.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2018-01-17 00:00:00.000000000 Z
15
+ date: 2018-01-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: 1.3.1
225
225
  requirements: []
226
226
  rubyforge_project:
227
- rubygems_version: 2.6.14
227
+ rubygems_version: 2.6.13
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Aims to make publishing work across MRI and jRuby painless and add some nice