summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-08-30[rubygems/rubygems] (Further) Improve Bundler::Settings#[] performance and ↵Josh Nichols
memory usage I previously identified and improved this method over in https://github.com/rubygems/rubygems/pull/6884 but while reviewing another memory_profiler profile, I realized another gain we can eek out. This method keeps comes up in part because `configs` is allocating a new Hash every time. My last change took advantage of that by using `map!` on it. `configs` is called quite often, including in this `[]` method, so there's a benefit to memoizing it. Back in `[]`, logically we are trying to find the first Hash in `configs` that has a value for the given key. Currently, we end up `map` and `compact` to just get that value. Instead, we can use a loop over `configs`, and break when we find the value for the key. https://github.com/rubygems/rubygems/commit/b913cfc87b
2023-08-29[ruby/yarp] Add instance variable names to the constant poolKevin Newton
https://github.com/ruby/yarp/commit/f049932c44
2023-08-29[rubygems/rubygems] Fix bundle update --redownloadSamuel Giddins
It now does the redownloading/installing just like bundle install --redownload https://github.com/rubygems/rubygems/commit/3b058e5eca
2023-08-29[ruby/irb] Improve help/show_cmds message during debuggerStan Lo
integration (https://github.com/ruby/irb/pull/693) * `help` should display debugger's help during irb:rdbg session * Update `show_cmds`'s output when in irb:rdbg session https://github.com/ruby/irb/commit/4029c2e564
2023-08-29[ruby/reline] Remove `ARGV.first` in east_asian_width.rbima1zumi
(https://github.com/ruby/reline/pull/587) `ARGV.first` is the name of the EastAsianWidth file and is not needed for east_asian_width.rb https://github.com/ruby/reline/commit/6649bda31c
2023-08-29[ruby/reline] Set EastAsianWidth::UNICODE_VERSIONelfham
(https://github.com/ruby/reline/pull/586) * Set EastAsianWidth::UNICODE_VERSION * Commented out UNICODE_VERSION in Reline::Unicode::EastAsianWidth * Commented out UNICODE_VERSION in Reline::Unicode::EastAsianWidth https://github.com/ruby/reline/commit/6d94f2a26a
2023-08-29[ruby/irb] fixes https://github.com/ruby/irb/pull/524Chad Schroeder
(https://github.com/ruby/irb/pull/696) https://github.com/ruby/irb/commit/59bcc07def
2023-08-29[ruby/irb] irb:rdbg cleanups (https://github.com/ruby/irb/pull/697)Stan Lo
* Remove unused method and constant from IRB::Debug * Update comments https://github.com/ruby/irb/commit/98914a963c
2023-08-29Fix code example doc for Random.alphanumericPetrik
Notes: Merged: https://github.com/ruby/ruby/pull/8317
2023-08-29[ruby/irb] Print deprecation message for prompt_n methodsStan Lo
(https://github.com/ruby/irb/pull/691) They were removed in #685, but we should still keep them to avoid breaking changes to tools like Chef. https://github.com/chef/chef/blob/533ff089479763f29045e4e6ddf388b73fc99338/lib/chef/shell.rb#L138 https://github.com/ruby/irb/commit/b585e0c835
2023-08-29[ruby/irb] Remove unused `PROMPT_N`Summer ☀️
(https://github.com/ruby/irb/pull/685) https://github.com/ruby/irb/commit/66e69fa0dc
2023-08-29[rubygems/rubygems] rubocop -aHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f240bfad2a
2023-08-29[Feature #18183] Add `chars:` option to `Random#alphanumeric`Nobuyoshi Nakada
2023-08-28RJIT: Remove Type::CArray and limit use of Type::CStringAlan Wu
See previous similar YJIT commit. Notes: Merged: https://github.com/ruby/ruby/pull/8299
2023-08-28[rubygems/rubygems] Fixed malformed lockfile version on installingImir Kiyamov
https://github.com/rubygems/rubygems/commit/c969a192bf
2023-08-28[rubygems/rubygems] Don't check for circular deps on full index sourcesDavid Rodríguez
https://github.com/rubygems/rubygems/commit/d275cdccb1
2023-08-28[rubygems/rubygems] Remove redundant checksDavid Rodríguez
https://github.com/rubygems/rubygems/commit/d66815633b
2023-08-28[rubygems/rubygems] Fix standalone install crashing when using legacy multi ↵David Rodríguez
remote gemfiles If a legacy multi remote Gemfile depends transitively on a default gem, then in standalone mode we'd fail to fetch the proper version from the source that includes it, since we were adding it to `specs` (instead of `remote_specs`), which was already including the default version of the gem, and thus preventing the remote version from "overwriting that" and being added to the index. We should add it to the `remote_specs` index directly instead. https://github.com/rubygems/rubygems/commit/05f4f9dfc0
2023-08-28[rubygems/rubygems] Refactor Fetcher#api_fetcher? and fetcher loading logicMartin Emde
https://github.com/rubygems/rubygems/commit/f664d60114
2023-08-27[ruby/yarp] Rename constant pool fields to name or operatorBenoit Daloze
* `constant_id` and `operator_id` are confusing. * See https://github.com/ruby/yarp/issues/1296 https://github.com/ruby/yarp/commit/09d0a144df
2023-08-26[ruby/yarp] Bump to version 0.9.0Kevin Newton
https://github.com/ruby/yarp/commit/b327e39527
2023-08-25Remove version templating in YARPKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/8298
2023-08-25[ruby/yarp] Introduce parse_lex instead of asking for a blockKevin Newton
https://github.com/ruby/yarp/commit/7e70339fe1
2023-08-25[ruby/yarp] Rename Location#to to Location#join, include checksKevin Newton
https://github.com/ruby/yarp/commit/de8924e3ec
2023-08-25[ruby/yarp] Add a Location#to method for combining themKevin Newton
https://github.com/ruby/yarp/commit/1db2de98ac
2023-08-25[ruby/yarp] Fix rational parsingKevin Newton
https://github.com/ruby/yarp/commit/c8f31eb5b6
2023-08-25[ruby/yarp] Fix relative require for version in YARP gemspecKevin Newton
https://github.com/ruby/yarp/commit/ca8e8cfa0d
2023-08-25[ruby/yarp] Use templating to avoid duplicating the YARP version in many placesBenoit Daloze
https://github.com/ruby/yarp/commit/9c359fd92e
2023-08-25[ruby/yarp] Provide a desugar visitorKevin Newton
https://github.com/ruby/yarp/commit/9fad513089
2023-08-25[ruby/yarp] Add Node#copy and MutationVisitorKevin Newton
https://github.com/ruby/yarp/commit/3693091661
2023-08-25[ruby/yarp] ignore state on embexpr_endHParker
Ripper state can carry over from the previous node type making coparison less useful https://github.com/ruby/yarp/commit/74509728d4
2023-08-26[Bug #19852] Use gem name without suffixNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8295
2023-08-25Fix merge conflict in lib/yarp/lex_compat.rbKevin Newton
2023-08-25[ruby/yarp] Fix up lex compat on Ruby HEADKevin Newton
https://github.com/ruby/yarp/commit/7710cee248
2023-08-25Remove yarp hack for BOMNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8281
2023-08-25[rubygems/rubygems] Don't use full indexes unnecessarily on legacy GemfilesDavid Rodríguez
On legacy Gemfiles with multiple remote sources, where all of them support the compact index API, we were still falling back to full indexes. Fixing this also allows to simplifying the code. https://github.com/rubygems/rubygems/commit/b1357c8e72
2023-08-25Suggest to add bundled gems into gemspec if 3rd party gem try to load gem ↵Hiroshi SHIBATA
from Gem::BUNDLED_GEMS::SINCE [Feature #19846]
2023-08-25Warn for bigdecimal.so case tooHiroshi SHIBATA
2023-08-25prime is bundled gems since Ruby 3.1.0. We should warn it under the bundler ↵Hiroshi SHIBATA
environment
2023-08-25We should also warn when loading 'bigdecimal/*' librariesHiroshi SHIBATA
2023-08-25Decorate Hash syntax for Gem::BUNDLED_GEMS::EXACTHiroshi SHIBATA
2023-08-24[ruby/yarp] Fix lex compat with BOMKevin Newton
* BOM should not impact looking for the encoding string * We should re-encode tokens when the encoding changes * BOM should change the column of comments only https://github.com/ruby/yarp/commit/119fc2d7b2
2023-08-24[ruby/irb] Deprecate RubyLex and warn about referencing to itStan Lo
(https://github.com/ruby/irb/pull/692) `RubyLex` has always been a private component of IRB, so we should explicitly discourage usages of it. Also, it should be placed under the `IRB` module like other components. https://github.com/ruby/irb/commit/069b5625f7
2023-08-23[ruby/open-uri] Make URI.open pass keywordsJeremy Evans
Fixes [Bug #19238] https://github.com/ruby/open-uri/commit/f636d01b85
2023-08-23[ruby/yarp] Fix first method param lex failuresKevin Newton
When Ripper encounters a method parameter that is the first parameter and is an identifier and it shadows a local scope, it incorrectly marks it as END|LABEL (because it think it's a local). We need to account for that in the lex compat in order to properly compare. https://github.com/ruby/yarp/commit/15f725a1b1
2023-08-23[ruby/yarp] Match EOF after newline behaviorHParker
in Ripper EOL after whitespace is returned as a on_nl node with the whitespace as the content https://github.com/ruby/yarp/commit/be16d1deed
2023-08-22[ruby/yarp] Use require_relative for yarp/ffiBenoit Daloze
https://github.com/ruby/yarp/commit/c0598f8805
2023-08-22Added bigdecimal to warning targets for the bundled gems.Hiroshi SHIBATA
[Bug #19843]
2023-08-21[ruby/erb] Version 4.0.3Takashi Kokubun
https://github.com/ruby/erb/commit/c594f2fb86
2023-08-22[ruby/erb] Enable frozen_string_literal in all filesJosh Nichols
(https://github.com/ruby/erb/pull/49) I was surprised to see erb show up when I was using memory_profiler on my app. ERB::Compiler#compile has a blank string literal, and it ended up allocating some 41532 blank strings for a relatively small surface area. https://github.com/ruby/erb/commit/b7e45c2bdc