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

8417 Коммитов

Автор SHA1 Сообщение Дата
Mark Delk 44b24ab4c1 [ruby/reline] Support mode icon
Co-authored-by: aycabta <aycabta@gmail.com>

https://github.com/ruby/reline/commit/067b618123
2020-08-18 19:08:32 +09:00
aycabta 568615d395 [ruby/reline] Use single quotes for non-expanded string literals
https://github.com/ruby/reline/commit/3bf7c7d722
2020-08-18 19:08:11 +09:00
aycabta 215fe54777 [ruby/reline] Check Errno::EIO
Catch Errno::EIO what will be occurred if the console terminates I/O before
Reline finishes rendering.

https://github.com/ruby/reline/commit/e51eaa6d43
2020-08-18 19:04:31 +09:00
Tomás Pollak f0d3d4fedb [ruby/reline] Add home/end mapping for urxvt and relatives
https://github.com/ruby/reline/commit/c30b293f1c
2020-08-18 19:03:27 +09:00
aycabta a30dea5852 [ruby/irb] Support shortening lambda notetion for nesting level of prompt
https://github.com/ruby/irb/commit/f1a775af47
2020-08-18 14:38:02 +09:00
aycabta 43c648c832 [ruby/irb] Support shortening lambda notation
https://github.com/ruby/irb/commit/8e3f81d428
2020-08-18 14:38:02 +09:00
aycabta b3f84b4a5b [ruby/irb] Expand path to run separated test correctly
https://github.com/ruby/irb/commit/be2937abd5
2020-08-18 14:38:01 +09:00
Nobuyoshi Nakada 7fa86de15b [ruby/irb] Workaround a bug of ruby-mode.el
https://github.com/ruby/irb/commit/6dfd59400d
2020-08-18 14:38:01 +09:00
Nobuyoshi Nakada 82d4da7816 [ruby/irb] Yet another unnecessary readline
https://github.com/ruby/irb/commit/933841af11
2020-08-18 14:38:01 +09:00
Nobuyoshi Nakada 0fcbd07247 [ruby/irb] Directly check if the method is available instead of version
https://github.com/ruby/irb/commit/3ea9fd9ed0
2020-08-18 14:38:01 +09:00
Nobuyoshi Nakada 6aa786b8a3 [ruby/irb] Get rid of loading readline unnecessarily
https://github.com/ruby/irb/commit/420e7d2270
2020-08-18 14:38:01 +09:00
Nobuyoshi Nakada d32229e338 [ruby/irb] Prefer require_relative to load the files in this library
https://github.com/ruby/irb/commit/0ac3bc7296
2020-08-18 14:38:01 +09:00
aycabta 126e1fc296 [ruby/irb] Make history infinite if set SAVE_HISTORY to negative
https://github.com/ruby/irb/commit/824473e880
2020-08-18 14:38:01 +09:00
aycabta ef498a016b [ruby/irb] Suppress crash when bignum is set to SAVE_HISTORY
https://github.com/ruby/irb/commit/5044eb2730
2020-08-18 14:38:01 +09:00
aycabta 6f0ef83de7 [ruby/irb] Symbol.all_symbols was adopted by Ruby 1.8.0 or later
https://github.com/ruby/irb/commit/71ba754e8e
2020-08-18 14:38:01 +09:00
aycabta 5474007d61 [ruby/irb] Support oneline method definition
https://github.com/ruby/irb/commit/826ae909c9
2020-08-18 14:38:01 +09:00
Jeremy Evans a73b5cc556 Remove the deprecated override of Kernel#open in open-uri
This was deprecated in 2.7 to resolve [Misc #15893].
2020-08-16 07:41:40 -07:00
Burdette Lamar c84ccf1a07
Fix links to Dig Methods document (#3421)
* Fix links to Dig Methods document

* Fix links to Dig Methods document
2020-08-14 18:55:04 -05:00
Burdette Lamar 22fd617aa5
Adding doc/dig_methods.rdoc and links to it (#3416)
Adds a full discussion of #dig, along with links from Array, Hash, Struct, and OpenStruct.

CSV::Table and CSV::Row are over in ruby/csv. I'll get to them soon.

The art to the thing is to figure out how much (or how little) to say at each #dig.
2020-08-13 13:16:27 -05:00
Nguyễn Quang Minh 1819652578
[Feature #16513] TracePoint#inspect returns "... file:line" (#3391)
* Fix debug documents to match Thread#to_s change (Feature #16412 ticket)

* TracePoint#inspect returns "... file:line" (Feature #16513)

* Guard older version of Ruby in Tracepoint inspection tests

* Focus on current thread only when running TracePoint inspection test
2020-08-06 11:56:24 +09:00
Hiroshi SHIBATA 8f71bb0e4f
Fixed the inconsistency gemspec location with net-* gems. 2020-08-05 20:01:03 +09:00
Hiroshi SHIBATA 1d637b1f5e [ruby/weakref] Use Gemfile instead of Gem::Specification#add_development_dependency.
https://github.com/ruby/weakref/commit/10d547ba12
2020-08-03 19:46:39 +09:00
Hiroshi SHIBATA 9e93596d7b [ruby/ostruct] Drop to Ruby 2.4
https://github.com/ruby/ostruct/commit/00e8fe3df2
2020-08-03 19:42:06 +09:00
Hiroshi SHIBATA e732d376af [ruby/cgi] Drop to Ruby 2.4
https://github.com/ruby/cgi/commit/8a86536e94
2020-08-03 18:30:19 +09:00
Hiroshi SHIBATA 3ec860ae88
net-ftp is under `lib/net` instead of `lib/net/ftp` 2020-08-03 17:52:01 +09:00
Hiroshi SHIBATA 2346e2f0db
Followed up b2d96abb42 for net-ftp. 2020-08-03 17:40:05 +09:00
David Rodríguez f80020bc50 [rubygems/rubygems] Read path binarily
I believe this should fix a flaky test on Windows.

https://github.com/rubygems/rubygems/commit/a516b49a0a
2020-07-31 21:07:19 +09:00
David Rodríguez b7e88e3c2f [rubygems/rubygems] Don't format executables on `gem update --system`
This restores 3.0 behavior and goes back to not formatting executables
by default on `gem update --system`. This is friendlier for jruby and
doesn't really affect OS packagers.

https://github.com/rubygems/rubygems/commit/1a504b651d
2020-07-31 21:07:19 +09:00
Hiroshi SHIBATA 0e2d8c487c [rubygems/rubygems] unset XDG_* environmental variables for testing of rubygems.
https://github.com/rubygems/rubygems/commit/539fd9a39a
2020-07-31 21:07:19 +09:00
David Rodríguez aa4ecfe7f7 [rubygems/rubygems] Revert "Disallow warnings to creep into the test suite"
This reverts commit 694e6afee769ffb3168a564ee7d315af2a934993.

It was failed on Windows and I'm unsure why. Also, the check seems
brittle since it could fail potentially fail because of warnings outside
of our control.

https://github.com/rubygems/rubygems/commit/908e9344dd
2020-07-31 21:07:19 +09:00
David Rodríguez e0bfc77824 [rubygems/rubygems] Remove unnecessary guard clause
Since 1ccf0912a161d20e0c4a7b139fd76e8739a411ba, this method no longer
uses `Kernel.gem`, so this guard clause is now unnecessary.

https://github.com/rubygems/rubygems/commit/8a19e7401c
2020-07-31 21:07:19 +09:00
David Rodríguez fe53e5a9f3 [rubygems/rubygems] Remove fileutils autoload
https://github.com/rubygems/rubygems/commit/dca345441f
2020-07-31 21:07:19 +09:00
David Rodríguez fedaa61b3f [rubygems/rubygems] Remove explicit require for autoloaded constant
https://github.com/rubygems/rubygems/commit/a54230093e
2020-07-31 21:07:19 +09:00
David Rodríguez 3921ab8291 [rubygems/rubygems] Let more exceptions flow
If any error happens while verifying a package entry, it doesn't mean
that the package is corrupt. It could be a bug in rubygems, for example.
This in fact happened in CI and the current error doesn't make it easy
to troubleshoot the root cause, since it doesn't provide a backtrace.

See
https://github.com/rubygems/rubygems/pull/3807/checks?check_run_id=862526615.

So I propose to let the exception happens. There was something useful
about the previous message, which is the file entry where the error
happened, so I'm keeping that information in a warning message.

https://github.com/rubygems/rubygems/commit/ece87d858f
2020-07-31 21:07:19 +09:00
Nobuyoshi Nakada ebf008b9ae [rubygems/rubygems] Install plugins to user directory
Fixes the `Gem::FilePermissionError` without the privilege.
Initialize `@plugins_dir` to the user gem directory, when
installing with `--user` option.

https://github.com/rubygems/rubygems/commit/21a71ac769
2020-07-31 21:07:19 +09:00
David Rodríguez 6c71033ac3 [rubygems/rubygems] Remove more unnecessary requires
Since `rubygems/util` is autoloaded.

https://github.com/rubygems/rubygems/commit/52a9f88b99
2020-07-31 21:07:19 +09:00
David Rodríguez 9057e9c7b1 [rubygems/rubygems] The file is only ever required when openssl is available
https://github.com/rubygems/rubygems/commit/41976ef3ec
2020-07-31 21:07:19 +09:00
David Rodríguez 6eb89f8637 [rubygems/rubygems] Remove now unneeded code
We patch `net-http-persistent` to not autoload `openssl`.

https://github.com/rubygems/rubygems/commit/757dec3cf2
2020-07-31 21:07:19 +09:00
David Rodríguez ea8f7d4a81 [rubygems/rubygems] Gem::Specification#to_ruby doesn't need `openssl`
The `openssl` require when openssl not present was having the
side-effect the our custom require fallbacks would end up loading `Gem::Specification.stubs`.

Co-authored-by: Alyssa Ross <hi@alyssa.is>

https://github.com/rubygems/rubygems/commit/22c4ded4ad
2020-07-31 21:07:19 +09:00
David Rodríguez e1494145d9 [rubygems/rubygems] Make sure tests at least load without openssl
https://github.com/rubygems/rubygems/commit/054d57f74b
2020-07-31 21:07:19 +09:00
David Rodríguez 69fa0d6d30 [rubygems/rubygems] Move openssl require to a separate file
So it can be reused.

https://github.com/rubygems/rubygems/commit/b9fc6e40db
2020-07-31 21:07:19 +09:00
David Rodríguez 6b14249c98 [rubygems/rubygems] In the rubies we support `Exception#path` is always there
https://github.com/rubygems/rubygems/commit/babf943144
2020-07-31 21:07:19 +09:00
David Rodríguez 0a7f12fcc6 [rubygems/rubygems] Only require what we are using
https://github.com/rubygems/rubygems/commit/d92b94f3cf
2020-07-31 21:07:19 +09:00
David Rodríguez 9ad9c2d9c3 [rubygems/rubygems] Let the original error happen
It will give more useful information.

https://github.com/rubygems/rubygems/commit/efcecb5af5
2020-07-31 21:07:19 +09:00
David Rodríguez b84b4e8bfa [rubygems/rubygems] Remove unnecessary stuff
The `rubygems/security` require already does this.

https://github.com/rubygems/rubygems/commit/bbb444b6f1
2020-07-31 21:07:19 +09:00
bronzdoc 6c19b0ec6e [rubygems/rubygems] Reword warning
https://github.com/rubygems/rubygems/commit/cbd4abf8cf
2020-07-31 21:07:19 +09:00
bronzdoc 00bdac18cf [rubygems/rubygems] Warn on duplicate dependency in a specification
https://github.com/rubygems/rubygems/commit/af3e5f7883
2020-07-31 21:07:19 +09:00
David Rodríguez 985309ac38 [rubygems/rubygems] Support PATH's using `File::ALT_SEPARATOR` in `Gem::Installer`
Co-authored-by: MSP-Greg <MSP-Greg@users.noreply.github.com>

https://github.com/rubygems/rubygems/commit/710b969b60
2020-07-31 21:07:19 +09:00
David Rodríguez 04d3e0727a [rubygems/rubygems] Move traling `if` to the same line for readablity
https://github.com/rubygems/rubygems/commit/d722b8b578
2020-07-31 21:07:19 +09:00
David Rodríguez c090c64b4f [rubygems/rubygems] Prefer the standard separator on Windows
It seems like the most common case since it requires no tricks on our
CI environment.

Co-authored-by: MSP-Greg <MSP-Greg@users.noreply.github.com>

https://github.com/rubygems/rubygems/commit/751c475574
2020-07-31 21:07:19 +09:00