bunny_hop 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2be2d9641987a53b366bc6b7a1d0cc0533bcd9b615b5730f42c81dcd1d988e6b
4
- data.tar.gz: 824a0a67e487504b92de31379bf31fecd9306d9c1923ba6d50247a596afbece9
3
+ metadata.gz: 7c62515a54871f23e17a54ca2a7360b15cd3bedd15e43fdab79350817826f9b1
4
+ data.tar.gz: f70ad243aae20a3d0902feb34c68dfbb753d915ab2bdedaeaba23d2825bedbc1
5
5
  SHA512:
6
- metadata.gz: b5e8a913863160be0abaaa021a15523e471c142264b9e7ad1971db17230d5908f69e5c42d81fa23d70ba27060b9ee95c000d96190ff4c26ce500d01f80d44342
7
- data.tar.gz: ddea02a442b9db5d844a98854b32405ebda5060393840fa8d2ec6e3d2f21710633bce1b8e7cd6ff9deb6de85b26c9a3683c55223d9a3c09eada320f37205f90f
6
+ metadata.gz: 757ba5e45fdaacd7907a2d6e63d65f79a5e2556789c0a85514a034ee45f78dc3127feb653f14f215957953bb54ddcf5eaad683ecf17db5df09bf7c2f8f52015a
7
+ data.tar.gz: afcff57e5aef8df70bc453f0fa77e7f9c98443069c281da407b70252f29365c22bbf79f8aaa3e1dd7349192f8a74668d71de641aed7e304cf73a771f5bae3fbc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bunny_hop (0.1.3)
4
+ bunny_hop (0.1.4)
5
5
  bunny (>= 2.14.1)
6
6
  thor
7
7
 
@@ -57,4 +57,14 @@ class BunnyHop
57
57
  )
58
58
  end
59
59
  end
60
+
61
+ module ControllerHelper
62
+ def on(queue)
63
+ @__bunny ||= BunnyHop.new
64
+ puts "subscribe to #{queue}"
65
+ @__bunny.subscribe(queue.to_s) do |payload|
66
+ yield(payload)
67
+ end
68
+ end
69
+ end
60
70
  end
@@ -1,3 +1,3 @@
1
1
  class BunnyHop
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny_hop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - btolarz