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

9861 Коммитов

Автор SHA1 Сообщение Дата
David Rodriguez 7b821bc9b5
[rubygems/rubygems] Add missing requires
These methods rescue a constant defined by `rubygems/remote_fetcher`,
so they should technically require it.

The require is provided by `gem_remote_fetcher` anyways but I was
running a unit spec that stubs that method, so I was getting an
undefined constant error hiding another error.

https://github.com/rubygems/rubygems/commit/8bedae4034
2021-10-25 20:48:50 +09:00
David Rodriguez 9b1b171866
[rubygems/rubygems] Use `Gem::Specification#file_name` consistently
https://github.com/rubygems/rubygems/commit/13b933f49a
2021-10-25 20:48:50 +09:00
David Rodriguez 38542cfffc
[rubygems/rubygems] Extract a `default_cache_path` helper
https://github.com/rubygems/rubygems/commit/8319305d58
2021-10-25 20:48:50 +09:00
David Rodriguez edc1813190
[rubygems/rubygems] Small refactor
Extract final cache path to a variable and pass that to `download_gem`.
It actually fits better the parameters documentation since it's the
final directory where the downloaded gem will be placed.

https://github.com/rubygems/rubygems/commit/1429db6a04
2021-10-25 20:48:50 +09:00
Jean Boussier 5af3f7f357
[rubygems/rubygems] Vendor a pure ruby implementation of SHA1
This allows `Source::Git` to no longer load the `digest` gem as it is causing
issues on Ruby 3.1.

https://github.com/rubygems/rubygems/pull/4989/commits/c19a9f2ff7
2021-10-25 20:24:32 +09:00
Daniel Colson 7394514bde [rubygems/rubygems] Simplify and remove some unused code
When `install_with_build_args` was added in
be96283985,
there were two versions of the method: the default version in the base class that still
used the locking `with_build_args`, and an override in the `Future`
class (for Rubygems 2.0 and up) that yielded without calling
`with_build_args`.

The `with_build_args` version of the method was removed in
8a5b71e3e8
while removing a bunch of the old Rubygems compatibility code.

This commit removes `with_build_args`, since it no longer appears to be
used (the build args are passed as a keyword argument to
`spec.source.install` instead, since
be96283985).

The commit also removes `install_with_build_args` and the conditional
around it, since the method wasn't doing anything different than
`install`, and it had a comment that was no longer accurate.

https://github.com/rubygems/rubygems/commit/ba543a60eb
2021-10-25 19:02:50 +09:00
rm155 ee948fc1b4 [ruby/csv] Add support for Ractor (https://github.com/ruby/csv/pull/218)
https://github.com/ruby/csv/commit/a802690e11
2021-10-24 05:57:33 +09:00
Sutou Kouhei 274882be62 [ruby/csv] Use test-unit gem instead of test-framework of ruby repo
https://github.com/ruby/csv/commit/9c4add0d31
2021-10-24 05:57:33 +09:00
Anthony Hernandez 8fde54a3b5 [ruby/csv] CSV(): Add support for Ruby 3 (https://github.com/ruby/csv/pull/215)
The implementation of the `CSV` shortcut method is broken in Ruby 3
for calls that look like this:

```ruby
CSV(write_stream, col_sep: "|", headers: headers, write_headers: true) do |csv|
  ...
end
```

The above will result in the following error when the `CSV` method attempts to pass
on arguments to `CSV#instance`:

```
ArgumentError: wrong number of arguments (given 2, expected 0..1)
```

The issue is due to the changes in Ruby 3 relating to positional & keyword arguments.

This commit updates the `CSV()` shortcut implementation to work with Ruby 3, and also
updates the documentation for the shortcut method.

https://github.com/ruby/csv/commit/310dee45fa
2021-10-24 05:57:33 +09:00
Kenta Murata 1073975013 [ruby/csv] CI: Stop coverage mesurement
https://github.com/ruby/csv/commit/5ff3b95018
2021-10-24 05:57:33 +09:00
Sutou Kouhei 8ba98f83b0 [ruby/csv] Use "\n" for the default row separator on Ruby 3.0 or later
https://github.com/ruby/csv/commit/1f9cbc170e
2021-10-24 05:57:33 +09:00
Joakim Antman 7f3dd601c8 [ruby/csv] Changed line ending handling to consider the combination \r\n as a single entry when row is faulty (https://github.com/ruby/csv/pull/220)
https://github.com/ruby/csv/commit/29cef9ea9d
2021-10-24 05:57:33 +09:00
Sutou Kouhei 39ecdabe67 [ruby/csv] Resolve CSV::Converters and HeaderConverters lazy
It's for Ractor. If you want to use the built-in converters, you
should call Ractor.make_shareable(CSV::Converters) and/or
Ractor.make_shareable(CSV::HeaderConverters).

https://github.com/ruby/csv/commit/b0b1325d6b
2021-10-24 05:57:33 +09:00
Vince 8aaa1c279f [ruby/csv] doc: Match text to the struct name (https://github.com/ruby/csv/pull/217)
https://github.com/ruby/csv/commit/744e41130c
2021-10-24 05:57:33 +09:00
Sutou Kouhei e40baca33d [ruby/csv] Bump version
https://github.com/ruby/csv/commit/3025070cea
2021-10-24 05:57:33 +09:00
Yuki Nishijima e353bcd111 Sync did_you_mean 2021-10-22 21:56:26 -04:00
Yuki Nishijima 66df18c55e Sync did_you_mean again 2021-10-22 21:00:23 -04:00
Yuki Nishijima 22249bbb37 Revert "Sync did_you_mean"
This reverts commit e22d293e06.
2021-10-22 20:56:26 -04:00
Yuki Nishijima e22d293e06 Sync did_you_mean 2021-10-22 20:35:40 -04:00
rm155 d09cb64ae5 [ruby/mutex_m] Make VERSION shareable
https://github.com/ruby/mutex_m/commit/a839e29d04
2021-10-22 19:49:34 +09:00
Tiago 553f234a07 [ruby/uri] URI#HTTP#origin and URI#HTTP#authority (https://github.com/ruby/uri/pull/30)
https://github.com/ruby/uri/commit/bf13946c32

Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
2021-10-22 19:48:36 +09:00
Olle Jonsson c8ad024e8e [ruby/delegate] gemspec: Drop unused executables directives
https://github.com/ruby/delegate/commit/81a3c32140
2021-10-22 19:48:22 +09:00
Justin Searls d0cad8ad83 [rubygems/rubygems] Re-enable `default_ignores` option for standard
I am not sure why this flag was turned off (it wasn't explained in my commit message in 0365dc852767ae589376a7aad1fb129738e408b0 or in my PR in #4411). 

Whatever the reason, without `default_ignores` turned on, most default CI configurations will immediately fail, as they most likely vendor and cache their dependencies under `vendor`, which will cause standard to run against all the vendored gems and (most likely) fail. I think we should remove this before this feature is released.

https://github.com/rubygems/rubygems/commit/677f74be48
2021-10-22 03:33:44 +09:00
Hiroshi SHIBATA eac7a71062 [ruby/prettyprint] Bump up prettyprint version to 0.1.1
https://github.com/ruby/prettyprint/commit/0e8eee5f5f
2021-10-21 21:05:39 +09:00
Hiroshi SHIBATA ba3c2593ab [ruby/pp] Bump up pp version to 0.2.1
https://github.com/ruby/pp/commit/06b839b9ca
2021-10-21 21:04:14 +09:00
Hiroshi SHIBATA 9f398d023b [ruby/securerandom] Bump up securerandom version to 0.1.1
https://github.com/ruby/securerandom/commit/5f9d3d1dfa
2021-10-21 21:03:08 +09:00
Hiroshi SHIBATA aca0dcc5f9 [ruby/rinda] Bump up rinda version to 0.1.1
https://github.com/ruby/rinda/commit/d394ba107e
2021-10-21 21:02:37 +09:00
Hiroshi SHIBATA b8d49d0d01 [ruby/optparse] Bump up optparse version to 0.2.0
https://github.com/ruby/optparse/commit/1226b670e6
2021-10-21 21:01:34 +09:00
Hiroshi SHIBATA cb4c98f949 [ruby/net-http] Bump up net-http version to 0.2.0
https://github.com/ruby/net-http/commit/f3e65e2a31
2021-10-21 21:01:06 +09:00
Hiroshi SHIBATA cc2f76041d [ruby/net-protocol] Bump up net-protocol version to 0.1.2
https://github.com/ruby/net-protocol/commit/088e52609a
2021-10-21 21:00:53 +09:00
Hiroshi SHIBATA 8ef125c838 [ruby/uri] Bump up uri version to 0.11.0
https://github.com/ruby/uri/commit/1619f713e6
2021-10-21 21:00:04 +09:00
Hiroshi SHIBATA 422b057d65 [ruby/ostruct] Bump up ostruct version to 0.5.0
https://github.com/ruby/ostruct/commit/c535a406f8
2021-10-21 20:54:33 +09:00
Hiroshi SHIBATA 6b08aaf228 [ruby/fileutils] Bump up fileutils version to 1.6.0
https://github.com/ruby/fileutils/commit/918d19e4f2
2021-10-21 20:14:57 +09:00
Hiroshi SHIBATA 6b1efc54c8 [ruby/racc] Bump up racc version to 1.6.0
https://github.com/ruby/racc/commit/0c5fe2637c
2021-10-19 21:13:29 +09:00
Hiroshi SHIBATA de68de87ea [ruby/logger] Bump up logger version to 1.4.4
https://github.com/ruby/logger/commit/82a59c8d3f
2021-10-19 21:08:48 +09:00
Hiroshi SHIBATA a7d07ee90d [ruby/tempfile] Bump up tempfile version to 0.1.2
https://github.com/ruby/tempfile/commit/e5ec902256
2021-10-19 20:55:55 +09:00
Mike Dalessio 4ffc3fb019 [ruby/rdoc] fix: alias to method with call-seq
This change fixes alias call-seq to return nil if the method's
call-seq does not specify the alias.

Previously, the alias's call-seq would be an empty string in this case
which broke darkfish rendering.

This change also backfills test coverage for 0ead786 which moved
call-seq deduplication into AnyMethod.

https://github.com/ruby/rdoc/commit/5ce2789b6f
2021-10-16 06:31:11 +09:00
Mike Dalessio 4c42540da2 [ruby/rdoc] Support linking #==
See related commits:

- ebc66662 for #===
- 4943d208 for #[], #[]=, #<<, and #>>

https://github.com/ruby/rdoc/commit/8e47f7840a
2021-10-16 01:40:47 +09:00
Mike Dalessio 7aec65add4 [ruby/rdoc] feat: add support for :category: on C functions
https://github.com/ruby/rdoc/commit/45c92005fe
2021-10-16 01:39:36 +09:00
Mike Dalessio fbd0516afc [ruby/rdoc] fix: comments in C files use the global markup option
Previously, Parser::C comments all defaulted to "rdoc" format, even
when the user had set a different default with the `--markup=<choice>`
option.

https://github.com/ruby/rdoc/commit/4643b08a26
2021-10-16 01:39:06 +09:00
Mike Dalessio d4894e81c0 [ruby/rdoc] extract Comment creation in Parser::C
This is a prefactor for fixing comment format handling.

https://github.com/ruby/rdoc/commit/a3d366feed
2021-10-16 01:39:05 +09:00
Nobuyoshi Nakada 19beb028e7
Make explicit opening files 2021-10-15 19:59:14 +09:00
Jack Schuss 46291a29fb [rubygems/rubygems] Update broken link in Bundler::Fetcher::CertificateFailureError
https://github.com/rubygems/rubygems/commit/11b5d479cb
2021-10-15 04:55:23 +09:00
Hiroshi SHIBATA befb37c2c4
[ruby/drb] Bump up drb version to 2.1.0
https://github.com/ruby/drb/commit/e4b7b68d67
2021-10-14 21:14:35 +09:00
Hiroshi SHIBATA 20bd9e7c61
[ruby/drb] Bump up drb version to 2.0.5
https://github.com/ruby/drb/commit/7edf67654c
2021-10-14 21:14:35 +09:00
Hiroshi SHIBATA e6b3eab1b7
[ruby/time] Bump up time version to 0.2.0
https://github.com/ruby/time/commit/b9dd593b23
2021-10-14 21:14:35 +09:00
Hiroshi SHIBATA 9c96bcf07d
[ruby/open-uri] Bump up open-uri version to 0.2.0
https://github.com/ruby/open-uri/commit/ec4275a1eb
2021-10-14 21:14:34 +09:00
Hiroshi SHIBATA d13c6c56dd [ruby/base64] Bump up base64 version to 0.1.1
https://github.com/ruby/base64/commit/b9e23b27f9
2021-10-14 20:41:15 +09:00
Hiroshi SHIBATA b6e5264783 [ruby/find] Bump up find version to 0.1.1
https://github.com/ruby/find/commit/90c35c477a
2021-10-14 20:26:15 +09:00
Hiroshi SHIBATA 9ed1250402
[ruby/yaml] Bump up yaml version to 0.2.0
https://github.com/ruby/yaml/commit/cef5360823
2021-10-14 20:16:04 +09:00
Hiroshi SHIBATA 2c75fc915e [ruby/timeout] Bump up timeout version to 0.2.0
https://github.com/ruby/timeout/commit/02e792ddd8
2021-10-14 20:12:29 +09:00
Hiroshi SHIBATA 6f67a78ad6
[ruby/cgi] Bump up cgi version to 0.3.0
https://github.com/ruby/cgi/commit/95324433b4
2021-10-14 20:09:41 +09:00
Hiroshi SHIBATA caf34400c0
[ruby/benchmark] Bump up benchamark version to 0.2.0
https://github.com/ruby/benchmark/commit/eea1657fa2
2021-10-14 20:09:41 +09:00
David Rodríguez fa12e3e2f7 [ruby/fileutils] Remove counterproductive optimization
I think it's debatable which is the most common usage of
`FileUtils.mkdir_p`, but even assuming the most common use case is
creating a folder when it doesn't previously exist but the parent does,
this optimization doesn't seem to have a noticiable effect there while
harming other use cases.

For benchmarks, I created this script

```ruby
require "benchmark/ips"

Benchmark.ips do |x|
  x.report("old mkdir_p - exists") do
    FileUtils.mkdir_p "/tmp"
  end

  x.report("new_mkdir_p - exists") do
    FileUtils.mkdir_p_new "/tmp"
  end

  x.compare!
end

FileUtils.rm_rf "/tmp/foo"

Benchmark.ips do |x|
  x.report("old mkdir_p - doesnt exist, parent exists") do
    FileUtils.mkdir_p "/tmp/foo"
    FileUtils.rm_rf "/tmp/foo"
  end

  x.report("new_mkdir_p - doesnt exist, parent exists") do
    FileUtils.mkdir_p_new "/tmp/foo"
    FileUtils.rm_rf "/tmp/foo"
  end

  x.compare!
end

Benchmark.ips do |x|
  x.report("old mkdir_p - doesnt exist, parent either") do
    FileUtils.mkdir_p "/tmp/foo/bar"
    FileUtils.rm_rf "/tmp/foo"
  end

  x.report("new_mkdir_p - doesnt exist, parent either") do
    FileUtils.mkdir_p_new "/tmp/foo/bar"
    FileUtils.rm_rf "/tmp/foo"
  end

  x.compare!
end

Benchmark.ips do |x|
  x.report("old mkdir_p - more levels") do
    FileUtils.mkdir_p "/tmp/foo/bar/baz"
    FileUtils.rm_rf "/tmp/foo"
  end

  x.report("new_mkdir_p - more levels") do
    FileUtils.mkdir_p_new "/tmp/foo/bar/baz"
    FileUtils.rm_rf "/tmp/foo"
  end

  x.compare!
end
```

and copied the method with the "optimization" removed as
`FileUtils.mkdir_p_new`. The results are as below:

```
Warming up --------------------------------------
old mkdir_p - exists    15.914k i/100ms
new_mkdir_p - exists    46.512k i/100ms
Calculating -------------------------------------
old mkdir_p - exists    161.461k (± 3.2%) i/s -    811.614k in   5.032315s
new_mkdir_p - exists    468.192k (± 2.9%) i/s -      2.372M in   5.071225s

Comparison:
new_mkdir_p - exists:   468192.1 i/s
old mkdir_p - exists:   161461.0 i/s - 2.90x  (± 0.00) slower

Warming up --------------------------------------
old mkdir_p - doesnt exist, parent exists
                         2.142k i/100ms
new_mkdir_p - doesnt exist, parent exists
                         1.961k i/100ms
Calculating -------------------------------------
old mkdir_p - doesnt exist, parent exists
                         21.242k (± 6.7%) i/s -    107.100k in   5.069206s
new_mkdir_p - doesnt exist, parent exists
                         19.682k (± 4.2%) i/s -    100.011k in   5.091961s

Comparison:
old mkdir_p - doesnt exist, parent exists:    21241.7 i/s
new_mkdir_p - doesnt exist, parent exists:    19681.7 i/s - same-ish: difference falls within error

Warming up --------------------------------------
old mkdir_p - doesnt exist, parent either
                       945.000  i/100ms
new_mkdir_p - doesnt exist, parent either
                         1.002k i/100ms
Calculating -------------------------------------
old mkdir_p - doesnt exist, parent either
                          9.689k (± 4.4%) i/s -     49.140k in   5.084342s
new_mkdir_p - doesnt exist, parent either
                         10.806k (± 4.6%) i/s -     54.108k in   5.020714s

Comparison:
new_mkdir_p - doesnt exist, parent either:    10806.3 i/s
old mkdir_p - doesnt exist, parent either:     9689.3 i/s - 1.12x  (± 0.00) slower

Warming up --------------------------------------
old mkdir_p - more levels
                       702.000  i/100ms
new_mkdir_p - more levels
                       775.000  i/100ms
Calculating -------------------------------------
old mkdir_p - more levels
                          7.046k (± 3.5%) i/s -     35.802k in   5.087548s
new_mkdir_p - more levels
                          7.685k (± 5.5%) i/s -     38.750k in   5.061351s

Comparison:
new_mkdir_p - more levels:     7685.1 i/s
old mkdir_p - more levels:     7046.4 i/s - same-ish: difference falls within error
```

I think it's better to keep the code simpler is the optimization is not
so clear like in this case.

https://github.com/ruby/fileutils/commit/e842a0e70e
2021-10-14 09:12:16 +09:00
David Rodríguez d8d97872a1 [ruby/fileutils] Simplify loop to find out segments to be created
Doing it this way is simpler and it doesn't end up adding "/" to the
list of folders, so it doesn't need to be removed later.

https://github.com/ruby/fileutils/commit/df08e124ce
2021-10-14 09:12:15 +09:00
David Rodríguez 058cd3a6df [rubygems/rubygems] Remove unnecessary method
https://github.com/rubygems/rubygems/commit/97241e0ea4
2021-10-13 23:30:13 +09:00
David Rodríguez 621fe09016 [rubygems/rubygems] Reuse `sh` helper for `git push` too
https://github.com/rubygems/rubygems/commit/32aa540163
2021-10-13 23:30:13 +09:00
David Rodríguez df21600b98 [rubygems/rubygems] Simplify some code
This method always receives an array, and we require `shellwords`
unconditionally at the top of the file, so `shelljoin` will always be
available.

https://github.com/rubygems/rubygems/commit/05c8ac641d
2021-10-13 23:30:12 +09:00
David Rodríguez e97c671b3a [rubygems/rubygems] Reuse `sh` helper
https://github.com/rubygems/rubygems/commit/c218d4d79e
2021-10-13 23:30:12 +09:00
David Rodríguez 30b6df4144 [rubygems/rubygems] Improve error messages in gem helpers
Previously they were printing the original command that was run, and
telling the user to rerun it. However, the command sometimes would not
match the exact command that was run (for example, when using the
`--local` flag), and in any case, it's simpler and more useful to print
the underlying error anyways.

https://github.com/rubygems/rubygems/commit/5bc0d51b58
2021-10-13 23:30:11 +09:00
David Rodríguez 853004e04d [rubygems/rubygems] Fix `bundle install` crash due to an incorrectly incomplete resolve
In case we have a corrupted lockfile that claims to support a platform, but
it's missing platform specific gems for it, bundler has a check that
detects the situation and forces a re-resolve. The result of this check
is kept under the `@locked_specs_incomplete_for_platformn` instance
variable in `Definition`.

The installer, however, calls `Definition#nothing_changed?` before this
instance variable has been filled, so the result of it is actually
incorrect here since it will claim that nothing has changed, but
something has changed (locked specs are incomplete for the current
platform).

The consequence of this incorrect result is that the installer thinks it
can go on without re-resolving, resulting in the incomplete resolution
from the lockfile being used, and in a crash being triggered due to
that.

The solution is to make sure the `@locked_specs_incomplete_for_platform`
instance variable is filled before `nothing_changed?` gets called.
Moving it to `initialize` makes the most sense, not because it's the
best place for it (we can refactor this later), but because all of the
other "outdated definition" checks are already set there.

https://github.com/rubygems/rubygems/commit/708afdd789
2021-10-13 21:16:40 +09:00
David Rodríguez d1e6f2226b [rubygems/rubygems] No need to use converged dependencies either
This is exclusively about the lockfile.

https://github.com/rubygems/rubygems/commit/d6c6d040cd
2021-10-13 21:16:40 +09:00
David Rodríguez ec5f732b7d [rubygems/rubygems] Extract `locked_dependencies` helper
https://github.com/rubygems/rubygems/commit/7326d47530
2021-10-13 21:16:39 +09:00
David Rodríguez 15f50d3bed [rubygems/rubygems] Simplify the incomplete locked specs for platform check
It doesn't really need converged specs, since it's only about the
lockfile.

https://github.com/rubygems/rubygems/commit/9cd6224b5e
2021-10-13 21:16:39 +09:00
David Rodriguez 0f1f95a3e3 [rubygems/rubygems] Fix `bundle install` to force reinstallation of deleted gems
https://github.com/rubygems/rubygems/commit/8950631f02
2021-10-13 16:21:42 +09:00
David Rodríguez bd87397f73 [rubygems/rubygems] Use correct way to detect default gems
The other way, in particular matching a substring in the gemspec
summary, is brittle and no longer used since Ruby 2.0.

This needed rewriting the specs that depended on that way.

https://github.com/rubygems/rubygems/commit/059dbfa971
2021-10-13 16:21:42 +09:00
David Rodríguez d6627ab85c [rubygems/rubygems] Remove unnecessary code
All supported rubygems versions implement this.

https://github.com/rubygems/rubygems/commit/2130782ef6
2021-10-13 16:21:41 +09:00
Kaíque Kandy Koga 5c646ca0a0 [ruby/irb] Ignore parenthesis during completion
Rename method

https://github.com/ruby/irb/commit/619aecb412
2021-10-13 06:33:48 +09:00
Nobuyoshi Nakada 013bac15b0
Fix libraries under digest 2021-10-12 22:32:42 +09:00
Akinori MUSHA 58ae1efb49
[ruby/digest] Avoid the constant redefinition warning
The gem and bundle commands first load digest via openssl, so loading
the digest gem would cause this warning every time one of these
commands is run:

```
.../lib/ruby/gems/3.0.0/gems/digest-3.1.0/lib/digest.rb:11: warning: already initialized constant Digest::REQUIRE_MUTEX
.../lib/ruby/3.0.0/digest.rb:7: warning: previous definition of REQUIRE_MUTEX was here
```

https://github.com/ruby/digest/commit/16172612d5
2021-10-12 20:53:18 +09:00
Akinori MUSHA b245b67d9e
[ruby/digest] Place common parts in lib and engine specific parts under ext/**/lib
https://github.com/ruby/digest/commit/8d7496c3be
2021-10-12 20:53:16 +09:00
Nobuyoshi Nakada a48dc89547 [ruby/reline] Check the result of GetConsoleScreenBufferInfo
https://github.com/ruby/reline/commit/42edf7b3aa
2021-10-12 13:19:25 +09:00
Nobuyoshi Nakada 1009fd7ee3 [ruby/reline] Revert "Fix zero division when the screen width is not available"
This reverts commit 0dce9da083541f42c31822a91c72f339934c3986.

https://github.com/ruby/reline/commit/f71471cdde
2021-10-12 13:19:24 +09:00
Nobuyoshi Nakada 60689f0f20 [ruby/reline] Fix zero division when the screen width is not available
https://github.com/ruby/reline/commit/0dce9da083
2021-10-12 00:40:22 +09:00
aycabta e212d051d0 [ruby/reline] Rescue LoadError to require 'fiddle'
https://github.com/ruby/reline/commit/fe504bb6b9
2021-10-11 21:34:31 +09:00
aycabta 89556a6555 [ruby/reline] Remove a comment for debug
https://github.com/ruby/reline/commit/5f3ccda3d5
2021-10-11 21:17:02 +09:00
aycabta 4b024234b2 [ruby/rdoc] Update SourceCodePro font files
https://github.com/ruby/rdoc/commit/d3201d0d47
2021-10-11 21:15:07 +09:00
aycabta 7732052718 [ruby/irb] Add help about extra doc dir option
https://github.com/ruby/irb/commit/5018f2cb99
2021-10-11 21:12:58 +09:00
aycabta 866a09dd9e [ruby/irb] Add --extra-doc-dir option to show doc dialog
https://github.com/ruby/irb/commit/3f79cb506f
2021-10-11 21:12:57 +09:00
aycabta dcaaf79ca0 [ruby/irb] Add periods to doc
https://github.com/ruby/irb/commit/6330601629
2021-10-11 20:34:18 +09:00
David Rodriguez 0c3ac87345 [rubygems/rubygems] Show a warning in `bundle info` if gem has been deleted
https://github.com/rubygems/rubygems/commit/ff86cd7dd2
2021-10-11 19:13:16 +09:00
David Rodriguez 607efe9154 [rubygems/rubygems] Show the exact name of the gem that was deleted
If a non exact name (matched as a regexp) is passed to `bundle info`,
these strings might not match.

https://github.com/rubygems/rubygems/commit/831edf1edf
2021-10-11 19:13:15 +09:00
aycabta 6f41cab704 [ruby/reline] Suppress warning, "instance variable @ambiguous_width not initialized"
https://github.com/ruby/reline/commit/368f7e2f78
2021-10-11 16:24:45 +09:00
aycabta 340fabca2c [ruby/irb] Set default return_format
https://github.com/ruby/irb/commit/7ee15bc668
2021-10-11 15:39:48 +09:00
Takashi Kokubun cf74755921 [ruby/irb] Revert "Optimize show_source command further"
This reverts commit 27dd2867cda5c789efaa5078214ad2fd82adcebf.

This is to fix the test I added.

(I separated commits to test a new behavior of ruby-commit-hook)

https://github.com/ruby/irb/commit/fe055d521a
2021-10-10 23:23:18 -07:00
Jeremy Evans 391d6ab4f7
[ruby/ipaddr] Fix include? and ipv4_mapped to allow drb tests to pass
include? should return false if comparing an IPv4 address to an IPv6
address.

ipv4_mapped needs to set the correct netmask on the mapped
addresses.

https://github.com/ruby/ipaddr/commit/da22ef8e6c
2021-10-11 13:50:54 +09:00
Jeremy Evans 9a321dd9b2
[ruby/ipaddr] Make IPAddr#include? consider range of argument
It would be nice to use Range#cover? here, but it doesn't work
correctly before Ruby 2.6. Switch to manual checks of the beginning
of end of the ranges.

Fixes Ruby Bug 14119

https://github.com/ruby/ipaddr/commit/f45630da31
2021-10-11 13:50:54 +09:00
David Rodriguez e0c20485db [ruby/rubygems] Prefer `require_relative` for internal requires
https://github.com/rubygems/rubygems/commit/51796f257a
2021-10-11 01:12:50 +09:00
David Rodríguez 6c39a272af [ruby/rubygems] We no longer need to check realpaths
Since symlinks and absolute paths are already checked.

https://github.com/rubygems/rubygems/commit/de19bc4c7e
2021-10-10 23:12:57 +09:00
David Rodríguez bbcf8f87ac [ruby/rubygems] Check safety of packaged symlinks
If we explicitly disallow the creation of symlinks that point to files
outside of the destination directory, we can avoid any other safety
checks while creating directories, because we can be sure they will
always fall under the destination directory as well.

https://github.com/rubygems/rubygems/commit/555692b8de
2021-10-10 23:12:47 +09:00
David Rodríguez a5289bfa71 [ruby/rubygems] Install location safety should consider casing
https://github.com/rubygems/rubygems/commit/0a0ad34af3
2021-10-10 23:12:38 +09:00
David Rodríguez 6c878731c1 [ruby/rubygems] Remove redundant `File.expand_path`
`File.realpath` already expands paths.

https://github.com/rubygems/rubygems/commit/25524ebbeb
2021-10-10 23:12:28 +09:00
David Rodríguez 59c24f054e [ruby/rubygems] Simplify `File.expand_path` usage
https://github.com/rubygems/rubygems/commit/02e3cf44bf
2021-10-10 23:12:10 +09:00
David Rodríguez 11720818f6 [ruby/rubygems] Don't make duplicated checks on directory safety
This seems to speed up `gem install` on Windows by more than 50%.

https://github.com/rubygems/rubygems/commit/1970b1296d
2021-10-10 23:12:03 +09:00
Nobuyoshi Nakada b16d876ac2
Needs time.rb for `Time#iso8601`
`Gem::Request.verify_certificate_message` used this method without
"time" which defines it.
2021-10-10 21:11:55 +09:00
aycabta 5805b1472a [ruby/irb] Version 1.3.8.pre.11
https://github.com/ruby/irb/commit/49b9f644c2
2021-10-09 23:29:29 +09:00
aycabta 98d9a7e435 [ruby/irb] Update dependency, reline >= 0.2.8.pre.11
https://github.com/ruby/irb/commit/4f686afbca
2021-10-09 23:29:24 +09:00
aycabta 56140bc7af [ruby/reline] Version 0.2.8.pre.11
https://github.com/ruby/reline/commit/de858ee1ac
2021-10-09 23:27:40 +09:00
aycabta 9cb7ba2f21 [ruby/reline] Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbar
The setting to use '::' instead of block elements.

https://github.com/ruby/reline/commit/4afbc98e2c
2021-10-09 23:23:02 +09:00
aycabta e6ba2953e9 [ruby/reline] Fix calculating dialog width with full-width scrollbar
https://github.com/ruby/reline/commit/93bc9b5277
2021-10-09 23:22:57 +09:00
OKURA Masafumi 7e506716d2
Newly generated gems require Ruby 2.6.0
In 2021, Ruby 2.5 and older are EOL.
We can set the default required Ruby version to 2.6.0 to
encourage people to use newer Ruby.
If the command is executed with old Ruby, it falls back to 2.3.0.
It's still possible to create a gem for older Ruby just by changing
two lines of code (one in gemspec and another is in rubocop.yml).
2021-10-09 09:07:47 +09:00
Masataka Pocke Kuwabara d03d122ba1 [rubygems/rubygems] Improve performance of Specification#missing_extensions?
https://github.com/rubygems/rubygems/commit/90c1919f94
2021-10-09 08:04:08 +09:00
gabriele renzi ad92651d64 [rubygems/rubygems] Add glob infomation to Bundler::Source::Git#to_s
The glob information was not specified in the string representation for
a source, which led to non-deterministic behaviour when generating the
lockfile, since sources are sorted by this value.

https://github.com/rubygems/rubygems/commit/493b880abc
2021-10-09 08:03:43 +09:00
aycabta ded5a66cb9 [ruby/reline] Use alternate text for scrollbar in non-UTF-8 env
https://github.com/ruby/reline/commit/69e365edcc
2021-10-08 18:48:44 +09:00
Jeremy Evans 55d7f63bde [ruby/reline] Better fix for non-UTF-8 default external encoding
Previous fix didn't show the cursor or dialogs.  This allows the
dialogs to continue to work.

https://github.com/ruby/reline/commit/651c5f63cc
2021-10-08 10:38:47 +09:00
Jeremy Evans eb4682b3c6 [ruby/reline] Only show dialogs if default external encoding is UTF-8
Fixes a crash in IRB if a dialog is displayed and the default
external encoding is not UTF-8:

/home/jeremy/tmp/reline/lib/reline/line_editor.rb:731:in `write': U+2588 from UTF-8 to US-ASCII (Encoding::UndefinedConversionError)

https://github.com/ruby/reline/commit/f570525ecd
2021-10-08 10:38:43 +09:00
aycabta 1507cb084c [ruby/irb] Determine left and right when the width of either side is zero correctly
https://github.com/ruby/irb/commit/5df6e1f027
2021-10-08 10:34:06 +09:00
aycabta 576eccf76d [ruby/irb] Calculate right side doc dialog width correctly
https://github.com/ruby/irb/commit/f34da7fa04
2021-10-08 10:33:56 +09:00
aycabta 374efa8e30 [ruby/irb] Specify whether to show the doc dialog on the left or right side by using variable names
https://github.com/ruby/irb/commit/a23a88b8c9
2021-10-08 10:33:47 +09:00
aycabta 5c02df8296 [ruby/irb] Display doc dialog in gaps on narrow screen
https://github.com/ruby/irb/commit/4d7cefcaa4
2021-10-08 10:33:39 +09:00
aycabta 374b15a84a [ruby/reline] Cut off the excess on narrow screen
https://github.com/ruby/reline/commit/972cc993ca
2021-10-08 10:33:22 +09:00
aycabta a2f55679f0 [ruby/reline] Rename DIALOG_HEIGHT with DIALOG_DEFAULT_HEIGHT
https://github.com/ruby/reline/commit/996bfec64b
2021-10-08 10:33:17 +09:00
Kaíque Kandy Koga 80e2242da6 [ruby/irb] Update descriptions of methods
From Reidline to Reline

Update description used in take_corresponding_syntax_to_kw_do and is_the_in_correspond_to_a_for methods

Use possessive noun correctly

Second element

https://github.com/ruby/irb/commit/4fa9714d6f
2021-10-07 23:55:54 +09:00
Jeremy Evans 896626fa02 [ruby/irb] Make IRB::Context#exit call super if UncaughtThrowError
Fixes calling exit after binding.irb.

Fixes [Bug #18234]

https://github.com/ruby/irb/commit/4ea8d376f2
2021-10-07 23:53:58 +09:00
Jeremy Evans bd6e1a0f08
[ruby/ipaddr] Support zone identifiers in IPv6 addresses
These are supported by Ruby's socket library if the operating system
supports zone indentifiers, so they should be supported by ipaddr.
See RFCs 4007 and 6874 for additional information.

Implements Ruby Feature #10911

https://github.com/ruby/ipaddr/commit/09a6408fb2
2021-10-07 18:22:43 +09:00
Bogdan Irimie 74ed881e10
[ruby/ipaddr] Add netmask method that returns net mask as string.
https://github.com/ruby/ipaddr/commit/283d16f3a3
2021-10-07 18:22:43 +09:00
Jeremy Evans abad5e10e8
[ruby/ipaddr] Disallow leading zeros in mask
https://github.com/ruby/ipaddr/commit/f49d2d49a4
2021-10-07 18:22:43 +09:00
Nobuyoshi Nakada 38da84296c
[ruby/ipaddr] Raise if extra slashes follow
https://bugs.ruby-lang.org/issues/15832

https://github.com/ruby/ipaddr/commit/de9805d6fa
2021-10-07 18:22:42 +09:00
Jeremy Evans 54ee22be53
[ruby/ipaddr] Avoid reraising exceptions
Instead of raising a new exception with a modified message, just
use the correct message to begin with.  This avoids the issue with
both exceptions being displayed at error exit.

https://github.com/ruby/ipaddr/commit/09edfd4a7f
2021-10-07 18:22:42 +09:00
Espartaco Palma b23fba91ae [ruby/ipaddr] Removing superfluos assingments & return
Also adding test for ntop

https://github.com/ruby/ipaddr/commit/0ba16cca10
2021-10-07 17:46:00 +09:00
aycabta f625645a37 [ruby/reline] The width of block elements is 1 on Windows
https://github.com/ruby/reline/commit/5f4a75c7a0
2021-10-05 22:33:07 +09:00
aycabta 6966c3ff44 [ruby/reline] Change struct size correctly
https://github.com/ruby/reline/commit/df2a1b4e08
2021-10-05 22:32:56 +09:00
Koichi Sasada ae1da7e1f7 remove lib/debug.rb 2021-10-05 02:07:33 +09:00
aycabta 31332cf469 [ruby/irb] Fix typo of variable
https://github.com/ruby/irb/commit/692eb9b9b5
2021-10-04 09:37:13 +09:00
aycabta 1e9714cf34 [ruby/reline] Use default background color to erase on Windows
https://github.com/ruby/reline/commit/852e855d82
2021-10-04 00:14:10 +09:00
Masataka Pocke Kuwabara 853ca5cceb [ruby/irb] Remove `require` in signal handler to avoid ThreadError
`rdoc` has been required so it looks unnecessary

https://github.com/ruby/irb/commit/5f749c613c
2021-10-03 21:51:54 +09:00
aycabta 64e96d6b41 [ruby/reline] Re-calc the scroll pos when the content in dialog is shortened
https://github.com/ruby/reline/commit/12ea63e6e0
2021-10-03 21:51:02 +09:00
aycabta 208b7b8199 [ruby/irb] Version 1.3.8.pre.10
https://github.com/ruby/irb/commit/15bcbbb284
2021-10-03 21:50:30 +09:00
aycabta a5c58e88de [ruby/irb] Update dependency, reline >= 0.2.8.pre.10
https://github.com/ruby/irb/commit/800e83eabd
2021-10-03 21:50:26 +09:00
aycabta 7f02cc50dd [ruby/reline] Version 0.2.8.pre.10
https://github.com/ruby/reline/commit/1c6c0c82f0
2021-10-03 21:48:12 +09:00
aycabta 6cb37d4136 [ruby/reline] Initialize @trap_key to suppress warning
https://github.com/ruby/reline/commit/b42c0980d9
2021-10-03 21:38:05 +09:00
aycabta bf4f3ef5ad [ruby/reline] Add a comment to use "private alias_method" idiom after drop Ruby 2.5
https://github.com/ruby/reline/commit/1b00cae0fd
2021-10-03 18:41:29 +09:00
Nobuyoshi Nakada ea64e742f5
Revert "mkmf.rb: try linking at try_var" [Bug #18235]
This reverts commit 524513be39,
which can return false positive by existing but unusable symbol,
including functions.
2021-10-03 18:23:39 +09:00
aycabta b91b3000bd [ruby/reline] Add code block notation in doc
https://github.com/ruby/reline/commit/b283791dc5
2021-10-03 15:31:47 +09:00
aycabta bc5407f00c [ruby/reline] Add doc for ed-unassigned and ed-insert macro
https://github.com/ruby/reline/commit/7fe9ecf945
2021-10-03 15:25:50 +09:00
aycabta 95522ef8b9 [ruby/reline] Rerender whole buffer when argument editing finished
If the argument prompt disappears when pasting is finished, rerender the
whole buffer.

https://github.com/ruby/reline/commit/996bbf8797
2021-10-03 14:53:13 +09:00
aycabta bf0a8a7462 [ruby/reline] Call LineEditor#resize on Windows
https://github.com/ruby/reline/commit/65b27dd2ff
2021-10-03 14:27:33 +09:00
TOMITA Masahiro ef350b3a56 [ruby/reline] Simplify SIGWINCH handler to avoid aborting when resizing.
https://github.com/ruby/reline/commit/481add0537
2021-10-03 14:26:53 +09:00
aycabta 4401bbe8a7 [ruby/reline] Use String#unpack1
https://github.com/ruby/reline/commit/179c52bca8
2021-10-03 14:08:55 +09:00
aycabta a2d2f00e4a [ruby/reline] Adjust border of scrollbar rendering calculation
https://github.com/ruby/reline/commit/737b23beae
2021-10-03 14:08:49 +09:00
aycabta 1d2edda9f8 [ruby/reline] The @block_elem_width shouldn't be used for height calculation
https://github.com/ruby/reline/commit/da35902d78
2021-10-03 14:08:45 +09:00
manga_osyo b8327fb8b1 [ruby/reline] Refactoring Reline::Key.match? and add test.
https://github.com/ruby/reline/commit/90e8999ae4
2021-10-02 19:58:41 +09:00
aycabta 5eb8b6d1bd [ruby/reline] Support ed_argument_digit by M+num
The vi mode can handle "argument number" before an operator or a motion,
such as, "3x" (equals "xxx"), and "3l" (equals "lll"). In the emacs
mode, GNU Readline can handle argument number with meta key, like
"Meta+3 x" (equals "xxx").

https://github.com/ruby/reline/commit/9183cc2e8b
2021-09-29 22:07:49 +09:00
Nobuyoshi Nakada 8bdaaeb99a [ruby/ostruct] Strip trailing spaces
https://github.com/ruby/ostruct/commit/df1109c18f
2021-09-28 20:01:35 +09:00
Ellen Marie Dash fcaa918445 [rubygems/rubygems] Only disallow FIXME/TODO for first word of gemspec description
7890c98 matched the start of each line, whereas this matches the start
of the entire string.

https://github.com/rubygems/rubygems/commit/432de7b819
2021-09-28 17:43:42 +09:00
David Rodríguez 6874d4f116 [rubygems/rubygems] Add missing `rubygem_push` prerequisite
Just like all the other tasks using the `built_gem_path`, the `:build`
task is a prerequisite for this task too.

https://github.com/rubygems/rubygems/commit/d193f9a7f9
2021-09-28 17:43:05 +09:00
Kazuki Tsujimoto f360ebb306 [ruby/set] Make Set#pretty_print IRB::ColorPrinter friendly
https://github.com/ruby/set/commit/f467028cdb
2021-09-28 17:37:41 +09:00
Kazuhiro NISHIYAMA a6459081bc
[ruby/un] Bump version to 0.2.0
https://github.com/ruby/un/commit/104bc10c57
2021-09-28 17:36:41 +09:00
Hiroshi SHIBATA af68070068 [ruby/drb] 6d890ec5979ec72586dd5f66dd8d33f7a9aefd1e was introduced to support only Ruby 2.7+
https://github.com/ruby/drb/commit/bec410d184
2021-09-28 17:31:23 +09:00
Olle Jonsson 3be987653a [ruby/drb] gemspec: Remove "executables" configuration
This gem exposes 0 executables.

https://github.com/ruby/drb/commit/ed4d0363e5
2021-09-28 17:30:58 +09:00
rm155 cefa029573 [ruby/ostruct] Allow properties to be accessed even when the object is moved to another Ractor (https://github.com/ruby/ostruct/pull/29)
https://github.com/ruby/ostruct/commit/d85639f2f5
2021-09-28 17:30:06 +09:00
Hiroshi SHIBATA 83662f1d99
Removed needless rake and bundler files for rdoc 2021-09-28 16:13:45 +09:00
aycabta c4acde8959 [ruby/reline] Ignore NUL by ed_quoted_insert
https://github.com/ruby/reline/commit/43b7c01a98
2021-09-28 14:15:49 +09:00
rm155 0a38212e57 [ruby/timeout] Freeze VERSION
https://github.com/ruby/timeout/commit/ac7b010c41
2021-09-27 19:36:20 +09:00
Joao Fernandes f8000e2931 [ruby/base64] Avoid unnecessary string duplication
String#ljust returns a new string, so whenever we need to add
padding, we can replace "-/" in place with String#tr! and avoid creating
yet another copy of the string.

https://github.com/ruby/base64/commit/6401ef5824
2021-09-27 15:23:25 +09:00
Joao Fernandes 1b004ba0db [ruby/base64] Simplify
Thanks @nobu!

https://github.com/ruby/base64/commit/39e22efa2b
2021-09-27 15:23:12 +09:00
Joao Fernandes 05a28ce5b1 [ruby/base64] Improve Base64.urlsafe_encode64 performance
Improves the method's performance when asked to remove padding.

str.delete!("=") iterates over the entire string looking for the equals
character, but we know that we will, at most, find two at the end of the
string.

https://github.com/ruby/base64/commit/544e0c2cf7
2021-09-27 15:23:04 +09:00
aycabta 00cfafc0f5 [ruby/irb] Add doc about "echo on assignment"
https://github.com/ruby/irb/commit/5af637b3c1
2021-09-27 03:23:48 +09:00
aycabta 51773bed10 [ruby/irb] Add blank lines to sample code in doc for readability
https://github.com/ruby/irb/commit/123b7e53ee
2021-09-27 03:23:41 +09:00
aycabta 2ae64bf6b9 [ruby/irb] Fix sample code in doc
https://github.com/ruby/irb/commit/642adbe968
2021-09-27 03:23:37 +09:00
aycabta 5c0636bda4 [ruby/irb] Add a space before left paren
https://github.com/ruby/irb/commit/973bac83ff
2021-09-27 03:23:31 +09:00
aycabta a230ff0f83 [ruby/reline] ^K is kill-line and ^U is unix-line-discard for inputrc
https://github.com/ruby/reline/commit/5936071940
2021-09-27 01:16:15 +09:00
Jake Zimmerman 3f7b08d2cb [ruby/reline] Implement vi_kill_line_prev
This operation is mentioned and bound to `^U` in both `vi_command.rb`
and `vi_insert.rb`, but there is no definition of it.

Both Vi and Emacs use the same keystroke to do the same behavior, so
I've chosen to use `alias_method` to make the implementation small,
rather than duplicating the method and re-implementing it.

https://github.com/ruby/reline/commit/fdbfc8669f
2021-09-26 23:47:11 +09:00
aycabta f726c79d74 [ruby/reline] Add aliases {prev,next}_history to ed_{prev,next}_history
https://github.com/ruby/reline/commit/d740e18cff
2021-09-25 00:11:44 +09:00
aycabta ff26c60bc1 [ruby/irb] Revert "Show original string byte sequence to debug"
This reverts commit b42fe5937a.

https://github.com/ruby/irb/commit/b22094a16f
2021-09-24 23:50:32 +09:00
aycabta 93291005a0 [ruby/irb] Show original string byte sequence to debug
https://github.com/ruby/irb/commit/7a97bb0e56
2021-09-24 23:50:26 +09:00
David Rodríguez 4e7f085cf7 [rubygems/rubygems] Revert "Fix an issue causing nested Gem::Uri instances"
This reverts commit 6589f7bcc7a63a47cb73f58a290c1e1ac42bba99.

https://github.com/rubygems/rubygems/commit/9d0ce31f08
2021-09-24 10:57:15 +09:00
huangduirong b1ab1ee046 [rubygems/rubygems] Fix error message building changing password of source
Do not change the password of the input parameter source during
anonymization, by using the proper helper instead of changing the
original uri directly.

https://github.com/rubygems/rubygems/commit/eaa2dd8a97
2021-09-24 10:57:03 +09:00
aycabta 63aba76893 [ruby/reline] Use SGR 0 instead of SGR 39 and 49 to reset font settings
https://github.com/ruby/reline/commit/cbacb4c1cf
2021-09-24 03:08:33 +09:00
aycabta 3b5923bca3 [ruby/reline] Reset all font settings at left end of dialog
https://github.com/ruby/reline/commit/5f293b5127
2021-09-23 23:41:55 +09:00
aycabta 4704bc0976 Revert "Show original string byte sequence to debug"
This reverts commit b42fe5937a.
2021-09-23 18:02:21 +09:00
Nobuyoshi Nakada ede95f541b [ruby/irb] Ignore any encoding errors while symbol completion
https://github.com/ruby/irb/commit/daa65cded1
2021-09-23 18:01:36 +09:00
aycabta b42fe5937a Show original string byte sequence to debug 2021-09-23 16:21:06 +09:00
Kazuhiro NISHIYAMA 357406da8b [ruby/reline] Use `unpack1` instead of `unpack(template)[0]`
https://github.com/ruby/reline/commit/45aa367616
2021-09-22 23:37:59 +09:00
Kaíque Kandy Koga 782d1d876b [ruby/irb] Use typed spaces when the line is inside the here documents
Use first method instead of square brackets to support 2.5 and 2.6 versions

Use tokens

Clear check_newline_depth_difference

https://github.com/ruby/irb/commit/6fec2a5d46
2021-09-22 23:26:41 +09:00
Jonathan 13bb16f41e [rubygems/rubygems] Fix bug where redacted credentials are sent to server
Implement deep cloning for `Gem::Uri` class to fix a bug where redacting
credentials modifies the URI string in place instead of returning a
modified copy.

https://github.com/rubygems/rubygems/commit/eafb5a279b
2021-09-22 10:14:48 +09:00
Jonathan 63109976be [rubygems/rubygems] Fix an issue causing nested Gem::Uri instances
https://github.com/rubygems/rubygems/commit/6589f7bcc7
2021-09-22 10:14:19 +09:00
fiveNinePlusR 105e037fe8 [rubygems/rubygems] Fix possible malicious website to example.com
example.com is the canonical stand in for domain examples and will never have a backing website.

via https://www.rfc-editor.org/rfc/rfc2606.html

https://github.com/rubygems/rubygems/commit/26622c81c2
2021-09-22 10:14:04 +09:00
Ellen Marie Dash cd2e6318f6 [rubygems/rubygems] Only check if descriptions *start with* FIXME/TODO
It doesn't make much sense to just forbid certain words in descriptions.

https://github.com/rubygems/rubygems/commit/7890c98415
2021-09-22 10:13:49 +09:00
David Rodríguez eaeb5bf0bc [rubygems/rubygems] Avoid loading URI unnecessarily when activating gems
https://github.com/rubygems/rubygems/commit/ef5f30cba7
2021-09-22 10:13:34 +09:00
Nobuyoshi Nakada ee53d97b16 [ruby/irb] Sort shortest files in each load paths
There are two directories where csv*/**/*.rb exist, lib/ and
test/, and depending on the order of tests, test/ may be placed
before lib/.  In that case, as "shortest" names were not sorted,
csv/helper.rb will be the first candidate for "csv".

https://github.com/ruby/irb/commit/2af7c6bf71
2021-09-21 23:28:14 +09:00
Nobuyoshi Nakada c94718e39f [ruby/irb] Check if Gem::Specification is defined
https://github.com/ruby/irb/commit/005ade74dd
2021-09-21 23:28:09 +09:00
Lars Kanis 576b2e64cd MINGW-UCRT: Set CONFIG['arch'] and RUBY_PLATFORM to "x64-mingw-ucrt"
This allows easy differentiation between ABI incompatible platforms like MSWIN64 and MSVCRT-based MINGW32.
This also implicates a distinct rubygem platform which is also "x64-mingw-ucrt".

Although the term "mingw32" is the OS-part for 64 bit systems as well, the "32" is misleading and confusing for many users.
Therefore the new platform string drops the "32" from the OS part to just "mingw".
This conforms to the common practice of windows platform testing per RUBY_PLATFORM=~/mswin|mingw/ .
2021-09-20 00:15:30 +09:00
Jose Galisteo b45fe48fbb
[rubygems/rubygems] Trigger install command by default on remove
Closes https://github.com/rubygems/rubygems/issues/4889

https://github.com/rubygems/rubygems/commit/2b1754479c
2021-09-17 20:46:18 +09:00
Olle Jonsson 92ac1721c2 [ruby/racc] gemspec: Link to https in homepage [ci skip]
https://github.com/ruby/racc/commit/96075f7720
2021-09-15 16:55:12 +09:00
Nobuyoshi Nakada a27c274f04
[DOC] Fix broken links [ci skip]
* As the "doc/" prefix is specified by the `--page-dir` option,
  remove from the rdoc references.
* Refer to the original .rdoc instead of the converted .html.
2021-09-15 14:16:14 +09:00
Olle Jonsson f77f9b9328
[ruby/logger] gemspec: Drop unused "executables" configuration
This gem exposes 0 executables.

https://github.com/ruby/logger/commit/fbd9315393
2021-09-15 08:49:23 +09:00
ima1zumi 616d671758 [ruby/reline] Remove unused using method
follow #347

https://github.com/ruby/reline/commit/37453a83a3
2021-09-14 22:28:50 +09:00
aycabta 8de53fb31c [ruby/reline] Use expanded method definitions instead of refinements
@jhawthorn said, "this will make Ruby's integer comparisons slower
globally." It looks like "binding.irb" is going to cause serious
problems in Rails applications.

https://github.com/ruby/reline/commit/ee8d6c6a82
2021-09-13 05:15:47 +09:00
Nobuyoshi Nakada 0fbde94b27 [ruby/rdoc] Convert upper case copyright and registered marks
https://github.com/ruby/rdoc/commit/3bca7dc093
2021-09-11 17:03:52 +09:00
Nobuyoshi Nakada bc0ea95ca8 [ruby/rdoc] Convert tick double quote in character entity references
https://github.com/ruby/rdoc/commit/6ed889aac9
2021-09-11 17:03:38 +09:00
Nobuyoshi Nakada 6944163415 [ruby/rdoc] Convert a backtick to an open single quote
https://github.com/ruby/rdoc/commit/82eaefbae4
2021-09-11 17:03:33 +09:00
Nobuyoshi Nakada c5c0f5c652 [ruby/rdoc] Convert single quotes in character entity references
As well as double quotes.

https://github.com/ruby/rdoc/pull/824#discussion_r683173389

https://github.com/ruby/rdoc/commit/09002bdab5
2021-09-11 17:03:26 +09:00
aycabta 3e038ab1c7 [ruby/irb] Ignore invalid 3 colons in completion
https://github.com/ruby/irb/commit/5e29e3e39c
2021-09-11 04:41:20 +09:00
aycabta 5dc753df47 [ruby/reline] Move #pointer from DialogRenderInfo to Dialog
https://github.com/ruby/reline/commit/92dbac0bff
2021-09-10 11:38:54 +09:00
aycabta 01a364a36a [ruby/irb] Version 1.3.8.pre.9
https://github.com/ruby/irb/commit/4781f67fb8
2021-09-10 11:01:33 +09:00
aycabta e02bbe469b [ruby/irb] Update dependency, reline >= 0.2.8.pre.9
https://github.com/ruby/irb/commit/ab5d84c55b
2021-09-10 11:01:27 +09:00
aycabta fbfa0c880d [ruby/reline] Version 0.2.8.pre.9
https://github.com/ruby/reline/commit/bad76b5a87
2021-09-10 10:59:40 +09:00
aycabta 5af602e4d4 [ruby/reline] Erase lines correctly when dialog height is changed
https://github.com/ruby/reline/commit/68d2516551
2021-09-10 09:05:25 +09:00
aycabta 90afe5f11f [ruby/irb] Move IRB::TOPLEVEL_BINDING from exe/irb to lib/irb/workspace.rb
https://github.com/ruby/irb/commit/e736a77076
2021-09-10 06:37:07 +09:00
Marc-Andre Lafortune 3503c94af5 [ruby/irb] Avoid loading files' local variables [Bug #17623]
https://github.com/ruby/irb/commit/b12f0cb8e2
2021-09-10 06:37:06 +09:00
aycabta f085a6fb69 [ruby/irb] Support symbol with backtick
https://github.com/ruby/irb/commit/0aa2425883
2021-09-10 04:59:17 +09:00
aycabta bc24af0f35 [ruby/irb] Show lib name first because it's the most common use case
https://github.com/ruby/irb/commit/74d635758b
2021-09-08 05:23:56 +09:00
aycabta c5e8088c7e [ruby/irb] Define absolute_path? by myself for backward compatibility
https://github.com/ruby/irb/commit/d9c0dc043e
2021-09-08 05:23:50 +09:00
aycabta 04984415a5 [ruby/irb] Use gem paths to complete "require"
https://github.com/ruby/irb/commit/c870b23455
2021-09-08 05:23:45 +09:00
aycabta e4eb085329 [ruby/reline] Render scrollbar when the column of the dialog is moved
https://github.com/ruby/reline/commit/5cea268e56
2021-09-08 03:34:51 +09:00
aycabta 8b6d757ba0 [ruby/reline] Remove variables that have no meaning in calculations
https://github.com/ruby/reline/commit/3b7a1900fd
2021-09-08 03:34:46 +09:00
aycabta 11a00e3fa2 [ruby/reline] Remove garbage left behind when rerendering the right side of the dialog
https://github.com/ruby/reline/commit/d89c23e30b
2021-09-08 03:34:40 +09:00
aycabta 95089ddaf4 [ruby/reline] Move only one line when render a line and then go to the next line
https://github.com/ruby/reline/commit/8a966cd962
2021-09-08 01:11:13 +09:00
aycabta 6faf653ab0 [ruby/reline] The #reset_dialog should also use calculated block elem width
https://github.com/ruby/reline/commit/577df401b9
2021-09-08 00:13:21 +09:00
aycabta 5a01da7a29 [ruby/reline] Remove debug print
https://github.com/ruby/reline/commit/6f82177f2e
2021-09-08 00:08:48 +09:00
aycabta b766214851 [ruby/reline] Calculate block elem width only once
https://github.com/ruby/reline/commit/3054a67d05
2021-09-08 00:08:43 +09:00
aycabta 0ef3d574a0 [ruby/reline] Ensure that scrollbar is only rerendered when the position is changed
https://github.com/ruby/reline/commit/f629853eae
2021-09-08 00:08:38 +09:00
aycabta 30486d9150 [ruby/reline] The width of Block Elements in Unicode is East Asian Ambiguous
https://github.com/ruby/reline/commit/05e8ab8cbb
2021-09-08 00:04:40 +09:00
aycabta b4d9126e43 [ruby/reline] Refactor the merging key bindings to make it more readable
https://github.com/ruby/reline/commit/59665a22de
2021-09-07 03:23:33 +09:00
aycabta 2441bc8ea9 [ruby/reline] Change the comment about key bindings to more appropriate
https://github.com/ruby/reline/commit/4364d9a386
2021-09-07 03:23:26 +09:00
aycabta 30203a6fd9 [ruby/reline] Use Symbol for method names
https://github.com/ruby/reline/commit/479eee5393
2021-09-07 02:42:49 +09:00
aycabta cec50ec8d6 [ruby/reline] Remove SIG prefix because don't use it in any other signal processing
https://github.com/ruby/reline/commit/37648042e8
2021-09-07 02:42:42 +09:00
aycabta f927614e55 [ruby/reline] Use String for the value to be passed because Signal.trap also returns String
https://github.com/ruby/reline/commit/b908fe4439
2021-09-07 02:42:38 +09:00
aycabta 4885a61b12 [ruby/reline] Rescue ArgumentError from Signal.trap(:TSTP) on Windows
https://github.com/ruby/reline/commit/8da8182d1c
2021-09-07 01:59:13 +09:00
aycabta e8ad881336 [ruby/reline] Trap TSTP to handle C-z
https://github.com/ruby/reline/commit/ebbd0076b8
2021-09-07 01:59:05 +09:00
aycabta 966ed206a6 [ruby/reline] Limit number of chars only when completion source text (pointer == -1)
https://github.com/ruby/reline/commit/1d7b603811
2021-09-06 22:50:11 +09:00
aycabta 8baac078bc [ruby/irb] Version 1.3.8.pre.8
https://github.com/ruby/irb/commit/9ff0b1bba0
2021-09-06 16:11:50 +09:00
aycabta 692e7147b4 [ruby/irb] Update dependency, reline >= 0.2.8.pre.8
https://github.com/ruby/irb/commit/79ad1f5a6d
2021-09-06 16:11:45 +09:00
aycabta 3cef8869b0 [ruby/reline] Version 0.2.8.pre.8
https://github.com/ruby/reline/commit/967e19786d
2021-09-06 16:10:22 +09:00
Filip Pyda be5159c2f8 [ruby/irb] Pass RI options to help
https://github.com/ruby/irb/commit/9b98d1afab
2021-09-06 07:10:27 +09:00
manga_osyo 97a569c648 [ruby/reline] Memoize path of `.inputrc` [Ref #319]
When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`.
Memoize the path of `.inputrc` and don't get the path after the second time.

https://github.com/ruby/reline/commit/7b90b16165
2021-09-06 07:05:52 +09:00
aycabta 2a4bacce8c [ruby/irb] Add comments for Alt+d key sequences
https://github.com/ruby/irb/commit/4cb5f7e546
2021-09-06 06:39:02 +09:00
aycabta 32ff4a8c93 [ruby/reline] Set scrollbar color
https://github.com/ruby/reline/commit/d7962e420d
2021-09-06 05:35:03 +09:00
aycabta 991eb4894d [ruby/irb] Use multiple trap_key
https://github.com/ruby/irb/commit/416abe2524
2021-09-06 05:24:41 +09:00
aycabta 348bb62331 [ruby/reline] Cut out read_2nd_character_of_key_sequence
https://github.com/ruby/reline/commit/92518d1dee
2021-09-06 05:24:15 +09:00
aycabta 79652c5873 [ruby/reline] Support multiple trap_key
https://github.com/ruby/reline/commit/b0207fa049
2021-09-06 05:24:05 +09:00
aycabta d07060c42a [ruby/reline] No need to use max_by when array.size == 1
https://github.com/ruby/reline/commit/7e56c8af05
2021-09-06 05:23:55 +09:00
aycabta 8913b9b742 [ruby/reline] Use sort.last instead of sort.reverse.first
https://github.com/ruby/reline/commit/67f1d8d2d2
2021-09-06 05:23:46 +09:00
aycabta 7de2c9a966 [ruby/reline] Use combined_key if it exists when comparing Reline::Key and Integer
https://github.com/ruby/reline/commit/8fca5f6f9c
2021-09-06 05:23:36 +09:00
aycabta 3773296bfc [ruby/reline] Allow Reline::KeyStroke to compare raw and meta-key processed key sequences
https://github.com/ruby/reline/commit/731103f9c9
2021-09-06 05:23:27 +09:00
aycabta 56ab22ab3d [ruby/reline] Support for key bindings result Symbol in Reline::Key
https://github.com/ruby/reline/commit/cf78a38064
2021-09-06 05:23:18 +09:00
aycabta bbb3162dd2 [ruby/reline] Add Reline::Key#== as an alias to Reline::Key#match?
https://github.com/ruby/reline/commit/1fc3276c01
2021-09-06 05:23:11 +09:00
aycabta 544cd3fb91 [ruby/reline] Support oneshot key bindings config for key_trap of dialog callbacks
https://github.com/ruby/reline/commit/5f1141b693
2021-09-06 05:23:06 +09:00
aycabta bb6d45cfee [ruby/reline] Reline::Key supports the comparison with Integer
https://github.com/ruby/reline/commit/ebc3e0f673
2021-09-06 05:23:01 +09:00
aycabta e68a586263 [ruby/reline] Add that Reline::Unicode.take_range is cutting based on width
https://github.com/ruby/reline/commit/18405d9594
2021-09-06 05:22:36 +09:00
aycabta 1fe604a675 [ruby/reline] Add comments about optimizing chars in ASCII range of UTF-8
https://github.com/ruby/reline/commit/3c13d93486
2021-09-06 05:22:29 +09:00
aycabta 5f771f4f02 [ruby/irb] Remove commeted out code
https://github.com/ruby/irb/commit/7dda1f803e
2021-09-04 21:59:39 +09:00
aycabta c8bf45f23c [ruby/irb] Show doc at the same height as the autocompletion dialog
https://github.com/ruby/irb/commit/a9db71e6bc
2021-09-04 21:57:11 +09:00
aycabta f7d9dd2e4c [ruby/irb] Render properly if both autocomplete and show doc dialogs are left of the cursor
https://github.com/ruby/irb/commit/0090203107
2021-09-04 21:55:55 +09:00
aycabta 03e9887d2e [ruby/reline] Correct misalignment of scrollbar
https://github.com/ruby/reline/commit/7924b4cfc6
2021-09-04 21:40:17 +09:00
aycabta ec36ceb072 [ruby/reline] Implement scrollbar
https://github.com/ruby/reline/commit/4c7fc42151
2021-09-04 21:40:12 +09:00
aycabta 6fa37d2666 [ruby/irb] Retrieve completed receiver that is a module or class correctly
https://github.com/ruby/irb/commit/b2324727e1
2021-09-04 17:48:20 +09:00
aycabta b7e2f7759d [ruby/irb] Version 1.3.8.pre.7
https://github.com/ruby/irb/commit/02c4a8d3b6
2021-09-04 02:18:54 +09:00
aycabta 119edc459f [ruby/irb] Update dependency, reline >= 0.2.8.pre.7
https://github.com/ruby/irb/commit/39593fb4d0
2021-09-04 02:18:50 +09:00