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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a642b33ce1f9c58bce653c14143e2ce590175a9331b8051b46c0f97b01387fb
4
- data.tar.gz: 1dc376266a701aae62145aeb5adf6026b375941cc40b4e392bfc16676db7d02c
3
+ metadata.gz: 35a50468db5652cbaacbe2f1a80dec7cb0e35313369550f82e36f41b6e940987
4
+ data.tar.gz: 2ce309abaaad66688d56242772201ee77ac291a4c5c9a24dc1418ab09b6cef0c
5
5
  SHA512:
6
- metadata.gz: 9e7b3f579f196e2225e2a0624c746b80905b5058388717299100b9ddc48a32f51da5a5f338bd455725d2e454d7f4a0fc8d69df7866dd06e9c8d7eb9a6e7a1873
7
- data.tar.gz: 04045a070caad1021a12b25135dfd737b9d0fd9b54c30295a71825ba873ae79a8720d3d7b025aa6ab3fc9982ee4d9569df43c6b50375a2922962438368963ae9
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
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module YARD
5
- VERSION = '0.9.31'
5
+ VERSION = '0.9.33'
6
6
  end
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.31
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-09 00:00:00.000000000 Z
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