redis-queue 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MzdlY2YzMGE2MmI5Mzc2ZDI5NjYwMjQ1NzQyMDRlMTY0NWJkZjM0ZA==
5
+ data.tar.gz: !binary |-
6
+ MzI5YjZiYmNjYTBhZjVkNjBkYzRjMTNmZDlkMzRhNzhmNDUzNWIyMg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDQ2NTJkOTQ3MzQwMWZmNmI4ZDBjZjA5NTNjOWQ2NTgyNTAxZGEwZjA5OWNi
10
+ MjU1ZWViMTU2MTI2MTU0MDk0N2VlMTIwOTU1OWQxYTdlZTFiMzA0YzM3NGUx
11
+ MDczODJmYjI0ZTRhNWYxNjU0YzIyZmM1ZTY3OTdmM2ZkZmM2YWQ=
12
+ data.tar.gz: !binary |-
13
+ MGE0Nzk1Y2EyY2VjMTMzNDQxMzNjNDA4YzYyNWEzNWE4MmQ1NmZkNWUwMTE0
14
+ NGRjMjM4MmQzZGVlMTZlODY5MzY5OTViOWM0YzUyMjIyM2E4YTMzMGE2ODMx
15
+ MzMyYWQ5NzMyMDM3ZjliZDY1ZDVjNmEyOTlmMDcyNmY5N2U1ZTk=
@@ -1,7 +1,7 @@
1
1
  class Redis
2
2
  class Queue
3
3
 
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
 
6
6
  def self.version
7
7
  "redis-queue version #{VERSION}"
@@ -15,6 +15,8 @@ Gem::Specification.new do |s|
15
15
  It implements Reliable-queue pattern decribed here: http://redis.io/commands/rpoplpush
16
16
  }
17
17
 
18
+ s.licenses = ["MIT"]
19
+
18
20
  s.rubyforge_project = "redis-queue"
19
21
 
20
22
  s.files = `git ls-files`.split("\n")
@@ -22,8 +24,8 @@ Gem::Specification.new do |s|
22
24
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
25
  s.require_paths = ["lib"]
24
26
 
25
- s.add_dependency "redis", "~> 3.0.4"
26
- s.add_dependency "hiredis", "~> 0.4.5"
27
+ s.add_runtime_dependency 'redis', '~> 3.0', '>= 3.0.4'
28
+ s.add_runtime_dependency 'hiredis', '~> 0.5', '>= 0.5.2'
27
29
 
28
- s.add_development_dependency "rspec", "~> 2.13.0"
30
+ s.add_development_dependency 'rspec', '~> 2.13', '>= 2.13.0'
29
31
  end
@@ -86,7 +86,7 @@ describe Redis::Queue do
86
86
 
87
87
  it 'should work with the timeout parameters' do
88
88
  @queue.clear(true)
89
- 100.times { @queue << rand(100) }
89
+ 2.times { @queue << rand(100) }
90
90
  is_ok = true
91
91
  begin
92
92
  Timeout::timeout(3) {
@@ -111,7 +111,6 @@ describe Redis::Queue do
111
111
  queue.pop
112
112
  }
113
113
  rescue Timeout::Error => e
114
- puts "#{e}"
115
114
  is_ok = false
116
115
  end
117
116
  queue.clear
metadata CHANGED
@@ -1,62 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Francesco Laurita
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-08 00:00:00.000000000 Z
11
+ date: 2014-05-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: redis
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ - - ! '>='
20
21
  - !ruby/object:Gem::Version
21
22
  version: 3.0.4
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
27
  - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: 3.0.4
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: hiredis
32
35
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
36
  requirements:
35
37
  - - ~>
36
38
  - !ruby/object:Gem::Version
37
- version: 0.4.5
39
+ version: '0.5'
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: 0.5.2
38
43
  type: :runtime
39
44
  prerelease: false
40
45
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
46
  requirements:
43
47
  - - ~>
44
48
  - !ruby/object:Gem::Version
45
- version: 0.4.5
49
+ version: '0.5'
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: 0.5.2
46
53
  - !ruby/object:Gem::Dependency
47
54
  name: rspec
48
55
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
56
  requirements:
51
57
  - - ~>
58
+ - !ruby/object:Gem::Version
59
+ version: '2.13'
60
+ - - ! '>='
52
61
  - !ruby/object:Gem::Version
53
62
  version: 2.13.0
54
63
  type: :development
55
64
  prerelease: false
56
65
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
66
  requirements:
59
67
  - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '2.13'
70
+ - - ! '>='
60
71
  - !ruby/object:Gem::Version
61
72
  version: 2.13.0
62
73
  description: ! "\n Adds Redis::Queue class which can be used as Distributed-Queue
@@ -82,29 +93,30 @@ files:
82
93
  - spec/redis_queue_spec.rb
83
94
  - spec/spec_helper.rb
84
95
  homepage: https://github.com/taganaka/redis-queue
85
- licenses: []
96
+ licenses:
97
+ - MIT
98
+ metadata: {}
86
99
  post_install_message:
87
100
  rdoc_options: []
88
101
  require_paths:
89
102
  - lib
90
103
  required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
104
  requirements:
93
105
  - - ! '>='
94
106
  - !ruby/object:Gem::Version
95
107
  version: '0'
96
108
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
109
  requirements:
99
110
  - - ! '>='
100
111
  - !ruby/object:Gem::Version
101
112
  version: '0'
102
113
  requirements: []
103
114
  rubyforge_project: redis-queue
104
- rubygems_version: 1.8.25
115
+ rubygems_version: 2.2.2
105
116
  signing_key:
106
- specification_version: 3
117
+ specification_version: 4
107
118
  summary: A distributed queue based on Redis
108
119
  test_files:
109
120
  - spec/redis_queue_spec.rb
110
121
  - spec/spec_helper.rb
122
+ has_rdoc: