riddl 0.99.148 → 0.99.149

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,7 +51,7 @@ module Riddl
51
51
 
52
52
  def add_custom(desres)
53
53
  #{{{
54
- @custom = desres.find("*[not(self::des:*)]").to_a
54
+ @custom += desres.find("*[not(self::des:*)]").to_a
55
55
  #}}}
56
56
  end
57
57
 
@@ -298,7 +298,13 @@ module Riddl
298
298
  result << description_xml_string_analyse(messages,t,k,m)
299
299
  end
300
300
  end
301
- end
301
+ end
302
+ @resources.each do |k,r|
303
+ tmp = r.custom.map{ |c| c.dump }.join
304
+ result << t + "<resource"
305
+ result << " relative=\"#{k}\"" unless k == "{}"
306
+ result << (tmp == '' ? "/>\n" : ">\n" + tmp + t + "</resource>\n")
307
+ end
302
308
  result
303
309
  #}}}
304
310
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.148"
3
+ s.version = "0.99.149"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.148
4
+ version: 0.99.149
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: tools
11
11
  cert_chain: []
12
- date: 2014-05-19 00:00:00.000000000 Z
12
+ date: 2014-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-smart