Skip to content

Commit cdaafdf

Browse files
authored
Merge pull request #2721 from ksss/rdoc-6.16
Update rdoc to v6.16
2 parents 3686510 + ff4dafa commit cdaafdf

File tree

7 files changed

+15
-39
lines changed

7 files changed

+15
-39
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ gem "json-schema"
1616
gem "goodcheck"
1717
gem 'digest'
1818
gem 'tempfile'
19-
gem "rdoc"
19+
gem "rdoc", "~> 6.16"
2020
gem "fileutils"
2121
gem "raap"
2222
gem "activesupport", "~> 7.0"

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ GEM
105105
rb-fsevent (0.11.2)
106106
rb-inotify (0.11.1)
107107
ffi (~> 1.0)
108-
rdoc (6.15.1)
108+
rdoc (6.16.0)
109109
erb
110110
psych (>= 4.0.0)
111111
tsort
@@ -217,7 +217,7 @@ DEPENDENCIES
217217
rake-compiler
218218
rbs!
219219
rbs-amber!
220-
rdoc
220+
rdoc (~> 6.16)
221221
rspec
222222
rubocop
223223
rubocop-on-rbs

core/thread.rbs

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -367,20 +367,16 @@ class Thread < Object
367367
# - Thread.new { ... } -> thread
368368
# - Thread.new(*args, &proc) -> thread
369369
# - Thread.new(*args) { |args| ... } -> thread
370+
# - Creates a new thread executing the given block.
371+
# - Any +args+ given to ::new will be passed to the block:
372+
# - arr = []
373+
# - a, b, c = 1, 2, 3
374+
# - Thread.new(a,b,c) { |d,e,f| arr << d << e << f }.join
375+
# - arr #=> [1, 2, 3]
376+
# - A ThreadError exception is raised if ::new is called without a block.
377+
# - If you're going to subclass Thread, be sure to call super in your
378+
# - +initialize+ method, otherwise a ThreadError will be raised.
370379
# -->
371-
# Creates a new thread executing the given block.
372-
#
373-
# Any `args` given to ::new will be passed to the block:
374-
#
375-
# arr = []
376-
# a, b, c = 1, 2, 3
377-
# Thread.new(a,b,c) { |d,e,f| arr << d << e << f }.join
378-
# arr #=> [1, 2, 3]
379-
#
380-
# A ThreadError exception is raised if ::new is called without a block.
381-
#
382-
# If you're going to subclass Thread, be sure to call super in your `initialize`
383-
# method, otherwise a ThreadError will be raised.
384380
#
385381
def initialize: (*untyped) { (?) -> void } -> void
386382

lib/rdoc/discover.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
begin
4-
gem 'rdoc', '~> 6.13'
4+
gem 'rdoc', '~> 6.16'
55
require 'rdoc_plugin/parser'
66
module RDoc
77
class Parser

lib/rdoc_plugin/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def parse_method_decl(decl:, context:, outer_name: nil)
7676
method.visibility = decl.visibility
7777
method.call_seq = decl.overloads.map {|overload| "#{decl.name.to_s}#{overload.method_type.to_s}" }.join("\n")
7878
if loc = decl.location
79-
method.start_collecting_tokens
79+
method.start_collecting_tokens(:ruby)
8080
method.add_token({ line_no: 1, char_no: 1, kind: :on_comment, text: "# File #{@top_level.relative_name}, line(s) #{loc.start_line}:#{loc.end_line}\n" })
8181
method.add_token({ line_no: 1, char_no: 1, text: loc.source })
8282
method.line = loc.start_line

stdlib/openssl/0/openssl.rbs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9524,49 +9524,29 @@ module OpenSSL
95249524
# of both is present, a TimestampError will be raised when trying to create a
95259525
# Response.
95269526
#
9527-
# call-seq:
9528-
# factory.default_policy_id = "string" -> string
9529-
# factory.default_policy_id -> string or nil
9530-
#
95319527
# ### serial_number
95329528
#
95339529
# Sets or retrieves the serial number to be used for timestamp creation. Must be
95349530
# present for timestamp creation.
95359531
#
9536-
# call-seq:
9537-
# factory.serial_number = number -> number
9538-
# factory.serial_number -> number or nil
9539-
#
95409532
# ### gen_time
95419533
#
95429534
# Sets or retrieves the Time value to be used in the Response. Must be present
95439535
# for timestamp creation.
95449536
#
9545-
# call-seq:
9546-
# factory.gen_time = Time -> Time
9547-
# factory.gen_time -> Time or nil
9548-
#
95499537
# ### additional_certs
95509538
#
95519539
# Sets or retrieves additional certificates apart from the timestamp certificate
95529540
# (e.g. intermediate certificates) to be added to the Response. Must be an Array
95539541
# of OpenSSL::X509::Certificate.
95549542
#
9555-
# call-seq:
9556-
# factory.additional_certs = [cert1, cert2] -> [ cert1, cert2 ]
9557-
# factory.additional_certs -> array or nil
9558-
#
95599543
# ### allowed_digests
95609544
#
95619545
# Sets or retrieves the digest algorithms that the factory is allowed create
95629546
# timestamps for. Known vulnerable or weak algorithms should not be allowed
95639547
# where possible. Must be an Array of String or OpenSSL::Digest subclass
95649548
# instances.
95659549
#
9566-
# call-seq:
9567-
# factory.allowed_digests = ["sha1", OpenSSL::Digest.new('SHA256').new] -> [ "sha1", OpenSSL::Digest) ]
9568-
# factory.allowed_digests -> array or nil
9569-
#
95709550
class Factory
95719551
def additional_certs: () -> Array[X509::Certificate]?
95729552

stdlib/rdoc/0/rdoc.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module RDoc
8484
# -->
8585
# Starts collecting tokens
8686
#
87-
def collect_tokens: () -> void
87+
def collect_tokens: (Symbol) -> void
8888

8989
# <!--
9090
# rdoc-file=lib/rdoc/token_stream.rb

0 commit comments

Comments
 (0)