summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/net-http] [DOC] Enhanced RDoc for Net:HTTPBurdette Lamar2023-02-221-19/+16
| | | | | | (https://github.com/ruby/net-http/pull/124) https://github.com/ruby/net-http/commit/aaf26b21d6
* [rubygems/rubygems] Always join with a stringSamuel Giddins2023-02-221-2/+2
| | | | | | Gem.path_separator can also be a regexp... https://github.com/rubygems/rubygems/commit/7e6e56a5f3
* [rubygems/rubygems] Only update env if var existsSamuel Giddins2023-02-221-2/+2
| | | | | | Will save on an error if it would be nil from an exception happening during that line https://github.com/rubygems/rubygems/commit/d6797a04e9
* [rubygems/rubygems] Fix resetting env in gem exec, and make sure it is set ↵Samuel Giddins2023-02-221-2/+4
| | | | | | for gem exec gem https://github.com/rubygems/rubygems/commit/13a6dd4992
* [rubygems/rubygems] Allow gem exec gemSamuel Giddins2023-02-221-5/+13
| | | | https://github.com/rubygems/rubygems/commit/a767f7b9be
* [rubygems/rubygems] Remove platform option for gem execSamuel Giddins2023-02-221-4/+26
| | | | | | Also fix native extensions that load dependencies https://github.com/rubygems/rubygems/commit/a06f9870c7
* [rubygems/rubygems] Ensure dependencies are updated by default when running ↵Samuel Giddins2023-02-221-5/+5
| | | | | | gem exec https://github.com/rubygems/rubygems/commit/664f3e1e5f
* [rubygems/rubygems] Add gem exec descriptionSamuel Giddins2023-02-221-1/+11
| | | | https://github.com/rubygems/rubygems/commit/dac1609fd5
* [rubygems/rubygems] Add specs for gem execSamuel Giddins2023-02-221-2/+20
| | | | https://github.com/rubygems/rubygems/commit/3078e5834e
* [rubygems/rubygems] Add gem exec commandSamuel Giddins2023-02-223-5/+196
| | | | https://github.com/rubygems/rubygems/commit/ca69a317f3
* [ruby/rdoc] Fix RDoc::Parser::Ruby not being documentedÉtienne Barrié2023-02-211-3/+3
| | | | | | The calls to require prevent the class from being documented. https://github.com/ruby/rdoc/commit/76283fc42e
* [ruby/csv] Use https links instead of httpVivek Bharath Akupatni2023-02-211-1/+1
| | | | | | (https://github.com/ruby/csv/pull/274) https://github.com/ruby/csv/commit/e2a06929a8
* [ruby/csv] Remove unused @double_quote_character from ParserMau Magnaguagno2023-02-211-1/+0
| | | | | | (https://github.com/ruby/csv/pull/273) https://github.com/ruby/csv/commit/e5622c53ae
* Merge rubygems/bundler masterHiroshi SHIBATA2023-02-2138-60/+67
| | | | Pick from https://github.com/rubygems/rubygems/commit/e9304aed7e43308b99e70c2f7b92028315fee8a5
* [rubygems/rubygems] Give a better message when Gemfile branch does not existDavid Rodríguez2023-02-211-4/+16
| | | | https://github.com/rubygems/rubygems/commit/cb4fc41cbc
* [rubygems/rubygems] Update pub_grubJohn Hawthorn2023-02-212-4/+10
| | | | | | | | | * Replaces the wording of "is forbidden" with "cannot be used" * Fixes the method signature of VersionRange::Empty#eql? https://github.com/rubygems/rubygems/commit/8c6b3f130b Co-authored-by: Daniel Colson <danieljamescolson@gmail.com>
* [rubygems/rubygems] Sync with pub_grub main branchDavid Rodríguez2023-02-213-6/+17
| | | | | | We became a bit out of sync lately. https://github.com/rubygems/rubygems/commit/6161a2610a
* [rubygems/rubygems] Restore better error message when locked ref does not existDavid Rodríguez2023-02-211-4/+6
| | | | https://github.com/rubygems/rubygems/commit/c8e024359f
* [rubygems/rubygems] [DOC] Update the link to OpenSource.orgNobuyoshi Nakada2023-02-211-1/+1
| | | | | | The static list in alphabetical order seems no longer provided. https://github.com/rubygems/rubygems/commit/a37dff7736
* [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar2023-02-201-22/+96
| | | | | | (https://github.com/ruby/net-http/pull/123) https://github.com/ruby/net-http/commit/220ff3f741
* [ruby/pstore] Remove (newly unneeded) remarks about aliasesBurdette Lamar2023-02-191-4/+0
| | | | | | (https://github.com/ruby/pstore/pull/8) https://github.com/ruby/pstore/commit/01c4ccc7aa
* [ruby/fileutils] Remove (newly unneeded) remarks about aliasesBurdette Lamar2023-02-191-18/+0
| | | | | | (https://github.com/ruby/fileutils/pull/108) https://github.com/ruby/fileutils/commit/bbe595cfa5
* [ruby/irb] Remove unused context argument from Worksapce#evaluateStan Lo2023-02-184-6/+6
| | | | | | | | | | (https://github.com/ruby/irb/pull/488) The context argument was introduced in this change: https://github.com/ruby/irb/commit/6806669d178f90f38b99c144bdfee06bdb93a229#diff-296327851fb7a2c307c2d0693b769f58c01aaf315972f290500d10081ee200a9 perhaps for potential usages. But after that it's never used.
* [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar2023-02-161-34/+57
| | | | | | (https://github.com/ruby/net-http/pull/122) https://github.com/ruby/net-http/commit/06f79cda87
* [ruby/timeout] bump up 0.3.2Hiroshi SHIBATA2023-02-161-1/+1
| | | | https://github.com/ruby/timeout/commit/e1b2448101
* [ruby/timeout] Don't move the timer_thread when it's enclosedRick Blommers2023-02-151-1/+1
| | | | | | | | Don't move the timer_thread to ThreadGroup::Default, when it's created in an enclosed ThreadGroup. Prevents the exception: "add" can't move from the enclosed thread group" https://github.com/ruby/timeout/commit/eb889d2c8b
* [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP#getBurdette Lamar2023-02-151-30/+23
| | | | | | (https://github.com/ruby/net-http/pull/121) https://github.com/ruby/net-http/commit/51b9af1eed
* [ruby/irb] Fix help-message (https://github.com/ruby/irb/pull/506)HASUMI Hitoshi2023-02-151-2/+2
| | | | https://github.com/ruby/irb/commit/a55ace0791
* [DOC] remove redundant paragraph at set.rb (#6472)TJ2023-02-151-6/+2
| | | remove redundant paragraph at set.rb
* [ruby/net-http] [DOC] Enhanced RDoc for request headersBurdette Lamar2023-02-142-19/+64
| | | | | | (https://github.com/ruby/net-http/pull/120) https://github.com/ruby/net-http/commit/b4eb8a7932
* [ruby/net-http] Enhanced RDoc for CompressionBurdetteLamar2023-02-131-5/+23
| | | | https://github.com/ruby/net-http/commit/cff88acd70
* [ruby/irb] Fix colorize backtick symboltomoya ishida2023-02-121-1/+1
| | | | | | | | (https://github.com/ruby/irb/pull/508) https://github.com/ruby/irb/commit/dd7f25cd45 Co-authored-by: Stan Lo <stan001212@gmail.com>
* [ruby/fileutils] Add mkdir_p to FileUtils.installSatadru Pramanik, DO, MPH, MEng2023-02-101-1/+7
| | | | | | | | | | | | | | | | (https://github.com/ruby/fileutils/pull/104) * Add mkdir_p to FileUtils.install * Adjust raise message. * adjust raise language * handle trailing slash in dest * simplify * Add tests
* [ruby/logger] Add Logger#with_level{...} for block-scoped log level.Mike Perham2023-02-102-18/+40
| | | | | | | | (https://github.com/ruby/logger/pull/85) * Update lib/logger/severity.rb https://github.com/ruby/logger/commit/7aabb0b4aa
* [rubygems/rubygems] Avoid crashing with a corrupted lockfileDaniel Colson2023-02-091-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I did a bad thing (script that edits the Gemfile.lock directly) and ended up with a Gemfile.lock that was completely missing some indirect dependencies. While this is my fault and an error is reasonable, I noticed that the error got progressively less friendly in recent versions of bundler. Something similar came up in https://github.com/rubygems/rubygems/issues/6210, and this commit would have helped with that case as well (although we've already handled this a different way with #6219). Details: --- Back on Bundler 2.2.23, a corrupt lockfile like this would cause a helpful error: ``` Unable to find a spec satisfying minitest (>= 5.1) in the set. Perhaps the lockfile is corrupted? ``` Bundler 2.3.26 gave a helpful warning: ``` Warning: Your lockfile was created by an old Bundler that left some things out. Because of the missing DEPENDENCIES, we can only install gems one at a time, instead of installing 16 at a time. You can fix this by adding the missing gems to your Gemfile, running bundle install, and then removing the gems from your Gemfile. The missing gems are: * minitest depended upon by activesupport ``` But then continued on and crashed while trying to report the unmet dependency: ``` --- ERROR REPORT TEMPLATE ------------------------------------------------------- NoMethodError: undefined method `full_name' for nil:NilClass lib/bundler/installer/parallel_installer.rb:127:in `block (2 levels) in check_for_unmet_dependencies' ... ``` Bundler 2.4.0 and up crash as above when jobs=1, but crash even harder when run in parallel: ``` --- ERROR REPORT TEMPLATE ------------------------------------------------------- fatal: No live threads left. Deadlock? 3 threads, 3 sleeps current:0x00007fa6b6704660 main thread:0x00007fa6b6704660 * #<Thread:0x000000010833b130 sleep_forever> rb_thread_t:0x00007fa6b6704660 native:0x0000000108985600 int:0 * #<Thread:0x0000000108dea630@Parallel Installer Worker #0 tmp/1/gems/system/gems/bundler-2.5.0.dev/lib/bundler/worker.rb:90 sleep_forever> rb_thread_t:0x00007fa6b67f67c0 native:0x0000700009a62000 int:0 * #<Thread:0x0000000108dea4a0@Parallel Installer Worker #1 tmp/1/gems/system/gems/bundler-2.5.0.dev/lib/bundler/worker.rb:90 sleep_forever> rb_thread_t:0x00007fa6b67f63c0 native:0x0000700009c65000 int:0 <internal:thread_sync>:18:in `pop' tmp/1/gems/system/gems/bundler-2.5.0.dev/lib/bundler/worker.rb:42:in `deq' ... ``` Changes --- This commit fixes the confusing thread deadlock crash by detecting if dependencies are missing such that we'll never be able to enqueue. When that happens we treat it as a failure so the install can finish. That gets us back to the `NoMethodError`, which this commit fixes by using a different warning in the case where no spec is found. https://github.com/rubygems/rubygems/commit/d73001a21d
* [rubygems/rubygems] Improve wording of unmet dependencies warningDaniel Colson2023-02-081-2/+2
| | | | | | | | | | | | | | | `trying to manually editing` doesn't seem quite grammatically correct. We could change it to `trying to manually edit` (is that a split infinitive?), but I don't think `trying to` adds much here so I've removed it instead so `editing` is the verb. For the list of dependencies, the wording before this commit seemed to reverse the dependency. "B, depended on A" sounds like B depends on A (or did in the past but doesn't anymore?), but that's not correct. I think there's a missing word: "B, depended on by A", but I find "B, dependency of A" a bit nicer. https://github.com/rubygems/rubygems/commit/49a31257e3
* [rubygems/rubygems] Add Ruby 3.2 and 3.3 platforms to Gemfile DSLDaniel Colson2023-02-072-1/+3
| | | | | | | | | | | | Along the same lines as https://github.com/rubygems/rubygems/pull/5469, this adds support for Ruby 3.2 and 3.3 platforms: `:ruby_32`, `mri_32`, etc. It also includes a spec that should help catch this earlier in the future, failing if we don't support platforms for the version of Ruby that is running the tests. https://github.com/rubygems/rubygems/commit/7cd19d824d
* [ruby/net-http] Enhanced RDoc for Net::HTTPBurdetteLamar2023-02-071-6/+13
| | | | https://github.com/ruby/net-http/commit/e65a3d9f11
* [ruby/net-http] [DOC] Reorganize doc for proxy serverBurdette Lamar2023-02-071-98/+100
| | | | | | (https://github.com/ruby/net-http/pull/117) https://github.com/ruby/net-http/commit/f8b6b76cba
* [ruby/reline] Add comment for unused constantsima1zumi2023-02-071-0/+1
| | | | | | | | FILENAME_COMPLETION_PROC and USERNAME_COMPLETION_PROC are not used by Reline. However, they were added for compatibility with the rb-readline gem. These constants have been retained and comments added. https://github.com/ruby/reline/commit/98fdbd3f18
* [ruby/rdoc] Actually execute RDoc document task for coveragezzak2023-02-061-0/+1
| | | | https://github.com/ruby/rdoc/commit/7e70d41585
* [rubygems/rubygems] Properly exclude gemspec file itself from gemAkira Matsuda2023-02-061-1/+1
| | | | | | | | by comparing the file names with full path. Follows up https://github.com/rubygems/rubygems/commit/f444478eaccf https://github.com/rubygems/rubygems/commit/9637a82d2e
* [ruby/reline] Fix line rendering when newline is added at the end of the buffertompng2023-02-061-5/+12
| | | | https://github.com/ruby/reline/commit/7d61b3df9a
* [ruby/English] Replace HTML5 deprecated tag <tt> with <code>ccmywish2023-02-061-20/+20
| | | | https://github.com/ruby/English/commit/3712fd6752
* [rubygems/rubygems] Replace "prior to" with "immediately after"Sam Bostock2023-02-051-3/+3
| | | | | | | | | | | Currently, the instructions and placeholder contradict each other. The commit that introduced this placeholder (42bc4715d920e836c8499883d) makes it clear that the placeholder should be replaced AFTER publishing (i.e. once the author successfully claims the gem name on Rubygems), so the placeholder should match. https://github.com/rubygems/rubygems/commit/23e2dea828
* * remove trailing spaces. [ci skip]git2023-02-041-1/+1
|
* [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar2023-02-041-19/+59
| | | | | | (https://github.com/ruby/net-http/pull/116) https://github.com/ruby/net-http/commit/22c0d34002
* [ruby/rdoc] Add newline before returnzzak2023-02-031-0/+1
| | | | | | https://github.com/ruby/rdoc/commit/6d609cb64c Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
* [ruby/rdoc] Add rdoc:coverage default taskzzak2023-02-031-2/+26
| | | | https://github.com/ruby/rdoc/commit/157fbaf575
* [ruby/net-http] [DOC] Enhanced RDoc for write_timeoutBurdette Lamar2023-02-031-2/+15
| | | | | | (https://github.com/ruby/net-http/pull/115) https://github.com/ruby/net-http/commit/6da39b0461