bunny_hop 0.1.2 → 0.1.3
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/Gemfile.lock +3 -1
- data/bin/bunny_hop +2 -0
- data/bunny_hop.gemspec +3 -2
- data/lib/bunny_hop.rb +2 -6
- data/lib/bunny_hop/cli.rb +6 -0
- data/lib/bunny_hop/version.rb +1 -1
- metadata +20 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2be2d9641987a53b366bc6b7a1d0cc0533bcd9b615b5730f42c81dcd1d988e6b
|
4
|
+
data.tar.gz: 824a0a67e487504b92de31379bf31fecd9306d9c1923ba6d50247a596afbece9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5e8a913863160be0abaaa021a15523e471c142264b9e7ad1971db17230d5908f69e5c42d81fa23d70ba27060b9ee95c000d96190ff4c26ce500d01f80d44342
|
7
|
+
data.tar.gz: ddea02a442b9db5d844a98854b32405ebda5060393840fa8d2ec6e3d2f21710633bce1b8e7cd6ff9deb6de85b26c9a3683c55223d9a3c09eada320f37205f90f
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bunny_hop (0.1.
|
4
|
+
bunny_hop (0.1.3)
|
5
5
|
bunny (>= 2.14.1)
|
6
|
+
thor
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
@@ -25,6 +26,7 @@ GEM
|
|
25
26
|
diff-lcs (>= 1.2.0, < 2.0)
|
26
27
|
rspec-support (~> 3.9.0)
|
27
28
|
rspec-support (3.9.3)
|
29
|
+
thor (1.0.1)
|
28
30
|
|
29
31
|
PLATFORMS
|
30
32
|
ruby
|
data/bin/bunny_hop
ADDED
data/bunny_hop.gemspec
CHANGED
@@ -21,9 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
22
22
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
23
|
end
|
24
|
-
|
25
|
-
spec.executables =
|
24
|
+
|
25
|
+
spec.executables = ["bunny_hop"]
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
28
|
spec.add_dependency "bunny", ">= 2.14.1"
|
29
|
+
spec.add_dependency "thor"
|
29
30
|
end
|
data/lib/bunny_hop.rb
CHANGED
@@ -47,12 +47,8 @@ class BunnyHop
|
|
47
47
|
queue = @channel.queue(queue)
|
48
48
|
exchange = @channel.default_exchange
|
49
49
|
|
50
|
-
queue.subscribe do |_delivery_info, properties, payload|
|
51
|
-
|
52
|
-
puts properties
|
53
|
-
puts payload
|
54
|
-
|
55
|
-
result = yield
|
50
|
+
queue.subscribe do |_delivery_info, properties, payload|
|
51
|
+
result = yield(payload)
|
56
52
|
|
57
53
|
exchange.publish(
|
58
54
|
result.to_s,
|
data/lib/bunny_hop/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny_hop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- btolarz
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
@@ -24,10 +24,25 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.14.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: " Write a longer description or delete this line."
|
28
42
|
email:
|
29
43
|
- btolarz@gmail.com
|
30
|
-
executables:
|
44
|
+
executables:
|
45
|
+
- bunny_hop
|
31
46
|
extensions: []
|
32
47
|
extra_rdoc_files: []
|
33
48
|
files:
|
@@ -40,10 +55,12 @@ files:
|
|
40
55
|
- LICENSE.txt
|
41
56
|
- README.md
|
42
57
|
- Rakefile
|
58
|
+
- bin/bunny_hop
|
43
59
|
- bin/console
|
44
60
|
- bin/setup
|
45
61
|
- bunny_hop.gemspec
|
46
62
|
- lib/bunny_hop.rb
|
63
|
+
- lib/bunny_hop/cli.rb
|
47
64
|
- lib/bunny_hop/version.rb
|
48
65
|
homepage: https://github.com/tier-tools/bunny-hop
|
49
66
|
licenses:
|