Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4.1"
ruby-version: "3.4.5"
bundler: none
- name: Install dependencies
run: |
Expand Down
26 changes: 15 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,20 @@ GEM
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.3)
base64 (0.3.0)
benchmark (0.4.0)
benchmark (0.4.1)
benchmark-ips (2.14.0)
bigdecimal (3.2.2)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
csv (3.3.4)
csv (3.3.5)
dbm (1.1.0)
diff-lcs (1.6.2)
digest (3.2.0)
drb (2.2.3)
erb (5.0.1)
erb (5.0.2)
extconf_compile_commands_json (0.0.7)
ffi (1.17.2)
ffi (1.17.2-arm64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
fileutils (1.7.3)
goodcheck (3.1.0)
Expand All @@ -54,7 +55,7 @@ GEM
i18n (1.14.7)
concurrent-ruby (~> 1.0)
json (2.12.2)
json-schema (5.1.1)
json-schema (5.2.1)
addressable (~> 2.8)
bigdecimal (~> 3.1)
language_server-protocol (3.17.0.5)
Expand All @@ -72,9 +73,11 @@ GEM
net-smtp (0.5.1)
net-protocol
nkf (0.2.0)
nokogiri (1.18.8-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.8-x86_64-linux-gnu)
racc (~> 1.4)
ostruct (0.6.1)
ostruct (0.6.2)
parallel (1.27.0)
parser (3.3.8.0)
ast (~> 2.4.1)
Expand All @@ -97,15 +100,15 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rdoc (6.14.0)
rdoc (6.14.2)
erb
psych (>= 4.0.0)
regexp_parser (2.10.0)
rspec (3.13.1)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.4)
rspec-core (3.13.5)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
Expand All @@ -114,18 +117,18 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.4)
rubocop (1.75.8)
rubocop (1.78.0)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.44.0, < 2.0)
rubocop-ast (>= 1.45.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.44.1)
rubocop-ast (1.46.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-on-rbs (1.8.0)
Expand Down Expand Up @@ -164,7 +167,7 @@ GEM
tempfile (0.3.1)
terminal-table (4.0.0)
unicode-display_width (>= 1.1.1, < 4)
test-unit (3.6.8)
test-unit (3.7.0)
power_assert
timeout (0.4.3)
tsort (0.2.0)
Expand All @@ -177,6 +180,7 @@ GEM
zlib (3.2.1)

PLATFORMS
arm64-darwin
x86_64-linux

DEPENDENCIES
Expand Down
11 changes: 8 additions & 3 deletions core/io/wait.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,22 @@ class IO
# <!--
# rdoc-file=ext/io/wait/wait.c
# - io.wait(events, timeout) -> event mask, false or nil
# - io.wait(timeout = nil, mode = :read) -> self, true, or false
# - io.wait(*event_symbols[, timeout]) -> self, true, or false
# -->
# Waits until the IO becomes ready for the specified events and returns the
# subset of events that become ready, or a falsy value when times out.
#
# The events can be a bit mask of `IO::READABLE`, `IO::WRITABLE` or
# `IO::PRIORITY`.
#
# Returns a truthy value immediately when buffered data is available.
# Returns an event mask (truthy value) immediately when buffered data is
# available.
#
# Optional parameter `mode` is one of `:read`, `:write`, or `:read_write`.
# The second form: if one or more event symbols (`:read`, `:write`, or
# `:read_write`) are passed, the event mask is the bit OR of the bitmask
# corresponding to those symbols. In this form, `timeout` is optional, the
# order of the arguments is arbitrary, and returns `io` if any of the events is
# ready.
#
# You must require 'io/wait' to use this method.
#
Expand Down
8 changes: 4 additions & 4 deletions core/kernel.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1814,10 +1814,10 @@ module Kernel : BasicObject
# and returns a `true` or `false`;
# returns `false` if either entity does not exist:
# Character |Test
# ------------|---------------------------------------------------------------
# <tt>'<'</tt>|Whether the `mtime` at `path0` is less than that at `path1`.
# <tt>'='</tt>|Whether the `mtime` at `path0` is equal to that at `path1`.
# <tt>'>'</tt>|Whether the `mtime` at `path0` is greater than that at `path1`.
# ------------|------------------------------------------------------------------------------------------------
# <tt>'<'</tt>|Whether the <code>mtime</code> at <code>path0</code> is less than that at <code>path1</code>.
# <tt>'='</tt>|Whether the <code>mtime</code> at <code>path0</code> is equal to that at <code>path1</code>.
# <tt>'>'</tt>|Whether the <code>mtime</code> at <code>path0</code> is greater than that at <code>path1</code>.
# * This test operates on the content of each of the entities at `path0` and
# `path1`,
# and returns a `true` or `false`;
Expand Down
2 changes: 1 addition & 1 deletion core/ruby_vm.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ module RubyVM::YJIT
# - enable(stats: false, log: false)
# -->
# Enable YJIT compilation. `stats` option decides whether to enable YJIT stats
# or not. `compilation_log` decides
# or not. `log` decides
# whether to enable YJIT compilation logging or not.
# * `stats`:
# * `false`: Don't enable stats.
Expand Down
3 changes: 1 addition & 2 deletions core/rubygems/rubygems.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,7 @@ module Gem
# - source_date_epoch_string()
# -->
# If the SOURCE_DATE_EPOCH environment variable is set, returns it's value.
# Otherwise, returns the time that `Gem.source_date_epoch_string` was first
# called in the same format as SOURCE_DATE_EPOCH.
# Otherwise, returns DEFAULT_SOURCE_DATE_EPOCH as a string.
#
# NOTE(@duckinator): The implementation is a tad weird because we want to:
# 1. Make builds reproducible by default, by having this function always
Expand Down
20 changes: 20 additions & 0 deletions core/time.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -984,10 +984,20 @@ class Time < Object
# now = Time.now
# # => 2022-08-18 10:24:13.5398485 -0500
# now.utc? # => false
# now.getutc.utc? # => true
# utc = Time.utc(2000, 1, 1, 20, 15, 1)
# # => 2000-01-01 20:15:01 UTC
# utc.utc? # => true
#
# `Time` objects created with these methods are considered to be in UTC:
#
# * Time.utc
# * Time#utc
# * Time#getutc
#
# Objects created in other ways will not be treated as UTC even if the
# environment variable "TZ" is "UTC".
#
# Related: Time.utc.
#
def gmt?: () -> bool
Expand Down Expand Up @@ -1560,10 +1570,20 @@ class Time < Object
# now = Time.now
# # => 2022-08-18 10:24:13.5398485 -0500
# now.utc? # => false
# now.getutc.utc? # => true
# utc = Time.utc(2000, 1, 1, 20, 15, 1)
# # => 2000-01-01 20:15:01 UTC
# utc.utc? # => true
#
# `Time` objects created with these methods are considered to be in UTC:
#
# * Time.utc
# * Time#utc
# * Time#getutc
#
# Objects created in other ways will not be treated as UTC even if the
# environment variable "TZ" is "UTC".
#
# Related: Time.utc.
#
def utc?: () -> bool
Expand Down
3 changes: 2 additions & 1 deletion stdlib/rdoc/0/code_object.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ module RDoc
# * RDoc::MetaMethod
# * RDoc::Alias
# * RDoc::Constant
# * RDoc::Require
# * RDoc::Mixin
# * RDoc::Require
# * RDoc::Include
# * RDoc::Extend
#
class CodeObject
# <!-- rdoc-file=lib/rdoc/code_object.rb -->
Expand Down
2 changes: 1 addition & 1 deletion stdlib/rdoc/0/parser.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module RDoc

# <!--
# rdoc-file=lib/rdoc/parser.rb
# - new(top_level, file_name, content, options, stats)
# - new(top_level, content, options, stats)
# -->
# Creates a new Parser storing `top_level`, `file_name`, `content`, `options`
# and `stats` in instance variables. In +@preprocess+ an
Expand Down
2 changes: 1 addition & 1 deletion stdlib/rdoc/0/store.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module RDoc
class Store
# <!--
# rdoc-file=lib/rdoc/store.rb
# - new(path = nil, type = nil)
# - new(options, path: nil, type: nil)
# -->
# Creates a new Store of `type` that will load or save to `path`
#
Expand Down
2 changes: 1 addition & 1 deletion stdlib/strscan/0/string_scanner.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
# Method | Return After Match |Return After No Match
# ---------------|---------------------------------------|---------------------
# #size | Count of captured substrings. | +nil+.
# #[](n) | <tt>n</tt>th captured substring. | +nil+.
# #{}[n] | <tt>n</tt>th captured substring. | +nil+.
# #captures | Array of all captured substrings. | +nil+.
# #values_at(*n) |Array of specified captured substrings.| +nil+.
# #named_captures| Hash of named captures. | <tt>{}</tt>.
Expand Down
6 changes: 6 additions & 0 deletions stdlib/uri/0/common.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ URI::ABS_URI: Regexp

URI::ABS_URI_REF: Regexp

# <!-- rdoc-file=lib/uri/common.rb -->
# The default parser instance.
#
URI::DEFAULT_PARSER: URI::RFC2396_Parser

URI::ESCAPED: Regexp
Expand All @@ -557,6 +560,9 @@ URI::REL_URI: Regexp

URI::REL_URI_REF: Regexp

# <!-- rdoc-file=lib/uri/common.rb -->
# The default parser instance for RFC 3986.
#
URI::RFC3986_PARSER: URI::RFC3986_Parser

URI::SCHEME: Regexp
Expand Down
2 changes: 2 additions & 0 deletions stdlib/uri/0/generic.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1017,13 +1017,15 @@ module URI
# rdoc-file=lib/uri/generic.rb
# - hash()
# -->
# Returns the hash value.
#
def hash: () -> Integer

# <!--
# rdoc-file=lib/uri/generic.rb
# - eql?(oth)
# -->
# Compares with *oth* for Hash.
#
def eql?: (URI::Generic oth) -> bool

Expand Down
Loading