apipie-rails 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/views/apipie/apipies/_method_detail.erb +17 -0
- data/app/views/apipie/apipies/_params.html.erb +4 -2
- data/config/locales/en.yml +1 -0
- data/lib/apipie/method_description.rb +1 -0
- data/lib/apipie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ff91284d6576af7f50913921c4b677f67a1e163
|
4
|
+
data.tar.gz: 0cd61c342c534f728d0d210b47d28d1ccb903663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 373f9ba52ccbec5af1691a8d8d58e9d5631903a0a356020c0ee5265dce36e7d9240a21ded67407ad2d8ded8642ef36a99b334919c738b0d441ab0cbb486c9411
|
7
|
+
data.tar.gz: c2fcf805fc6eb9a27826e1057780f53b06a20c05db585a4abd89f2fba9372c0a987cd3e54cdaf64b91ee19fa4c951e29a0a57b1db4bf374360d10e71ae752ab9
|
data/CHANGELOG.md
CHANGED
@@ -36,5 +36,22 @@
|
|
36
36
|
</tbody>
|
37
37
|
</table>
|
38
38
|
<% end %>
|
39
|
+
<% unless method[:returns].blank? %>
|
40
|
+
<%= heading(t('apipie.returns'), h_level) %>
|
41
|
+
<% method[:returns].each do |item| %>
|
42
|
+
<%= heading("#{t('apipie.code')}: #{item[:code]}", h_level + 1) %>
|
43
|
+
<table class='table'>
|
44
|
+
<thead>
|
45
|
+
<tr>
|
46
|
+
<th><%= t('apipie.param_name') %></th>
|
47
|
+
<th><%= t('apipie.description') %></th>
|
48
|
+
</tr>
|
49
|
+
</thead>
|
50
|
+
<tbody>
|
51
|
+
<%= render(:partial => "params", :locals => {:params => item[:returns_object]}) %>
|
52
|
+
</tbody>
|
53
|
+
</table>
|
54
|
+
<% end %>
|
55
|
+
<% end %>
|
39
56
|
|
40
57
|
<%= render(:partial => "headers", :locals => {:headers => method[:headers], :h_level => h_level }) %>
|
@@ -21,8 +21,10 @@
|
|
21
21
|
<%- if param[:validator].present? %>
|
22
22
|
<li><%= Apipie.markup_to_html(param[:validator]).html_safe %></li>
|
23
23
|
<%- end %>
|
24
|
-
<%- param[:validations].
|
25
|
-
|
24
|
+
<%- if param[:validations].present? %>
|
25
|
+
<%- param[:validations].each do |item| %>
|
26
|
+
<li><%= item.html_safe %></li>
|
27
|
+
<%- end %>
|
26
28
|
<%- end %>
|
27
29
|
</ul>
|
28
30
|
<%- end %>
|
data/config/locales/en.yml
CHANGED
@@ -186,6 +186,7 @@ module Apipie
|
|
186
186
|
:full_description => Apipie.app.translate(@full_description, lang),
|
187
187
|
:errors => errors.map(&:to_json),
|
188
188
|
:params => params_ordered.map{ |param| param.to_json(lang) }.flatten,
|
189
|
+
:returns => @returns.map{ |return_item| return_item.to_json(lang) }.flatten,
|
189
190
|
:examples => @examples,
|
190
191
|
:metadata => @metadata,
|
191
192
|
:see => see.map(&:to_json),
|
data/lib/apipie/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apipie-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pokorny
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-10-
|
12
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|