amf_socket 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +0 -2
- data/Rakefile +1 -2
- data/lib/amf_socket/rpc_message.rb +3 -3
- data/lib/amf_socket/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# AMF Socket - Ruby
|
2
2
|
|
3
3
|
This library is an implementation of [AMF Socket](https://github.com/chadrem/amf_socket) for Ruby's EventMachine.
|
4
|
-
Currently it is in the early stages and the API is incomplete.
|
5
4
|
|
6
5
|
## Installation
|
7
6
|
|
@@ -21,7 +20,6 @@ Or install it yourself as:
|
|
21
20
|
|
22
21
|
EM.run do
|
23
22
|
class MyConnection < AmfSocket::AmfRpcConnection
|
24
|
-
private
|
25
23
|
def post_init
|
26
24
|
super
|
27
25
|
|
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ task :environment do
|
|
21
21
|
require 'amf_socket'
|
22
22
|
end
|
23
23
|
|
24
|
-
desc 'Start an IRB console
|
24
|
+
desc 'Start an IRB console'
|
25
25
|
task :console => :environment do
|
26
26
|
require 'irb'
|
27
27
|
|
@@ -34,7 +34,6 @@ desc 'Start a test server'
|
|
34
34
|
task :harness => :environment do
|
35
35
|
EM.run do
|
36
36
|
class MyConnection < AmfSocket::AmfRpcConnection
|
37
|
-
private
|
38
37
|
def post_init
|
39
38
|
super
|
40
39
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
class AmfSocket::RpcMessage
|
2
|
-
attr_reader :
|
2
|
+
attr_reader :connection
|
3
3
|
|
4
|
-
def initialize(object,
|
4
|
+
def initialize(object, connection)
|
5
5
|
raise RpcSocket::InvalidObject unless validate_object(object)
|
6
6
|
|
7
7
|
@message_obj = object[:message]
|
8
|
-
@
|
8
|
+
@connection = connection
|
9
9
|
end
|
10
10
|
|
11
11
|
def message_id
|
data/lib/amf_socket/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amf_socket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
segments:
|
82
82
|
- 0
|
83
|
-
hash:
|
83
|
+
hash: 3130657212601739948
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
segments:
|
91
91
|
- 0
|
92
|
-
hash:
|
92
|
+
hash: 3130657212601739948
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
95
|
rubygems_version: 1.8.24
|