summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-09-12[rubygems/rubygems] Unify LockfileParser loading of SPECS sectionMartin Emde
Ensure unrecognized SPECS types are ignored https://github.com/rubygems/rubygems/commit/5b33e91075
2023-09-11[ruby/yarp] Update pretty_print to use inspectKevin Newton
https://github.com/ruby/yarp/commit/c2b9b780c7
2023-09-11[rubygems/rubygems] Fixed include realpath in error statementnegi0109
https://github.com/rubygems/rubygems/commit/ac3b85bd5e
2023-09-11[rubygems/rubygems] Fixed false positive SymlinkError in symbolic link directorynegi0109
https://github.com/rubygems/rubygems/commit/58173ff2ea
2023-09-11[ruby/yarp] Mark flags as privateKevin Newton
The flags integer is an implementation detail. We want people to use the query methods to access the individual fields so we are freed from having to maintain a specific order. As such, this commit changes the Ruby API to mark all flags fields as private attr_readers. The only one that has a clear use case is returning the set of options given to regular expressions, to mirror the Regexp#options API. So, to support this use case, this commit introduces RegularExpressionNode#options and InterpolatedRegularExpressionNode#options. These APIs provide back the same integer so that they can be used interchangeably. https://github.com/ruby/yarp/commit/4e6d5dd99f
2023-09-08[ruby/yarp] Increment versionKevin Newton
https://github.com/ruby/yarp/commit/2b41ceb754
2023-09-08[ruby/yarp] Template out a comment_targets methodKevin Newton
https://github.com/ruby/yarp/commit/a94af7c4c8
2023-09-08[ruby/yarp] Move parse result mutations into their own filesKevin Newton
https://github.com/ruby/yarp/commit/3be8272fa2
2023-09-08[ruby/yarp] Add ParseResult#attach_comments! to tie comments to their locationsVinicius Stock
https://github.com/ruby/yarp/commit/ddc699156f Co-authored-by: Kevin Newton <kddnewton@users.noreply.github.com>
2023-09-07[ruby/yarp] Constants on rest parameter nodesKevin Newton
https://github.com/ruby/yarp/commit/a6fdb8aae9
2023-09-07[ruby/yarp] Constants on keyword parametersKevin Newton
https://github.com/ruby/yarp/commit/d2d4f25a23
2023-09-07[rubygems/rubygems] Reduce excess index creation and mergingMartin Emde
When @allow_cached is true, @allow_local is always true, therefore, the #installed_specs will always be merged after #cached_specs is called. This makes starting with installed_specs.dup redundant. When #cached_specs is called because @allow_remote is true and @allow_cached is false, then installed_specs will be added after cached_specs based on @allow_local. We never need to add installed_specs here, so don't. https://github.com/rubygems/rubygems/commit/49b38f9750
2023-09-07[rubygems/rubygems] Improve efficiency of Index#use and #search_allMartin Emde
Rename Index#use(override = true) to #merge! Rename Index @all_specs to @duplicates, it is not actually all specs. @duplicates only holds specs that would have been overridden during a call to Index#use or Index#merge! Reduced dupes in @duplicates by not double adding the new spec to the index and the @duplicates during #merge! Reduce Array creation by using specialized methods when the one result or no results are needed from the search. https://github.com/rubygems/rubygems/commit/47e91125db
2023-09-07[rubygems/rubygems] Source::Rubygems#fetch_names is only called with ↵Martin Emde
override = false https://github.com/rubygems/rubygems/commit/790202691d
2023-09-06[ruby/yarp] Fix `Location#end_column`Andy Waite
https://github.com/ruby/yarp/commit/00e4711026
2023-09-06[ruby/yarp] Introduce YARP::PatternKevin Newton
https://github.com/ruby/yarp/commit/2a12e9637b
2023-09-06[ruby/yarp] Add constants and constantsKevin Newton
https://github.com/ruby/yarp/commit/d7eaa89bc3
2023-09-05[ruby/irb] Bump version to 1.8.1Stan Lo
(https://github.com/ruby/irb/pull/706) https://github.com/ruby/irb/commit/c7c838a4bf
2023-09-05[ruby/rdoc] Remove code for versions older than Ruby 2.6Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/0d10f460eb
2023-09-05[ruby/rdoc] Remove code for versions older than Ruby 2.3Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/a61b777df0
2023-09-05[ruby/rdoc] Omit descriptions and parameter lists for methods defined in C ↵Jeremy Evans
not mentioned in call-seq This allows RDoc to better generate documentation for methods following the Ruby core documentation guide (which omits aliases in call-seq in most cases). This makes documentation for methods defined in C more similar to methods defined in Ruby. For methods defined in Ruby, the method description of the aliased method is already not used (you have to explicitly document the alias to use it). Internally, this adds AnyMethod#has_call_seq? and #skip_description?, and updates Darkfish to: * only show the method name if there is a call-seq for the method, but the call-seq omits the method * to omit the method description if the method is an alias or has aliases and has a call-seq that does not include the method See discussion in https://github.com/ruby/ruby/pull/7316 for details. https://github.com/ruby/rdoc/commit/e3688de49b
2023-09-05[ruby/rdoc] handle symbols declared with `%s`theo-squadracer
https://github.com/ruby/rdoc/commit/ed91c4b784
2023-09-01[ruby/yarp] Provide a better inspectKevin Newton
https://github.com/ruby/yarp/commit/ef14ae66e4
2023-09-01[ruby/yarp] Add global variables to the constant poolKevin Newton
https://github.com/ruby/yarp/commit/b48067b067
2023-09-01[ruby/yarp] Bump to v0.10.0Kevin Newton
https://github.com/ruby/yarp/commit/b6164a76d9
2023-09-01[ruby/yarp] Do not desugar Foo::Bar {||,&&,+}= baz as it is incorrect ↵Benoit Daloze
without a temporary variable * See https://github.com/ruby/yarp/pull/1329#discussion_r1310775433 for details. https://github.com/ruby/yarp/commit/f0fdcba0c3
2023-09-01[ruby/yarp] Fix comments for methods using desugar_or_write_defined_nodeBenoit Daloze
https://github.com/ruby/yarp/commit/a39147736e
2023-08-31[ruby/irb] Drop rdoc's version requirementStan Lo
(https://github.com/ruby/irb/pull/704) 1. The newer versions of rdoc requires pysch 4.0+, which could break apps using Ruby 3.0 or 2.7. #703 has more detailed explanation on this. 2. We actually don't use any version-specific rdoc APIs. So having a version requirement is not necessary atm. https://github.com/ruby/irb/commit/3e6ba78c42
2023-08-31[ruby/irb] Require Reline 0.3.8+Stan Lo
(https://github.com/ruby/irb/pull/702) Reline 0.3.8 reduces the chance of having a deadlock with the debugger while using the new `irb:rdbg` integration. https://github.com/ruby/irb/commit/9b8c56b7d4
2023-08-31[ruby/shellwords] omit blank lineHiroshi SHIBATA
https://github.com/ruby/shellwords/commit/b45de514ab
2023-08-30[ruby/yarp] Add class variables to the constant poolKevin Newton
https://github.com/ruby/yarp/commit/be5cb60c83
2023-08-30[ruby/yarp] Desugar ||= more accuratelyKevin Newton
Class variables, global variables, constants, and constant paths should actually desugar to `defined?` instead of just reading the value. https://github.com/ruby/yarp/commit/551a59b876
2023-08-30[ruby/irb] Bump version to 1.8.0Stan Lo
(https://github.com/ruby/irb/pull/700) https://github.com/ruby/irb/commit/a061744ed3
2023-08-30[rubygems/rubygems] Update bundler/lib/bundler/settings.rbJosh Nichols
https://github.com/rubygems/rubygems/commit/75ffa8ef76 Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
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