yard 0.9.34 → 0.9.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/docs/Tags.md +1 -1
- data/lib/yard/code_objects/base.rb +1 -0
- data/lib/yard/parser/source_parser.rb +2 -3
- data/lib/yard/version.rb +1 -1
- data/templates/default/fulldoc/html/frames.erb +9 -4
- data/templates/default/tags/html/option.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1f492861606b6ce24d390317f2a97ccbd67bbf73b8b964ea6f9e61bb4096d9e
|
4
|
+
data.tar.gz: 1a4ec96bd604c8ab68cf6c971fc22aff400f2d8ed853d3b0b5fc222f4c8e7767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b727cb198fd9559a9314989fae7bcf60202531f5ab634d211780b5bbf15b60341d8a8f5fa6fd890c743c7d1b953e7b49d3c8e73997f3397b7344a70442fd29
|
7
|
+
data.tar.gz: c3df5e59c450adfc6d6088bd7c6a6c64f4477c1de65eae7cbd21e1c4ca410d606179bc88c84ed084b22d7b3f8bf66cc67426e9c103558b0a25c5ab01c1900ab9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# main
|
2
2
|
|
3
|
+
# [0.9.36] - February 29th, 2024
|
4
|
+
|
5
|
+
[0.9.36]: https://github.com/lsegal/yard/compare/v0.9.35...v0.9.36
|
6
|
+
|
7
|
+
- Further XSS fixes for generated frameset pages (#1538)
|
8
|
+
- Improve tests for Ruby 3.3 compatibility (#1519, #1531)
|
9
|
+
- Documentation improvements (#1524)
|
10
|
+
|
11
|
+
# [0.9.35] - February 28th, 2024
|
12
|
+
|
13
|
+
[0.9.35]: https://github.com/lsegal/yard/compare/v0.9.34...v0.9.35
|
14
|
+
|
15
|
+
- Fix possible XSS on generated YARD frameset pages (thanks to @RedYetiDev for finding and patching) (2069e2b).
|
16
|
+
- Fix errors when using `@option` on non-method objects (#1508)
|
17
|
+
- Support Ruby 3.3 changes in Ripper parser (#1510)
|
18
|
+
|
3
19
|
# [0.9.34] - April 12nd, 2023
|
4
20
|
|
5
21
|
[0.9.34]: https://github.com/lsegal/yard/compare/v0.9.33...v0.9.34
|
data/docs/Tags.md
CHANGED
@@ -206,7 +206,7 @@ also be a list of types separated by commas.
|
|
206
206
|
An order dependent list is a set of types surrounded by "()" and separated by
|
207
207
|
commas. This list must contain exactly those types in exactly the order specified.
|
208
208
|
For instance, an Array containing a String, Fixnum and Hash in that order (and
|
209
|
-
having exactly those 3 elements) would be listed as: `Array
|
209
|
+
having exactly those 3 elements) would be listed as: `Array(String, Fixnum, Hash)`.
|
210
210
|
|
211
211
|
#### Literals
|
212
212
|
|
@@ -476,9 +476,8 @@ module YARD
|
|
476
476
|
content.force_encoding('binary')
|
477
477
|
ENCODING_BYTE_ORDER_MARKS.each do |encoding, bom|
|
478
478
|
bom.force_encoding('binary')
|
479
|
-
if content
|
480
|
-
content.force_encoding(encoding)
|
481
|
-
return content
|
479
|
+
if content.start_with?(bom)
|
480
|
+
return content.sub(bom, '').force_encoding(encoding)
|
482
481
|
end
|
483
482
|
end
|
484
483
|
content.force_encoding('utf-8') # UTF-8 is default encoding
|
data/lib/yard/version.rb
CHANGED
@@ -5,10 +5,15 @@
|
|
5
5
|
<title><%= options.title %></title>
|
6
6
|
</head>
|
7
7
|
<script type="text/javascript">
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
var mainUrl = '<%= url_for_main %>';
|
9
|
+
try {
|
10
|
+
var match = decodeURIComponent(window.location.hash).match(/^#!(.+)/);
|
11
|
+
var name = match ? match[1] : mainUrl;
|
12
|
+
var url = new URL(name, location.href);
|
13
|
+
window.top.location.replace(url.origin === location.origin ? name : mainUrl);
|
14
|
+
} catch (e) {
|
15
|
+
window.top.location.replace(mainUrl);
|
16
|
+
}
|
12
17
|
</script>
|
13
18
|
<noscript>
|
14
19
|
<h1>Oops!</h1>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% if object.has_tag?(:option) %>
|
1
|
+
<% if object.has_tag?(:option) && object.respond_to?(:parameters) %>
|
2
2
|
<% object.parameters.each do |param, default| %>
|
3
3
|
<% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s.sub(/^\*+|:$/, '') } %>
|
4
4
|
<% next if tags.empty? %>
|
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.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-29 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.
|