laboristo 0.3.0 → 0.3.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.
- checksums.yaml +4 -4
- data/bin/laboristo +8 -1
- data/laboristo.gemspec +1 -1
- data/lib/laboristo.rb +2 -2
- data/test/queue_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6119c174a1bc1fb9006e2ed3a12d433042d12e8
|
4
|
+
data.tar.gz: afee29b7302456882bceaa7e5dc5c4ae7940405d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859028004758981e04fd02d9a2079f52954471cd8c49338144b171da08835e6209022eacf1dade9faf3656f9b9980b09e5c9c2a30f5c662b78819dc349d92677
|
7
|
+
data.tar.gz: f0adbe82b443ee1203796d12293e23407eb6b7e9855e698daca182737aece45e84fba52fb05dd334e84fffb0041031fde9d48e2a0b5c13ef20ca6dcc8831c75b
|
data/bin/laboristo
CHANGED
@@ -25,6 +25,10 @@ opts = {}
|
|
25
25
|
args = Clap.run ARGV,
|
26
26
|
'-d' || '--daemonize' => -> {
|
27
27
|
opts[:daemonize] = true
|
28
|
+
},
|
29
|
+
"-h" => -> {
|
30
|
+
puts(usage)
|
31
|
+
exit 0
|
28
32
|
}
|
29
33
|
|
30
34
|
command = args.shift
|
@@ -33,7 +37,10 @@ worker_path = File.expand_path("workers/#{worker}")
|
|
33
37
|
pid_path = File.expand_path("tmp/#{worker}.pid")
|
34
38
|
|
35
39
|
$stdout.sync = true
|
36
|
-
|
40
|
+
puts command
|
41
|
+
puts worker
|
42
|
+
puts worker_path
|
43
|
+
puts pid_path
|
37
44
|
|
38
45
|
if opts[:daemonize]
|
39
46
|
Process.daemon(true)
|
data/laboristo.gemspec
CHANGED
data/lib/laboristo.rb
CHANGED
@@ -15,7 +15,7 @@ module Laboristo
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def push(message)
|
18
|
-
encoded = Base64.encode64(message
|
18
|
+
encoded = Base64.encode64(message)
|
19
19
|
@sqs.send_message(queue_url: @url, message_body: encoded)
|
20
20
|
end
|
21
21
|
|
@@ -31,7 +31,7 @@ module Laboristo
|
|
31
31
|
@sqs.delete_message(queue_url: @url,
|
32
32
|
receipt_handle: msg[:receipt_handle])
|
33
33
|
rescue StandardError => e
|
34
|
-
$
|
34
|
+
$stdout.puts "ERROR: Can't process message #{msg[:message_id]}.\n#{e}"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
data/test/queue_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: laboristo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- matiasow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|