grape-doc 0.3.0 → 0.3.3

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
  SHA1:
3
- metadata.gz: 6c9c454799bd7aea1036f9f1a05aa6a4105d9676
4
- data.tar.gz: 39921c04e363881c8f85c037a322c06dfd10ce10
3
+ metadata.gz: 7d7fdcbcc1ef5e0d881e8faae4051057b755029a
4
+ data.tar.gz: 55d0a5e2626df00c3c86827c5302935d00a0631e
5
5
  SHA512:
6
- metadata.gz: f8c0d7e1916d2dcaeaa8940d61fbf71c449da3ba5fe57306d7b4fae1e267c64ed10e826b8331853e03e72a82c1b6f6ccd4eee7e8c69985c27e036de32b6fa870
7
- data.tar.gz: e57b8ce60926e4f2eff95e8c4818332042c9a580e044b385e5cad0b6ceaa065da35618164da8f3a00c4c1c1f792bd3cbab018fa4eac8193d138ca4f88e9c5e69
6
+ metadata.gz: f954072f19e1a13a8156dec84c9098808bbd91208427e8aa22984290c3203db7f60558ffe9fc2618363e6c80d4ad145afbc078505707eac7577c377ccf1c5fd2
7
+ data.tar.gz: cd3d34ebdac3a4998df27ecfc6bbd765718d8a31127036909fb1e63ba4952ecc0064934500d647b2dbac885d17dfb4b5cdea22e324808ad35fadffe5276ba249
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.3
@@ -52,7 +52,7 @@ module GrapeDoc
52
52
  case obj
53
53
 
54
54
  when Array
55
- obj.map(&:typer)
55
+ obj.map{ |e| typer(e) }
56
56
 
57
57
  when Hash
58
58
  obj.reduce({}){|m,o| m.merge!(o[0] => typer(o[1]) ) ;m}
@@ -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 :h4,'example'
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
- <h4>example</h4>
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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi