rack-rpc 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rack/rpc/server.rb +2 -2
- data/lib/rack/rpc/version.rb +1 -1
- metadata +21 -21
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/lib/rack/rpc/server.rb
CHANGED
@@ -15,9 +15,9 @@ module Rack; module RPC
|
|
15
15
|
# Wrap each method so we can inject before and after callbacks
|
16
16
|
mappings.each do |rpc_method_name, server_method|
|
17
17
|
self.send(:alias_method, :"#{server_method}_without_callbacks", server_method.to_sym)
|
18
|
-
self.send(:define_method, server_method) do
|
18
|
+
self.send(:define_method, server_method) do |*args|
|
19
19
|
self.class.hooks[:before].each{|command| command.call(self) if command.callable?(server_method)}
|
20
|
-
out = self.send(:"#{server_method}_without_callbacks")
|
20
|
+
out = self.send(:"#{server_method}_without_callbacks", *args)
|
21
21
|
self.class.hooks[:after].each{|command| command.call(self) if command.callable?(server_method)}
|
22
22
|
out
|
23
23
|
end
|
data/lib/rack/rpc/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Datagraph
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-15 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -31,59 +31,59 @@ dependencies:
|
|
31
31
|
type: :runtime
|
32
32
|
version_requirements: *id001
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: nokogiri
|
35
35
|
prerelease: false
|
36
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
segments:
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
version:
|
41
|
+
- 1
|
42
|
+
- 4
|
43
|
+
- 4
|
44
|
+
version: 1.4.4
|
45
45
|
type: :development
|
46
46
|
version_requirements: *id002
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: yard
|
49
49
|
prerelease: false
|
50
50
|
requirement: &id003 !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
segments:
|
55
|
-
- 2
|
56
|
-
- 1
|
57
55
|
- 0
|
58
|
-
|
56
|
+
- 6
|
57
|
+
- 0
|
58
|
+
version: 0.6.0
|
59
59
|
type: :development
|
60
60
|
version_requirements: *id003
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: rspec
|
63
63
|
prerelease: false
|
64
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
segments:
|
69
|
+
- 2
|
70
|
+
- 1
|
69
71
|
- 0
|
70
|
-
|
71
|
-
- 6
|
72
|
-
version: 0.5.6
|
72
|
+
version: 2.1.0
|
73
73
|
type: :development
|
74
74
|
version_requirements: *id004
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: rack-test
|
77
77
|
prerelease: false
|
78
78
|
requirement: &id005 !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
segments:
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
version:
|
83
|
+
- 0
|
84
|
+
- 5
|
85
|
+
- 6
|
86
|
+
version: 0.5.6
|
87
87
|
type: :development
|
88
88
|
version_requirements: *id005
|
89
89
|
description: Rack middleware for serving up RPC endpoints.
|