redis-queue 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -29,7 +29,7 @@ queue << "a" # << is an alias of push
29
29
 
30
30
  # Process messages
31
31
 
32
- # By default, calling pop methid is a blocking operation
32
+ # By default, calling pop method is a blocking operation
33
33
  # Your code will wait here for a new
34
34
  while message=@queue.pop
35
35
  #Remove message from the backup queue if the message has been processed without errors
@@ -1,2 +1,3 @@
1
1
  require "redis"
2
+ require "redis/connection/hiredis"
2
3
  require "redis/queue"
@@ -1,15 +1,15 @@
1
1
  class Redis
2
2
  class Queue
3
-
4
- VERSION = "0.0.1"
3
+
4
+ VERSION = "0.0.2"
5
5
 
6
6
  def self.version
7
7
  "redis-queue version #{VERSION}"
8
8
  end
9
9
 
10
10
  def initialize(queue_name, process_queue_name, options = {})
11
- raise ArgumentError, 'First argument must be a non emmpty string' if !queue_name.is_a?(String) || queue_name.empty?
12
- raise ArgumentError, 'Second argument must be a non emmpty string' if !process_queue_name.is_a?(String) || process_queue_name.empty?
11
+ raise ArgumentError, 'First argument must be a non empty string' if !queue_name.is_a?(String) || queue_name.empty?
12
+ raise ArgumentError, 'Second argument must be a non empty string' if !process_queue_name.is_a?(String) || process_queue_name.empty?
13
13
  raise ArgumentError, 'Queue and Process queue have the same name' if process_queue_name == queue_name
14
14
 
15
15
  @redis = options[:redis] || Redis.current
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
12
+ date: 2013-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis