api_doc_generation 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_doc_generation/version.rb +1 -1
- data/lib/api_doc_generation.rb +2 -1
- data/templates/doc_detailed.html.erb +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: e69b11e694bfdc63ec6469630388ab845e144690
|
4
|
+
data.tar.gz: b8998bf6a3c0b39ee0945c40ef2c547764fb7c6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af07fb900968d7caf08d9c77346d8fb7b6e7cefecb7eb289775553d9f5ead6bb94b9442154873fc80883f08b70a2a50963ea079c704adbf6a45c5dd12f3d4180
|
7
|
+
data.tar.gz: b83693944d15f3cfe2441e6adefc043bdbf73be46c408a9ad324d6011c0291cb0df3feb7c2e9f5f9bceb7a4b1e222128504aee810aab03212ffe8649f11f7ff5
|
data/lib/api_doc_generation.rb
CHANGED
@@ -125,9 +125,10 @@ module ApiDocGeneration; class Generation
|
|
125
125
|
defaults = journey.defaults
|
126
126
|
|
127
127
|
if defaults[:controller] == controller && defaults[:action] == action
|
128
|
+
req_m = journey.verb.to_s.match(/\^(?<req_method>\w+)\$/)
|
128
129
|
return {
|
129
130
|
:path => journey.path.spec.to_s.gsub(/\(\.\:format\)$/, ''),
|
130
|
-
:method =>
|
131
|
+
:method => req_m ? req_m[:req_method] : 'POST | GET'
|
131
132
|
}
|
132
133
|
end
|
133
134
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_doc_generation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jiangzhi.xie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|