turnpike 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +4 -4
- data/LICENSE +22 -0
- data/README.md +10 -16
- data/lib/turnpike/version.rb +1 -1
- data/lib/turnpike.rb +0 -3
- data/turnpike.gemspec +2 -2
- metadata +27 -10
data/.travis.yml
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2012 Hakan Ensari
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,36 +1,30 @@
|
|
1
1
|
# Turnpike
|
2
2
|
|
3
|
-
[![travis]
|
3
|
+
[![travis][1]][2]
|
4
4
|
|
5
|
-
Turnpike is a Redis-backed queue
|
5
|
+
Turnpike is a Redis-backed queue that wraps a [List][4] and speaks Ruby
|
6
|
+
colloquial.
|
6
7
|
|
7
|
-
![turnpike]
|
8
|
-
|
9
|
-
Less fancily put: Turnike wraps a [Redis List] [4] and speaks Ruby colloquial.
|
10
|
-
|
11
|
-
## Installation
|
12
|
-
|
13
|
-
```sh
|
14
|
-
gem install turnpike
|
15
|
-
```
|
8
|
+
![turnpike][3]
|
16
9
|
|
17
10
|
# Usage
|
18
11
|
|
19
|
-
An introspective moment of FIFO.
|
20
|
-
|
21
12
|
```ruby
|
22
13
|
queue = Turnpike['foo']
|
23
14
|
|
24
15
|
queue << 1, 2, 3
|
25
16
|
queue.pop # => 1
|
17
|
+
queue.peek # => [2, 3]
|
18
|
+
|
19
|
+
queue << 4
|
20
|
+
queue.peek # => [2, 3, 4]
|
26
21
|
|
27
|
-
queue.
|
22
|
+
queue.unshift 1
|
23
|
+
queue.peek # => [1, 2, 3, 4]
|
28
24
|
```
|
29
25
|
|
30
26
|
[Read the API] [5].
|
31
27
|
|
32
|
-
It's really short.
|
33
|
-
|
34
28
|
[1]: https://secure.travis-ci.org/hakanensari/turnpike.png
|
35
29
|
[2]: http://travis-ci.org/hakanensari/turnpike
|
36
30
|
[3]: http://f.cl.ly/items/33242X323P3M1t1G400H/turnpike.jpg
|
data/lib/turnpike/version.rb
CHANGED
data/lib/turnpike.rb
CHANGED
data/turnpike.gemspec
CHANGED
@@ -16,6 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ['lib']
|
18
18
|
|
19
|
-
s.add_runtime_dependency 'redis', '~> 3.0
|
20
|
-
s.add_development_dependency 'rake'
|
19
|
+
s.add_runtime_dependency 'redis', '~> 3.0'
|
20
|
+
s.add_development_dependency 'rake'
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnpike
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,30 +9,40 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.0
|
21
|
+
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rake
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
|
-
- -
|
35
|
+
- - ! '>='
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0
|
37
|
+
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
description: Turnpike is a Redis-backed queue.
|
37
47
|
email:
|
38
48
|
- hakan.ensari@papercavalier.com
|
@@ -43,6 +53,7 @@ files:
|
|
43
53
|
- .gitignore
|
44
54
|
- .travis.yml
|
45
55
|
- Gemfile
|
56
|
+
- LICENSE
|
46
57
|
- README.md
|
47
58
|
- Rakefile
|
48
59
|
- lib/turnpike.rb
|
@@ -62,15 +73,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
73
|
- - ! '>='
|
63
74
|
- !ruby/object:Gem::Version
|
64
75
|
version: '0'
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
hash: 3840254104933730285
|
65
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
80
|
none: false
|
67
81
|
requirements:
|
68
82
|
- - ! '>='
|
69
83
|
- !ruby/object:Gem::Version
|
70
84
|
version: '0'
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
hash: 3840254104933730285
|
71
88
|
requirements: []
|
72
89
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.8.
|
90
|
+
rubygems_version: 1.8.23
|
74
91
|
signing_key:
|
75
92
|
specification_version: 3
|
76
93
|
summary: A Redis-backed queue
|