turnpike 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
2
  - 1.9.3
5
- - jruby
6
- - rbx
3
+ - jruby-19mode
4
+ - rbx-19mode
5
+ services:
6
+ - redis-server
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] [1]] [2]
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] [3]
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.peek => [2, 3]
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
@@ -1,3 +1,3 @@
1
1
  module Turnpike
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
data/lib/turnpike.rb CHANGED
@@ -1,7 +1,4 @@
1
- # External dependency.
2
1
  require 'redis'
3
-
4
- # Internal dependency.
5
2
  require 'turnpike/queue'
6
3
 
7
4
  # A Redis-backed queue.
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.0.rc1'
20
- s.add_development_dependency 'rake', '~> 0.9'
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.1
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-04-13 00:00:00.000000000 Z
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: &70268575399240 !ruby/object:Gem::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.0.rc1
21
+ version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70268575399240
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: &70268575398480 !ruby/object:Gem::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.9'
37
+ version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70268575398480
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.11
90
+ rubygems_version: 1.8.23
74
91
  signing_key:
75
92
  specification_version: 3
76
93
  summary: A Redis-backed queue