summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2025-12-08Bump Prism to v1.5.2Takashi Kokubun
[Backport #21187]
2025-11-12Update next stable version to 4.0 from 3.5 (#15146)Hiroshi SHIBATA
2025-11-04merge revision(s) 377aa2a336cc700485c699ac49330f2a58b74906: [Backport #21668]Takashi Kokubun
[PATCH] Improve performance of UnicodeNormalize.canonical_ordering_one Use array_of_integer.sort! instead of buble-sort-like algorithm
2025-10-22[ruby/rubygems] Bump up vendored uri to 1.0.4Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/bc77ec0bf2
2025-10-07Merge URI-1.0.4Hiroshi SHIBATA
2025-09-13Bump Prism version to 1.5.1 (#14549)Takashi Kokubun
2025-09-12Bump Prism version to 1.5.0Takashi Kokubun
2025-08-27Bump PRISM version number to avoid collision with RubyGems versionAlan Wu
2025-08-27When reading from stdin, put a wrapper around the IO objectAaron Patterson
The purpose of this commit is to fix Bug #21188. We need to detect when stdin has run in to an EOF case. Unfortunately we can't _call_ the eof function on IO because it will block. Here is a short script to demonstrate the issue: ```ruby x = STDIN.gets puts x puts x.eof? ``` If you run the script, then type some characters (but _NOT_ a newline), then hit Ctrl-D twice, it will print the input string. Unfortunately, calling `eof?` will try to read from STDIN again causing us to need a 3rd Ctrl-D to exit the program. Before introducing the EOF callback to Prism, the input loop looked kind of like this: ```ruby loop do str = STDIN.gets process(str) if str.nil? p :DONE end end ``` Which required 3 Ctrl-D to exit. If we naively changed it to something like this: ```ruby loop do str = STDIN.gets process(str) if STDIN.eof? p :DONE end end ``` It would still require 3 Ctrl-D because `eof?` would block. In this patch, we're wrapping the IO object, checking the buffer for a newline and length, and then using that to simulate a non-blocking eof? method. This commit wraps STDIN and emulates a non-blocking `eof` function. [Backport #21188]
2025-07-09[ruby/prism] Accept a newline after the defined? keyword [Backport #21197] ↵Takashi Kokubun
(#13327) * [ruby/prism] Accept a newline after the defined? keyword [Bug #21197] https://github.com/ruby/prism/commit/22be955ce9 * Fix a compilation error Co-authored-by: Stan Lo <stan001212@gmail.com> --------- Co-authored-by: Kevin Newton <kddnewton@gmail.com> Co-authored-by: Stan Lo <stan001212@gmail.com>
2025-07-08Bump up resolv-0.6.2 for Ruby 3.4 (#13818)Hiroshi SHIBATA
2025-05-22Sync RDoc 6.14.0Stan Lo
2025-05-22Merge RubyGems-3.6.9 and Bundler-2.6.9Hiroshi SHIBATA
2025-05-22Merge RubyGems-3.6.8 and Bundler-2.6.8Hiroshi SHIBATA
2025-05-13merge revision(s) 3e47e7a499acd256be549935fcb559d3c82e556c, ↵Takashi Kokubun
b48b841378f80e16378ceb83f3b78e52df9ae023, 2fe8b9cd3d308d754f3d33a948dfb1dd782a10dc: [Backport #21327] Fix redefinition of `clock_gettime` and `clock_getres` winpthreads-git 12.0.0.r720 provides `clock_gettime` and `clock_getres` as inline functions. digest.so needs ruby/digest.h which is installed by build-ext Copy to path with the base name
2025-04-14Revert "merge revision(s) 052794bfe1970e90f4f4f9e37fc362dd27903a8d: ↵Takashi Kokubun
[Backport #21197]" This reverts commit e630a0f7ae909dafe2e1dbc47baf90cd795b4a5f.
2025-04-14merge revision(s) 052794bfe1970e90f4f4f9e37fc362dd27903a8d: [Backport #21197]Takashi Kokubun
[ruby/prism] Accept a newline after the defined? keyword [Bug #21197] https://github.com/ruby/prism/commit/22be955ce9
2025-04-08Merge RubyGems-3.6.7 and Bundler-2.6.7Hiroshi SHIBATA
2025-04-08Merge RubyGems-3.6.6 and Bundler-2.6.6Hiroshi SHIBATA
2025-03-24[rubygems/rubygems] Support git 2.49David Rodríguez
One error message that we parse is now slightly different. https://github.com/rubygems/rubygems/commit/758528791d
2025-02-27Merge uri-1.0.3Hiroshi SHIBATA
2025-02-27Merge cgi-0.4.2Hiroshi SHIBATA
2025-02-20Merge RubyGems-3.6.5 and Bundler-2.6.5Hiroshi SHIBATA
2025-02-20Merge RubyGems-3.6.4 and Bundler-2.6.4Hiroshi SHIBATA
2025-02-20Merge RubyGems-3.6.3 and Bundler-2.6.3Hiroshi SHIBATA
2025-02-13merge revision(s) 127325a4bad409ee5da91084fac768934a8fd9e3: [Backport #21117]Takashi Kokubun
[ruby/prism] No writing to numbered parameters Fixes [Bug #21117] https://github.com/ruby/prism/commit/19d4bab5a0
2025-02-13merge revision(s) 117d6e145a0270ab8fc9134403519ef13b9ebb24: [Backport #21027]Takashi Kokubun
[ruby/prism] Fix `not` receiver `not foo` should be `!foo` `not()` should be `!nil` Fixes [Bug #21027] https://github.com/ruby/prism/commit/871ed4b462
2024-12-25[DOC] Fix duplicate entriesNobuyoshi Nakada
A tentative workaround for duplicate entries in "Class and Module Index". Notes: Merged: https://github.com/ruby/ruby/pull/12463
2024-12-24Fix bundled gems warning for sub feature locationsDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/12439
2024-12-24Merge RubyGems-3.6.2 and Bundler-2.6.2David Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/12444
2024-12-23Fix code location in bundled gems warningsDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/12412
2024-12-23Find uplevel for bundled gems warnings just onceDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/12412
2024-12-23Use the dedicated constants `LIBARG` and `LIBPATHFLAG`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/9815
2024-12-23Implements [Feature #3456]: Support pkgconf on windowsJulien Marrec
1. Store the `PKG_CONFIG` variable in Makefile.sub (or try to get it from the ENV var PKG_CONFIG in mkmf.rb) 2. Try to use --msvc-syntax, with a fallback to replacing -Lxxx with -libpath:xxx. --msvc-syntax has been in pkgconf since 1.4.0 (released 7 years ago). pkg-config (freedesktop), does not support it, hence the fallback. 3. The `try_ldflags` passes these `ldflags` as the `opt` parameter to the `link_command`, not as `ldflags`. Unix systems are forgiving in that regard, MSVC is not: as a result as passing them as `opt`, they (specifically the `/libpath:xxx` ones) end up passed before the `-link` command to `cl.exe` and it throws because it ignores it and therefore can't find the lib. ``` cl : Command line warning D9002 : ignoring unknown option '-libpath:C:/Users/julien/.conan2/p/libff3726d89a6255c/p/lib' ``` Notes: Merged: https://github.com/ruby/ruby/pull/9815
2024-12-19[ruby/logger] v1.6.4Hiroshi SHIBATA
https://github.com/ruby/logger/commit/216cedef7c
2024-12-19[ruby/logger] Use `__FILE__` for wasmNobuyoshi Nakada
`/dev/null` is not available on wasm. https://github.com/ruby/logger/commit/4be05c2208
2024-12-19[ruby/rdoc] Bump version to v6.10.0Stan Lo
https://github.com/ruby/rdoc/commit/2b79892ab4 Notes: Merged: https://github.com/ruby/ruby/pull/12394
2024-12-19[ruby/rdoc] Auto-hide navigation on link clickJames Reid-Smith
(https://github.com/ruby/rdoc/pull/1238) Hide navigation sidebar when clicking anchor links on mobile devices. Previously, anchor links would change the page but the navigation sidebar would block the view. https://github.com/ruby/rdoc/commit/f12a96b7fa Notes: Merged: https://github.com/ruby/ruby/pull/12394
2024-12-19[ruby/irb] Bump version to v1.14.3Stan Lo
(https://github.com/ruby/irb/pull/1050) https://github.com/ruby/irb/commit/49050f9bf3 Notes: Merged: https://github.com/ruby/ruby/pull/12394
2024-12-18Bump Rubygems version to 3.6.1David Rodríguez
2024-12-18Bump Bundler version to 2.6.1David Rodríguez
2024-12-18Bump vendored securerandom to 0.4.1David Rodríguez
2024-12-18Bump vendored timeout to 0.4.3David Rodríguez
2024-12-17[ruby/rdoc] Enable cross reference in codeNobuyoshi Nakada
(https://github.com/ruby/rdoc/pull/1240) Some people like to mark up method names in MarkDown style block quotes, like this: ruby/ruby#12333. Currently, no links are created in the code in the RDoc, but such words most likely refer to methods. This PR makes a word a code cross-reference if the whole word can be resolved as a reference. https://github.com/ruby/rdoc/commit/7d7efb0709
2024-12-17[ruby/rdoc] `aligns` may include `:center`Soutaro Matsumoto
(https://github.com/ruby/rdoc/pull/1247) https://github.com/ruby/rdoc/commit/cbbf04d6f8
2024-12-17[rubygems/rubygems] Fix missing `Gem::Uri.redact` on some Ruby 3.1 versionsDavid Rodríguez
Our CI did not catch this because it was testing with Ruby 3.1 patch levels that include a RubyGems version that already has `Gem::Uri.redact`. We should make sure the system-rubygems workflow always tests against the oldest supportted Ruby/RubyGems combination. https://github.com/rubygems/rubygems/commit/3b695e3be1
2024-12-17[ruby/tmpdir] Bump up v0.3.1Hiroshi SHIBATA
https://github.com/ruby/tmpdir/commit/0245079c24
2024-12-17Bump Rubygems version to 3.6.0David Rodríguez
2024-12-17Bump Bundler version to 2.6.0David Rodríguez
2024-12-17Bump vendored resolv to 0.6.0David Rodríguez