tribe_em_amfsocket 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: cf6aa470cb54c4915b5938a9e74c22616f2c0a29
4
+ data.tar.gz: 2fa025586247b710ca48f2909c6cd1934cabe4aa
5
+ SHA512:
6
+ metadata.gz: c7ca367d589a2309932f9cf9064d1a2affb226d8cb40568207dedf58c18e3bbae3802c5b509e4b6b542f4bd2885b0777ffca9e6c1d7d210e247c0afe3836fc85
7
+ data.tar.gz: 56a6d8b21b1514ae557f766415369316a38571c416df97c310160217a1c56a4a4207036281eea6f286589c4927714bc2e401c37536cad878a92f558e9183c3c3
data/README.md CHANGED
@@ -27,7 +27,7 @@ Or install it yourself as:
27
27
  puts "Actor (#{identifier}) connected to client using thread (#{Thread.current.object_id})."
28
28
  super
29
29
  end
30
-
30
+
31
31
  def on_unbind(event)
32
32
  puts "Actor (#{identifier}) disconnected from client using thread (#{Thread.current.object_id})."
33
33
  super
@@ -36,7 +36,7 @@ Or install it yourself as:
36
36
  def on_receive_message(event)
37
37
  puts "Actor (#{identifier}) received message (command=#{event.data.command}, params=#{event.data.params} using thread (#{Thread.current.object_id})."
38
38
  write_message(event.data.command, event.data.params)
39
- enqueue(:shutdown)
39
+ shutdown!
40
40
  end
41
41
  end
42
42
 
@@ -1,6 +1,6 @@
1
1
  # Attempt to provide thread-safe communication between EventMachine and AMF Socket.
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
@@ -24,17 +24,17 @@ module Tribe
24
24
  def post_init
25
25
  super
26
26
 
27
- @actor.enqueue(:post_init, nil)
27
+ @actor.message!(:post_init, nil)
28
28
  end
29
29
 
30
30
  def unbind
31
31
  super
32
32
 
33
- @actor.enqueue(:unbind, nil)
33
+ @actor.message!(:unbind, nil)
34
34
  end
35
35
 
36
36
  def receive_message(message)
37
- @actor.enqueue(:receive_message, message)
37
+ @actor.message!(:receive_message, message)
38
38
  end
39
39
 
40
40
  #
@@ -1,7 +1,7 @@
1
1
  module Tribe
2
2
  module EM
3
3
  module AmfSocket
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
6
6
  end
7
7
  end
@@ -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_em', '~> 0.1')
20
+ gem.add_dependency('tribe_em', '~> 0.2')
21
21
  gem.add_dependency('amf_socket', '0.3.1')
22
22
  end
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tribe_em_amfsocket
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_em
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '0.1'
19
+ version: '0.2'
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.1'
26
+ version: '0.2'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: amf_socket
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - '='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
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
@@ -62,26 +57,25 @@ files:
62
57
  - tribe_em_amfsocket.gemspec
63
58
  homepage: https://github.com/chadrem/tribe_em_amfsocket
64
59
  licenses: []
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
- - - ! '>='
67
+ - - '>='
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
- - - ! '>='
72
+ - - '>='
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.25
77
+ rubygems_version: 2.0.3
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: Add Amf Socket functionaly on top of Tribe EM.
87
81
  test_files: []