FileQueue

...is a simple file based queue written in Ruby that uses the Ruby File class in standard library to push and pop items into a queue.

Originally written by daddz and found in this gist. Thanks, daddz!

Install

gem install filequeue

Usage

queue = FileQueue.new 'queue_party.txt'

queue.push "an item"
  => true

queue.pop
  => "an item"

See spec/filequeue_spec.rb for more usage details