msgpack-rpc-over-http 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- require 'celluloid'
1
+ # require 'celluloid'
2
2
  require 'httpclient'
3
3
  require 'forwardable'
4
4
 
@@ -36,6 +36,7 @@ module MessagePack
36
36
  # Calls remote method asynchronously.
37
37
  # This method is non-blocking and returns Future.
38
38
  def call_async(method, *args)
39
+ require 'celluloid'
39
40
  return Celluloid::Future.new{ send_request(method, args) }
40
41
  end
41
42
 
@@ -46,6 +47,7 @@ module MessagePack
46
47
  # The callback method is called with Future when the result is reached.
47
48
  # `err' is assigned a instance of RemoteError or child if res is nil.
48
49
  def callback(method, *args, &block)
50
+ require 'celluloid'
49
51
  return Celluloid::Future.new do
50
52
  begin
51
53
  block.call(send_request(method, args))
@@ -76,6 +78,7 @@ module MessagePack
76
78
  #
77
79
  # Calls remote method asynchronously with streaming.
78
80
  def stream_async(method, *args, &block)
81
+ require 'celluloid'
79
82
  return Celluloid::Future.new do
80
83
  stream(method, *args, &block)
81
84
  end
@@ -16,7 +16,7 @@ module MessagePack
16
16
  raise NoMethodError, "method `#{method}' is not accepted"
17
17
  end
18
18
 
19
- return @handler.send(method, *params)
19
+ return @handler.__send__(method, *params)
20
20
  end
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module MessagePack
2
2
  module RPCOverHTTP
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msgpack-rpc-over-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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-11-07 00:00:00.000000000 Z
12
+ date: 2013-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: 783699386878995267
118
+ hash: -3783804891452095584
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
@@ -124,10 +124,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: 783699386878995267
127
+ hash: -3783804891452095584
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 1.8.24
130
+ rubygems_version: 1.8.25
131
131
  signing_key:
132
132
  specification_version: 3
133
133
  summary: This library provides MessagePack-RPC via HTTP