turnpike 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - rbx
data/README.md CHANGED
@@ -1,32 +1,7 @@
1
1
  # Turnpike
2
2
 
3
- Turnpike is a Redis-backed processing queue.
4
-
5
- # Usage
6
-
7
- Set up:
8
-
9
- ```ruby
10
- require "turnpike"
11
-
12
- queue = Turnpike.new(:processing_queue)
13
- ```
3
+ [![travis](https://secure.travis-ci.org/papercavalier/turnpike.png)](http://travis-ci.org/papercavalier/turnpike)
14
4
 
15
- Queue:
16
-
17
- ```ruby
18
- queue << "unit of work"
19
- ```
20
-
21
- Process:
22
-
23
- ```ruby
24
- queue.each do |work|
25
- # create value
26
- end
5
+ Turnpike is a Redis-backed processing queue.
27
6
 
28
- # alternatively
29
- queue.each_slice(10) do |slice)
30
- # create value
31
- end
32
- ```
7
+ [Read here](http://code.papercavalier.com/turnpike) for more detail.
@@ -0,0 +1,3 @@
1
+ class Turnpike
2
+ VERSION = '0.0.2'
3
+ end
data/lib/turnpike.rb CHANGED
@@ -4,7 +4,6 @@ require 'redis'
4
4
  class Turnpike
5
5
  REDIS_VERSION = Redis.current.info['redis_version']
6
6
  TIMEOUT = ENV['TURNPIKE_TIMEOUT'] || 2
7
- VERSION = '0.0.1'
8
7
 
9
8
  # The name of the queue.
10
9
  attr :name
data/turnpike.gemspec CHANGED
@@ -1,12 +1,12 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require "./lib/turnpike"
2
+ require "./lib/turnpike/version"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "turnpike"
6
6
  s.version = Turnpike::VERSION
7
7
  s.authors = ["Paper Cavalier"]
8
8
  s.email = ["code@papercavalier.com"]
9
- s.homepage = ""
9
+ s.homepage = "http://code.papercavalier.com/turnpike"
10
10
  s.summary = %q{Turnpike is a Redis-backed processing queue.}
11
11
  s.description = %q{Turnpike is a Redis-backed processing queue.}
12
12
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paper Cavalier
@@ -57,15 +57,17 @@ extra_rdoc_files: []
57
57
  files:
58
58
  - .gitignore
59
59
  - .rvmrc
60
+ - .travis.yml
60
61
  - CHANGELOG.md
61
62
  - Gemfile
62
63
  - README.md
63
64
  - Rakefile
64
65
  - lib/turnpike.rb
66
+ - lib/turnpike/version.rb
65
67
  - test/turnpike_test.rb
66
68
  - turnpike.gemspec
67
69
  has_rdoc: true
68
- homepage: ""
70
+ homepage: http://code.papercavalier.com/turnpike
69
71
  licenses: []
70
72
 
71
73
  post_install_message:
@@ -78,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
80
  requirements:
79
81
  - - ">="
80
82
  - !ruby/object:Gem::Version
81
- hash: -65682769668407542
83
+ hash: -2388371112895755060
82
84
  segments:
83
85
  - 0
84
86
  version: "0"
@@ -87,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
89
  requirements:
88
90
  - - ">="
89
91
  - !ruby/object:Gem::Version
90
- hash: -65682769668407542
92
+ hash: -2388371112895755060
91
93
  segments:
92
94
  - 0
93
95
  version: "0"