Граф коммитов

10142 Коммитов

Автор SHA1 Сообщение Дата
Benoit Daloze 75fcfb1416 [ruby/timeout] Remove redundant done? check
* It's already checked inside #interrupt.

https://github.com/ruby/timeout/commit/5f43254f81
2022-05-19 07:19:42 +09:00
Benoit Daloze 240ac9eaa8 [ruby/timeout] Synchronize all accesses to @done
* So it is trivially correct.
* Performance seems the same overall.

https://github.com/ruby/timeout/commit/5e0d8e1637
2022-05-19 07:19:41 +09:00
Benoit Daloze 354cd6f210 [ruby/timeout] Handle Timeout + fork and add test for it
https://github.com/ruby/timeout/commit/4baee63b9b
2022-05-19 07:19:40 +09:00
Benoit Daloze 89fbec224d [ruby/timeout] Reimplement Timeout.timeout with a single thread and a Queue
https://github.com/ruby/timeout/commit/2bafc458f1
2022-05-19 07:19:39 +09:00
Kouhei Yanagita e658da9408 [ruby/irb] Fix documents for .irbrc path
https://github.com/ruby/irb/commit/af99c01b0d
2022-05-18 07:12:29 +09:00
Kazuhiro NISHIYAMA f2dc972940 [ruby/set] Fix a typo
https://github.com/ruby/set/commit/71a876ae81
2022-05-16 23:43:04 +09:00
David Rodríguez 641c3830df [rubygems/rubygems] Use `Array#concat` in `SpecSet#for` to save memory
On `rails/rails` repository Gemfile, running the following script

```
# script.rb
require "bundler/setup"
```

#### Before

```
➜  rails git:(main) ✗ BUNDLER_VERSION=2.4.0.dev ruby-memory-profiler --pretty --no-detailed --allocated-strings=0 --retained-strings=0 script.rb
Total allocated: 24.37 MB (207937 objects)
Total retained:  2.98 MB (34152 objects)
```

#### After

```
➜  rails git:(main) ✗ BUNDLER_VERSION=2.4.0.dev ruby-memory-profiler --pretty --no-detailed --allocated-strings=0 --retained-strings=0 script.rb
Total allocated: 22.27 MB (206856 objects)
Total retained:  2.98 MB (34152 objects)
```

https://github.com/rubygems/rubygems/commit/2ea2523afd

Co-authored-by: Josh Nichols <josh.nichols@gusto.com>
2022-05-16 17:24:14 +09:00
David Rodríguez c380aac19d [rubygems/rubygems] Improve `bundler/setup` performance again
On a different patch, it was noticed Ngam Pham that we are calling
`LazySpecification#hash` many times, and simply memoizing that led to a
very considerable performance improvement in his app.

I noticed though that we shouldn't be calling `LazySpecification#hash`
that many times, and I located the culprit at `SpecSet#for` where we
were deduplicating the partial aggregated result on every iteration. It
is enough to do it just once at the end.

This leads on a 12% speedup on Rails repository Gemfile vs the previous
8% I was getting from memoizing `LazySpecification#hash`. Also, after
this patch memoizing `LazySpecification#hash` has no effect in
performance anymore.

https://github.com/rubygems/rubygems/commit/68d00a9edd

Co-authored-by: Ngan Pham <ngan@users.noreply.github.com>
2022-05-16 17:24:14 +09:00
Nobuyoshi Nakada 774b9e27ae [ruby/racc] [DOC] Remove stale `Object::ParseError` documentation
https://github.com/ruby/racc/commit/4ecc13c9cb
2022-05-16 12:24:10 +09:00
Burdette Lamar 48002ff187 [ruby/fileutils] [DOC] Enhanced RDoc for #ln (https://github.com/ruby/fileutils/pull/69)
Enhanced RDoc for #ln

https://github.com/ruby/fileutils/commit/79fc67f03f

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-05-14 22:38:22 +09:00
Burdette Lamar 9639dc91d9 [ruby/logger] [DOC] Enhanced RDoc for Logger (https://github.com/ruby/logger/pull/77)
Enhanced RDoc for Logger

https://github.com/ruby/logger/commit/c601ed0370

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-05-14 05:02:18 +09:00
Burdette Lamar 55ba414405 [ruby/logger] Update lib/logger.rb
https://github.com/ruby/logger/commit/a5a2f2da4a

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-05-13 22:52:59 +09:00
Burdette Lamar 1f1283b927 [ruby/logger] Update lib/logger.rb
https://github.com/ruby/logger/commit/e6f2c64fc6

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-05-13 22:52:58 +09:00
Burdette Lamar 45a92cc4fe [ruby/logger] Update lib/logger.rb
https://github.com/ruby/logger/commit/3dc5a8d7a4

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-05-13 22:52:57 +09:00
Burdette Lamar 00635f8d41 [ruby/logger] Update lib/logger.rb
https://github.com/ruby/logger/commit/98919e09e5

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-05-13 22:52:56 +09:00
Burdette Lamar 2427a11b35 [ruby/logger] Update lib/logger.rb
https://github.com/ruby/logger/commit/073a892ad9

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
2022-05-13 22:52:55 +09:00
Burdette Lamar b9311e646e [ruby/logger] Update lib/logger.rb
https://github.com/ruby/logger/commit/6d91281f7f

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
2022-05-13 22:52:55 +09:00
Burdette Lamar e36a794f1a [ruby/logger] Update lib/logger.rb
https://github.com/ruby/logger/commit/34c0ba8baa

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
2022-05-13 22:52:54 +09:00
BurdetteLamar 90d8b7219e [ruby/logger] Enhanced RDoc for Logger
https://github.com/ruby/logger/commit/16556d06d1
2022-05-13 22:52:53 +09:00
David Rodríguez 4c9ddaac0d [rubygems/rubygems] Fix `Gemfile.lock` versions leaking to `bundler/inline` install output
The lockfile is completely ignored in inline mode, yet the previous
output would suggest it wasn't.

https://github.com/rubygems/rubygems/commit/763125a745
2022-05-13 15:23:56 +09:00
David Rodríguez 4962e5c417 [rubygems/rubygems] Normalize parameter name
The other sources use `options` which reads better.

https://github.com/rubygems/rubygems/commit/a672f9d602
2022-05-13 15:23:56 +09:00
Jun Aruga 019cbded90 mkmf: Add a configure option to set verbose mode (V=1 or 0) in mkmf.rb.
Note this change is only for `configure.ac`, not for Windows using
`win32/configure.bat`.

```
$ ./configure --help | grep mkmf
  --enable-mkmf-verbose   enable verbose in mkmf
```

Run the following command to enable the mkmf verbose mode.

```
$ ./configure --enable-mkmf-verbose
$ grep MKMF_VERBOSE config.status
S["MKMF_VERBOSE"]="1"
```

In this mkmf verbose mode, when compiling a native extension, the
`rake compile` prints the compiling commands such as
"gcc -I. <...> path/to/file" instead of "compiling path/to/file".

```
$ git clone https://github.com/deivid-rodriguez/byebug.git
$ cd byebug
$ bundle install --standalone
$ bundle exec rake compile
...
gcc -I. <...> path/to/file
...
```
2022-05-12 12:36:10 +02:00
Benoit Daloze 40ca208a6d [ruby/uri] Improve URI.register_scheme tests and automatically upcase the given scheme
* Also add docs and mention current limitations.
* For reference, https://stackoverflow.com/a/3641782/388803 mentions the
  valid characters in schemes.

https://github.com/ruby/uri/commit/4346daac75
2022-05-12 18:19:17 +09:00
Jeremy Evans fbebfe1697 [ruby/uri] Add URI::Generic#decoded_#{user,password}
URI::Generic#{user,password} return the encoded values, which are
not that useful if you want to do authentication with them.
Automatic decoding by default would break backwards compatibility.
Optional automatic decoding via a keyword to URI.parse would
require threading the option through at least 3 other methods, and
would make semantics confusing (user= takes encoded or unencoded
password?) or require more work.  Thus, adding this as a separate
method seemed the simplest approach.

Unfortunately, URI lacks a method for correct decoding.  Unlike in
www form components, + in earlier parts of the URI such as the
userinfo section is treated verbatim and not as an encoded space.
Add URI.#{en,de}code_uri_component methods, which are almost the
same as URI.#{en,de}code_www_form_component, but without the
special SP => + handling.

Implements [Feature #9045]

https://github.com/ruby/uri/commit/16cfc4e92f
2022-05-12 14:54:37 +09:00
Frank Schmitt 054ae999dc [ruby/uri] Update file.rb
The module here is called `URI`, so it's probably reasonable to expect a requirement for the path to be RFC3986-compliant, but on the other hand, the class is called `File`, so it might be reasonable to expect that a path produced by e.g. the `File` class would be consumable by its `build` method (this fails if the filename contains e.g. a space).

https://github.com/ruby/uri/commit/ef79789b83
2022-05-12 10:06:57 +09:00
Burdette Lamar 019169346a [ruby/fileutils] Update lib/fileutils.rb
https://github.com/ruby/fileutils/commit/4771925fee

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-05-12 04:11:51 +09:00
BurdetteLamar dbca60c58d [ruby/fileutils] Enhanced RDoc for FileUtils
https://github.com/ruby/fileutils/commit/a0ea474214
2022-05-12 04:11:50 +09:00
Peter Zhu 4da0f7a7f5 [ruby/rdoc] Fix dead link in RDoc::Markup
https://github.com/ruby/rdoc/commit/521c9ebd29
2022-05-12 02:54:14 +09:00
BurdetteLamar becafe1efb [ruby/fileutils] Enhanced RDoc for FileUtils
https://github.com/ruby/fileutils/commit/c38fd02372
2022-05-11 23:00:04 +09:00
BurdetteLamar dde9db64e0 [ruby/fileutils] Enhanced RDoc for FileUtils
https://github.com/ruby/fileutils/commit/7b60f2d63b
2022-05-11 23:00:03 +09:00
David Rodríguez 8f1a8e68ba [rubygems/rubygems] Fix error message on metadata mismatches
Previously we were removing not installable specs. However, if those are
the only ones, that would result in a bad error message. If we still
choose them as a last resort, Bundler will later check metadata right
before installing a give a proper error.

This is a regression of https://github.com/rubygems/rubygems/commit/565549260be5 and the
fix is to revert that commit.

https://github.com/rubygems/rubygems/commit/bc18912257
2022-05-11 16:55:49 +09:00
David Rodríguez 00e5e827b1 [rubygems/rubygems] Cleanup old legacy code
https://github.com/rubygems/rubygems/commit/531d6b5fee
2022-05-09 21:25:23 +09:00
Hiroshi SHIBATA ecf32dbfc0 [ruby/net-http] Bump version to 0.2.2
https://github.com/ruby/net-http/commit/992d07cb41
2022-05-09 18:20:31 +09:00
Hiroshi SHIBATA e2c143abf4 [ruby/getoptlong] Fixup https://github.com/ruby/getoptlong/commit/39faa7b390f0
https://github.com/ruby/getoptlong/commit/c8b3c0c00d
2022-05-09 07:26:29 +09:00
Dominik Bauernfeind d79e0832a5 [rubygems/rubygems] Fix typo in documentation
https://github.com/rubygems/rubygems/commit/800a973e00
2022-05-06 18:03:00 +09:00
nobuyo 7d6de74abe [rubygems/rubygems] Update man page for `require` option in `bundle add` command
https://github.com/rubygems/rubygems/commit/08a0a5b7d1
2022-05-06 18:02:35 +09:00
Akira Matsuda 0b62535219 [ruby/logger] Prefer String#[0, 1] over [0..0]
[0..0] internally creates an extra Array object, and so is slower and much more memory consuming

https://github.com/ruby/logger/commit/20616ad34a
2022-05-05 19:09:49 +09:00
David Rodríguez 9d61c4519c [rubygems/rubygems] Also speed up the case when nothing changed
https://github.com/rubygems/rubygems/commit/fa0ac74883
2022-05-04 06:45:16 +09:00
David Rodríguez 2cf4318645 [rubygems/rubygems] Make looping more concise with `select`
https://github.com/rubygems/rubygems/commit/c43d5f979a
2022-05-04 06:45:15 +09:00
David Rodríguez ba4ec45cf1 [rubygems/rubygems] Don't converge specs in frozen mode
https://github.com/rubygems/rubygems/commit/ea09bc4680
2022-05-04 06:45:15 +09:00
Burdette Lamar 51ac3c9e80 [ruby/getoptlong] Enhanced RDoc for GetoptLong (https://github.com/ruby/getoptlong/pull/4)
Detailed introductory material.

https://github.com/ruby/getoptlong/commit/1544f2fb7b
2022-05-03 01:09:33 +09:00
Matthias Viehweger 5741ae379b [rubygems/rubygems] Generalize description to account for different push servers
https://github.com/rubygems/rubygems/commit/cbf13edd3a
2022-04-29 17:19:19 +09:00
Matthias Viehweger 3cf107fde2 [rubygems/rubygems] Clarify description of owner-flags
https://github.com/rubygems/rubygems/commit/28864b1057
2022-04-29 17:19:18 +09:00
Hiroshi SHIBATA 1056489ea3 Merge 3f7d0352e8 2022-04-28 19:08:49 +09:00
Hiroshi SHIBATA 678d58c850 Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
David Rodríguez 479ba9a44b [rubygems/rubygems] All supported rubies have `File.realpath`
https://github.com/rubygems/rubygems/commit/c60ed4878c
2022-04-28 19:08:49 +09:00
David Rodríguez f4009566af [rubygems/rubygems] Add missing `open3` requires
https://github.com/rubygems/rubygems/commit/06ad654120
2022-04-28 19:08:49 +09:00
Hiroshi SHIBATA 6dc314ac6d Merge RubyGems/Bundler master
fe96fb6e2a
2022-04-28 19:08:49 +09:00
David Rodríguez 5250210aa9 [rubygems/rubygems] Fix missing required rubygems version when using old APIs
A while ago, we fixed resolution when using old dependency endpoints to
also consider metadata dependencies, by requesting the full gemspec from
the marsahaled index, which includes this information as opposed to
these old APIs. This has made resolution slower, but correct, but also
introduced the issue that some old marshaled gemspecs don't include the
`required_rubygems_version` field because they were created with a
RubyGems version that predates its addition.

Use a default value in this case.

https://github.com/rubygems/rubygems/commit/5dc94afcc0

Co-authored-by: Ilya Dudarenko <i.dudarenko@tinkoff.ru>
2022-04-28 15:44:02 +09:00
Charles Oliver Nutter cd2613b6a4 [ruby/net-http] Bump version to 0.2.1.pre1
https://github.com/ruby/net-http/commit/0017cc64c0
2022-04-28 05:56:26 +09:00