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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f054c99b4001c7140761188519330f9171da9739
4
- data.tar.gz: 8cb4384257257f9fc78c8ea102b85f49a6103143
3
+ metadata.gz: cd7ea52b3a87c93556f1cbf9be2a363c462eb3ec
4
+ data.tar.gz: 4e87fecba92d019d63430317add3423fb6fcc2b7
5
5
  SHA512:
6
- metadata.gz: 104578c24c698cd2dcf4f43a04ea0228a74d922294febbf59b29aef717c65f942f892a3e90a9e972bb39b2dc9450dc286611e18fb358a0afc2624fced8fab3ba
7
- data.tar.gz: 293abadf0e4ddf420ba2bd2447df878f8bccae1fd8817021f0c81961ac4eebe54fe5c2bc789e419bf834ec93cac9fb86c589f35021c8add616815b8177e9647d
6
+ metadata.gz: 6d9d22983853069fca27ed5fa21b81d59ad81b2123a618e88973d81c6dd6873130bf7f7a27aba5a1d89aab36e8f2ecc60e6324c214d59212ffc8e6ee268c216f
7
+ data.tar.gz: 5b29b67396ca361c9501fef5a84a5091ab6c09c7ceacdd2d5640ef48ff55bae0e84734f2365a662458388ac5718f6895a5c0b19b7991f6b4f57e21558faf1d04
@@ -1,79 +1,82 @@
1
+ ## 0.4.1
2
+ - Support RSpec 2.99 (Thx @dex1t)
3
+
1
4
  ## 0.4.0
2
- * Support RSpec 3
5
+ - Support RSpec 3
3
6
 
4
7
  ## 0.3.6
5
- * Show dummy message if Content-Type might be BINARY
8
+ - Show dummy message if Content-Type might be BINARY
6
9
 
7
10
  ## 0.3.5
8
- * Support PATCH method
11
+ - Support PATCH method
9
12
 
10
13
  ## 0.3.4
11
- * Some improvements on the document template file
14
+ - Some improvements on the document template file
12
15
 
13
16
  ## 0.3.3
14
- * Fix ToC template for specs in sub-directory
17
+ - Fix ToC template for specs in sub-directory
15
18
 
16
19
  ## 0.3.2
17
- * Fix template & document bug
20
+ - Fix template & document bug
18
21
 
19
22
  ## 0.3.1
20
- * prettify JSON request body
21
- * filter request & response header by Autodoc.configuration.suppress_{request,response}_header
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
- * change Autodoc::Document interface & template to mimic HTTP text
27
+ - change Autodoc::Document interface & template to mimic HTTP text
25
28
 
26
29
  ## 0.2.8
27
- * include query string into document template
30
+ - include query string into document template
28
31
 
29
32
  ## 0.2.7
30
- * sort list in ToC
33
+ - sort list in ToC
31
34
 
32
35
  ## 0.2.6
33
- * fix ToC generator
36
+ - fix ToC generator
34
37
 
35
38
  ## 0.2.5
36
- * add ToC generator
37
- * use Autodoc.configuration.path to change documents path
39
+ - add ToC generator
40
+ - use Autodoc.configuration.path to change documents path
38
41
 
39
42
  ## 0.2.4
40
- * add Documents class
43
+ - add Documents class
41
44
 
42
45
  ## 0.2.3
43
- * clean up dependencies & implementation
46
+ - clean up dependencies & implementation
44
47
 
45
48
  ## 0.2.2
46
- * fix default documented headers
49
+ - fix default documented headers
47
50
 
48
51
  ## 0.2.1
49
- * fix load dependency on rspec
52
+ - fix load dependency on rspec
50
53
 
51
54
  ## 0.2.0
52
- * remove dependency on awesome_print
55
+ - remove dependency on awesome_print
53
56
 
54
57
  ## 0.1.9
55
- * fix encoding error at ruby 1.9 or earlier versions
58
+ - fix encoding error at ruby 1.9 or earlier versions
56
59
 
57
60
  ## 0.1.8
58
- * support rack-test
61
+ - support rack-test
59
62
 
60
63
  ## 0.1.7
61
- * change response format from Ruby hash table to JSON object
64
+ - change response format from Ruby hash table to JSON object
62
65
 
63
66
  ## 0.1.6
64
- * support WeakParameter's :description option
67
+ - support WeakParameter's :description option
65
68
 
66
69
  ## 0.1.1
67
- * custom template
70
+ - custom template
68
71
 
69
72
  ## 0.1.0
70
- * AUTODOC environment variable
73
+ - AUTODOC environment variable
71
74
 
72
75
  ## 0.0.8
73
- * show request body
76
+ - show request body
74
77
 
75
78
  ## 0.0.3
76
- * configurable response header
79
+ - configurable response header
77
80
 
78
81
  ## 0.0.1
79
- * 1st release on 2013-06-07
82
+ - 1st release on 2013-06-07
data/Gemfile CHANGED
@@ -6,6 +6,8 @@ group :test do
6
6
  gem "pry-rails"
7
7
  if ENV['RSPEC2']
8
8
  gem "rspec-rails", "~> 2.14.1"
9
+ elsif ENV['RSPEC299']
10
+ gem "rspec-rails", "~> 2.99.0"
9
11
  else
10
12
  gem "rspec-rails"
11
13
  end
@@ -38,7 +38,7 @@ module Autodoc
38
38
  private
39
39
 
40
40
  def example
41
- if ::RSpec::Core::Version::STRING.split('.').first == "3"
41
+ if ::RSpec::Core::Version::STRING.match /\A(?:3\.|2.99\.)/
42
42
  @example
43
43
  else
44
44
  @context.example
@@ -1,3 +1,3 @@
1
1
  module Autodoc
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -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.split('.').first == "3"
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.split('.').first == "3"
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.0
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: 2014-10-29 00:00:00.000000000 Z
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.2.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.