buster 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,13 +7,14 @@ module Buster
7
7
  def fire(name, props = {})
8
8
  bin = MessagePack.pack(props)
9
9
  sender.send_strings([name.to_s, bin])
10
- sender.close
11
10
  end
12
11
 
13
12
  private
14
13
 
15
14
  def sender
16
- s = @context.socket(ZMQ::DEALER)
15
+ return Thread.current['sender_socket'] if Thread.current['sender_socket']
16
+
17
+ s = Thread.current['sender_socket'] = @context.socket(ZMQ::DEALER)
17
18
  s.connect("inproc://routes")
18
19
  s
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module Buster
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-31 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi-rzmq
16
- requirement: &19815880 !ruby/object:Gem::Requirement
16
+ requirement: &21950620 !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: *19815880
24
+ version_requirements: *21950620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: msgpack
27
- requirement: &19815320 !ruby/object:Gem::Requirement
27
+ requirement: &21950080 !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: *19815320
35
+ version_requirements: *21950080
36
36
  description: Service Bus
37
37
  email:
38
38
  - jstaten07@gmail.com
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  segments:
75
75
  - 0
76
- hash: -592781851067059389
76
+ hash: 1837017389783411388
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  none: false
79
79
  requirements:
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  segments:
84
84
  - 0
85
- hash: -592781851067059389
85
+ hash: 1837017389783411388
86
86
  requirements: []
87
87
  rubyforge_project: buster
88
88
  rubygems_version: 1.8.13