squeese 0.2.0 → 0.2.1
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/README.md +1 -0
- data/VERSION +1 -1
- data/examples/enqueue.rb +1 -0
- data/examples/jobs.rb +2 -0
- data/lib/squeese.rb +5 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -77,6 +77,7 @@ Tidbits
|
|
77
77
|
* The squeese binary is just for convenience, you can also run a worker with a straight Ruby command:
|
78
78
|
$ ruby -r jobs -e Squeese.work
|
79
79
|
* Hash keys at the root of the args level are also available as symbols through a minor cheat, but nested child hashes are not.
|
80
|
+
* You can select a particular SQS queue with Squeese.queue_name
|
80
81
|
|
81
82
|
Meta
|
82
83
|
----
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/examples/enqueue.rb
CHANGED
data/examples/jobs.rb
CHANGED
data/lib/squeese.rb
CHANGED
@@ -76,8 +76,12 @@ module Squeese
|
|
76
76
|
@sqs ||= Aws::Sqs.new(ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'], :logger => Logger.new(nil))
|
77
77
|
end
|
78
78
|
|
79
|
+
def queue_name=(val)
|
80
|
+
@@queue_name = val
|
81
|
+
end
|
82
|
+
|
79
83
|
def queue_name
|
80
|
-
|
84
|
+
@@queue_name ||= "squeese"
|
81
85
|
end
|
82
86
|
|
83
87
|
def queue
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Peter van Hardenberg
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-06-04 00:00:00 -07:00
|
18
18
|
default_executable: squeese
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|