active_publisher 1.2.0.pre4 → 1.2.0.pre5

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: e5b7f7d1be0811f4c34772c3319b17b282fe5773
4
- data.tar.gz: d00a6d95c8f9c7b6a6c23e640882390ed693dd28
3
+ metadata.gz: 23e85659b8c9077b818a54ff585db2f0b6725222
4
+ data.tar.gz: ab4715d5030e4d4a8a75d938d62c2555af446442
5
5
  SHA512:
6
- metadata.gz: 12bbc31fbf7c1f9d22f7ffe04960c5dc9e031cb3b85956e4498862a0c65d29762d3ec909c06174037f803b74714247d74ec253034d06eca087d9ac0799ec2795
7
- data.tar.gz: ee6e187fe1a4c9c486c77b40c0236c914aa8e2b7674c9ae2af0bba52fcf51a8b4693e1c161972391b246f7fd3782b7d0f178123f4ea1ae3b205a2d05c441ea98
6
+ metadata.gz: d1f14b9a180f322f2de03b68e9cfab1eec8761cbcea16e4b2128022f41c5e16b92c9d6368a64e538c191a588bc5db5599c1042d66fec636e9d068fa4f053ce09
7
+ data.tar.gz: 9b8db19e5cc9ffbe14f691eb9d79105ecbc1f99116a9057d298fb973354dad818d80b0af392b112fd9e50583c58394f21109e975eb505984fb2c5fc1ced11345
@@ -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: 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-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
  name: bunny