tribe_em 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2bb14062ad1aeae1bb01f52c1adb660583a6f749
4
+ data.tar.gz: e77ccd1637957d1caca366bc91812f5d452b36a4
5
+ SHA512:
6
+ metadata.gz: 46641f248653a157addae472e77d81685f2bd007e5fee88ce8820b048c442b2ca16c1ee19d2af82d225627007e14afc8ca32f422540859f0f0fd2e82b1a99283
7
+ data.tar.gz: 71a7ca9f7d4be773d13c6ec619f3a463019a61facd4ca2cf34e30da19ec4270d07ac9cf9618165b14b69f2d36b6eee4b19c61567730dbca632cbf1fff4441903
@@ -1,6 +1,6 @@
1
1
  # Attempt to provide thread-safe communication between EventMachine and Tribe:
2
2
  # 1. Always use EM.schedule to push work to the reactor thread.
3
- # 2. Always use @actor.enqueue to push work to the actor's thread pool.
3
+ # 2. Always use @actor.message! to push work to the actor's thread pool.
4
4
 
5
5
  module Tribe
6
6
  module EM
@@ -21,15 +21,15 @@ module Tribe
21
21
  public
22
22
 
23
23
  def post_init
24
- @actor.enqueue(:post_init, nil)
24
+ @actor.message!(:post_init, nil)
25
25
  end
26
26
 
27
27
  def receive_data(data)
28
- @actor.enqueue(:receive_data, data)
28
+ @actor.message!(:receive_data, data)
29
29
  end
30
30
 
31
31
  def unbind
32
- @actor.enqueue(:unbind, nil)
32
+ @actor.message!(:unbind, nil)
33
33
  end
34
34
 
35
35
  #
@@ -24,7 +24,7 @@ module Tribe
24
24
 
25
25
  # Override and call super as necessary.
26
26
  def on_unbind(event)
27
- enqueue(:shutdown)
27
+ shutdown!
28
28
  end
29
29
 
30
30
  # Override and call super as necessary.
@@ -45,7 +45,7 @@ module Tribe
45
45
 
46
46
  ::EM.schedule do
47
47
  sig = ::EM.start_server(@ip, @port, @actor_class.proxy_class, @actor_class, { :logger => @logger })
48
- enqueue(:listener_started, sig)
48
+ message!(:listener_started, sig)
49
49
  end
50
50
  end
51
51
 
@@ -55,7 +55,7 @@ module Tribe
55
55
  sig = @server_sig
56
56
  ::EM.schedule do
57
57
  ::EM.stop_server(sig)
58
- enqueue(:listener_stopped)
58
+ message!(:listener_stopped)
59
59
  end
60
60
  end
61
61
  end
@@ -1,5 +1,5 @@
1
1
  module Tribe
2
2
  module EM
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
data/tribe_em.gemspec CHANGED
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency('tribe', '~> 0.2')
20
+ gem.add_dependency('tribe', '~> 0.3')
21
21
  gem.add_dependency('eventmachine', '>= 1.0.0')
22
22
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tribe_em
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chad Remesch
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-27 00:00:00.000000000 Z
11
+ date: 2013-06-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: tribe
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '0.2'
19
+ version: '0.3'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '0.2'
26
+ version: '0.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: eventmachine
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.0.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 1.0.0
46
41
  description: Event driven network IO for the Tribe gem.
@@ -64,26 +59,25 @@ files:
64
59
  - tribe_em.gemspec
65
60
  homepage: https://github.com/chadrem/tribe_em
66
61
  licenses: []
62
+ metadata: {}
67
63
  post_install_message:
68
64
  rdoc_options: []
69
65
  require_paths:
70
66
  - lib
71
67
  required_ruby_version: !ruby/object:Gem::Requirement
72
- none: false
73
68
  requirements:
74
- - - ! '>='
69
+ - - '>='
75
70
  - !ruby/object:Gem::Version
76
71
  version: '0'
77
72
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
73
  requirements:
80
- - - ! '>='
74
+ - - '>='
81
75
  - !ruby/object:Gem::Version
82
76
  version: '0'
83
77
  requirements: []
84
78
  rubyforge_project:
85
- rubygems_version: 1.8.25
79
+ rubygems_version: 2.0.3
86
80
  signing_key:
87
- specification_version: 3
81
+ specification_version: 4
88
82
  summary: Quickly create network servers using EventMachine and Tribe.
89
83
  test_files: []