riddl 0.99.148 → 0.99.149
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby/riddl/wrapper/description/resource.rb +8 -2
- data/riddl.gemspec +1 -1
- metadata +2 -2
@@ -51,7 +51,7 @@ module Riddl
|
|
51
51
|
|
52
52
|
def add_custom(desres)
|
53
53
|
#{{{
|
54
|
-
@custom
|
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
|
data/riddl.gemspec
CHANGED
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.
|
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-
|
12
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-smart
|