riddl 0.99.122 → 0.99.123
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/riddl/protocols/xmpp/generator.rb +1 -0
- data/lib/riddl/protocols/xmpp/parser.rb +3 -3
- data/riddl.gemspec +1 -1
- metadata +55 -75
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0569d557697b2b1e33ae0370bb0120c1f3cbe3bd
|
4
|
+
data.tar.gz: a0450ab42c9a18d005ced31b79650ce365f58ec7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 11bd0ba0585c179a08153cf2142878a1d35923bd0b16adce735c519d8686de5eef543f17b94b124610614f9002124022f1b5b4debcb3a8c642d8d58c5b0fa758
|
7
|
+
data.tar.gz: 9c57cd266c3609e70a3a1aa8031ed9cde8f128852fb3a80a421b284dcacd3c9e7e75d9ff3d8c710baa721a2e568f064dbe6d674a4bf2238f3b4fd1366fa5acea
|
@@ -152,6 +152,7 @@ module Riddl
|
|
152
152
|
n = @node.add('part')
|
153
153
|
n.namespaces.add(nil,XR_NS)
|
154
154
|
n.attributes['RIDDL-TYPE'] = 'simple'
|
155
|
+
n.attributes['content-type'] = 'text/plain'
|
155
156
|
n.attributes['content-disposition'] = "#{mode == :input ? 'form-data' : 'riddl-data'}; name=\"#{r.name}\""
|
156
157
|
n.text = r.value
|
157
158
|
when Riddl::Parameter::Complex
|
@@ -35,7 +35,7 @@ module Riddl
|
|
35
35
|
#{{{
|
36
36
|
head = Hash[
|
37
37
|
head.map do |h|
|
38
|
-
STD_ATTRIBUTES.include?(h.qname.name) ? nil : [h.qname.name, value]
|
38
|
+
STD_ATTRIBUTES.include?(h.qname.name) ? nil : [h.qname.name, h.value]
|
39
39
|
end.compact
|
40
40
|
]
|
41
41
|
ctype = nil if riddl_type == 'simple'
|
@@ -100,13 +100,13 @@ module Riddl
|
|
100
100
|
parse_nested_query(query_string,:query)
|
101
101
|
|
102
102
|
input.find('/message/xr:part').each do |p|
|
103
|
-
content_type = p.attributes['content-type'] || ''
|
103
|
+
content_type = p.attributes['content-type'] || 'text/plain'
|
104
104
|
media_type = content_type && content_type.split(/\s*[;,]\s*/, 2).first.downcase
|
105
105
|
if FORM_CONTENT_TYPES.include?(media_type)
|
106
106
|
# sub is a fix for Safari Ajax postings that always append \0
|
107
107
|
parse_nested_query(p.text.sub(/\0\z/, ''),:body)
|
108
108
|
else
|
109
|
-
parse_part(p.children,p.attributes,content_type,p.attributes['
|
109
|
+
parse_part(p.children,p.attributes,content_type,p.attributes['content-disposition']||'',p.attributes['content-id']||'',p.attributes['RIDDL-TYPE']||'')
|
110
110
|
end
|
111
111
|
end
|
112
112
|
#}}}
|
data/riddl.gemspec
CHANGED
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riddl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.99.
|
5
|
-
prerelease:
|
4
|
+
version: 0.99.123
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Juergen eTM Mangler
|
9
8
|
autorequire:
|
10
9
|
bindir: tools
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-09-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: xml-smart
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
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
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rack
|
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
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: thin
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: eventmachine
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: em-websocket
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: em-websocket-client
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ! '>='
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ! '>='
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -110,7 +97,6 @@ dependencies:
|
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: mime-types
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ! '>='
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ! '>='
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -126,7 +111,6 @@ dependencies:
|
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: minitest
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
115
|
- - '='
|
132
116
|
- !ruby/object:Gem::Version
|
@@ -134,7 +118,6 @@ dependencies:
|
|
134
118
|
type: :runtime
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
122
|
- - '='
|
140
123
|
- !ruby/object:Gem::Version
|
@@ -142,7 +125,6 @@ dependencies:
|
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: blather
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
129
|
- - ! '>='
|
148
130
|
- !ruby/object:Gem::Version
|
@@ -150,7 +132,6 @@ dependencies:
|
|
150
132
|
type: :runtime
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
136
|
- - ! '>='
|
156
137
|
- !ruby/object:Gem::Version
|
@@ -164,87 +145,87 @@ extensions: []
|
|
164
145
|
extra_rdoc_files:
|
165
146
|
- README.rdoc
|
166
147
|
files:
|
167
|
-
- lib/riddl/ns/declaration/1.0/declaration.rng
|
168
148
|
- lib/riddl/ns/common/relaxng-modular.rng
|
169
149
|
- lib/riddl/ns/common/relaxng.rng
|
170
150
|
- lib/riddl/ns/common/datatypes-1_0.rng
|
171
151
|
- lib/riddl/ns/description/1.0/description.rng
|
152
|
+
- lib/riddl/ns/common-patterns/riddl-description/show.xml
|
153
|
+
- lib/riddl/ns/common-patterns/riddl-description/resource-show.xml
|
172
154
|
- lib/riddl/ns/common-patterns/properties/1.0/properties.xml
|
173
155
|
- lib/riddl/ns/common-patterns/properties/1.0/properties.schema.xsl
|
174
156
|
- lib/riddl/ns/common-patterns/properties/1.0/properties.schema.schema
|
175
157
|
- lib/riddl/ns/common-patterns/notifications-producer/1.0/producer.xml
|
158
|
+
- lib/riddl/ns/common-patterns/notifications-consumer/1.0/consumer.xml
|
176
159
|
- lib/riddl/ns/common-patterns/addon-security/request.xml
|
177
160
|
- lib/riddl/ns/common-patterns/addon-security/response.xml
|
178
161
|
- lib/riddl/ns/common-patterns/downloadify/1.0/downloadify.xml
|
179
|
-
- lib/riddl/ns/
|
180
|
-
- lib/riddl/ns/common-patterns/riddl-description/resource-show.xml
|
181
|
-
- lib/riddl/ns/common-patterns/riddl-description/show.xml
|
162
|
+
- lib/riddl/ns/declaration/1.0/declaration.rng
|
182
163
|
- tools/riddlprocess-1_0
|
183
164
|
- tools/flash-policy-server.rb
|
184
|
-
- tools/riddlprocess
|
185
165
|
- tools/riddlcheck
|
186
166
|
- tools/riddlcheck-1_0
|
187
|
-
-
|
167
|
+
- tools/riddlprocess
|
188
168
|
- ns/common/relaxng-modular.rng
|
189
169
|
- ns/common/relaxng.rng
|
190
170
|
- ns/common/datatypes-1_0.rng
|
191
171
|
- ns/description/1.0/description.rng
|
172
|
+
- ns/common-patterns/riddl-description/show.xml
|
173
|
+
- ns/common-patterns/riddl-description/resource-show.xml
|
192
174
|
- ns/common-patterns/properties/1.0/properties.xml
|
193
175
|
- ns/common-patterns/properties/1.0/properties.schema.xsl
|
194
176
|
- ns/common-patterns/properties/1.0/properties.schema.schema
|
195
177
|
- ns/common-patterns/notifications-producer/1.0/producer.xml
|
178
|
+
- ns/common-patterns/notifications-consumer/1.0/consumer.xml
|
196
179
|
- ns/common-patterns/addon-security/request.xml
|
197
180
|
- ns/common-patterns/addon-security/response.xml
|
198
181
|
- ns/common-patterns/downloadify/1.0/downloadify.xml
|
199
|
-
- ns/
|
200
|
-
- ns/common-patterns/riddl-description/resource-show.xml
|
201
|
-
- ns/common-patterns/riddl-description/show.xml
|
182
|
+
- ns/declaration/1.0/declaration.rng
|
202
183
|
- contrib/riddl.svg
|
203
|
-
- contrib/riddl.jpg
|
204
184
|
- contrib/riddl.png
|
205
|
-
-
|
206
|
-
- lib/riddl/
|
185
|
+
- contrib/riddl.jpg
|
186
|
+
- lib/riddl/wrapper.rb
|
187
|
+
- lib/riddl/header.rb
|
188
|
+
- lib/riddl/option.rb
|
189
|
+
- lib/riddl/commonlogger.rb
|
190
|
+
- lib/riddl/protocols/websocket.rb
|
191
|
+
- lib/riddl/protocols/xmpp/parser.rb
|
192
|
+
- lib/riddl/protocols/xmpp/generator.rb
|
193
|
+
- lib/riddl/protocols/http/parser.rb
|
194
|
+
- lib/riddl/protocols/http/generator.rb
|
207
195
|
- lib/riddl/handlers/oauth.rb
|
208
|
-
- lib/riddl/handlers/relaxng.rb
|
209
196
|
- lib/riddl/handlers/xmlschema.rb
|
197
|
+
- lib/riddl/handlers/relaxng.rb
|
198
|
+
- lib/riddl/handlers/plain-type.rb
|
210
199
|
- lib/riddl/client.rb
|
211
|
-
- lib/riddl/option.rb
|
212
|
-
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0/base.rb
|
213
|
-
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Fon_behalf.rb
|
214
|
-
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Faccess_token.rb
|
215
|
-
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Frequest_token.rb
|
216
200
|
- lib/riddl/roles.rb
|
217
|
-
- lib/riddl/
|
201
|
+
- lib/riddl/implementation.rb
|
202
|
+
- lib/riddl/utils/properties.rb
|
203
|
+
- lib/riddl/utils/fileserve.rb
|
204
|
+
- lib/riddl/utils/notifications_producer.rb
|
205
|
+
- lib/riddl/utils/downloadify.rb
|
206
|
+
- lib/riddl/utils/description.rb
|
207
|
+
- lib/riddl/utils/xsloverlay.rb
|
208
|
+
- lib/riddl/utils/erbserve.rb
|
218
209
|
- lib/riddl/server.rb
|
210
|
+
- lib/riddl/handlers.rb
|
219
211
|
- lib/riddl/constants.rb
|
220
|
-
- lib/riddl/wrapper.rb
|
221
|
-
- lib/riddl/implementation.rb
|
222
|
-
- lib/riddl/header.rb
|
223
212
|
- lib/riddl/error.rb
|
224
|
-
- lib/riddl/wrapper/
|
225
|
-
- lib/riddl/wrapper/
|
226
|
-
- lib/riddl/wrapper/
|
213
|
+
- lib/riddl/wrapper/description/resource.rb
|
214
|
+
- lib/riddl/wrapper/description/access.rb
|
215
|
+
- lib/riddl/wrapper/description/message_and_transformation.rb
|
227
216
|
- lib/riddl/wrapper/layerchecker.rb
|
228
217
|
- lib/riddl/wrapper/declaration.rb
|
229
|
-
- lib/riddl/wrapper/description.rb
|
230
218
|
- lib/riddl/wrapper/resourcechecker.rb
|
219
|
+
- lib/riddl/wrapper/declaration/interface.rb
|
220
|
+
- lib/riddl/wrapper/declaration/tile.rb
|
221
|
+
- lib/riddl/wrapper/declaration/facade.rb
|
222
|
+
- lib/riddl/wrapper/description.rb
|
231
223
|
- lib/riddl/wrapper/messageparser.rb
|
232
|
-
- lib/riddl/
|
233
|
-
- lib/riddl/
|
234
|
-
- lib/riddl/
|
235
|
-
- lib/riddl/
|
236
|
-
- lib/riddl/
|
237
|
-
- lib/riddl/utils/downloadify.rb
|
238
|
-
- lib/riddl/utils/notifications_producer.rb
|
239
|
-
- lib/riddl/utils/erbserve.rb
|
240
|
-
- lib/riddl/utils/description.rb
|
241
|
-
- lib/riddl/utils/fileserve.rb
|
242
|
-
- lib/riddl/commonlogger.rb
|
243
|
-
- lib/riddl/protocols/http/generator.rb
|
244
|
-
- lib/riddl/protocols/http/parser.rb
|
245
|
-
- lib/riddl/protocols/xmpp/generator.rb
|
246
|
-
- lib/riddl/protocols/xmpp/parser.rb
|
247
|
-
- lib/riddl/protocols/websocket.rb
|
224
|
+
- lib/riddl/parameter.rb
|
225
|
+
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Fon_behalf.rb
|
226
|
+
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Faccess_token.rb
|
227
|
+
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Frequest_token.rb
|
228
|
+
- lib/riddl/roles/http%3A%2F%2Foauth.net%2F1.0/base.rb
|
248
229
|
- COPYING
|
249
230
|
- Rakefile
|
250
231
|
- riddl.gemspec
|
@@ -252,46 +233,45 @@ files:
|
|
252
233
|
- TODO
|
253
234
|
- AUTHORS
|
254
235
|
- INSTALL
|
255
|
-
- test/tc_declaration-distributed.rb
|
256
|
-
- test/tc_properties.rb
|
257
|
-
- test/tc_library.rb
|
258
236
|
- test/tc_declaration-local.rb
|
259
|
-
- test/
|
237
|
+
- test/tc_properties.rb
|
260
238
|
- test/tc_helloworld.rb
|
239
|
+
- test/tc_library.rb
|
261
240
|
- test/tc_producer.rb
|
241
|
+
- test/tc_declaration-distributed.rb
|
242
|
+
- test/tc_declaration-hybrid.rb
|
262
243
|
- test/smartrunner.rb
|
263
244
|
homepage: http://www.wst.univie.ac.at/communities/riddl/
|
264
245
|
licenses:
|
265
246
|
- LGPL-3
|
247
|
+
metadata: {}
|
266
248
|
post_install_message:
|
267
249
|
rdoc_options: []
|
268
250
|
require_paths:
|
269
251
|
- lib
|
270
252
|
required_ruby_version: !ruby/object:Gem::Requirement
|
271
|
-
none: false
|
272
253
|
requirements:
|
273
254
|
- - ! '>='
|
274
255
|
- !ruby/object:Gem::Version
|
275
256
|
version: 1.9.3
|
276
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
|
-
none: false
|
278
258
|
requirements:
|
279
259
|
- - ! '>='
|
280
260
|
- !ruby/object:Gem::Version
|
281
261
|
version: '0'
|
282
262
|
requirements: []
|
283
263
|
rubyforge_project:
|
284
|
-
rubygems_version:
|
264
|
+
rubygems_version: 2.0.3
|
285
265
|
signing_key:
|
286
|
-
specification_version:
|
266
|
+
specification_version: 4
|
287
267
|
summary: ! 'restful interface description and declaration language: tools and client/server
|
288
268
|
libs'
|
289
269
|
test_files:
|
290
|
-
- test/tc_declaration-distributed.rb
|
291
|
-
- test/tc_properties.rb
|
292
|
-
- test/tc_library.rb
|
293
270
|
- test/tc_declaration-local.rb
|
294
|
-
- test/
|
271
|
+
- test/tc_properties.rb
|
295
272
|
- test/tc_helloworld.rb
|
273
|
+
- test/tc_library.rb
|
296
274
|
- test/tc_producer.rb
|
275
|
+
- test/tc_declaration-distributed.rb
|
276
|
+
- test/tc_declaration-hybrid.rb
|
297
277
|
- test/smartrunner.rb
|