super_queue 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/super_queue.rb +2 -2
  2. metadata +21 -5
data/lib/super_queue.rb CHANGED
@@ -290,14 +290,14 @@ class SuperQueue
290
290
 
291
291
  def fill_out_buffer_from_in_buffer
292
292
  while (@out_buffer.size < @out_buffer.max) && !@in_buffer.empty?
293
- @out_buffer.push @in_buffer.pop
293
+ @out_buffer.push(:payload => @in_buffer.pop)
294
294
  end
295
295
  !@out_buffer.empty?
296
296
  end
297
297
 
298
298
  def pop_out_buffer(non_block)
299
299
  m = @out_buffer.pop(non_block)
300
- @deletion_queue << m[:handle]
300
+ @deletion_queue << m[:handle] if m[:handle]
301
301
  m[:payload]
302
302
  end
303
303
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2010-02-09 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2013-02-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: fog
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: 1.9.0
21
+ none: false
22
+ requirement: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.9.0
27
+ none: false
28
+ prerelease: false
29
+ type: :runtime
14
30
  description: A an SQS-backed queue.
15
31
  email: jon@jonstokes.com
16
32
  executables: []
@@ -18,7 +34,7 @@ extensions: []
18
34
  extra_rdoc_files: []
19
35
  files:
20
36
  - lib/super_queue.rb
21
- homepage: http://rubygems.org/gems/superqueue
37
+ homepage: https://github.com/jonstokes/super_queue
22
38
  licenses: []
23
39
  post_install_message:
24
40
  rdoc_options: []
@@ -40,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
56
  none: false
41
57
  requirements: []
42
58
  rubyforge_project:
43
- rubygems_version: 1.8.24
59
+ rubygems_version: 1.8.25
44
60
  signing_key:
45
61
  specification_version: 3
46
62
  summary: An SQS-backed queue structure for ruby that works just like a normal queue, except it's essentially infinite and can use very little memory.