grape-doc 0.3.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/grape/doc/doc_class/parser.rb +1 -1
- data/lib/grape/doc/generator.rb +2 -3
- data/test/sample.html +2 -3
- 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: 7d7fdcbcc1ef5e0d881e8faae4051057b755029a
|
4
|
+
data.tar.gz: 55d0a5e2626df00c3c86827c5302935d00a0631e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f954072f19e1a13a8156dec84c9098808bbd91208427e8aa22984290c3203db7f60558ffe9fc2618363e6c80d4ad145afbc078505707eac7577c377ccf1c5fd2
|
7
|
+
data.tar.gz: cd3d34ebdac3a4998df27ecfc6bbd765718d8a31127036909fb1e63ba4952ecc0064934500d647b2dbac885d17dfb4b5cdea22e324808ad35fadffe5276ba249
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/lib/grape/doc/generator.rb
CHANGED
@@ -88,13 +88,12 @@ module GrapeDoc
|
|
88
88
|
}
|
89
89
|
|
90
90
|
document.add :h3,'Response'
|
91
|
+
document.add :h4,'example'
|
91
92
|
|
92
93
|
poc_cases.each do |poc_path,poc_data|
|
93
94
|
poc_opts = poc_data[route_method_var] || next
|
94
95
|
|
95
|
-
document.add :
|
96
|
-
|
97
|
-
document.add :h5,'curl sample'
|
96
|
+
document.add :h5,"curl sample with #{poc_path}"
|
98
97
|
document.add :raw,[
|
99
98
|
"$ curl ",
|
100
99
|
"-X #{route_method_var} ",
|
data/test/sample.html
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
</ul>
|
17
17
|
<h3>Response</h3>
|
18
18
|
<h4>example</h4>
|
19
|
-
<h5>curl sample</h5>
|
19
|
+
<h5>curl sample with /hello</h5>
|
20
20
|
<pre>$ curl -X GET "http://example.org/hello?test=hy" -H "Accept-Version: v1" -H "X-Token: blabla"</pre>
|
21
21
|
<ul>
|
22
22
|
<li>status code: 200</li>
|
@@ -28,8 +28,7 @@
|
|
28
28
|
<pre>{
|
29
29
|
"hello": "String"
|
30
30
|
}</pre>
|
31
|
-
<
|
32
|
-
<h5>curl sample</h5>
|
31
|
+
<h5>curl sample with /hello.json</h5>
|
33
32
|
<pre>$ curl -X GET "http://example.org/hello.json?" -H "Accept-Version: v1" -H "X-Token: blabla"</pre>
|
34
33
|
<ul>
|
35
34
|
<li>status code: 200</li>
|