Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A lightweight queue for delayed and normalized execution
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test hello, world
.gitignore
Gemfile
LICENSE
README.rdoc
Rakefile
trail.gemspec

README.rdoc

Trail

Trail is a lightweight queue for delayed and normalized execution.

Quick Start

First, create a trail:

t = Trail.new

Then, define the normalization method:

t.normalize = lambda do |trail| trail.uniq end

And, the commit method:

t.commit = lambda do |trail| trail.each {|e| puts e } nil end

Push some data:

100.times { t.push(“hello, world”) }

And, commit the trail:

t.commit!

Please note that Trail#commit! returns Trail#commit return.

It is possible to specify the watch method:

t.watch = lambda do |trail, v| puts 'hello' trail end

Please note that Trail#watch return overwrites the trail's queue.

Something went wrong with that request. Please try again.