aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/set] Bump version to 1.0.4Akinori MUSHA2023-12-081-2/+2
| | | | https://github.com/ruby/set/commit/efc8c8c9f5
* Revert "Skip to warn like 'bigdecimal/util' feature."Hiroshi SHIBATA2023-12-081-3/+0
| | | | This reverts commit 8f6cf72e661e36410848c1451335fd28a32cecdf.
* [rubygems/rubygems] Migrate documentation to be generated with nronnDavid Rodríguez2023-12-0829-1377/+197
| | | | https://github.com/rubygems/rubygems/commit/55281f0eaa
* [rubygems/rubygems] Add extra blank line to `bundle outdated` docsDavid Rodríguez2023-12-0830-29/+30
| | | | | | | If it's not there, when migrating to `nronn`, generated man page is messed up. https://github.com/rubygems/rubygems/commit/7161347648
* [rubygems/rubygems] Revert "Merge pull request #7148 from ↵David Rodríguez2023-12-081-1/+1
| | | | | | | | | Paul-Bob/improvement/include_response_body_on_fetch_http_error" This reverts commit https://github.com/rubygems/rubygems/commit/e5a4fd9eb617, reversing changes made to https://github.com/rubygems/rubygems/commit/c5a5363b0c98. https://github.com/rubygems/rubygems/commit/e21c45c4c3
* Skip to warn like 'bigdecimal/util' feature.Hiroshi SHIBATA2023-12-081-0/+3
|
* Improve bundled gems warnings for subfeaturesDavid Rodríguez2023-12-081-6/+6
| | | | | | | | | | Before, when requiring "bigdecimal/math" in a Bundler context: > /Users/deivid/.asdf/installs/ruby/3.3.0-dev/lib/ruby/3.3.0+0/bigdecimal/math.rb:2: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec. After: > foo.rb:1: warning: bigdecimal/math is found in bigdecimal, which will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.
* Improve bundled gem warningsDavid Rodríguez2023-12-081-2/+3
| | | | | | | | | | Before, when requiring "bigdecimal" in a Bundler context: > foo.rb:1: warning: bigdecimal which will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec. After: > foo.rb:1: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.
* The SINCE and WARNED hashes take gem names, not featuresDavid Rodríguez2023-12-081-2/+5
|
* [rubygems/rubygems] Extract generate_index command to ↵Samuel Giddins2023-12-084-504/+41
| | | | | | | | | | | | | | | | rubygems-generate_index gem So generate_index can be implemented with dependencies, such as the compact index Took this approach from feedback in https://github.com/rubygems/rubygems/pull/6853 Running `gem generate_index` by default will use an installed rubygems-generate_index, or install and then use the command from the gem Apply suggestions from code review https://github.com/rubygems/rubygems/commit/fc1cb9bc9e Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
* [rubygems/rubygems] Don't memoize in NameTuple lock_nameMartin Emde2023-12-081-6/+5
| | | | | | | The result of this is already memoized and no other NameTuple methods memoize. https://github.com/rubygems/rubygems/commit/b7cce0c64a
* [rubygems/rubygems] Use `Minitest::TestTask` in a template file for `minitest`Yuji Yaginuma2023-12-082-7/+3
| | | | | | | | | | | | | `minitest` has introduced a rake task for running test on 5.16.0. https://github.com/minitest/minitest/blob/master/History.rdoc#5160--2022-06-14- This has some tasks related to running tests and it's useful for `minitest` user I think. https://github.com/minitest/minitest#rake-tasks- This PR changed to use the task in a template file for `minitest` https://github.com/rubygems/rubygems/commit/7a86d13062
* [rubygems/rubygems] Use modern hashes consistentlyDavid Rodríguez2023-12-0792-783/+697
| | | | https://github.com/rubygems/rubygems/commit/bb66253f2c
* [ruby/irb] Debugging command warning should not be specific to theStan Lo2023-12-071-1/+1
| | | | | | | `debug` command (https://github.com/ruby/irb/pull/806) https://github.com/ruby/irb/commit/b7b57311cc
* [ruby/prism] Remove warnings check from parse_success? methodKevin Newton2023-12-071-2/+2
| | | | https://github.com/ruby/prism/commit/e30a241fb3
* [ruby/open-uri] Bump up 0.4.1Hiroshi SHIBATA2023-12-071-1/+1
| | | | https://github.com/ruby/open-uri/commit/d72508a7f4
* [ruby/open-uri] Set default for max_redirects and add exception classAndrew Kane2023-12-071-2/+5
| | | | https://github.com/ruby/open-uri/commit/dcdcb885cc
* [ruby/open-uri] Add :max_redirects optionAndrew Kane2023-12-071-0/+3
| | | | https://github.com/ruby/open-uri/commit/7fd5ea09a7
* [rubygems/rubygems] Make --build-root disable auto-user-install.Ellen Marie Dash2023-12-071-8/+10
| | | | https://github.com/rubygems/rubygems/commit/6a06b0763f
* [rubygems/rubygems] Better approach to falling back to user installation ↵David Rodríguez2023-12-073-35/+9
| | | | | | when GEM_HOME not writable https://github.com/rubygems/rubygems/commit/f67bced16b
* [rubygems/rubygems] Use globals variables for standard input/outputVít Ondruch2023-12-071-4/+4
| | | | | | | | | | | Replace use of `STDIN`, `STDOUT` and `STDERR` constants by their `$stdin`, `$stdout` and `$stderr` global variable equivalents. This enables easier testing via standard means, such as `assert_output` for minitest or `expect { print 'foo' }.to output.to_stdout` for RSpec test suites. https://github.com/rubygems/rubygems/commit/a0a6fc1b76
* Move replace_require into bundled_gems.rbHiroshi SHIBATA2023-12-072-20/+20
|
* [ruby/prism] Move flag position consistently to frontKevin Newton2023-12-061-2/+2
| | | | https://github.com/ruby/prism/commit/6e69a81737
* [rubygems/rubygems] Bundler::Fetcher uses Bundler::CIDetectorEric Mueller2023-12-061-14/+2
| | | | | | | | | | Additionally, the result is memoized, as it's used twice in a row. This change does result in a net behavioral diff, as the list of ENVs being checked has been updated (now includes buildkite, taskcluster, cirrus, dsari, and drops buildbox and snap) https://github.com/rubygems/rubygems/commit/3fb445a5a1
* [rubygems/rubygems] Duplicate Gem::CIDetector into bundlerEric Mueller2023-12-062-0/+76
| | | | | | | | | | | Because bundler needs to support older versions of rubygems, we can't actually rely on Gem::CIDetector (yet - in a year or so they might be able to consolidate, if they don't change futher). So we're copying it into the Bundler:: namespace, and enforcing that they stay completely in sync with a test. No other tests are needed, since Gem::CIDetector is already tested, and this is and will remain identical. https://github.com/rubygems/rubygems/commit/abc67f0da1
* [rubygems/rubygems] Gem::UpdateSuggestion uses Gem::CIDetectorEric Mueller2023-12-061-14/+1
| | | | https://github.com/rubygems/rubygems/commit/e5b0458342
* [rubygems/rubygems] Introduce the Gem::CIDetectorEric Mueller2023-12-062-0/+76
| | | | | | | | | | | | | | | | | | | | | | This is based on the list in Gem::UpdateSuggestion and Bundler::Fetcher; these have similar purposes (determining whether/what CI we're executing in), and can benefit from being combined and updated (they're both slightly out of date). Noteable changes: * We'll consider ourselves to be on a CI in more cases - if CI_NAME or TASKCLUSTER_ROOT_URL are set specifically, since those represent two cases that were either overlooked or are no longer covered by the existing implementation. (Or possibly TaskCluster still does provide RUN_ID, but failed to document it) * We will notice/track a few additional services in ci_strings (cirrus, dsari, taskcluster), stop tracking 'snap' (they went under in 2017), and update buildbox to buildkite (they've been called that for 8 years, and the BUILDBOX envs have been deprecated for 3). * We'll also sort/uniq/downcase the values (all of which only matter because of the special case of CI_NAME). https://github.com/rubygems/rubygems/commit/60652b942f
* [rubygems/rubygems] Try to load Gem::BUNDLED_GEMS on BundlerHiroshi SHIBATA2023-12-061-0/+5
| | | | | | | `bundle exec ruby foo.rb` ignore to load gem_prelude.rb. Because warnings feature is not working with `bundle exec ruby`. https://github.com/rubygems/rubygems/commit/a0d4ed92a7
* [ruby/rdoc] Only word-ending colon separates new definitionNobuyoshi Nakada2023-12-061-3/+3
| | | | | | | When followed by non-space characters, rather it looks like a URL or a path name on Windows. https://github.com/ruby/rdoc/commit/72c6560773
* [ruby/rdoc] Needs more backslash to match escaping backslashsNobuyoshi Nakada2023-12-061-2/+1
| | | | https://github.com/ruby/rdoc/commit/1904e9076d
* [rubygems/rubygems] Use String#unpack1 available since ruby 3.0Martin Emde2023-12-063-4/+3
| | | | https://github.com/rubygems/rubygems/commit/46258d6cb4
* [rubygems/rubygems] Converts Bundler lockfile checksum validation to opt-in onlyMartin Emde2023-12-056-17/+32
| | | | | | | | | Looks for the CHECKSUMS section in the lockfile, activating the feature only if the section exists. Without a CHECKSUMS section, Bundler will continue as normal, validating checksums when gems are installed while checksums from the compact index are present. https://github.com/rubygems/rubygems/commit/2353cc93a4
* [ruby/syntax_suggest] Remove duplicate error messagesSchneems2023-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: ``` Expected a newline or semicolon after the statement Cannot parse the expression Expected a newline or semicolon after the statement Cannot parse the expression 1 describe "webmock tests" do 22 it "body" do 27 query = Cutlass::FunctionQuery.new( > 28 port: port > 29 body: body 30 ).call 34 end 35 end ``` After: ``` Expected a newline or semicolon after the statement Cannot parse the expression 1 describe "webmock tests" do 22 it "body" do 27 query = Cutlass::FunctionQuery.new( > 28 port: port > 29 body: body 30 ).call 34 end 35 end ``` https://github.com/ruby/syntax_suggest/commit/becf097e5e
* [ruby/syntax_suggest] Update docs, clean up PRSchneems2023-12-056-14/+26
| | | | | | Removes or updates mentions of Ripper https://github.com/ruby/syntax_suggest/commit/08aaa3f50a
* [ruby/syntax_suggest] Support lexing with PrismSchneems2023-12-053-19/+27
| | | | https://github.com/ruby/syntax_suggest/commit/7f4176a914
* [ruby/syntax_suggest] Initial support for the prism parserSchneems2023-12-053-12/+70
| | | | | | | | | | | | | | Prism will be the parser in Ruby 3.3. We need to support 3.0+ so we will have to "dual boot" both parsers. Todo: - LexAll to support Prism lex output - Add tests that exercise both Ripper and prism codepaths on CI - Handle https://github.com/ruby/prism/issues/1972 in `ripper_errors.rb` - Update docs to not mention Ripper explicitly - Consider different/cleaner APIs for separating out Ripper and Prism https://github.com/ruby/syntax_suggest/commit/a7d6991cc4
* [ruby/irb] Bump version to v1.10.1Stan Lo2023-12-051-2/+2
| | | | | | (https://github.com/ruby/irb/pull/801) https://github.com/ruby/irb/commit/a1e431bd83
* [ruby/irb] Disable pager when TERM is not set tooStan Lo2023-12-051-1/+1
| | | | | | (https://github.com/ruby/irb/pull/802) https://github.com/ruby/irb/commit/173980974b
* [ruby/irb] Pager should be disabled when TERM=dumbStan Lo2023-12-051-1/+5
| | | | | | | | | | | (https://github.com/ruby/irb/pull/800) For apps/libs that test against IRB, it's recommended to set `TERM=dumb` so they get minimum disruption from Reline's interactive-focus features. Therefore, we should follow the convention to disable pager when `TERM=dumb`. https://github.com/ruby/irb/commit/8a3002a39e
* [ruby/rdoc] Allow any single-word token upto 2 before C method implementationNobuyoshi Nakada2023-12-051-3/+2
| | | | | | | | | Previously only unknown word `intern` is allowed between a single-word token before a C method. Now any single-word token, such as `inline` which is used for `ArithmeticSequence` in enumerator.c, is allowed instead. https://github.com/ruby/rdoc/commit/3a214c1dd1
* [ruby/rdoc] Reduce matched substring allocationsNobuyoshi Nakada2023-12-051-6/+6
| | | | https://github.com/ruby/rdoc/commit/aaed688a97
* [ruby/rdoc] Bump up 6.6.1Hiroshi SHIBATA2023-12-051-1/+1
| | | | https://github.com/ruby/rdoc/commit/7cf353a696
* [ruby/tempfile] Bump up 0.2.1Hiroshi SHIBATA2023-12-051-1/+1
| | | | https://github.com/ruby/tempfile/commit/1450bb4f1c
* [ruby/tempfile] Alias #to_s to #inspectAkshay Birajdar2023-12-051-0/+1
| | | | https://github.com/ruby/tempfile/commit/e515889412
* [ruby/cgi] Bump up 0.4.1Hiroshi SHIBATA2023-12-051-1/+1
| | | | https://github.com/ruby/cgi/commit/929e6264b5
* [ruby/rdoc] Early return when `token_stream` is `nil`Toshimaru2023-12-051-1/+1
| | | | | | https://github.com/ruby/rdoc/commit/04f75d8516 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [ruby/rdoc] fix: fix `NoMethodError` when `token_stream` is niltoshimaru2023-12-051-2/+2
| | | | | | | | | The change in #1055 might be a breaking change. So, just simply wrap `token_stream` with `Array` https://github.com/ruby/rdoc/commit/d8c19d7fa1 Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
* [rubygems/rubygems] Fix crash when duplicating a dev dependency in Gemfile & ↵David Rodríguez2023-12-051-4/+6
| | | | | | gemspec https://github.com/rubygems/rubygems/commit/e78c0a4a48
* [rubygems/rubygems] Instead of checking writability, try to writeDavid Rodríguez2023-12-051-1/+3
| | | | | | | | | | Checking writability is prone to errors. For example: $ mkdir -p foo/bar $ chmod -w foo $ touch foo/bar/baz # succeeds even if foo is not writable https://github.com/rubygems/rubygems/commit/6056138b6a
* [rubygems/rubygems] Prefer String#split with block in Gem::YAMLSerializer#loadMau Magnaguagno2023-12-051-1/+1
| | | | | | String#split supports a block since Ruby 2.6, avoiding intermediate array. https://github.com/rubygems/rubygems/commit/69cdf9e9d4