shoryuken 3.0.0 → 3.0.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/CHANGELOG.md +6 -3
- data/bin/cli/sqs.rb +8 -8
- data/bin/shoryuken +2 -2
- data/lib/shoryuken/version.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: 364cfa9eccf9a5641e1f18123deaf726145b8e17
|
4
|
+
data.tar.gz: 12a2a599a8fb95394352b31840952e84e7169793
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5bc6a71dac0e8884891dda715564d16a4f36fc355ef3d46bc7ea755ec6271be9eadb60daba3126ac57dd50951caf1087443b0d29a695a8f31b5ab805bbca42b
|
7
|
+
data.tar.gz: d22a4b767fd3ce1ea9a03027f475ecd35e891f8911ff026cb91ee41313d1b438333880cee91f6646428565f9187efdaa8188ce2e60bba4c7b740b414a0794830
|
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,23 @@
|
|
1
|
+
## [v3.0.1] - 2017-03-13
|
2
|
+
- Fix commands sqs mv and dump `options.delete` checker
|
3
|
+
- [#332](https://github.com/phstc/shoryuken/pull/332)
|
1
4
|
## [v3.0.0] - 2017-03-12
|
2
5
|
- Replace Celluloid with Concurrent Ruby
|
3
6
|
- [#291](https://github.com/phstc/shoryuken/pull/291)
|
4
7
|
|
5
8
|
- Remove AWS configuration from Shoryuken. Now AWS should be configured from outside. Check [this](https://github.com/phstc/shoryuken/wiki/Configure-the-AWS-Client) for more details
|
6
|
-
- [#317](https://github.com/phstc/shoryuken/pull/
|
9
|
+
- [#317](https://github.com/phstc/shoryuken/pull/317)
|
7
10
|
|
8
11
|
- Remove deprecation warnings
|
9
12
|
- [#326](https://github.com/phstc/shoryuken/pull/326)
|
10
13
|
|
11
14
|
- Allow dynamic adding queues
|
12
|
-
- [#322](https://github.com/phstc/shoryuken/pull/
|
15
|
+
- [#322](https://github.com/phstc/shoryuken/pull/322)
|
13
16
|
|
14
17
|
- Support retry_intervals passed in as a lambda. Auto coerce intervals into integer
|
15
18
|
- [#329](https://github.com/phstc/shoryuken/pull/329)
|
16
19
|
|
17
|
-
- Add SQS commands `shoryuken help sqs`, such `ls`, `mv`, `dump` and `requeue`
|
20
|
+
- Add SQS commands `shoryuken help sqs`, such as `ls`, `mv`, `dump` and `requeue`
|
18
21
|
- [#330](https://github.com/phstc/shoryuken/pull/330)
|
19
22
|
|
20
23
|
## [v2.1.3] - 2017-01-27
|
data/bin/cli/sqs.rb
CHANGED
@@ -111,9 +111,9 @@ module Shoryuken
|
|
111
111
|
loop do
|
112
112
|
list_and_print_queues(urls)
|
113
113
|
|
114
|
-
break unless options
|
114
|
+
break unless options[:watch]
|
115
115
|
|
116
|
-
sleep options
|
116
|
+
sleep options[:watch_interval]
|
117
117
|
puts
|
118
118
|
end
|
119
119
|
end
|
@@ -123,7 +123,7 @@ module Shoryuken
|
|
123
123
|
method_option :path, aliases: '-p', type: :string, default: './', desc: 'path to save the dump file'
|
124
124
|
method_option :delete, aliases: '-d', type: :boolean, default: true, desc: 'delete from the queue'
|
125
125
|
def dump(queue_name)
|
126
|
-
path = dump_file(options
|
126
|
+
path = dump_file(options[:path], queue_name)
|
127
127
|
|
128
128
|
fail_task "File #{path} already exists" if File.exist?(path)
|
129
129
|
|
@@ -133,15 +133,15 @@ module Shoryuken
|
|
133
133
|
|
134
134
|
file = nil
|
135
135
|
|
136
|
-
count = find_all(url, options
|
136
|
+
count = find_all(url, options[:number]) do |m|
|
137
137
|
file ||= File.open(path, 'w')
|
138
138
|
|
139
139
|
file.puts(JSON.dump(m.to_h))
|
140
140
|
|
141
|
-
messages << m if options
|
141
|
+
messages << m if options[:delete]
|
142
142
|
end
|
143
143
|
|
144
|
-
batch_delete(url, messages) if options
|
144
|
+
batch_delete(url, messages) if options[:delete]
|
145
145
|
|
146
146
|
if count.zero?
|
147
147
|
say "Queue #{queue_name} is empty", :yellow
|
@@ -170,12 +170,12 @@ module Shoryuken
|
|
170
170
|
url_source = find_queue_url(queue_name_source)
|
171
171
|
messages = []
|
172
172
|
|
173
|
-
count = find_all(url_source, options
|
173
|
+
count = find_all(url_source, options[:number]) do |m|
|
174
174
|
messages << m
|
175
175
|
end
|
176
176
|
|
177
177
|
batch_send(find_queue_url(queue_name_target), messages.map(&:to_h))
|
178
|
-
batch_delete(url_source, messages) if options
|
178
|
+
batch_delete(url_source, messages) if options[:delete]
|
179
179
|
|
180
180
|
if count.zero?
|
181
181
|
say "Queue #{queue_name_source} is empty", :yellow
|
data/bin/shoryuken
CHANGED
@@ -30,9 +30,9 @@ module Shoryuken
|
|
30
30
|
opts = options.to_h.symbolize_keys
|
31
31
|
|
32
32
|
# Keep compatibility with old CLI queue format
|
33
|
-
opts[:queues] = options
|
33
|
+
opts[:queues] = options[:queues].map { |q| q.split(',') } if options[:queues]
|
34
34
|
|
35
|
-
if options
|
35
|
+
if options[:daemon] && options[:logfile].nil?
|
36
36
|
fail_task "You should set a logfile if you're going to daemonize"
|
37
37
|
end
|
38
38
|
|
data/lib/shoryuken/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoryuken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Cantero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|