riddl 0.99.186 → 0.99.187
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby/riddl/utils/docoverlay.html +96 -87
- data/riddl.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2a66a5fae23e728695a686b2d059ac4b3ba65ce
|
4
|
+
data.tar.gz: fc0060b340bee403e33bc45962c41cde11d4e1d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b37e33a0dc5d8d358ca6730745fa0f27536f1e5acea5ddcaf3fc97d8d6f5d632869da73927098944dd85e6efb55fbd73ddcd92021f1f7fc2f0bd83eac790c2f5
|
7
|
+
data.tar.gz: 6c0af2e2474e1a7bbe2caedefb54396a4ffb0efd73e6a4cab7d773b200f805534f0fa81c83807309406900a9ab3f54ef4b03e79b7445c0169b714f788bb2720a
|
@@ -63,94 +63,103 @@
|
|
63
63
|
success: function(data){
|
64
64
|
$('#main').append(marked($('description > resource > documentation',data).text()));
|
65
65
|
|
66
|
-
$('description > resource > resource',data)
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
var
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
$('
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
66
|
+
var subr = $('description > resource > resource',data);
|
67
|
+
if (subr.length == 0) {
|
68
|
+
$('#subresources').remove();
|
69
|
+
} else {
|
70
|
+
$('description > resource > resource',data).each(function(k,ele){
|
71
|
+
var sum = $('documentation',ele).attr('summary');
|
72
|
+
var exa = $('example',ele).length == 0 ? null : $('example',ele).text();
|
73
|
+
if (exa) {
|
74
|
+
var rell = exa;
|
75
|
+
var relt = exa + ' (' + $(ele).attr('relative') + ')';
|
76
|
+
} else {
|
77
|
+
var rell = $(ele).attr('relative');
|
78
|
+
var relt = _.trim(rell);
|
79
|
+
}
|
80
|
+
var t = $('#subresourceitem')[0];
|
81
|
+
var clone = document.importNode(t.content, true);
|
82
|
+
$('a',clone).attr('href','./' + rell + '/?doc=true');
|
83
|
+
if (relt != "") {
|
84
|
+
$('a',clone).text(relt);
|
85
|
+
}
|
86
|
+
if (sum) { $('.content',clone).text(sum); }
|
87
|
+
$('#subresources .anchor').append(clone);
|
88
|
+
});
|
89
|
+
}
|
90
|
+
|
91
|
+
var oprs = $('description > resource > :not(documentation):not(resource):not(example)',data);
|
92
|
+
if (oprs.length == 0) {
|
93
|
+
$('#operations').remove();
|
94
|
+
} else {
|
95
|
+
$('description > resource > :not(documentation):not(resource):not(example)',data).each(function(k,ele){
|
96
|
+
var sum = $('documentation',ele).attr('summary');
|
97
|
+
var details = $('documentation',ele).text();
|
98
|
+
var tin = $(ele).attr('in');
|
99
|
+
var tout = $(ele).attr('out');
|
100
|
+
var whatl = $(ele).prop('tagName');
|
101
|
+
var whatd = tin == "*" ? '' : '( ' + tin + ' )';
|
102
|
+
whatd += tout ? ' : ' + tout : '';
|
103
|
+
|
104
|
+
var ex = "";
|
105
|
+
var tinmess = "";
|
106
|
+
if (tin && tin != "*") {
|
107
|
+
$('description > message[name="' + tin + '"]',data).each(function(k,mess){
|
108
|
+
tinmess = mess;
|
109
|
+
_.each(mess.attributes,function(attr){
|
110
|
+
if (attr.localName == 'example' && attr.namespaceURI == "http://riddl.org/ns/documentation/1.0") {
|
111
|
+
ex = attr.nodeValue;
|
112
|
+
}
|
113
|
+
});
|
104
114
|
});
|
105
|
-
}
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
}
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
}
|
153
|
-
|
115
|
+
}
|
116
|
+
var toutmess = "";
|
117
|
+
if (tout && tout != "*") {
|
118
|
+
$('description > message[name="' + tout + '"]',data).each(function(k,mess){
|
119
|
+
toutmess = mess;
|
120
|
+
});
|
121
|
+
}
|
122
|
+
|
123
|
+
// Overview
|
124
|
+
var t = $('#operationitem')[0];
|
125
|
+
var clone = document.importNode(t.content, true);
|
126
|
+
$('.what .link',clone).text(whatl);
|
127
|
+
$('.what .link',clone).attr('href','#' + (whatl + '_' + whatd).replace(/ /g,'_'));
|
128
|
+
$('.what .details',clone).text(whatd);
|
129
|
+
if (ex != "") {
|
130
|
+
$('.what .try a',clone).attr('href','?' + ex);
|
131
|
+
} else {
|
132
|
+
$('.what .try',clone).remove();
|
133
|
+
}
|
134
|
+
if (sum) { $('.content',clone).text(sum); }
|
135
|
+
$('#operations .anchor').append(clone);
|
136
|
+
|
137
|
+
//Details
|
138
|
+
var t = $('#operationsec')[0];
|
139
|
+
var clone = document.importNode(t.content, true);
|
140
|
+
$('.what',clone).text(whatl + ' ' + whatd);
|
141
|
+
$('.what',clone).attr('id',(whatl + '_' + whatd).replace(/ /g,'_'));
|
142
|
+
$('.text',clone).text(details == "" ? sum : marked(details));
|
143
|
+
if (ex != "") {
|
144
|
+
$('.try a',clone).attr('href','?' + ex);
|
145
|
+
$('.try a',clone).text('?' + ex);
|
146
|
+
} else {
|
147
|
+
$('.try',clone).remove();
|
148
|
+
}
|
149
|
+
|
150
|
+
if (tin && tin != "*") {
|
151
|
+
$('.input .message',clone).text(vkbeautify.xml($(tinmess).serializeXML()));
|
152
|
+
} else {
|
153
|
+
$('.input',clone).remove();
|
154
|
+
}
|
155
|
+
if (tout) {
|
156
|
+
$('.output .message',clone).text(vkbeautify.xml($(toutmess).serializeXML()));
|
157
|
+
} else {
|
158
|
+
$('.output',clone).remove();
|
159
|
+
}
|
160
|
+
$('#operations').append(clone);
|
161
|
+
});
|
162
|
+
}
|
154
163
|
}
|
155
164
|
});
|
156
165
|
});
|
data/riddl.gemspec
CHANGED