riddl 0.100.6 → 0.100.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 272e61fed76e43508e7b783fcf2c08175e74b72a71d93ec2c5dee8ed4a7d1309
|
4
|
+
data.tar.gz: c5f7ced005c31ac2d81d875cb8c54e3d2297f21ab74487a8793ec837be710097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2183a99aa51742b3c496f1d7fa50d380026aa0fe4002d5a666d004372b89e4ce5f29849b56a772c6d03e861ba999eb3d7aef7edcaf65b54f80a77beef9b52a4e
|
7
|
+
data.tar.gz: 87d2afdc8e26cbd6d0284326ca2da4f811333bf437b6d223db2353dbe83a7a9a3c5a7a44982937872648fd0e25ba539e6908072397293fe58300c96ec04b9e13
|
@@ -80,8 +80,8 @@
|
|
80
80
|
var t = $('#breadcrumblink')[0];
|
81
81
|
var link = "";
|
82
82
|
_.each(pathele,function(e){
|
83
|
-
link = link + "/" + e;
|
84
|
-
var clone = document.importNode(t.content, true);
|
83
|
+
link = link + "/" + e;
|
84
|
+
var clone = document.importNode(t.content, true);
|
85
85
|
$('a',clone).attr('href',link + "/?doc=true");
|
86
86
|
$('a',clone).text(e);
|
87
87
|
$('#breadcrumb').append(clone);
|
@@ -112,17 +112,17 @@
|
|
112
112
|
var relt = _.trim(rell);
|
113
113
|
}
|
114
114
|
var t = $('#subresourceitem')[0];
|
115
|
-
var clone = document.importNode(t.content, true);
|
115
|
+
var clone = document.importNode(t.content, true);
|
116
116
|
$('a',clone).attr('href','./' + rell + '/?doc=true');
|
117
117
|
if (relt != "") {
|
118
118
|
$('a',clone).text(relt);
|
119
119
|
}
|
120
120
|
if (sum) { $('.content',clone).text(sum); }
|
121
|
-
$('#subresources .anchor').append(clone);
|
121
|
+
$('#subresources .anchor').append(clone);
|
122
122
|
});
|
123
123
|
}
|
124
124
|
|
125
|
-
var oprs = $('description > resource > get, description > resource > post, description > resource > put, description > resource > delete, description > resource > request',data);
|
125
|
+
var oprs = $('description > resource > get, description > resource > post, description > resource > put, description > resource > patch, description > resource > delete, description > resource > request',data);
|
126
126
|
if (oprs.length == 0) {
|
127
127
|
$('#operations').remove();
|
128
128
|
} else {
|
@@ -144,7 +144,7 @@
|
|
144
144
|
tinmess = mess;
|
145
145
|
_.each(mess.attributes,function(attr){
|
146
146
|
if (attr.localName == 'example' && attr.namespaceURI == "http://riddl.org/ns/documentation/1.0") {
|
147
|
-
ex = attr.nodeValue;
|
147
|
+
ex = attr.nodeValue;
|
148
148
|
}
|
149
149
|
});
|
150
150
|
});
|
@@ -160,7 +160,7 @@
|
|
160
160
|
|
161
161
|
// Overview
|
162
162
|
var t = $('#operationitem')[0];
|
163
|
-
var clone = document.importNode(t.content, true);
|
163
|
+
var clone = document.importNode(t.content, true);
|
164
164
|
$('.what .link',clone).text(whatl);
|
165
165
|
$('.what .link',clone).attr('href','#' + (whatl + '_' + whatd).replace(/ /g,'_'));
|
166
166
|
$('.what .details',clone).text(whatd);
|
@@ -173,11 +173,11 @@
|
|
173
173
|
$('.what .try',clone).remove();
|
174
174
|
}
|
175
175
|
if (sum) { $('.content',clone).text(sum); }
|
176
|
-
$('#operations .anchor').append(clone);
|
176
|
+
$('#operations .anchor').append(clone);
|
177
177
|
|
178
178
|
//Details
|
179
179
|
var t = $('#operationsec')[0];
|
180
|
-
var clone = document.importNode(t.content, true);
|
180
|
+
var clone = document.importNode(t.content, true);
|
181
181
|
$('.what',clone).text(whatl + ' ' + whatd);
|
182
182
|
$('.what',clone).attr('id',(whatl + '_' + whatd).replace(/ /g,'_'));
|
183
183
|
if (_.trim(details) == "") {
|
@@ -191,7 +191,7 @@
|
|
191
191
|
} else {
|
192
192
|
$('.try a',clone).attr('href','?' + ex);
|
193
193
|
$('.try a',clone).text('?' + ex);
|
194
|
-
}
|
194
|
+
}
|
195
195
|
} else {
|
196
196
|
$('.try',clone).remove();
|
197
197
|
}
|
@@ -206,13 +206,13 @@
|
|
206
206
|
} else {
|
207
207
|
$('.output',clone).remove();
|
208
208
|
}
|
209
|
-
$('#operations').append(clone);
|
209
|
+
$('#operations').append(clone);
|
210
210
|
});
|
211
211
|
}
|
212
212
|
}
|
213
213
|
});
|
214
214
|
});
|
215
|
-
//]]></script>
|
215
|
+
//]]></script>
|
216
216
|
</head>
|
217
217
|
<body>
|
218
218
|
<template id="breadcrumblink"><span> / </span><a href=""></a></template>
|
@@ -235,19 +235,19 @@
|
|
235
235
|
</template>
|
236
236
|
|
237
237
|
<nav id="breadcrumb">[<a href="/">TOP</a>]</nav>
|
238
|
-
<section id="main"></section>
|
238
|
+
<section id="main"></section>
|
239
239
|
<section id="subresources">
|
240
240
|
<h1>Sub-Resources</h1>
|
241
241
|
<p>From here on you can go to the following sub resources:</p>
|
242
242
|
<ul class="anchor"></ul>
|
243
|
-
</section>
|
243
|
+
</section>
|
244
244
|
<section id="operations">
|
245
245
|
<h1>Operations</h1>
|
246
246
|
<section>
|
247
247
|
<p>For this resource the following operations are possible:</p>
|
248
248
|
<ul class="anchor"></ul>
|
249
249
|
</section>
|
250
|
-
</section>
|
250
|
+
</section>
|
251
251
|
</body>
|
252
252
|
</html>
|
253
253
|
|
@@ -437,6 +437,7 @@ module Riddl
|
|
437
437
|
property = @r[1]
|
438
438
|
value = @p.detect{|p| p.name == 'value'}; value = value.nil? ? value : value.value
|
439
439
|
content = @p.detect{|p| p.name == 'content'}; content = content.nil? ? content : content.value
|
440
|
+
content = content.read if content.respond_to? :read
|
440
441
|
minor = @r[2]
|
441
442
|
|
442
443
|
unless backend.modifiable?(property)
|
@@ -459,13 +460,14 @@ module Riddl
|
|
459
460
|
end
|
460
461
|
|
461
462
|
newstuff = value.nil? ? XML::Smart.string(content).root.children : value
|
463
|
+
|
462
464
|
backend.modify do |doc|
|
463
465
|
nodes = doc.root.find(path)
|
464
466
|
nodes.each do |ele|
|
465
467
|
if value.nil?
|
466
468
|
newstuff.each do |child|
|
467
|
-
|
468
|
-
subele = ele.find(
|
469
|
+
cpath = File.basename(child.path)
|
470
|
+
subele = ele.find("p:" + cpath).first
|
469
471
|
if subele
|
470
472
|
subele.replace_by(child)
|
471
473
|
else
|
@@ -148,7 +148,7 @@ module Riddl
|
|
148
148
|
elsif teh_first.class == RequestTransformation && teh_last.class == RequestTransformation && teh_last.out.nil?
|
149
149
|
#2: first transform + last transform -> merge transformations
|
150
150
|
ret = RequestTransformation.new_from_transformation(teh_first.trans,teh_last.trans,teh_first.custom)
|
151
|
-
elsif teh_first.class == RequestPass
|
151
|
+
elsif teh_first.class == RequestPass
|
152
152
|
if r.size > (fcount + 1)
|
153
153
|
teh_first = r[fcount+=1]
|
154
154
|
success = false
|
@@ -246,7 +246,7 @@ module Riddl
|
|
246
246
|
def description_xml_string_analyse(messages,t,k,m)
|
247
247
|
#{{{
|
248
248
|
result = ''
|
249
|
-
if %w{get post put delete websocket}.include?(k)
|
249
|
+
if %w{get post put patch delete websocket}.include?(k)
|
250
250
|
result << t + "<#{k} "
|
251
251
|
else
|
252
252
|
result << t + "<request method=\"#{k}\" "
|
@@ -276,7 +276,7 @@ module Riddl
|
|
276
276
|
m.custom.each do |e|
|
277
277
|
result << e.dump + "\n"
|
278
278
|
end
|
279
|
-
if %w{get post put delete websocket}.include?(k)
|
279
|
+
if %w{get post put patch delete websocket}.include?(k)
|
280
280
|
result << t + "</#{k}>"
|
281
281
|
else
|
282
282
|
result << t + "</request>\n"
|
@@ -22,7 +22,7 @@ module Riddl
|
|
22
22
|
h_ifield = {}; h_pfield = {}
|
23
23
|
h_ofield = {}; h_tfield = {}
|
24
24
|
h_cfield = {}
|
25
|
-
tres.find("des:get|des:put|des:delete|des:post|des:request").each do |mt|
|
25
|
+
tres.find("des:get|des:put|des:patch|des:delete|des:post|des:request").each do |mt|
|
26
26
|
mn = (mt.attributes['type'].nil? ? mt.qname.to_s : mt.attributes['type'])
|
27
27
|
|
28
28
|
h_ifield[mn] ||= {}; h_pfield[mn] ||= {}
|
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.100.
|
4
|
+
version: 0.100.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen 'eTM' Mangler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: tools
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-03-
|
13
|
+
date: 2019-03-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: daemonite
|