autodoc 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -28
- data/Gemfile +2 -0
- data/lib/autodoc/document.rb +1 -1
- data/lib/autodoc/version.rb +1 -1
- data/spec/autodoc/documents_spec.rb +10 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7ea52b3a87c93556f1cbf9be2a363c462eb3ec
|
4
|
+
data.tar.gz: 4e87fecba92d019d63430317add3423fb6fcc2b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d9d22983853069fca27ed5fa21b81d59ad81b2123a618e88973d81c6dd6873130bf7f7a27aba5a1d89aab36e8f2ecc60e6324c214d59212ffc8e6ee268c216f
|
7
|
+
data.tar.gz: 5b29b67396ca361c9501fef5a84a5091ab6c09c7ceacdd2d5640ef48ff55bae0e84734f2365a662458388ac5718f6895a5c0b19b7991f6b4f57e21558faf1d04
|
data/CHANGELOG.md
CHANGED
@@ -1,79 +1,82 @@
|
|
1
|
+
## 0.4.1
|
2
|
+
- Support RSpec 2.99 (Thx @dex1t)
|
3
|
+
|
1
4
|
## 0.4.0
|
2
|
-
|
5
|
+
- Support RSpec 3
|
3
6
|
|
4
7
|
## 0.3.6
|
5
|
-
|
8
|
+
- Show dummy message if Content-Type might be BINARY
|
6
9
|
|
7
10
|
## 0.3.5
|
8
|
-
|
11
|
+
- Support PATCH method
|
9
12
|
|
10
13
|
## 0.3.4
|
11
|
-
|
14
|
+
- Some improvements on the document template file
|
12
15
|
|
13
16
|
## 0.3.3
|
14
|
-
|
17
|
+
- Fix ToC template for specs in sub-directory
|
15
18
|
|
16
19
|
## 0.3.2
|
17
|
-
|
20
|
+
- Fix template & document bug
|
18
21
|
|
19
22
|
## 0.3.1
|
20
|
-
|
21
|
-
|
23
|
+
- prettify JSON request body
|
24
|
+
- filter request & response header by Autodoc.configuration.suppress_{request,response}_header
|
22
25
|
|
23
26
|
## 0.3.0
|
24
|
-
|
27
|
+
- change Autodoc::Document interface & template to mimic HTTP text
|
25
28
|
|
26
29
|
## 0.2.8
|
27
|
-
|
30
|
+
- include query string into document template
|
28
31
|
|
29
32
|
## 0.2.7
|
30
|
-
|
33
|
+
- sort list in ToC
|
31
34
|
|
32
35
|
## 0.2.6
|
33
|
-
|
36
|
+
- fix ToC generator
|
34
37
|
|
35
38
|
## 0.2.5
|
36
|
-
|
37
|
-
|
39
|
+
- add ToC generator
|
40
|
+
- use Autodoc.configuration.path to change documents path
|
38
41
|
|
39
42
|
## 0.2.4
|
40
|
-
|
43
|
+
- add Documents class
|
41
44
|
|
42
45
|
## 0.2.3
|
43
|
-
|
46
|
+
- clean up dependencies & implementation
|
44
47
|
|
45
48
|
## 0.2.2
|
46
|
-
|
49
|
+
- fix default documented headers
|
47
50
|
|
48
51
|
## 0.2.1
|
49
|
-
|
52
|
+
- fix load dependency on rspec
|
50
53
|
|
51
54
|
## 0.2.0
|
52
|
-
|
55
|
+
- remove dependency on awesome_print
|
53
56
|
|
54
57
|
## 0.1.9
|
55
|
-
|
58
|
+
- fix encoding error at ruby 1.9 or earlier versions
|
56
59
|
|
57
60
|
## 0.1.8
|
58
|
-
|
61
|
+
- support rack-test
|
59
62
|
|
60
63
|
## 0.1.7
|
61
|
-
|
64
|
+
- change response format from Ruby hash table to JSON object
|
62
65
|
|
63
66
|
## 0.1.6
|
64
|
-
|
67
|
+
- support WeakParameter's :description option
|
65
68
|
|
66
69
|
## 0.1.1
|
67
|
-
|
70
|
+
- custom template
|
68
71
|
|
69
72
|
## 0.1.0
|
70
|
-
|
73
|
+
- AUTODOC environment variable
|
71
74
|
|
72
75
|
## 0.0.8
|
73
|
-
|
76
|
+
- show request body
|
74
77
|
|
75
78
|
## 0.0.3
|
76
|
-
|
79
|
+
- configurable response header
|
77
80
|
|
78
81
|
## 0.0.1
|
79
|
-
|
82
|
+
- 1st release on 2013-06-07
|
data/Gemfile
CHANGED
data/lib/autodoc/document.rb
CHANGED
data/lib/autodoc/version.rb
CHANGED
@@ -3,7 +3,7 @@ require "spec_helper"
|
|
3
3
|
describe Autodoc::Documents do
|
4
4
|
describe "#render_toc" do
|
5
5
|
before do
|
6
|
-
if ::RSpec::Core::Version::STRING.
|
6
|
+
if ::RSpec::Core::Version::STRING.match /\A(?:3\.|2.99\.)/
|
7
7
|
documents.append(context, example)
|
8
8
|
else
|
9
9
|
documents.append(context, double)
|
@@ -15,7 +15,7 @@ describe Autodoc::Documents do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
let(:context) do
|
18
|
-
if ::RSpec::Core::Version::STRING.
|
18
|
+
if ::RSpec::Core::Version::STRING.match /\A(?:3\.|2.99\.)/
|
19
19
|
mock = double(example: example, request: request, file_path: file_path, full_description: full_description)
|
20
20
|
else
|
21
21
|
mock = double(example: example, request: request)
|
@@ -30,7 +30,14 @@ describe Autodoc::Documents do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
let(:example) do
|
33
|
-
double(file_path: file_path, full_description: full_description)
|
33
|
+
mock = double(file_path: file_path, full_description: full_description)
|
34
|
+
|
35
|
+
if ::RSpec::Core::Version::STRING.split('.').first == "3"
|
36
|
+
allow(mock).to receive_messages(clone: mock)
|
37
|
+
else
|
38
|
+
mock.stub(clone: mock)
|
39
|
+
end
|
40
|
+
mock
|
34
41
|
end
|
35
42
|
|
36
43
|
let(:file_path) do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.
|
197
|
+
rubygems_version: 2.4.5
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Auto-generate JSON API documents from your request-specs.
|