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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8f4b3d7a8f7f319ae554db0ececd119e5c25f72dfbf96680869ddff02f7fad6
4
- data.tar.gz: 8c39942643398e9615877d85738c63807ec1efa247c15d25a209c073a696f772
3
+ metadata.gz: 2be2d9641987a53b366bc6b7a1d0cc0533bcd9b615b5730f42c81dcd1d988e6b
4
+ data.tar.gz: 824a0a67e487504b92de31379bf31fecd9306d9c1923ba6d50247a596afbece9
5
5
  SHA512:
6
- metadata.gz: 05c3a407f29a532bbc37c6f6d154f790f6e20977f410345d71cbdc11883c13f966bb297df1e34f6f86c96d82deec8d9125f3d97bc4a6645b9b7dcbd0a6d635c2
7
- data.tar.gz: 34dfc8c83d4d58e02c64a9005d42d8f774b91cad666a5a55ae6ca95d22af8b2a116ade9e424898eb0817c0f2c880ad2dfc9e7476ddcffc3b8f3e18a349073c12
6
+ metadata.gz: b5e8a913863160be0abaaa021a15523e471c142264b9e7ad1971db17230d5908f69e5c42d81fa23d70ba27060b9ee95c000d96190ff4c26ce500d01f80d44342
7
+ data.tar.gz: ddea02a442b9db5d844a98854b32405ebda5060393840fa8d2ec6e3d2f21710633bce1b8e7cd6ff9deb6de85b26c9a3683c55223d9a3c09eada320f37205f90f
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bunny_hop (0.1.2)
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
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ puts "CLI"
@@ -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
- spec.bindir = "exe"
25
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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
@@ -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
- puts _delivery_info
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,
@@ -0,0 +1,6 @@
1
+ require 'thor'
2
+ class BunnyHop
3
+ class CLI < Thor
4
+
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  class BunnyHop
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - btolarz
8
8
  autorequire:
9
- bindir: exe
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: