yard 0.9.31 → 0.9.33
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.yardopts +26 -0
- data/.yardopts_guide +19 -0
- data/.yardopts_i18n +23 -0
- data/lib/yard/server/rack_adapter.rb +7 -11
- data/lib/yard/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35a50468db5652cbaacbe2f1a80dec7cb0e35313369550f82e36f41b6e940987
|
4
|
+
data.tar.gz: 2ce309abaaad66688d56242772201ee77ac291a4c5c9a24dc1418ab09b6cef0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f60723b8732063ebf4593fe044d5777994ecf15be6437f39dad65a614dc7ddbdd7d9236889d618feca8ee116caf86db523457ac98b9093d37aad4a5acfd5f011
|
7
|
+
data.tar.gz: a00d9460d8f5c68ea6d587ce3c54644deae4ff365339afe9cd4df32b007ee3f4304ff7afe769f33b319328ca32fa69147ca74670b1db117f2d9f8459695f17e9
|
data/.yardopts
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
--protected
|
2
|
+
--no-private
|
3
|
+
--embed-mixin ClassMethods
|
4
|
+
--exclude /server/templates/
|
5
|
+
--exclude /yard/rubygems/
|
6
|
+
--asset docs/images:images
|
7
|
+
--tag yard.signature:"YARD Tag Signature"
|
8
|
+
--type-name-tag yard.tag:"YARD Tag"
|
9
|
+
--type-name-tag yard.directive:"YARD Directive"
|
10
|
+
--hide-tag yard.tag
|
11
|
+
--hide-tag yard.directive
|
12
|
+
--hide-tag yard.signature
|
13
|
+
--load ./docs/templates/plugin.rb
|
14
|
+
-
|
15
|
+
CHANGELOG.md
|
16
|
+
docs/WhatsNew.md
|
17
|
+
docs/GettingStarted.md
|
18
|
+
docs/Tags.md
|
19
|
+
docs/Overview.md
|
20
|
+
docs/CodeObjects.md
|
21
|
+
docs/Parser.md
|
22
|
+
docs/Handlers.md
|
23
|
+
docs/TagsArch.md
|
24
|
+
docs/Templates.md
|
25
|
+
LICENSE
|
26
|
+
LEGAL
|
data/.yardopts_guide
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
-t guide
|
2
|
+
--title YARD
|
3
|
+
-o doc_guide
|
4
|
+
--exclude /server/templates/
|
5
|
+
--exclude /yard/rubygems/
|
6
|
+
--asset docs/images:images
|
7
|
+
-
|
8
|
+
CHANGELOG.md
|
9
|
+
docs/WhatsNew.md
|
10
|
+
docs/GettingStarted.md
|
11
|
+
docs/Tags.md
|
12
|
+
docs/Overview.md
|
13
|
+
docs/CodeObjects.md
|
14
|
+
docs/Parser.md
|
15
|
+
docs/Handlers.md
|
16
|
+
docs/TagsArch.md
|
17
|
+
docs/Templates.md
|
18
|
+
LICENSE
|
19
|
+
LEGAL
|
data/.yardopts_i18n
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
--protected
|
2
|
+
--no-private
|
3
|
+
--exclude /server/templates/
|
4
|
+
--exclude /yard/rubygems/
|
5
|
+
--asset docs/images:images
|
6
|
+
--tag yard.signature:"YARD Tag Signature"
|
7
|
+
--type-name-tag yard.tag:"YARD Tag"
|
8
|
+
--type-name-tag yard.directive:"YARD Directive"
|
9
|
+
--hide-tag yard.tag
|
10
|
+
--hide-tag yard.directive
|
11
|
+
--hide-tag yard.signature
|
12
|
+
--load ./docs/templates/plugin.rb
|
13
|
+
-
|
14
|
+
CHANGELOG.md
|
15
|
+
docs/WhatsNew.md
|
16
|
+
docs/GettingStarted.md
|
17
|
+
docs/Tags.md
|
18
|
+
docs/Overview.md
|
19
|
+
docs/CodeObjects.md
|
20
|
+
docs/Parser.md
|
21
|
+
docs/Handlers.md
|
22
|
+
docs/TagsArch.md
|
23
|
+
docs/Templates.md
|
@@ -12,16 +12,6 @@ module YARD
|
|
12
12
|
RackServer = Rack::Server
|
13
13
|
end
|
14
14
|
|
15
|
-
# Safely use refinements since Rack requires 2.4+
|
16
|
-
# @private
|
17
|
-
module RackRefinements
|
18
|
-
refine Rack::Request do
|
19
|
-
attr_accessor :version_supplied
|
20
|
-
alias query params
|
21
|
-
def xhr?; (env['HTTP_X_REQUESTED_WITH'] || "").casecmp("xmlhttprequest") == 0 end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
15
|
# This class wraps the {RackAdapter} into a Rack-compatible middleware.
|
26
16
|
# See {#initialize} for a list of options to pass via Rack's +#use+ method.
|
27
17
|
#
|
@@ -61,7 +51,6 @@ module YARD
|
|
61
51
|
# A server adapter to respond to requests using the Rack server infrastructure.
|
62
52
|
class RackAdapter < Adapter
|
63
53
|
include YARD::Server::HTTPUtils
|
64
|
-
using RackRefinements
|
65
54
|
|
66
55
|
# Responds to Rack requests and builds a response with the {Router}.
|
67
56
|
# @return [Array(Numeric,Hash,Array)] the Rack-style response
|
@@ -99,3 +88,10 @@ module YARD
|
|
99
88
|
end
|
100
89
|
end
|
101
90
|
end
|
91
|
+
|
92
|
+
# @private
|
93
|
+
class Rack::Request
|
94
|
+
attr_accessor :version_supplied
|
95
|
+
alias query params
|
96
|
+
def xhr?; (env['HTTP_X_REQUESTED_WITH'] || "").casecmp("xmlhttprequest") == 0 end
|
97
|
+
end
|
data/lib/yard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
YARD is a documentation generation tool for the Ruby programming language.
|
@@ -23,6 +23,9 @@ executables:
|
|
23
23
|
extensions: []
|
24
24
|
extra_rdoc_files: []
|
25
25
|
files:
|
26
|
+
- ".yardopts"
|
27
|
+
- ".yardopts_guide"
|
28
|
+
- ".yardopts_i18n"
|
26
29
|
- LEGAL
|
27
30
|
- LICENSE
|
28
31
|
- README.md
|