riddl 0.99.161 → 0.99.162

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/examples/declaration-test/main.log +57 -0
  3. data/examples/flickr/Exif/riddl.new.jpg +0 -0
  4. data/examples/flickr/Flickr/flickr.frob +1 -0
  5. data/examples/flickr/Flickr/flickr.token +1 -0
  6. data/examples/twitter/twitter.consumer_key +1 -0
  7. data/examples/twitter/twitter.consumer_secret +1 -0
  8. data/examples/twitter/twitter.token +1 -0
  9. data/examples/twitter/twitter.token_secret +1 -0
  10. data/examples/twitter/twitter.user_id +1 -0
  11. data/examples/xmpp/blather/description.xml +981 -0
  12. data/examples/xmpp/blather/direct.rb +44 -0
  13. data/examples/xmpp/blather/load.rb +18 -0
  14. data/examples/xmpp/blather/pp.rb +40 -0
  15. data/examples/xmpp/blather/test.rb +32 -0
  16. data/examples/zotero/litlist.html +540 -0
  17. data/examples/zotero/zotero.consumer_key +1 -0
  18. data/examples/zotero/zotero.consumer_secret +1 -0
  19. data/examples/zotero/zotero.token +1 -0
  20. data/examples/zotero/zotero.token_secret +1 -0
  21. data/examples/zotero/zotero.user_id +1 -0
  22. data/lib/ruby/riddl/protocols/http/generator.rb +3 -11
  23. data/lib/ruby/riddl/protocols/http/parser.rb +2 -10
  24. data/lib/ruby/riddl/protocols/utils.rb +23 -0
  25. data/lib/ruby/riddl/protocols/xmpp/generator.rb +3 -11
  26. data/lib/ruby/riddl/protocols/xmpp/parser.rb +2 -10
  27. data/riddl.gemspec +1 -1
  28. metadata +236 -230
  29. data/examples/notifications/notifications/39c3b39ec3e48a514948e4981f4459d2/consumer-secret +0 -1
  30. data/examples/notifications/notifications/39c3b39ec3e48a514948e4981f4459d2/producer-secret +0 -1
  31. data/examples/notifications/notifications/39c3b39ec3e48a514948e4981f4459d2/subscription.xml +0 -9
  32. data/examples/notifications/notifications/5d68b08a13e622aada13e3c182ea9390/consumer-secret +0 -1
  33. data/examples/notifications/notifications/5d68b08a13e622aada13e3c182ea9390/producer-secret +0 -1
  34. data/examples/notifications/notifications/5d68b08a13e622aada13e3c182ea9390/subscription.xml +0 -9
  35. data/examples/notifications/notifications/893edd178c053a011c09f253fa85092f/consumer-secret +0 -1
  36. data/examples/notifications/notifications/893edd178c053a011c09f253fa85092f/producer-secret +0 -1
  37. data/examples/notifications/notifications/893edd178c053a011c09f253fa85092f/subscription.xml +0 -9
  38. data/examples/notifications/notifications/9f5921176e6876aca3af4428b1ccafd1/consumer-secret +0 -1
  39. data/examples/notifications/notifications/9f5921176e6876aca3af4428b1ccafd1/producer-secret +0 -1
  40. data/examples/notifications/notifications/9f5921176e6876aca3af4428b1ccafd1/subscription.xml +0 -9
  41. data/examples/notifications/notifications/c457779f6e2c086d8cf1cd9b44d8950e/consumer-secret +0 -1
  42. data/examples/notifications/notifications/c457779f6e2c086d8cf1cd9b44d8950e/producer-secret +0 -1
  43. data/examples/notifications/notifications/c457779f6e2c086d8cf1cd9b44d8950e/subscription.xml +0 -9
@@ -0,0 +1 @@
1
+ 689f0248cc74473141b6
@@ -0,0 +1 @@
1
+ 5b542fd013944adf2b1a
@@ -0,0 +1 @@
1
+ xbkypbe6eVfLozz51pkqvXzJ
@@ -0,0 +1 @@
1
+ xbkypbe6eVfLozz51pkqvXzJ
@@ -0,0 +1 @@
1
+ 2491
@@ -1,4 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../../constants')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../utils')
2
3
  require 'stringio'
3
4
 
4
5
  module Riddl
@@ -10,15 +11,6 @@ module Riddl
10
11
  @headers = headers
11
12
  end
12
13
 
13
- # Performs URI escaping so that you can construct proper
14
- # query strings faster. Use this rather than the cgi.rb
15
- # version since it's faster. (%20 instead of + for improved standards conformance).
16
- def self.escape(s)
17
- s.to_s.gsub(/([^a-zA-Z0-9_.-]+)/n) {
18
- '%'+$1.unpack('H2'*$1.size).join('%').upcase
19
- }
20
- end
21
-
22
14
  def generate(mode=:output)
23
15
  if @params.is_a?(Array) && @params.length == 1
24
16
  body(@params[0],mode)
@@ -43,7 +35,7 @@ module Riddl
43
35
  end
44
36
  if mode == :input
45
37
  @headers['Content-Type'] = 'application/x-www-form-urlencoded'
46
- tmp.write self.class::escape(r.name) + '=' + self.class::escape(r.value)
38
+ tmp.write Riddl::Protocols::Utils::escape(r.name) + '=' + Riddl::Protocols::Utils::escape(r.value)
47
39
  end
48
40
  when Riddl::Parameter::Complex
49
41
  tmp.write(r.value.respond_to?(:read) ? r.value.read : r.value)
@@ -78,7 +70,7 @@ module Riddl
78
70
  @params.each do |r|
79
71
  case r
80
72
  when Riddl::Parameter::Simple
81
- res << self.class::escape(r.name) + '=' + self.class::escape(r.value)
73
+ res << Riddl::Protocols::Utils::escape(r.name) + '=' + Riddl::Protocols::Utils::escape(r.value)
82
74
  end
83
75
  end
84
76
  tmp.write res.join('&')
@@ -1,5 +1,6 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../../constants')
2
2
  require File.expand_path(File.dirname(__FILE__) + '/../../parameter')
3
+ require File.expand_path(File.dirname(__FILE__) + '/../utils')
3
4
 
4
5
  module Riddl
5
6
  module Protocols
@@ -18,15 +19,6 @@ module Riddl
18
19
  #}}}
19
20
  ].freeze
20
21
 
21
- def self::unescape(s)
22
- #{{{
23
- return s if s.nil?
24
- s.tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/n){
25
- [$1.delete('%')].pack('H*')
26
- }
27
- #}}}
28
- end
29
-
30
22
  def parse_content(input,ctype,content_length,content_disposition,content_id,riddl_type)
31
23
  #{{{
32
24
  # fixing for chunked?
@@ -152,7 +144,7 @@ module Riddl
152
144
  def parse_nested_query(qs, type)
153
145
  #{{{
154
146
  (qs || '').split(/[#{D}] */n).each do |p|
155
- k, v = self.class::unescape(p).split('=', 2)
147
+ k, v = Riddl::Protocols::Utils::unescape(p).split('=', 2)
156
148
  @params << Parameter::Simple.new(k,v,type)
157
149
  end
158
150
  #}}}
@@ -0,0 +1,23 @@
1
+ module Riddl
2
+ module Protocols
3
+ module Utils
4
+
5
+ # Performs URI escaping so that you can construct proper
6
+ # query strings faster. Use this rather than the cgi.rb
7
+ # version since it's faster. (%20 instead of + for improved standards conformance).
8
+ def self.escape(s)
9
+ s.to_s.gsub(/([^a-zA-Z0-9_.-]+)/n) {
10
+ '%'+$1.unpack('H2'*$1.size).join('%').upcase
11
+ }
12
+ end
13
+
14
+ def self::unescape(s)
15
+ return s if s.nil?
16
+ s.tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/n){
17
+ [$1.delete('%')].pack('H*')
18
+ }
19
+ end
20
+
21
+ end
22
+ end
23
+ end
@@ -1,4 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../../constants')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../utils')
2
3
  require 'blather/client/client'
3
4
  require 'securerandom'
4
5
 
@@ -69,15 +70,6 @@ module Riddl
69
70
  end
70
71
  end
71
72
 
72
- # Performs URI escaping so that you can construct proper
73
- # query strings faster. Use this rather than the cgi.rb
74
- # version since it's faster. (%20 instead of + for improved standards conformance).
75
- def self.escape(s)
76
- s.to_s.dup.force_encoding('ASCII-8BIT').gsub(/([^a-zA-Z0-9_.-]+)/n) {
77
- '%'+$1.unpack('H2'*$1.size).join('%').upcase
78
- }
79
- end
80
-
81
73
  def generate(mode=:output)
82
74
  if @params.is_a?(Array) && @params.length == 1
83
75
  body(@params[0],mode)
@@ -104,7 +96,7 @@ module Riddl
104
96
  n = @node.add('part')
105
97
  n.namespaces.add(nil,XR_NS)
106
98
  n.attributes['content-type'] = 'application/x-www-form-urlencoded'
107
- n.text = self.class::escape(r.name) + '=' + self.class::escape(r.value)
99
+ n.text = Riddl::Protocols::Utils::escape(r.name) + '=' + Riddl::Protocols::Utils::escape(r.value)
108
100
  end
109
101
  when Riddl::Parameter::Complex
110
102
  n = @node.add('part')
@@ -140,7 +132,7 @@ module Riddl
140
132
  @params.each do |r|
141
133
  case r
142
134
  when Riddl::Parameter::Simple
143
- res << self.class::escape(r.name) + '=' + self.class::escape(r.value)
135
+ res << Riddl::Protocols::Utils::escape(r.name) + '=' + Riddl::Protocols::Utils::escape(r.value)
144
136
  end
145
137
  end
146
138
  n.text = res.join('&')
@@ -1,5 +1,6 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../../constants')
2
2
  require File.expand_path(File.dirname(__FILE__) + '/../../parameter')
3
+ require File.expand_path(File.dirname(__FILE__) + '/../utils')
3
4
 
4
5
  module Riddl
5
6
  module Protocols
@@ -21,15 +22,6 @@ module Riddl
21
22
  #}}}
22
23
  ].freeze
23
24
 
24
- def self::unescape(s)
25
- #{{{
26
- return s if s.nil?
27
- s.force_encoding("ASCII-8BIT").tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/n){
28
- [$1.delete('%')].pack('H*')
29
- }.force_encoding('UTF-8')
30
- #}}}
31
- end
32
-
33
25
  def parse_part(input,head,ctype,content_disposition,content_id,riddl_type)
34
26
  #{{{
35
27
  head = Hash[
@@ -85,7 +77,7 @@ module Riddl
85
77
  def parse_nested_query(qs, type)
86
78
  #{{{
87
79
  (qs || '').split(/[#{D}] */n).each do |p|
88
- k, v = self.class::unescape(p).split('=', 2)
80
+ k, v = Riddl::Protocols::Utils::unescape(p).split('=', 2)
89
81
  @params << Parameter::Simple.new(k,v,type)
90
82
  end
91
83
  #}}}
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.161"
3
+ s.version = "0.99.162"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.161
4
+ version: 0.99.162
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  autorequire:
9
9
  bindir: tools
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2014-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-smart
@@ -160,260 +160,266 @@ extensions: []
160
160
  extra_rdoc_files:
161
161
  - README.rdoc
162
162
  files:
163
- - AUTHORS
164
- - COPYING
165
- - INSTALL
166
- - README.rdoc
167
- - Rakefile
168
- - TODO
169
- - contrib/riddl.jpg
163
+ - lib/ruby/riddl/ns/common-patterns/downloadify/1.0/downloadify.xml
164
+ - lib/ruby/riddl/ns/common-patterns/addon-security/request.xml
165
+ - lib/ruby/riddl/ns/common-patterns/addon-security/response.xml
166
+ - lib/ruby/riddl/ns/common-patterns/riddl-description/show.xml
167
+ - lib/ruby/riddl/ns/common-patterns/riddl-description/resource-show.xml
168
+ - lib/ruby/riddl/ns/common-patterns/turtle/1.0/turtle.xml
169
+ - lib/ruby/riddl/ns/common-patterns/notifications-producer/1.0/producer.xml
170
+ - lib/ruby/riddl/ns/common-patterns/properties/1.0/properties.schema.schema
171
+ - lib/ruby/riddl/ns/common-patterns/properties/1.0/properties.xml
172
+ - lib/ruby/riddl/ns/common-patterns/properties/1.0/properties.schema.xsl
173
+ - lib/ruby/riddl/ns/common-patterns/notifications-consumer/1.0/consumer.xml
174
+ - lib/ruby/riddl/ns/common/relaxng.rng
175
+ - lib/ruby/riddl/ns/common/datatypes-1_0.rng
176
+ - lib/ruby/riddl/ns/common/relaxng-modular.rng
177
+ - lib/ruby/riddl/ns/declaration/1.0/declaration.rng
178
+ - lib/ruby/riddl/ns/description/1.0/description.rng
179
+ - tools/riddlprocess
180
+ - tools/riddlprocess-1_0
181
+ - tools/flash-policy-server.rb
182
+ - tools/riddlcheck
183
+ - tools/riddlcheck-1_0
184
+ - ns/common-patterns/downloadify/1.0/downloadify.xml
185
+ - ns/common-patterns/addon-security/request.xml
186
+ - ns/common-patterns/addon-security/response.xml
187
+ - ns/common-patterns/riddl-description/show.xml
188
+ - ns/common-patterns/riddl-description/resource-show.xml
189
+ - ns/common-patterns/turtle/1.0/turtle.xml
190
+ - ns/common-patterns/notifications-producer/1.0/producer.xml
191
+ - ns/common-patterns/properties/1.0/properties.schema.schema
192
+ - ns/common-patterns/properties/1.0/properties.xml
193
+ - ns/common-patterns/properties/1.0/properties.schema.xsl
194
+ - ns/common-patterns/notifications-consumer/1.0/consumer.xml
195
+ - ns/common/relaxng.rng
196
+ - ns/common/datatypes-1_0.rng
197
+ - ns/common/relaxng-modular.rng
198
+ - ns/declaration/1.0/declaration.rng
199
+ - ns/description/1.0/description.rng
170
200
  - contrib/riddl.png
201
+ - contrib/riddl.jpg
171
202
  - contrib/riddl.svg
203
+ - lib/ruby/riddl/handlers.rb
204
+ - lib/ruby/riddl/server.rb
205
+ - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Faccess_token.rb
206
+ - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Fon_behalf.rb
207
+ - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Frequest_token.rb
208
+ - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0/base.rb
209
+ - lib/ruby/riddl/wrapper.rb
210
+ - lib/ruby/riddl/commonlogger.rb
211
+ - lib/ruby/riddl/error.rb
212
+ - lib/ruby/riddl/client.rb
213
+ - lib/ruby/riddl/handlers/plain-type.rb
214
+ - lib/ruby/riddl/handlers/xmlschema.rb
215
+ - lib/ruby/riddl/handlers/oauth.rb
216
+ - lib/ruby/riddl/handlers/relaxng.rb
217
+ - lib/ruby/riddl/implementation.rb
218
+ - lib/ruby/riddl/wrapper/messageparser.rb
219
+ - lib/ruby/riddl/wrapper/resourcechecker.rb
220
+ - lib/ruby/riddl/wrapper/declaration.rb
221
+ - lib/ruby/riddl/wrapper/layerchecker.rb
222
+ - lib/ruby/riddl/wrapper/description.rb
223
+ - lib/ruby/riddl/wrapper/declaration/interface.rb
224
+ - lib/ruby/riddl/wrapper/declaration/facade.rb
225
+ - lib/ruby/riddl/wrapper/declaration/tile.rb
226
+ - lib/ruby/riddl/wrapper/description/message_and_transformation.rb
227
+ - lib/ruby/riddl/wrapper/description/resource.rb
228
+ - lib/ruby/riddl/wrapper/description/access.rb
229
+ - lib/ruby/riddl/option.rb
230
+ - lib/ruby/riddl/utils/properties.rb
231
+ - lib/ruby/riddl/utils/notifications_producer.rb
232
+ - lib/ruby/riddl/utils/downloadify.rb
233
+ - lib/ruby/riddl/utils/erbserve.rb
234
+ - lib/ruby/riddl/utils/xsloverlay.rb
235
+ - lib/ruby/riddl/utils/fileserve.rb
236
+ - lib/ruby/riddl/utils/description.rb
237
+ - lib/ruby/riddl/utils/turtle.rb
238
+ - lib/ruby/riddl/roles.rb
239
+ - lib/ruby/riddl/parameter.rb
240
+ - lib/ruby/riddl/constants.rb
241
+ - lib/ruby/riddl/protocols/http/generator.rb
242
+ - lib/ruby/riddl/protocols/http/parser.rb
243
+ - lib/ruby/riddl/protocols/utils.rb
244
+ - lib/ruby/riddl/protocols/websocket.rb
245
+ - lib/ruby/riddl/protocols/xmpp/generator.rb
246
+ - lib/ruby/riddl/protocols/xmpp/parser.rb
247
+ - lib/ruby/riddl/header.rb
172
248
  - examples/client/client.rb
173
- - examples/declaration-server-distributed/README
174
- - examples/declaration-server-distributed/declaration.rb
249
+ - examples/downloadify/server.rb
250
+ - examples/downloadify/downloadify.xml
251
+ - examples/downloadify/server.description.xml
252
+ - examples/downloadify/server.declaration.xml
253
+ - examples/downloadify/client.rb
254
+ - examples/twitter/twitter.token_secret
255
+ - examples/twitter/twitter.xml
256
+ - examples/twitter/declaration.xml
257
+ - examples/twitter/client.rb
258
+ - examples/twitter/twitter.consumer_key
259
+ - examples/twitter/README
260
+ - examples/twitter/twitpic.xml
261
+ - examples/twitter/twitter.user_id
262
+ - examples/twitter/twitter.consumer_secret
263
+ - examples/twitter/twitter.token
264
+ - examples/helloworld/declaration.xml
265
+ - examples/helloworld/description.xml
266
+ - examples/helloworld/declaration-definition_goal.xml
267
+ - examples/helloworld/rngs/hello-list.rng
268
+ - examples/helloworld/rngs/filter-hello-list.rng
269
+ - examples/helloworld/filter-description.xml
270
+ - examples/websocket/server.rb
271
+ - examples/websocket/description.xml
272
+ - examples/websocket/client.rb
273
+ - examples/websocket/sample.html
274
+ - examples/declaration-server-distributed/xsls/test/properties.xsl
275
+ - examples/declaration-server-distributed/xsls/instances.xsl
276
+ - examples/declaration-server-distributed/xsls/properties.xsl
277
+ - examples/declaration-server-distributed/xsls/info.xsl
278
+ - examples/declaration-server-distributed/xsls/values.xsl
279
+ - examples/declaration-server-distributed/properties.rb
280
+ - examples/declaration-server-distributed/xsloverlay.xml
175
281
  - examples/declaration-server-distributed/declaration.xml
176
282
  - examples/declaration-server-distributed/instances/1/properties.xml
177
- - examples/declaration-server-distributed/instances/2/properties.xml
178
283
  - examples/declaration-server-distributed/instances/instances.xml
179
284
  - examples/declaration-server-distributed/instances/properties.schema
285
+ - examples/declaration-server-distributed/instances/2/properties.xml
286
+ - examples/declaration-server-distributed/README
180
287
  - examples/declaration-server-distributed/main.rb
181
- - examples/declaration-server-distributed/main.xml
182
- - examples/declaration-server-distributed/properties.rb
183
- - examples/declaration-server-distributed/properties.xml
288
+ - examples/declaration-server-distributed/declaration.rb
289
+ - examples/declaration-server-distributed/xsloverlay.rb
184
290
  - examples/declaration-server-distributed/rngs/instance-info.rng
185
291
  - examples/declaration-server-distributed/rngs/instances.rng
186
- - examples/declaration-server-distributed/xsloverlay.rb
187
- - examples/declaration-server-distributed/xsloverlay.xml
188
- - examples/declaration-server-distributed/xsls/info.xsl
189
- - examples/declaration-server-distributed/xsls/instances.xsl
190
- - examples/declaration-server-distributed/xsls/properties.xsl
191
- - examples/declaration-server-distributed/xsls/test/properties.xsl
192
- - examples/declaration-server-distributed/xsls/values.xsl
193
- - examples/declaration-server-hybrid/README
194
- - examples/declaration-server-hybrid/declaration.rb
292
+ - examples/declaration-server-distributed/properties.xml
293
+ - examples/declaration-server-distributed/main.xml
294
+ - examples/flickr/Flickr/riddl.png
295
+ - examples/flickr/Flickr/flickr.xml
296
+ - examples/flickr/Flickr/flickr.token
297
+ - examples/flickr/Flickr/find.rb
298
+ - examples/flickr/Flickr/flickr.secret
299
+ - examples/flickr/Flickr/flickr.rb
300
+ - examples/flickr/Flickr/flickr.key
301
+ - examples/flickr/Flickr/flickr.frob
302
+ - examples/flickr/Flickr/authenticate.rb
303
+ - examples/flickr/Flickr/public.rb
304
+ - examples/flickr/riddl.jpg
305
+ - examples/flickr/declaration.xml
306
+ - examples/flickr/client.rb
307
+ - examples/flickr/README
308
+ - examples/flickr/rngs/rsp.rng
309
+ - examples/flickr/Exif/exif.ru
310
+ - examples/flickr/Exif/exif.xml
311
+ - examples/flickr/Exif/riddl.jpg
312
+ - examples/flickr/Exif/exif.test
313
+ - examples/flickr/Exif/riddl.new.jpg
314
+ - examples/flickr/Helpers/gps.rb
315
+ - examples/flickr/Helpers/flickr.rb
316
+ - examples/notifications/topics.xml
317
+ - examples/notifications/producer.main.xml
318
+ - examples/notifications/producer.declaration.xml
319
+ - examples/notifications/implementation/juergen.html
320
+ - examples/notifications/implementation/oliver.html
321
+ - examples/notifications/implementation/index.html
322
+ - examples/notifications/producer.rb
323
+ - examples/notifications/producer.fluff.xml
324
+ - examples/library/server.rb
325
+ - examples/library/static/info.txt
326
+ - examples/library/declaration.xml
327
+ - examples/library/description.xml
328
+ - examples/library/description-image-addon.xml
329
+ - examples/library/rngs/customer-description.rng
330
+ - examples/library/rngs/list-of-loans.rng
331
+ - examples/library/rngs/book-description.rng
332
+ - examples/library/rngs/list-of-books.rng
333
+ - examples/library/rngs/list-of-customers.rng
334
+ - examples/declaration-server-hybrid/xsls/instances.xsl
335
+ - examples/declaration-server-hybrid/xsls/properties.xsl
336
+ - examples/declaration-server-hybrid/xsls/info.xsl
337
+ - examples/declaration-server-hybrid/xsls/values.xsl
338
+ - examples/declaration-server-hybrid/xsloverlay.xml
195
339
  - examples/declaration-server-hybrid/declaration.xml
196
340
  - examples/declaration-server-hybrid/instances/1/properties.xml
197
- - examples/declaration-server-hybrid/instances/2/properties.xml
198
341
  - examples/declaration-server-hybrid/instances/instances.xml
199
342
  - examples/declaration-server-hybrid/instances/properties.schema
200
- - examples/declaration-server-hybrid/main.xml
201
- - examples/declaration-server-hybrid/properties.xml
343
+ - examples/declaration-server-hybrid/instances/2/properties.xml
344
+ - examples/declaration-server-hybrid/README
345
+ - examples/declaration-server-hybrid/declaration.rb
346
+ - examples/declaration-server-hybrid/xsloverlay.rb
202
347
  - examples/declaration-server-hybrid/rngs/instance-info.rng
203
348
  - examples/declaration-server-hybrid/rngs/instances.rng
204
- - examples/declaration-server-hybrid/xsloverlay.rb
205
- - examples/declaration-server-hybrid/xsloverlay.xml
206
- - examples/declaration-server-hybrid/xsls/info.xsl
207
- - examples/declaration-server-hybrid/xsls/instances.xsl
208
- - examples/declaration-server-hybrid/xsls/properties.xsl
209
- - examples/declaration-server-hybrid/xsls/values.xsl
210
- - examples/declaration-server-local/declaration.rb
211
- - examples/declaration-server-local/declaration.xml
212
- - examples/declaration-server-local/properties.xml
213
- - examples/declaration-server-local/server.properties.schema
214
- - examples/declaration-server-local/server.properties.xml
215
- - examples/declaration-server-local/xsloverlay.xml
216
- - examples/declaration-server-local/xsls.xml
217
- - examples/declaration-server-local/xsls/properties.xsl
218
- - examples/declaration-server-local/xsls/values.xsl
219
- - examples/declaration-test/client.test
349
+ - examples/declaration-server-hybrid/properties.xml
350
+ - examples/declaration-server-hybrid/main.xml
351
+ - examples/description-test/server.rb
352
+ - examples/description-test/description0.xml
353
+ - examples/description-test/description1.xml
354
+ - examples/description-test/description3.xml
355
+ - examples/description-test/description2.xml
356
+ - examples/description-test/description4.xml
357
+ - examples/description-test/rngs/list-of-books.rng
220
358
  - examples/declaration-test/declaration0.xml
221
- - examples/declaration-test/declaration1.xml
359
+ - examples/declaration-test/pre.ru
222
360
  - examples/declaration-test/declaration2.xml
223
- - examples/declaration-test/goal/goal.txt
224
361
  - examples/declaration-test/goal/goal.xml
362
+ - examples/declaration-test/goal/goal.txt
363
+ - examples/declaration-test/declaration1.xml
364
+ - examples/declaration-test/post.ru
365
+ - examples/declaration-test/main.log
225
366
  - examples/declaration-test/main.rb
226
- - examples/declaration-test/main.xml
227
367
  - examples/declaration-test/over.xml
228
- - examples/declaration-test/post.ru
229
368
  - examples/declaration-test/post.xml
230
- - examples/declaration-test/pre.ru
369
+ - examples/declaration-test/client.test
231
370
  - examples/declaration-test/pre.xml
232
- - examples/description-test/description0.xml
233
- - examples/description-test/description1.xml
234
- - examples/description-test/description2.xml
235
- - examples/description-test/description3.xml
236
- - examples/description-test/description4.xml
237
- - examples/description-test/rngs/list-of-books.rng
238
- - examples/description-test/server.rb
239
- - examples/downloadify/client.rb
240
- - examples/downloadify/downloadify.xml
241
- - examples/downloadify/server.declaration.xml
242
- - examples/downloadify/server.description.xml
243
- - examples/downloadify/server.rb
244
- - examples/flickr/Exif/exif.ru
245
- - examples/flickr/Exif/exif.test
246
- - examples/flickr/Exif/exif.xml
247
- - examples/flickr/Exif/riddl.jpg
248
- - examples/flickr/Flickr/authenticate.rb
249
- - examples/flickr/Flickr/find.rb
250
- - examples/flickr/Flickr/flickr.key
251
- - examples/flickr/Flickr/flickr.rb
252
- - examples/flickr/Flickr/flickr.secret
253
- - examples/flickr/Flickr/flickr.xml
254
- - examples/flickr/Flickr/public.rb
255
- - examples/flickr/Flickr/riddl.png
256
- - examples/flickr/Helpers/flickr.rb
257
- - examples/flickr/Helpers/gps.rb
258
- - examples/flickr/README
259
- - examples/flickr/client.rb
260
- - examples/flickr/declaration.xml
261
- - examples/flickr/riddl.jpg
262
- - examples/flickr/rngs/rsp.rng
263
- - examples/helloworld/declaration-definition_goal.xml
264
- - examples/helloworld/declaration.xml
265
- - examples/helloworld/description.xml
266
- - examples/helloworld/filter-description.xml
267
- - examples/helloworld/rngs/filter-hello-list.rng
268
- - examples/helloworld/rngs/hello-list.rng
269
- - examples/library/declaration.xml
270
- - examples/library/description-image-addon.xml
271
- - examples/library/description.xml
272
- - examples/library/rngs/book-description.rng
273
- - examples/library/rngs/customer-description.rng
274
- - examples/library/rngs/list-of-books.rng
275
- - examples/library/rngs/list-of-customers.rng
276
- - examples/library/rngs/list-of-loans.rng
277
- - examples/library/server.rb
278
- - examples/library/static/info.txt
279
- - examples/notifications/implementation/index.html
280
- - examples/notifications/implementation/juergen.html
281
- - examples/notifications/implementation/oliver.html
282
- - examples/notifications/notifications/39c3b39ec3e48a514948e4981f4459d2/consumer-secret
283
- - examples/notifications/notifications/39c3b39ec3e48a514948e4981f4459d2/producer-secret
284
- - examples/notifications/notifications/39c3b39ec3e48a514948e4981f4459d2/subscription.xml
285
- - examples/notifications/notifications/5d68b08a13e622aada13e3c182ea9390/consumer-secret
286
- - examples/notifications/notifications/5d68b08a13e622aada13e3c182ea9390/producer-secret
287
- - examples/notifications/notifications/5d68b08a13e622aada13e3c182ea9390/subscription.xml
288
- - examples/notifications/notifications/893edd178c053a011c09f253fa85092f/consumer-secret
289
- - examples/notifications/notifications/893edd178c053a011c09f253fa85092f/producer-secret
290
- - examples/notifications/notifications/893edd178c053a011c09f253fa85092f/subscription.xml
291
- - examples/notifications/notifications/9f5921176e6876aca3af4428b1ccafd1/consumer-secret
292
- - examples/notifications/notifications/9f5921176e6876aca3af4428b1ccafd1/producer-secret
293
- - examples/notifications/notifications/9f5921176e6876aca3af4428b1ccafd1/subscription.xml
294
- - examples/notifications/notifications/c457779f6e2c086d8cf1cd9b44d8950e/consumer-secret
295
- - examples/notifications/notifications/c457779f6e2c086d8cf1cd9b44d8950e/producer-secret
296
- - examples/notifications/notifications/c457779f6e2c086d8cf1cd9b44d8950e/subscription.xml
297
- - examples/notifications/producer.declaration.xml
298
- - examples/notifications/producer.fluff.xml
299
- - examples/notifications/producer.main.xml
300
- - examples/notifications/producer.rb
301
- - examples/notifications/topics.xml
302
- - examples/oauth/oauth.rb
303
- - examples/oauth/oauth.xml
304
- - examples/properties/description.conf
305
- - examples/properties/description.rb
306
- - examples/properties/properties.xml
307
- - examples/properties/server.properties.schema
308
- - examples/properties/server.properties.xml
309
- - examples/twitter/README
310
- - examples/twitter/client.rb
311
- - examples/twitter/declaration.xml
312
- - examples/twitter/twitpic.xml
313
- - examples/twitter/twitter.xml
314
- - examples/websocket/client.rb
315
- - examples/websocket/description.xml
316
- - examples/websocket/sample.html
317
- - examples/websocket/server.rb
371
+ - examples/declaration-test/main.xml
372
+ - examples/xmpp/server.properties.xml
373
+ - examples/xmpp/server.properties.schema
318
374
  - examples/xmpp/client.rb
319
- - examples/xmpp/description.rb
375
+ - examples/xmpp/blather/pp.rb
376
+ - examples/xmpp/blather/test.rb
377
+ - examples/xmpp/blather/description.xml
378
+ - examples/xmpp/blather/direct.rb
379
+ - examples/xmpp/blather/load.rb
320
380
  - examples/xmpp/properties.xml
321
- - examples/xmpp/server.properties.schema
322
- - examples/xmpp/server.properties.xml
323
- - examples/zotero/README
381
+ - examples/xmpp/description.rb
382
+ - examples/properties/server.properties.xml
383
+ - examples/properties/server.properties.schema
384
+ - examples/properties/properties.xml
385
+ - examples/properties/description.conf
386
+ - examples/properties/description.rb
387
+ - examples/declaration-server-local/server.properties.xml
388
+ - examples/declaration-server-local/xsls/properties.xsl
389
+ - examples/declaration-server-local/xsls/values.xsl
390
+ - examples/declaration-server-local/xsls.xml
391
+ - examples/declaration-server-local/xsloverlay.xml
392
+ - examples/declaration-server-local/server.properties.schema
393
+ - examples/declaration-server-local/declaration.xml
394
+ - examples/declaration-server-local/declaration.rb
395
+ - examples/declaration-server-local/properties.xml
396
+ - examples/oauth/oauth.rb
397
+ - examples/oauth/oauth.xml
398
+ - examples/zotero/zotero.token_secret
399
+ - examples/zotero/zotero.consumer_secret
400
+ - examples/zotero/zotero.token
401
+ - examples/zotero/zotero.consumer_key
324
402
  - examples/zotero/client.rb
403
+ - examples/zotero/README
325
404
  - examples/zotero/zotero.xml
326
- - lib/ruby/riddl/client.rb
327
- - lib/ruby/riddl/commonlogger.rb
328
- - lib/ruby/riddl/constants.rb
329
- - lib/ruby/riddl/error.rb
330
- - lib/ruby/riddl/handlers.rb
331
- - lib/ruby/riddl/handlers/oauth.rb
332
- - lib/ruby/riddl/handlers/plain-type.rb
333
- - lib/ruby/riddl/handlers/relaxng.rb
334
- - lib/ruby/riddl/handlers/xmlschema.rb
335
- - lib/ruby/riddl/header.rb
336
- - lib/ruby/riddl/implementation.rb
337
- - lib/ruby/riddl/ns/common-patterns/addon-security/request.xml
338
- - lib/ruby/riddl/ns/common-patterns/addon-security/response.xml
339
- - lib/ruby/riddl/ns/common-patterns/downloadify/1.0/downloadify.xml
340
- - lib/ruby/riddl/ns/common-patterns/notifications-consumer/1.0/consumer.xml
341
- - lib/ruby/riddl/ns/common-patterns/notifications-producer/1.0/producer.xml
342
- - lib/ruby/riddl/ns/common-patterns/properties/1.0/properties.schema.schema
343
- - lib/ruby/riddl/ns/common-patterns/properties/1.0/properties.schema.xsl
344
- - lib/ruby/riddl/ns/common-patterns/properties/1.0/properties.xml
345
- - lib/ruby/riddl/ns/common-patterns/riddl-description/resource-show.xml
346
- - lib/ruby/riddl/ns/common-patterns/riddl-description/show.xml
347
- - lib/ruby/riddl/ns/common-patterns/turtle/1.0/turtle.xml
348
- - lib/ruby/riddl/ns/common/datatypes-1_0.rng
349
- - lib/ruby/riddl/ns/common/relaxng-modular.rng
350
- - lib/ruby/riddl/ns/common/relaxng.rng
351
- - lib/ruby/riddl/ns/declaration/1.0/declaration.rng
352
- - lib/ruby/riddl/ns/description/1.0/description.rng
353
- - lib/ruby/riddl/option.rb
354
- - lib/ruby/riddl/parameter.rb
355
- - lib/ruby/riddl/protocols/http/generator.rb
356
- - lib/ruby/riddl/protocols/http/parser.rb
357
- - lib/ruby/riddl/protocols/websocket.rb
358
- - lib/ruby/riddl/protocols/xmpp/generator.rb
359
- - lib/ruby/riddl/protocols/xmpp/parser.rb
360
- - lib/ruby/riddl/roles.rb
361
- - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Faccess_token.rb
362
- - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Fon_behalf.rb
363
- - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Frequest_token.rb
364
- - lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0/base.rb
365
- - lib/ruby/riddl/server.rb
366
- - lib/ruby/riddl/utils/description.rb
367
- - lib/ruby/riddl/utils/downloadify.rb
368
- - lib/ruby/riddl/utils/erbserve.rb
369
- - lib/ruby/riddl/utils/fileserve.rb
370
- - lib/ruby/riddl/utils/notifications_producer.rb
371
- - lib/ruby/riddl/utils/properties.rb
372
- - lib/ruby/riddl/utils/turtle.rb
373
- - lib/ruby/riddl/utils/xsloverlay.rb
374
- - lib/ruby/riddl/wrapper.rb
375
- - lib/ruby/riddl/wrapper/declaration.rb
376
- - lib/ruby/riddl/wrapper/declaration/facade.rb
377
- - lib/ruby/riddl/wrapper/declaration/interface.rb
378
- - lib/ruby/riddl/wrapper/declaration/tile.rb
379
- - lib/ruby/riddl/wrapper/description.rb
380
- - lib/ruby/riddl/wrapper/description/access.rb
381
- - lib/ruby/riddl/wrapper/description/message_and_transformation.rb
382
- - lib/ruby/riddl/wrapper/description/resource.rb
383
- - lib/ruby/riddl/wrapper/layerchecker.rb
384
- - lib/ruby/riddl/wrapper/messageparser.rb
385
- - lib/ruby/riddl/wrapper/resourcechecker.rb
386
- - ns/common-patterns/addon-security/request.xml
387
- - ns/common-patterns/addon-security/response.xml
388
- - ns/common-patterns/downloadify/1.0/downloadify.xml
389
- - ns/common-patterns/notifications-consumer/1.0/consumer.xml
390
- - ns/common-patterns/notifications-producer/1.0/producer.xml
391
- - ns/common-patterns/properties/1.0/properties.schema.schema
392
- - ns/common-patterns/properties/1.0/properties.schema.xsl
393
- - ns/common-patterns/properties/1.0/properties.xml
394
- - ns/common-patterns/riddl-description/resource-show.xml
395
- - ns/common-patterns/riddl-description/show.xml
396
- - ns/common-patterns/turtle/1.0/turtle.xml
397
- - ns/common/datatypes-1_0.rng
398
- - ns/common/relaxng-modular.rng
399
- - ns/common/relaxng.rng
400
- - ns/declaration/1.0/declaration.rng
401
- - ns/description/1.0/description.rng
405
+ - examples/zotero/zotero.user_id
406
+ - examples/zotero/litlist.html
407
+ - COPYING
408
+ - Rakefile
402
409
  - riddl.gemspec
403
- - test/smartrunner.rb
404
- - test/tc_declaration-distributed.rb
410
+ - README.rdoc
411
+ - TODO
412
+ - AUTHORS
413
+ - INSTALL
414
+ - test/tc_websocket.rb
405
415
  - test/tc_declaration-hybrid.rb
406
416
  - test/tc_declaration-local.rb
407
- - test/tc_helloworld.rb
417
+ - test/tc_properties.rb
408
418
  - test/tc_library.rb
419
+ - test/tc_declaration-distributed.rb
409
420
  - test/tc_producer.rb
410
- - test/tc_properties.rb
411
- - test/tc_websocket.rb
412
- - tools/flash-policy-server.rb
413
- - tools/riddlcheck
414
- - tools/riddlcheck-1_0
415
- - tools/riddlprocess
416
- - tools/riddlprocess-1_0
421
+ - test/tc_helloworld.rb
422
+ - test/smartrunner.rb
417
423
  homepage: http://www.wst.univie.ac.at/communities/riddl/
418
424
  licenses:
419
425
  - LGPL-3
@@ -434,18 +440,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
434
440
  version: '0'
435
441
  requirements: []
436
442
  rubyforge_project:
437
- rubygems_version: 2.2.2
443
+ rubygems_version: 2.0.14
438
444
  signing_key:
439
445
  specification_version: 4
440
446
  summary: 'restful interface description and declaration language: tools and client/server
441
447
  libs'
442
448
  test_files:
443
- - test/tc_declaration-distributed.rb
444
- - test/tc_properties.rb
445
- - test/tc_library.rb
446
449
  - test/tc_websocket.rb
447
- - test/tc_declaration-local.rb
448
450
  - test/tc_declaration-hybrid.rb
449
- - test/tc_helloworld.rb
451
+ - test/tc_declaration-local.rb
452
+ - test/tc_properties.rb
453
+ - test/tc_library.rb
454
+ - test/tc_declaration-distributed.rb
450
455
  - test/tc_producer.rb
456
+ - test/tc_helloworld.rb
451
457
  - test/smartrunner.rb