coordinator 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4b9b6ba779147361654af8dfb5d700a76af248f
4
- data.tar.gz: 612324d3b10fd5e318d4989825d5f4c0bf73526b
3
+ metadata.gz: 57e51cb508420441045a2d7953063aa80731ff9a
4
+ data.tar.gz: e968db6fa6a80e0e140d8020cdaa572a46c672e5
5
5
  SHA512:
6
- metadata.gz: da2d76c3c896ce14b7c7ad70b8f9d1d09171c34f1c041024cae7a8948a251d7fba1742874635abe63cf5c027b30582d0fe2fd27b753b92541c626b1f805bb095
7
- data.tar.gz: 27b01986357e2f16ac9d5c8a6992972895cbf712f560cb3f2210851b52570943cbedbe3653000868cbba3693c325eec4b3ab783722d6da7b49d9803c8991289e
6
+ metadata.gz: f3841dab5c0ba4721b3706e899bb217266c70eea15a867d382bf38bda6e4b57e0c9d3532e18bad03902e66b1f25e598ab3d780fd2981e7838bffede316276815
7
+ data.tar.gz: a57895e4b8291722d69d83fcaec07c7d350f74014cea58eb372eeefb35d4f2509e8d16d85703aca56f7b5ee59ceb2e135ec5dcc6e239f749ca6134bff625dd36
@@ -10,7 +10,7 @@ module Coordinator
10
10
  end
11
11
 
12
12
  def push(item)
13
- raise Coordinator::Error, "Queue is at capacity" if full?
13
+ return false if full?
14
14
  data = serialize(item)
15
15
  @redis.rpush(@queue_name, data) unless items.include?(data)
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Coordinator
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -22,10 +22,7 @@ describe 'Coordinator::RedisQueue' do
22
22
  it 'adds the same item only once' do
23
23
  @queue.capacity = 1
24
24
  @queue.push("a")
25
- err = -> {
26
- @queue.push("b")
27
- }.must_raise Coordinator::Error
28
- err.message.must_match /Queue is at capacity/
25
+ assert_equal false, @queue.push("b")
29
26
  end
30
27
  end
31
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coordinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Mercier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-28 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http