summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2024-10-11[rubygems/rubygems] Fix `gem install` on NFS sharesDavid Rodríguez
NFS shares seem to support flock these days, but they need read-write permissions. https://github.com/rubygems/rubygems/commit/1c492804cd
2024-10-10[rubygems/rubygems] Only pristine executables for default gemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/1cfc1d626c
2024-10-10[ruby/prism] Prism::CodeUnitsCacheKevin Newton
Calculating code unit offsets for a source can be very expensive, especially when the source is large. This commit introduces a new class that wraps the source and desired encoding into a cache that reuses pre-computed offsets. It performs quite a bit better. There are still some problems with this approach, namely character boundaries and the fact that the cache is unbounded, but both of these may be addressed in subsequent commits. https://github.com/ruby/prism/commit/2e3e1a4d4d
2024-10-10[rubygems/rubygems] Revert "Fix `bundle.bat` re-execution"David Rodríguez
This reverts commit https://github.com/rubygems/rubygems/commit/e04e00f7bb5b. https://github.com/rubygems/rubygems/commit/554ece1587
2024-10-10[ruby/time] [DOC] nodoc VERSIONNobuyoshi Nakada
This file is parsed as a part of Ruby documentation, and this constant appears in the built-in Time class unexpectedly. https://github.com/ruby/time/commit/f26f7ab689
2024-10-10[ruby/time] [DOC] Escape the word "Time" that does not mean Time classNobuyoshi Nakada
https://github.com/ruby/time/commit/8572a306bb
2024-10-10[ruby/time] [DOC] RDoc does not use backticksNobuyoshi Nakada
https://github.com/ruby/time/commit/aefa245a20
2024-10-10[ruby/rdoc] Make methods and attributes linkableStan Lo
(https://github.com/ruby/rdoc/pull/1189) * Use the same color for both class/module and method highlight * Make methods and attributes linkable https://github.com/ruby/rdoc/commit/7757fd9fe4
2024-10-10[rubygems/rubygems] Fix `gem pristine etc` resetting gem twice sometimesDavid Rodríguez
If a default version and a regular version of etc are present at the same time, RubyGems will end up duplicating work and running pristine twice. The `etc` gem is special because it's loaded by RubyGems by default. When doing this, RubyGems will activate the regularly installed version. The when `gem pristine` runs, it will find to installed specifications but materialize both to the already activated specification. Before: ``` $ gem pristine etc --version 1.4.3 Restoring gems to pristine condition... Building native extensions. This could take a while... Restored etc-1.4.3 Building native extensions. This could take a while... Restored etc-1.4.3 ``` After: ``` $ gem pristine etc --version 1.4.3 Restoring gems to pristine condition... Skipped etc-1.4.3, it is a default gem Building native extensions. This could take a while... Restored etc-1.4.3 ``` https://github.com/rubygems/rubygems/commit/5c279ac56b
2024-10-10[rubygems/rubygems] Fix specs with missing extensions getting activatedDavid Rodríguez
https://github.com/rubygems/rubygems/commit/c80998a22a
2024-10-10[rubygems/rubygems] Remove more compatibility code with old RubyGemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/74e8eff779
2024-10-10[ruby/rdoc] Improve method source togglingStan Lo
(https://github.com/ruby/rdoc/pull/1176) * Move method source block to the top Currently, if a method description is long (e.g. `Array.new`), users need to click the method toggle button next to the method title, and then scroll down to the source code expanded below the description. This commit changes the behavior so that the source code is expanded immediately below the method title. * Update method toggle's interface 1. Display the method toggle button by default instead of displaying on hover 2. Only toggle the source code when clicking the method toggle button, not when clicking the entire method title section. This will allow us to display an anchor link next to the method title 3. Simplify the toggle source button's appearance * Use details tag for method toggling * Rename method-click-advice to method-source-toggle * Improve method controls' display on mobile By moving the method controls out of the method header, we can display them to the right of the method name on desktop, and below the method name on mobile. * Add "Example" label to example code blocks The label should help users distinguish example code blocks from other code blocks, such as method source code. It's only applied to Ruby code examples. * Revert "Add "Example" label to example code blocks" This reverts commit https://github.com/ruby/rdoc/commit/69fc9ce6a379. * Give source code blocks a different background color * Change targeted method's highlighting color to work better with the new method source https://github.com/ruby/rdoc/commit/e608a84af3
2024-10-10Update vendored net-httpSamuel Giddins
Signed-off-by: Samuel Giddins <segiddins@segiddins.me> Notes: Merged: https://github.com/ruby/ruby/pull/11860
2024-10-09[ruby/prism] Attempt to assume binary is UTF-8Kevin Newton
https://github.com/ruby/prism/commit/343197e4ff
2024-10-09[ruby/prism] Avoid breaking code units offset on binary encodingVinicius Stock
https://github.com/ruby/prism/commit/25a4cf6794 Co-authored-by: Kevin Newton <kddnewton@users.noreply.github.com>
2024-10-09[rubygems/rubygems] Add `Gem::Specification#gem_dir` backDavid Rodríguez
If old Bundler versions that unconditionally try to remove this method are run with RubyGems versions _without_ this method, Bundler crashes because it tries to remove a method that does not exist. We need to wait until RubyGems cannot install any Bundler versions that unconditionally remove this method. https://github.com/rubygems/rubygems/commit/98804d261d
2024-10-09[rubygems/rubygems] Fix a `gem install` crash during "done installing" hooksDavid Rodríguez
It would happen when the gem is already installed to multiple GEM_PATHS. RubyGems was removing duplicate specs without considering the potentially different `base_dir`. That was causing the gem to be misidentified as not already installed, and a nil specification getting returned from the installer as a result, causing the crash. Solve it by making sure `Gem::Specification.all` really iterates through all the different specifications in all GEM_PATHs. https://github.com/rubygems/rubygems/commit/0d8c208f65
2024-10-09[rubygems/rubygems] Allow `gem pristine` to reset default gems tooDavid Rodríguez
https://github.com/rubygems/rubygems/commit/c9e665eb8a
2024-10-09[rubygems/rubygems] Fix `Gem::Specification#gem_dir` losing custom source ↵David Rodríguez
for some reason https://github.com/rubygems/rubygems/commit/f8f589b1b8
2024-10-09[rubygems/rubygems] Fix plugin command loadingDavid Rodríguez
The `LoadError` needs to be ignored because command may have been defined and registered from a rubygems_plugin.rb file. https://github.com/rubygems/rubygems/commit/31f13d449b
2024-10-09Fix spellingJohn Bampton
Notes: Merged: https://github.com/ruby/ruby/pull/11835
2024-10-08[ruby/irb] Change debug test workaround to use ENVtomoya ishida
RUBY_DEBUG_TEST_UI (https://github.com/ruby/irb/pull/1014) https://github.com/ruby/irb/commit/9933584754
2024-10-08Call Resolv::DNS::Config#lazy_initialize explicitly if that instance is not ↵Hiroshi SHIBATA
initialized Notes: Merged: https://github.com/ruby/ruby/pull/11828
2024-10-07[rubygems/rubygems] Fix `bundle.bat` re-executionDavid Rodríguez
It does not have ruby code, so we should not prepend `ruby` to the command the re-execute it. https://github.com/rubygems/rubygems/commit/e04e00f7bb
2024-10-07[ruby/rdoc] Use normal `font-weight` for linksSam Bostock
(https://github.com/ruby/rdoc/pull/1188) https://github.com/ruby/rdoc/commit/b53f0cb2ed
2024-10-07[ruby/reline] Add cursor keys for application keypad mode to defaulttomoya ishida
key bindings (https://github.com/ruby/reline/pull/719) * Add SS3 arrow sequence to default key bindings * Remove wrong KDE arrow sequence https://github.com/ruby/reline/commit/546a42522e
2024-10-06[ruby/reline] Allow utf-8 safe meta key mapping in inputrctomoya ishida
(https://github.com/ruby/reline/pull/723) Readline's convert-meta setting is utf-8 unsafe. Allow assigning `"\M-char": key` to bind "\echar": key even if convert-meta is not enabled. https://github.com/ruby/reline/commit/9844b99c6e
2024-10-06[ruby/irb] Change default completor from regexp to auto, trytomoya ishida
TypeCompletor and fallback to RegexpCompletor. (https://github.com/ruby/irb/pull/1010) https://github.com/ruby/irb/commit/bb6a99d815
2024-10-04[rubygems/rubygems] More rubygems 3.2.x removalsSamuel Giddins
Signed-off-by: Samuel Giddins <segiddins@segiddins.me> https://github.com/rubygems/rubygems/commit/272f3464a3
2024-10-04[rubygems/rubygems] Remove CorrectHashForLambdaOperator monkey patchSamuel Giddins
Signed-off-by: Samuel Giddins <segiddins@segiddins.me> https://github.com/rubygems/rubygems/commit/085bafd8d4
2024-10-04[rubygems/rubygems] Remove outdated conditionals from testsSamuel Giddins
Signed-off-by: Samuel Giddins <segiddins@segiddins.me> https://github.com/rubygems/rubygems/commit/06eec6d855
2024-10-04[rubygems/rubygems] Update required_ruby_version to 3.1Samuel Giddins
3.0 has been EOL since march, drop support for it before the 3.4 release is cut Signed-off-by: Samuel Giddins <segiddins@segiddins.me> https://github.com/rubygems/rubygems/commit/fc1f03b06a
2024-10-03[ruby/prism] Use `partial_script` for the parser translatorsEarlopain
Followup to https://github.com/ruby/prism/pull/3079 https://github.com/ruby/prism/commit/68f434e356
2024-10-03[ruby/rdoc] Fix ToRdoc#accept_tabletomoya ishida
(https://github.com/ruby/rdoc/pull/1184) https://github.com/ruby/rdoc/commit/7b68545094
2024-10-03[ruby/reline] Rename `matches?` as `match?`Nobuyoshi Nakada
(https://github.com/ruby/reline/pull/753) https://github.com/ruby/reline/commit/9230fe162d
2024-10-03prettyprint hash with colon styletompng
Notes: Merged: https://github.com/ruby/ruby/pull/10924
2024-10-03each_address should now resolve for AAAA firstSadiq Saif
AAAA over A is standards track behaviour as per RFC 6724. Notes: Merged: https://github.com/ruby/ruby/pull/2024
2024-10-02[rubygems/rubygems] Remove compatibility code with old RubyGemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/f11e42a3c5
2024-10-02[ruby/reline] Fix incremental search cancel bugtomoya ishida
(https://github.com/ruby/reline/pull/748) https://github.com/ruby/reline/commit/bf0f8fa333
2024-10-02[ruby/reline] Add a timeout to cursor_postomoya ishida
(https://github.com/ruby/reline/pull/750) https://github.com/ruby/reline/commit/dd4a654e5d
2024-10-02[rubygems/rubygems] Fix error in one source when fetching dependency APIs ↵David Rodríguez
clearing results from all sources https://github.com/rubygems/rubygems/commit/0549ddbcc5
2024-10-02[rubygems/rubygems] Fix `bundler/inline` resetting ENVDavid Rodríguez
https://github.com/rubygems/rubygems/commit/72d8d4dbba
2024-10-02[rubygems/rubygems] The `BUNDLER_SETUP` env should also be cleaned upDavid Rodríguez
https://github.com/rubygems/rubygems/commit/47b7e50f64
2024-10-02[rubygems/rubygems] Make sure MissingSpecVersionError#to_s prints exception ↵David Rodríguez
message Gem command loading errors rely on `#to_s` on the raised exception, but in the case of `MissingSpecVersionError` that was only the exception name, making it printed twice and no message at all. Before: ``` ERROR: Loading command: install (Gem::MissingSpecVersionError) Gem::MissingSpecVersionError ``` After: ``` ERROR: Loading command: install (Gem::MissingSpecVersionError) Could not find 'io-wait' (>= 0.a) - did find: [io-wait-0.3.0-java] Checked in 'GEM_PATH=/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1.1/gems/system' , execute `gem env` for more information ``` https://github.com/rubygems/rubygems/commit/d06944bb2f
2024-10-02[rubygems/rubygems] Simplify command loadingDavid Rodríguez
https://github.com/rubygems/rubygems/commit/95f60f0e60
2024-10-02[ruby/singleton] Fixed double assignmentHiroshi SHIBATA
https://github.com/ruby/singleton/commit/9d3c77a868
2024-10-02[ruby/irb] Use correct binding in debug modetomoya ishida
(https://github.com/ruby/irb/pull/1007) In debug command, IRB's context was using wrong binding. Some code colorization, command detection failed because binding.local_variable returned wrong value. https://github.com/ruby/irb/commit/68f718de21
2024-10-01[ruby/reline] Fix Reline crash with invalid encoding historytomoya ishida
(https://github.com/ruby/reline/pull/751) https://github.com/ruby/reline/commit/e9d4b37e34
2024-10-01[ruby/singleton] Make compatible with Ruby 2.4rm155
https://github.com/ruby/singleton/commit/0a77bb492d
2024-10-01[ruby/singleton] Clean VERSION freezingrm155
https://github.com/ruby/singleton/commit/f31334a736