active_publisher 1.2.0.pre4-java → 1.2.0.pre5-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: 2431387f57b3553b19322681db40a83a46ce5853a4526f9e84ec5a1213180a7d
4
- data.tar.gz: 5f4e3afd6249429e75f86d6fe4629a0a7876201b70ad7fc245244d5d203f062b
3
+ metadata.gz: 40de0cc1b0adca96b23de5ddb5fb5fc79738644e74a8dc5a40990ec3b67a56ed
4
+ data.tar.gz: 61ae6ef5ae471f9a9c6dce0156e45e7bf51f09b64b7e5ae1cd8a1762b08eb829
5
5
  SHA512:
6
- metadata.gz: d8f02d3f12ef6a84d6364229181af0b7d395e0a73267690aa71e010d68846d7e3b195e3af6a40e77333cb1d0d1a74181bc2c5501c287ede26263572bf4490e2c
7
- data.tar.gz: 840acb67613ee19d1124727c3e12d561f166f55959b3d3513f5f08448b612df3e710ffffb49cbb137ffa6677340fcad09f94bb971ad62bcbf17556210e321437
6
+ metadata.gz: 3aabc8bb12969dce2a4e176a6420acfc1cdcd70c47e361f7dd665879e5445e93ba6777cdc6a6f523baea4c116c70040a3cde6fd21b565424f68426fb2c4a04f1
7
+ data.tar.gz: ed43c8134e853a0a2b8b0d904361c51f6d73120f991b26e5adedc46df454407da5f0ac8317596dc0dfea380f6fc3c5ef1a9c88cb70e011855a61f45ee99b0637
@@ -83,8 +83,16 @@ module ActivePublisher
83
83
 
84
84
  messages = [] if messages.nil?
85
85
  messages = [messages] unless messages.respond_to?(:each)
86
- messages.compact!
87
- messages.map { |message| ::Marshal.load(message.value) }
86
+
87
+ shifted_messages = []
88
+ messages.each do |message|
89
+ next unless message.is_a?(::Redis::Future)
90
+ next if message.value.nil?
91
+
92
+ shifted_messages << ::Marshal.load(message.value)
93
+ end
94
+
95
+ shifted_messages
88
96
  end
89
97
 
90
98
  def size
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "1.2.0.pre4"
2
+ VERSION = "1.2.0.pre5"
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.pre4
4
+ version: 1.2.0.pre5
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-22 00:00:00.000000000 Z
15
+ date: 2018-01-23 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement