Commit graph

11330 commits

Author SHA1 Message Date
Burdette Lamar
1f1283b927 [ruby/logger] Update lib/logger.rb
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
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
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
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
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
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
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.

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.

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.

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]

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).

ef79789b83
2022-05-12 10:06:57 +09:00
Burdette Lamar
019169346a [ruby/fileutils] Update lib/fileutils.rb
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
a0ea474214
2022-05-12 04:11:50 +09:00
Peter Zhu
4da0f7a7f5 [ruby/rdoc] Fix dead link in RDoc::Markup
521c9ebd29
2022-05-12 02:54:14 +09:00
BurdetteLamar
becafe1efb [ruby/fileutils] Enhanced RDoc for FileUtils
c38fd02372
2022-05-11 23:00:04 +09:00
BurdetteLamar
dde9db64e0 [ruby/fileutils] Enhanced RDoc for FileUtils
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 565549260b and the
fix is to revert that commit.

bc18912257
2022-05-11 16:55:49 +09:00
David Rodríguez
00e5e827b1 [rubygems/rubygems] Cleanup old legacy code
531d6b5fee
2022-05-09 21:25:23 +09:00
Hiroshi SHIBATA
ecf32dbfc0 [ruby/net-http] Bump version to 0.2.2
992d07cb41
2022-05-09 18:20:31 +09:00
Hiroshi SHIBATA
e2c143abf4 [ruby/getoptlong] Fixup 39faa7b390
c8b3c0c00d
2022-05-09 07:26:29 +09:00
Dominik Bauernfeind
d79e0832a5 [rubygems/rubygems] Fix typo in documentation
800a973e00
2022-05-06 18:03:00 +09:00
nobuyo
7d6de74abe [rubygems/rubygems] Update man page for require option in bundle add command
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

20616ad34a
2022-05-05 19:09:49 +09:00
David Rodríguez
9d61c4519c [rubygems/rubygems] Also speed up the case when nothing changed
fa0ac74883
2022-05-04 06:45:16 +09:00
David Rodríguez
2cf4318645 [rubygems/rubygems] Make looping more concise with select
c43d5f979a
2022-05-04 06:45:15 +09:00
David Rodríguez
ba4ec45cf1 [rubygems/rubygems] Don't converge specs in frozen mode
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.

1544f2fb7b
2022-05-03 01:09:33 +09:00
Matthias Viehweger
5741ae379b [rubygems/rubygems] Generalize description to account for different push servers
cbf13edd3a
2022-04-29 17:19:19 +09:00
Matthias Viehweger
3cf107fde2 [rubygems/rubygems] Clarify description of owner-flags
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
c60ed4878c
2022-04-28 19:08:49 +09:00
David Rodríguez
f4009566af [rubygems/rubygems] Add missing open3 requires
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.

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
0017cc64c0
2022-04-28 05:56:26 +09:00
Kazuhiro NISHIYAMA
0bab4c4add
[DOC] Change URLs from git.io
see https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-27 10:13:23 +09:00
Kaíque Kandy Koga
bdb7345ce9 Use compiled instead of complied
Capitalize creates
2022-04-26 12:38:51 -07:00
Kazuhiro NISHIYAMA
392c952ab2 [ruby/rdoc] Fix a typo [ci skip]
b42c4a2fe2
2022-04-25 10:14:55 +09:00
Kazuhiro NISHIYAMA
e142bea799 Remove unnecessary sort
Because `Dir.[]` returns the sorted results since Ruby 3.0.
2022-04-23 11:59:20 +09:00
Peter Zhu
eab354e17b [ruby/uri] Include RFC2396_REGEXP module directly
REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include
REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo.

ed6ded9c80
2022-04-22 12:00:14 +09:00
OKURA Masafumi
c94f964e3f [ruby/uri] Feat: Support WSS
There was a file for WSS so I added one line of `require_relative`
to make it work.
Now `URI.parse('wss://example.com')` returns `URI::WS`.

ff8a103564
2022-04-22 11:59:54 +09:00
Karol Bucek
cf73cf5981 [ruby/net-http] Feature detect to make net/http usable with JRuby
Handle missing session_new_cb= and do not call
session_cache_mode=, as JRuby SSL does not support
these methods.

3237ef4d8c
2022-04-20 13:01:08 +09:00
Jeremy Evans
90ccc5674a [ruby/net-http] Add ignore_eof access to HTTP and HTTPResponse
The ignore_eof setting on HTTPResponse makes it so an EOFError is
raised when reading bodies with a defined Content-Length, if the
body read was truncated due to the socket be closed.

The ignore_eof setting on HTTP sets the values used in responses
that are created by the object.

For backwards compatibility, the default is for both settings is
true.  However, unless you are specifically tested for and handling
truncated responses, it's a good idea to set ignore_eof to false so
that errors are raised for truncated responses, instead of those
errors silently being ignored.

Fixes [Bug #14972]

4d47e34995
2022-04-20 10:22:06 +09:00
David Rodríguez
e5a852b912 [ruby/tsort] Small tweaks for easier vendoring
Bundler vendors this file and we have some tools to automatically
prepend the `Bundler::` namespace so that the vendored version does not
collide with the stdlib version.

However, due to how methods are defined, it's hard for our vendoring
tool to do the right thing.

I think this makes the code simpler and things easier for us too.

7088a7c814
2022-04-18 09:40:07 +09:00
David Rodríguez
9a20bcd5c8 [rubygems/rubygems] I don't think this is necessary
836f3e5aa5
2022-04-16 22:58:34 +09:00
BurdetteLamar
723debc9a9 [ruby/set] Repair format for What's Here
292baacb60
2022-04-16 15:34:34 +09:00
Bobby McDonald
ccb0572ff9 [rubygems/rubygems] Add modern rubies to the platforms
5462322f8f
2022-04-16 08:23:21 +09:00