autodoc 0.7.7 → 0.8.0

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
  SHA256:
3
- metadata.gz: 90d6e102506091c10a1fc1406473218b594323fed27e1e45bfef8f400ba68224
4
- data.tar.gz: 6b849d38814134089c42761c74023c00d81f1fd42fd7605cebd6b3ab471288b8
3
+ metadata.gz: 50536334ac5d6f900f9fced708be9ad367e3fe1eddaa00bac5293da40e431e54
4
+ data.tar.gz: 13466a0fcf42bc05cb62f58db8f25da29cad54b4542b8f119fcd16834e326532
5
5
  SHA512:
6
- metadata.gz: a5735483d6d426ca94f09f06b25fcba57d04d9e6c36fc430bea071c09aac59316184f7376525894a8e6b3b38957eabd64efec5dbcd20e1c3c7476af5059ebbc0
7
- data.tar.gz: 32f6204f0a142cf6b503d2ac9e1ee0b1fc194235eaa18f00651903a33127a6e948b9a2af88ffa82b29d1a2beecf0ea8709d25031e3fd71af6d75e01e381ae68f
6
+ metadata.gz: 1d06e79f180dee1d1f52618b867b575a689efbc8f01b950f3dbdbeee5dabb3ada471f0a1d61faf26b4853d8777be2f874592b7a1792a7125ec1e6a32866dba2b
7
+ data.tar.gz: 281b298e0ae036992b5b36718c2f9bf71bbe3ca47de3edb744c67cc8c1d33856630a041dd7165faf3094ab9e49abd159c6bf0ebd9d899b49395460a379be63ae
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 0.8.0 - 2022-12-23
11
+
12
+ ### Fixed
13
+
14
+ - Change the order of documents to match the order of tests.
15
+
10
16
  ## 0.7.7 - 2022-05-17
11
17
 
12
18
  ### Fixed
data/Gemfile.lock CHANGED
@@ -61,7 +61,7 @@ GEM
61
61
  activesupport (>= 5.0)
62
62
  i18n (1.10.0)
63
63
  concurrent-ruby (~> 1.0)
64
- loofah (2.16.0)
64
+ loofah (2.19.1)
65
65
  crass (~> 1.0.2)
66
66
  nokogiri (>= 1.5.9)
67
67
  mail (2.7.1)
@@ -76,7 +76,7 @@ GEM
76
76
  mini_portile2 (2.8.0)
77
77
  minitest (5.15.0)
78
78
  nio4r (2.5.8)
79
- nokogiri (1.13.4)
79
+ nokogiri (1.13.10)
80
80
  mini_portile2 (~> 2.8.0)
81
81
  racc (~> 1.4)
82
82
  pry (0.14.1)
@@ -84,8 +84,8 @@ GEM
84
84
  method_source (~> 1.0)
85
85
  pry-rails (0.3.9)
86
86
  pry (>= 0.10.4)
87
- racc (1.6.0)
88
- rack (2.2.3)
87
+ racc (1.6.1)
88
+ rack (2.2.3.1)
89
89
  rack-test (1.1.0)
90
90
  rack (>= 1.0, < 3)
91
91
  rails (5.2.2)
@@ -104,8 +104,8 @@ GEM
104
104
  rails-dom-testing (2.0.3)
105
105
  activesupport (>= 4.2.0)
106
106
  nokogiri (>= 1.6)
107
- rails-html-sanitizer (1.4.2)
108
- loofah (~> 2.3)
107
+ rails-html-sanitizer (1.4.4)
108
+ loofah (~> 2.19, >= 2.19.1)
109
109
  railties (5.2.2)
110
110
  actionpack (= 5.2.2)
111
111
  activesupport (= 5.2.2)
@@ -148,7 +148,7 @@ GEM
148
148
  sqlite3 (1.3.13)
149
149
  thor (1.2.1)
150
150
  thread_safe (0.3.6)
151
- tzinfo (1.2.9)
151
+ tzinfo (1.2.10)
152
152
  thread_safe (~> 0.1)
153
153
  weak_parameters (0.5.0)
154
154
  rails (>= 4.0.0)
@@ -20,6 +20,10 @@ module Autodoc
20
20
  @example = example
21
21
  end
22
22
 
23
+ def line_number
24
+ @context.inspect[/:([\d]+)\)>$/, 1].to_i
25
+ end
26
+
23
27
  def pathname
24
28
  @pathname ||= begin
25
29
  Autodoc.configuration.pathname + document_path_from_example.call(example)
@@ -23,7 +23,7 @@ module Autodoc
23
23
  def write_documents
24
24
  @table.each do |pathname, documents|
25
25
  pathname.parent.mkpath
26
- pathname.open("w") {|file| file << documents.map(&:render).join("\n").rstrip + "\n" }
26
+ pathname.open("w") {|file| file << documents.sort_by(&:line_number).map(&:render).join("\n").rstrip + "\n" }
27
27
  end
28
28
  end
29
29
 
@@ -1,3 +1,3 @@
1
1
  module Autodoc
2
- VERSION = "0.7.7"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.7
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-17 00:00:00.000000000 Z
11
+ date: 2022-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.3.13
111
- description:
111
+ description:
112
112
  email:
113
113
  - r7kamura@gmail.com
114
114
  executables: []
@@ -186,7 +186,7 @@ homepage: https://github.com/r7kamura/autodoc
186
186
  licenses:
187
187
  - MIT
188
188
  metadata: {}
189
- post_install_message:
189
+ post_install_message:
190
190
  rdoc_options: []
191
191
  require_paths:
192
192
  - lib
@@ -201,8 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
- rubygems_version: 3.1.6
205
- signing_key:
204
+ rubygems_version: 3.3.7
205
+ signing_key:
206
206
  specification_version: 4
207
207
  summary: Auto-generate JSON API documents from your request-specs.
208
208
  test_files: