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 +4 -0
- data/README.md +3 -28
- data/lib/turnpike/version.rb +3 -0
- data/lib/turnpike.rb +0 -1
- data/turnpike.gemspec +2 -2
- metadata +7 -5
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,32 +1,7 @@
|
|
1
1
|
# Turnpike
|
2
2
|
|
3
|
-
|
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
|
-
|
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
|
-
|
29
|
-
queue.each_slice(10) do |slice)
|
30
|
-
# create value
|
31
|
-
end
|
32
|
-
```
|
7
|
+
[Read here](http://code.papercavalier.com/turnpike) for more detail.
|
data/lib/turnpike.rb
CHANGED
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
|
-
-
|
9
|
-
version: 0.0.
|
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: -
|
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: -
|
92
|
+
hash: -2388371112895755060
|
91
93
|
segments:
|
92
94
|
- 0
|
93
95
|
version: "0"
|