active_publisher 1.2.0.pre3-java → 1.2.0.pre4-java

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
  SHA256:
3
- metadata.gz: f77329ca4863adbe3011a25b14ee52788fc40871a8294ea0febee3a534c7a0f2
4
- data.tar.gz: da114c00b2d013be3679a0eedd8a7c5e8ed1d43b50a3465edc54ff8c8edc1530
3
+ metadata.gz: 2431387f57b3553b19322681db40a83a46ce5853a4526f9e84ec5a1213180a7d
4
+ data.tar.gz: 5f4e3afd6249429e75f86d6fe4629a0a7876201b70ad7fc245244d5d203f062b
5
5
  SHA512:
6
- metadata.gz: 9b2b273deb1ee08c2f354fe195e830936a0b1f3ab64095d76abfddb120d27de4e7291937a3a8b0ebef937d7fea51651950beac5c4b2c5ca8f17402d16d9fd4e2
7
- data.tar.gz: 4ee18f32fd68ae6352d030e0ff1eaae44bb402a2766cff28f9e2c3ecb647ba49922529cf7781074dc954bf50c1fa0b8fd924bca164af49826f20de11ba03e4ad
6
+ metadata.gz: d8f02d3f12ef6a84d6364229181af0b7d395e0a73267690aa71e010d68846d7e3b195e3af6a40e77333cb1d0d1a74181bc2c5501c287ede26263572bf4490e2c
7
+ data.tar.gz: 840acb67613ee19d1124727c3e12d561f166f55959b3d3513f5f08448b612df3e710ffffb49cbb137ffa6677340fcad09f94bb971ad62bcbf17556210e321437
@@ -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: java
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
  requirement: !ruby/object:Gem::Requirement