autodoc 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/lib/autodoc/document.rb +1 -1
- data/lib/autodoc/version.rb +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: bd24e8d72e6159b5a53d09b62ca7df7568bcc51d
|
4
|
+
data.tar.gz: c5f8e0065d345aec0b6f3a06916ef00b6388c993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e72b89964e79487fa7a1f1863e16714dcacec81381c15bb80c20d2659726d23c83ff13e4030a6a47355ab855a89d533704e9962a4ee377ba0e6f457b3e78fa4
|
7
|
+
data.tar.gz: 38c1459ff3956ea43cb0e9b90c4d9aeaf5de07469d6c08717fc0f265b7a613511ece988016b8ae0a2f354f21f168758a78c0104aec7611aca9031cf33a489490
|
data/README.md
CHANGED
@@ -60,31 +60,35 @@ response:
|
|
60
60
|
</pre>
|
61
61
|
|
62
62
|
## Custom template
|
63
|
-
You can customize autodoc's template ([Example](https://github.com/r7kamura/autodoc/blob/master/lib/autodoc/
|
63
|
+
You can customize autodoc's template ([Example](https://github.com/r7kamura/autodoc/blob/master/lib/autodoc/configuration.rb#L18-L33)).
|
64
64
|
Here are avilable variables:
|
65
65
|
|
66
66
|
* description
|
67
|
+
* example
|
67
68
|
* method
|
68
69
|
* parameters_section
|
69
70
|
* path
|
71
|
+
* request
|
70
72
|
* request_body_section
|
73
|
+
* response
|
71
74
|
* response_body
|
72
75
|
* response_headers
|
73
76
|
* response_status
|
74
77
|
|
78
|
+
### Example
|
75
79
|
<pre>
|
76
80
|
Autodoc.configuration.template = <<-EOF
|
77
|
-
## <%=
|
78
|
-
<%=
|
81
|
+
## <%= method %> <%= path %>
|
82
|
+
<%= description %>
|
79
83
|
<%= parameters_section %>
|
80
84
|
### request
|
81
85
|
```
|
82
|
-
<%=
|
86
|
+
<%= method %> <%= path %>
|
83
87
|
```
|
84
88
|
<%= request_body_section %>
|
85
89
|
### response
|
86
90
|
```ruby
|
87
|
-
Status: <%=
|
91
|
+
Status: <%= response_status %><%= response_headers %>
|
88
92
|
response: <%= response_body %>
|
89
93
|
```
|
90
94
|
|
data/lib/autodoc/document.rb
CHANGED
data/lib/autodoc/version.rb
CHANGED