waffle 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,11 @@ module Waffle
6
6
  end
7
7
 
8
8
  def publish(flow = 'events', message = '')
9
- @strategy.publish flow, message
9
+ begin
10
+ @strategy.publish flow, message
11
+ rescue
12
+ puts 'Hello!'
13
+ end
10
14
  end
11
15
 
12
16
  def subscribe(flow = '', &block)
@@ -6,6 +6,7 @@ module Waffle
6
6
 
7
7
  def initialize(configuration = nil)
8
8
  raise ArgumentError unless configuration && configuration.is_a?(Waffle::Configuration)
9
+
9
10
  @bunny = Bunny.new configuration.url
10
11
  @bunny.start
11
12
  end
@@ -1,5 +1,5 @@
1
1
  module Waffle
2
2
 
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waffle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bunny
16
- requirement: &78749830 !ruby/object:Gem::Requirement
16
+ requirement: &80847070 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *78749830
24
+ version_requirements: *80847070
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: yajl-ruby
27
- requirement: &78749560 !ruby/object:Gem::Requirement
27
+ requirement: &80846700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *78749560
35
+ version_requirements: *80846700
36
36
  description: Client part of Patty statistics server
37
37
  email: alexander.lomakin@gmail.com
38
38
  executables: []