threez-rack-rpc 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,4 +1,4 @@
1
- JSON-RPC/XML-RPC Server for Rack Applications
1
+ JSON-RPC/XML-RPC Server for Rack Applications [![Build Status](https://secure.travis-ci.org/threez/rack-rpc.png?branch=master)](http://travis-ci.org/threez/rack-rpc)
2
2
  =============================================
3
3
 
4
4
  This is a [Rack][] middleware that facilitates the creation of
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.10
@@ -1,6 +1,15 @@
1
1
  require 'xmlrpc/server' unless defined?(XMLRPC::BasicServer)
2
2
  require 'builder' # @see http://rubygems.org/gems/builder
3
3
 
4
+ # Monkey patch the xml writer for problems with double arrays
5
+ # Problem is filed as: http://jira.codehaus.org/browse/JRUBY-6670
6
+ class XMLRPC::XMLWriter::Simple
7
+ alias_method :unsave_element, :element
8
+ def element(name, attrs, *children)
9
+ unsave_element(name, attrs, *children.flatten)
10
+ end
11
+ end
12
+
4
13
  class Rack::RPC::Endpoint
5
14
  ##
6
15
  # @see http://en.wikipedia.org/wiki/XML-RPC
@@ -24,7 +24,8 @@ module Rack::RPC
24
24
  self.send(:alias_method, :"#{server_method}_without_callbacks", server_method.to_sym)
25
25
  self.send(:define_method, server_method) do |*args|
26
26
  self.class.hooks[:before].each{|command| command.call(self) if command.callable?(server_method)}
27
- out = self.send(:"#{server_method}_without_callbacks", *args)
27
+ method = :"#{server_method}_without_callbacks"
28
+ out = args.any? ? self.send(method, *args) : self.send(method)
28
29
  self.class.hooks[:after].each{|command| command.call(self) if command.callable?(server_method)}
29
30
  out
30
31
  end
@@ -2,7 +2,7 @@ module Rack; module RPC
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 8
5
+ TINY = 10
6
6
  EXTRA = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
metadata CHANGED
@@ -1,113 +1,105 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: threez-rack-rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
5
- prerelease:
4
+ prerelease:
5
+ version: 0.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Datagraph
9
9
  - Vincent Landgraf
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-17 00:00:00.000000000 Z
13
+ date: 2012-05-17 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
17
+ version_requirements: &2058 !ruby/object:Gem::Requirement
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.1.2
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
22
  none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: 2.1.2
23
+ requirement: *2058
24
+ prerelease: false
25
+ type: :runtime
31
26
  - !ruby/object:Gem::Dependency
32
27
  name: rack
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
28
+ version_requirements: &2076 !ruby/object:Gem::Requirement
35
29
  requirements:
36
30
  - - ! '>='
37
31
  - !ruby/object:Gem::Version
38
32
  version: '1.0'
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
33
  none: false
34
+ requirement: *2076
35
+ prerelease: false
36
+ type: :runtime
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake
39
+ version_requirements: &2092 !ruby/object:Gem::Requirement
43
40
  requirements:
44
41
  - - ! '>='
45
42
  - !ruby/object:Gem::Version
46
- version: '1.0'
47
- - !ruby/object:Gem::Dependency
48
- name: nokogiri
49
- requirement: !ruby/object:Gem::Requirement
43
+ version: '0'
50
44
  none: false
45
+ requirement: *2092
46
+ prerelease: false
47
+ type: :development
48
+ - !ruby/object:Gem::Dependency
49
+ name: json
50
+ version_requirements: &2110 !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.4.4
55
- type: :development
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
54
+ version: 1.7.3
58
55
  none: false
56
+ requirement: *2110
57
+ prerelease: false
58
+ type: :development
59
+ - !ruby/object:Gem::Dependency
60
+ name: nokogiri
61
+ version_requirements: &2126 !ruby/object:Gem::Requirement
59
62
  requirements:
60
63
  - - ! '>='
61
64
  - !ruby/object:Gem::Version
62
65
  version: 1.4.4
66
+ none: false
67
+ requirement: *2126
68
+ prerelease: false
69
+ type: :development
63
70
  - !ruby/object:Gem::Dependency
64
71
  name: yard
65
- requirement: !ruby/object:Gem::Requirement
66
- none: false
72
+ version_requirements: &2142 !ruby/object:Gem::Requirement
67
73
  requirements:
68
74
  - - ! '>='
69
75
  - !ruby/object:Gem::Version
70
76
  version: 0.6.0
71
- type: :development
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
77
  none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: 0.6.0
78
+ requirement: *2142
79
+ prerelease: false
80
+ type: :development
79
81
  - !ruby/object:Gem::Dependency
80
82
  name: rspec
81
- requirement: !ruby/object:Gem::Requirement
82
- none: false
83
+ version_requirements: &2158 !ruby/object:Gem::Requirement
83
84
  requirements:
84
85
  - - ! '>='
85
86
  - !ruby/object:Gem::Version
86
87
  version: 2.1.0
87
- type: :development
88
- prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
90
88
  none: false
91
- requirements:
92
- - - ! '>='
93
- - !ruby/object:Gem::Version
94
- version: 2.1.0
89
+ requirement: *2158
90
+ prerelease: false
91
+ type: :development
95
92
  - !ruby/object:Gem::Dependency
96
93
  name: rack-test
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
94
+ version_requirements: &2174 !ruby/object:Gem::Requirement
99
95
  requirements:
100
96
  - - ! '>='
101
97
  - !ruby/object:Gem::Version
102
98
  version: 0.5.6
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
99
  none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: 0.5.6
100
+ requirement: *2174
101
+ prerelease: false
102
+ type: :development
111
103
  description: Rack middleware for serving up RPC endpoints.
112
104
  email: vincent.landgraf@1und1.de
113
105
  executables: []
@@ -119,8 +111,7 @@ files:
119
111
  - README
120
112
  - UNLICENSE
121
113
  - VERSION
122
- - lib/rack/rpc/endpoint/jsonrpc.rb
123
- - lib/rack/rpc/endpoint/xmlrpc.rb
114
+ - lib/rack/rpc.rb
124
115
  - lib/rack/rpc/endpoint.rb
125
116
  - lib/rack/rpc/error.rb
126
117
  - lib/rack/rpc/middleware.rb
@@ -128,31 +119,33 @@ files:
128
119
  - lib/rack/rpc/server.rb
129
120
  - lib/rack/rpc/service.rb
130
121
  - lib/rack/rpc/version.rb
131
- - lib/rack/rpc.rb
122
+ - lib/rack/rpc/endpoint/jsonrpc.rb
123
+ - lib/rack/rpc/endpoint/xmlrpc.rb
132
124
  homepage: https://github.com/threez/rack-rpc
133
125
  licenses:
134
126
  - Public Domain
135
- post_install_message:
127
+ post_install_message:
136
128
  rdoc_options: []
137
129
  require_paths:
138
130
  - lib
139
131
  required_ruby_version: !ruby/object:Gem::Requirement
140
- none: false
141
132
  requirements:
142
133
  - - ! '>='
143
134
  - !ruby/object:Gem::Version
144
135
  version: 1.9.2
145
- required_rubygems_version: !ruby/object:Gem::Requirement
146
136
  none: false
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
138
  requirements:
148
139
  - - ! '>='
149
140
  - !ruby/object:Gem::Version
150
141
  version: '0'
142
+ none: false
151
143
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 1.8.24
154
- signing_key:
144
+ rubyforge_project:
145
+ rubygems_version: 1.8.15
146
+ signing_key:
155
147
  specification_version: 3
156
148
  summary: JSON-RPC/XML-RPC server for Rack applications.
157
149
  test_files: []
158
150
  has_rdoc: false
151
+ ...