aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Factor group-filtering to a private method to reduce ↵Eric Mueller2023-11-231-16/+16
| | | | | | | | | repetition We're about to expand the repeated bit of code, so drying it up a little is warranted. https://github.com/rubygems/rubygems/commit/e69c658be6
* [ruby/irb] Handle handle_exception's exceptiontomoya ishida2023-11-231-1/+8
| | | | | | (https://github.com/ruby/irb/pull/780) https://github.com/ruby/irb/commit/d42138c477
* [ruby/irb] Hint debugger command in irb:rdbg sessionStan Lo2023-11-231-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/768) When user enters irb:rdbg session, they don't get the same hint that the `debug` gem provides, like ``` (rdbg) n # next command ``` This means that users may accidentally execute commands when they want to retrieve the value of a variable. So this commit adds a Reline output modifier to add a simiar hint: ``` irb:rdbg(main):002> n # debug command ``` It is not exactly the same as `debug`'s because in this case the importance is to help users distinguish between value evaluation and debugger command execution. https://github.com/ruby/irb/commit/fdf24de851
* [ruby/irb] Fix failure of more command with -R optionhogelog2023-11-231-1/+1
| | | | | | (https://github.com/ruby/irb/pull/781) https://github.com/ruby/irb/commit/7d6849e44e
* [ruby/irb] Require prism >= 0.18.0 (MatchWriteNode#targets andtomoya ishida2023-11-222-19/+31
| | | | | | | CaseMatchNode) (https://github.com/ruby/irb/pull/778) https://github.com/ruby/irb/commit/943c14b12e
* [ruby/prism] Add new doc to gemspecKevin Newton2023-11-221-0/+1
| | | | https://github.com/ruby/prism/commit/99dfca6c1d
* [ruby/prism] Add `CP949` encodingheyogrady2023-11-221-0/+1
| | | | https://github.com/ruby/prism/commit/9e78dfdf69
* [rubygems/rubygems] Fix universal lockfiles regressionDavid Rodriguez2023-11-223-4/+6
| | | | | | | | | | | | If a platform specific variant would not match the current Ruby, we would still be considering it compatible with the initial resolution and adding its platform to the lockfile, but we would later fail to materialize it for installation due to not really being compatible. Fix is to only add platforms for variants that are also compatible with current Ruby and RubyGems versions. https://github.com/rubygems/rubygems/commit/75d1290843
* [ruby/prism] Move CallNode#name field between receiver and argumentsBenoit Daloze2023-11-221-1/+1
| | | | | | | | * The same order as in source code. * CallOrWriteNode, CallOperatorWriteNode, CallAndWriteNode already have the correct order so it was also inconsistent with them. https://github.com/ruby/prism/commit/4434e4bc22
* [ruby/irb] Rescue Exception, ignore warning in completiontomoya ishida2023-11-221-3/+9
| | | | | | | doc_namespace (https://github.com/ruby/irb/pull/777) https://github.com/ruby/irb/commit/c2f671611a
* [ruby/resolv] IPv6: update to_s method to be RFC5952 compliantJohn Bond2023-11-221-5/+1
| | | | | | | | | | | | | | | | | | | (https://github.com/ruby/resolv/pull/25) * IPv6: update to_s method to be RFC5952 compliant I noticed that the resolv library does not honour RFC 5952 Section 4.2.2. in relation to textural representation of ipv6 addresses: The symbol "::" MUST NOT be used to shorten just one 16-bit 0 field. For example, the representation 2001:db8:0:1:1:1:1:1 is correct, but 2001:db8::1:1:1:1:1 is not correct. Fixes https://github.com/ruby/resolv/pull/24 https://github.com/ruby/resolv/commit/5efcd6ed70 Co-authored-by: Sorah Fukumori <sora134@gmail.com>
* [ruby/open3] [DOC] Open3 doc (https://github.com/ruby/open3/pull/21)Burdette Lamar2023-11-211-106/+170
| | | | https://github.com/ruby/open3/commit/3bdb402b18
* [rubygems/rubygems] Fix invalid platform removal missing adjacent platformsBo Anderson2023-11-211-1/+1
| | | | https://github.com/rubygems/rubygems/commit/4ce66c41a2
* [ruby/prism] Update to v0.18.0Kevin Newton2023-11-211-1/+1
| | | | https://github.com/ruby/prism/commit/1398879d79
* [ruby/prism] Fix constant path full name when parent is not aVinicius Stock2023-11-211-0/+12
| | | | | | | | | | | | | | | | | constant (https://github.com/ruby/prism/pull/1742) * Raise if constant path parts contains nodes that can't be used to build full name * Fix typo in constant path error documentation Co-authored-by: Tim Morgan <tim@timmorgan.org> --------- https://github.com/ruby/prism/commit/d73a053262 Co-authored-by: Tim Morgan <tim@timmorgan.org>
* [ruby/prism] Warning for ENDs in methodsHaldun Bayhantopcu2023-11-211-1/+1
| | | | | | (https://github.com/ruby/prism/pull/1899) https://github.com/ruby/prism/commit/1b41c2d56c
* [ruby/irb] Bump version to 1.9.1tomoya ishida2023-11-211-2/+2
| | | | | | (https://github.com/ruby/irb/pull/773) https://github.com/ruby/irb/commit/997df3e849
* Rename the big5-hkscs stuff to something more generic and add UAO sharing ↵Ryan Garver2023-11-201-1/+0
| | | | | | common code. Merge the Big5 extensions into pm_big5.c
* [ruby/irb] Enable Setting Completer Type through `IRB_COMPLETOR`ima1zumi2023-11-211-1/+1
| | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/771) I propose introducing the capability to set the IRB completion kinds via an environment variable, specifically `IRB_COMPLETOR=type`. This feature aims to enhance the Rails console experience by allowing Rails users to specify their preferred completion more conveniently. Currently, when using the Rails console, there's no straightforward way to globally set the type completion across a Rails application repository. It's possible to configure this setting by placing a `.irbrc` file at the project root. However, using a .irbrc file is not ideal as it allows for broad configurations and can potentially affect the production environment. My suggestion focuses on allowing users to set the completion to 'type' in a minimal. This enhancement would be particularly beneficial for teams writing RBS in their Rails applications. This type completer, integrated with RBS, would enhance completion accuracy, improving the Rails console experience. https://github.com/ruby/irb/commit/032f6da25f
* [ruby/prism] Add character APIs for locationsKevin Newton2023-11-202-13/+47
| | | | | | (https://github.com/ruby/prism/pull/1809) https://github.com/ruby/prism/commit/d493ccd093
* [ruby/open3] [DOC] RDoc for Open3Burdette Lamar2023-11-191-23/+66
| | | | | | (https://github.com/ruby/open3/pull/20) https://github.com/ruby/open3/commit/4c9e7492eb
* [ruby/prism] Big5 HKSCS encodingRyan Garver2023-11-181-0/+1
| | | | https://github.com/ruby/prism/commit/3ca9823eb4
* [ruby/irb] Fix irb crash on `{}.` completiontomoya ishida2023-11-182-4/+7
| | | | | | (https://github.com/ruby/irb/pull/764) https://github.com/ruby/irb/commit/07e4d540cc
* [ruby/prism] Update gemspecMaple Ong2023-11-161-0/+1
| | | | https://github.com/ruby/prism/commit/1a10f6f9c0
* [ruby/open3] [DOC] RDoc for Open3Burdette Lamar2023-11-161-32/+57
| | | | | | (https://github.com/ruby/open3/pull/19) https://github.com/ruby/open3/commit/577bee9696
* Warn bundled gems before Ruby 3.4.0Hiroshi SHIBATA2023-11-161-4/+9
|
* Always revert or skip extended require of RubyGems.Hiroshi SHIBATA2023-11-161-5/+2
|
* [ruby/rdoc] Revert "chore: Remove unnecessary argument for `join` method"Nobuyoshi Nakada2023-11-161-1/+1
| | | | | | | | | This reverts commit https://github.com/ruby/rdoc/commit/4a1c74bc0a09. Since RDoc still supports ruby 2.6 which has not deprecated `$,`, the argument of `Array#join` is not unnecessary yet. https://github.com/ruby/rdoc/commit/72897d32ed
* [ruby/rdoc] chore: Remove unnecessary argument for `join` methodtoshimaru2023-11-161-1/+1
| | | | https://github.com/ruby/rdoc/commit/4a1c74bc0a
* [ruby/rdoc] fix: Fix NoMethodError for `tokens_to_s` methodtoshimaru2023-11-161-1/+1
| | | | | | | | | | | | Calling `tokens_to_s` gets an error if `token_stream` is nil: ``` undefined method `compact' for nil:NilClass (NoMethodError) ``` So, fall back to an empty array if `@token_stream` is nil. https://github.com/ruby/rdoc/commit/452e4a2600
* [ruby/prism] Track the then keyword for conditionalsKevin Newton2023-11-151-0/+1
| | | | https://github.com/ruby/prism/commit/fef0019a25
* [rubygems/rubygems] User bundler UA when downloading gemsSamuel Giddins2023-11-157-23/+47
| | | | | | | | | | | | | | | Gem::RemoteFetcher uses Gem::Request, which adds the RubyGems UA. Gem::RemoteFetcher is used to download gems, as well as the full index. We would like the bundler UA to be used whenever bundler is making requests. This PR also avoids unsafely mutating the headers hash on the shared `Gem::RemoteFetcher.fetcher` instance, which could cause corruption or incorrect headers when making parallel requests. Instead, we create one remote fetcher per rubygems remote, which is similar to the connection segregation bundler is already doing https://github.com/rubygems/rubygems/commit/f0e8dacdec
* [ruby/prism] Rename librubyparser to libprismKevin Newton2023-11-141-1/+1
| | | | | | | | librubyparser was an artifact of the prototype that was initially named ruby-parser. Instead, this renames it to libprism to be consistent with the actual name. https://github.com/ruby/prism/commit/8600b06811
* [ruby/rdoc] Fix TIDYLINK after bracesNobuyoshi Nakada2023-11-141-1/+1
| | | | | | | | (https://github.com/ruby/rdoc/pull/1015) TIDYLINK multi-word label should not include braces. https://github.com/ruby/rdoc/commit/41ad3191e9
* [rubygems/rubygems] improvement: include response body on fetch_http errorPaul Bob2023-11-141-1/+1
| | | | https://github.com/rubygems/rubygems/commit/de4189af35
* [rubygems/rubygems] TruffleRuby uses a bash prelude in default launchersBenoit Daloze2023-11-131-1/+2
| | | | https://github.com/rubygems/rubygems/commit/e119f4208a
* [ruby/reline] Fallback to 256color if COLORTERM != truecolortomoya ishida2023-11-131-0/+42
| | | | | | | | | | (https://github.com/ruby/reline/pull/604) * Fallback to 256color if COLORTERM != truecolor * Add Reline::Face.force_truecolor to force truecolor without COLORTERM env https://github.com/ruby/reline/commit/090e1e4df0
* [rubygems/rubygems] Make sure to `require "rubygems"` explicitlyNobuyoshi Nakada2023-11-131-0/+2
| | | | | | | This is also done in bundler/lib/bundler/rubygems_integration.rb, but bundler/lib/bundler.rb loads this file before it. https://github.com/rubygems/rubygems/commit/8840d8507b
* [rubygems/rubygems] Add a warning in an edge case of using `gemspec` DSLDavid Rodríguez2023-11-131-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | If a Gemfile duplicates a development dependency also defined in a local gemspec with a different requirement, the requirement in the local gemspec will be silently ignored. This surprised me. I think we should either: * Make sure both requirements are considered, like it happens for runtime dependencies (I added a spec to illustrate the current behavior here). * Add a warning that the requirement in the gemspec will be ignored. I think the former is slightly preferable, but it may cause some bundle's that previously resolve to no longer resolver. I went with the latter but the more I think about it, the more this seems like it should behave like the former. https://github.com/rubygems/rubygems/commit/ad6843972f
* [rubygems/rubygems] This can be frozen nowDavid Rodríguez2023-11-131-2/+2
| | | | https://github.com/rubygems/rubygems/commit/d06544add2
* [rubygems/rubygems] Remove now unnecessary dupsDavid Rodríguez2023-11-138-12/+8
| | | | https://github.com/rubygems/rubygems/commit/56ce2a6445
* [rubygems/rubygems] Remove now unnecessary dupDavid Rodríguez2023-11-131-1/+1
| | | | https://github.com/rubygems/rubygems/commit/3c1a6a7dfa
* [rubygems/rubygems] Add a note about `required_rubygems_version` in BundlerDavid Rodríguez2023-11-131-1/+3
| | | | https://github.com/rubygems/rubygems/commit/9509d98b5c
* [rubygems/rubygems] Let RuboCop target Ruby 3.0David Rodríguez2023-11-1314-27/+27
| | | | https://github.com/rubygems/rubygems/commit/70243b1d72
* [rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in BundlerDavid Rodríguez2023-11-135-26/+13
| | | | https://github.com/rubygems/rubygems/commit/93619c97ff
* [rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in RubyGemsDavid Rodríguez2023-11-1317-54/+29
| | | | https://github.com/rubygems/rubygems/commit/10c26a483d
* [rubygems/rubygems] Automatically lock extra ruby platformsDavid Rodríguez2023-11-132-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | | Since we started locking the specific platform in the lockfile, that has created an annoying situation for users that don't develop on Linux. They will create a lockfile on their machines, locking their local platform, for example, darwin. But then that lockfile won't work automatically when deploying to Heroku for example, because the lockfile is frozen and the Linux platform is not included. There's the chance though that resolving against two platforms (Linux + the local platform) won't succeed while resolving for just the current platform will. So, instead, we check other platform specific variants available for the resolution we initially found, and lock those platforms and specs too if they satisfy the resolution. This is only done when generating new lockfiles from scratch, existing lockfiles should keep working as before, and it's only done for "ruby platforms", i.e., not Java or Windows which have their own complexities, and so are excluded. With this change, we expect that MacOS users can bundle locally and deploy to Heroku without needing to do anything special. https://github.com/rubygems/rubygems/commit/5f24f06bc5
* [rubygems/rubygems] Extract builder to create a `LazySpecification` from ↵David Rodríguez2023-11-132-4/+9
| | | | | | full spec https://github.com/rubygems/rubygems/commit/957d3d9a7f
* [rubygems/rubygems] Extract a new small platform helperDavid Rodríguez2023-11-133-2/+7
| | | | https://github.com/rubygems/rubygems/commit/8f7340df8e
* [rubygems/rubygems] Remove unused `SpecSet#merge`David Rodríguez2023-11-131-10/+0
| | | | https://github.com/rubygems/rubygems/commit/53e0490b55