1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

66883 commits

Author SHA1 Message Date
David Rodríguez
88e46cf6b8
[rubygems/rubygems] Remove all syck traces from rubygems
After reading [this blog
post](https://blog.rubygems.org/2011/08/31/shaving-the-yaml-yak.html),
published almost 10 years ago already, my understanding is that this
problem could come up in two ways:

* Rubygems.org serving corrupted gemspecs". As far as I understand this
was fixed in rubygems.org a lot time ago, since
https://github.com/rubygems/rubygems.org/pull/331.

* Clients having a ten years old gemspec cache with some of these bad
gemspecs. In this case, there's no easy solution but I think ten years
is enough and rebuilding the cache should do the trick.

So, I think it's time we remove this.

https://github.com/rubygems/rubygems/commit/afcb15d556
2021-07-27 09:25:56 +09:00
David Rodríguez
6bcedabfdd
[rubygems/rubygems] Remove gem install hint when installing a gem fails
A fresh `gem install` might not reproduce the exact `bundle install`
environment that originally caused the error. It also makes it harder
for the user to troubleshoot the error since she needs to run a separate
command.

Instead, show the original error and backtrace directly.

https://github.com/rubygems/rubygems/commit/49c2abfec6
2021-07-27 09:25:55 +09:00
David Rodríguez
6eb6f740f2
[rubygems/rubygems] Show a backtrace in case gem installation fails
For example, due to extension compilation issues.

https://github.com/rubygems/rubygems/commit/adbe55bb6a
2021-07-27 09:25:55 +09:00
David Rodríguez
4271f4aea5
[rubygems/rubygems] Fix bundler binstub version selection
To mimic built-in rubygems behaviour, only thing that should be
approximated is the lockfile version. Other alternatives like
`BUNDLER_VERSION` should be respected exactly.

https://github.com/rubygems/rubygems/commit/dbd667d4bc
2021-07-27 09:25:55 +09:00
Daniel Niknam
90899c50c2
[rubygems/rubygems] Remove LoadError message in regards to requiring a relative file
Ruby 1.9.2 removed "." from LOAD_PATH for robustness and security reasons.
This code was introduced by 56fc830e19 commit
to helping users understand the issue and had a guard condition to include the message for `RUBY_VERSION >= "1.9"`.
However, the guard condition was removed as part of the "Ruby version leftover" cleanup by
8c9cf76e41

Ruby 1.9 development was ended a long time ago and this message is not useful anymore.

https://github.com/rubygems/rubygems/commit/a23609b15a
2021-07-27 09:25:55 +09:00
Andrew Haines
705b1bdef2
[rubygems/rubygems] Fix interrupt handling in Bundler workers
The existing interrupt handling using `SharedHelpers.trap` fails when the previous
handler for a signal is not callable (for example, when it is the string "DEFAULT").

Instead, we now handle interrupts by aborting the process when worker threads are
running, and restore the previous handler after worker threads are finished.

Fixes .

https://github.com/rubygems/rubygems/commit/b9f455d487
2021-07-27 09:25:55 +09:00
Benoit Daloze
c8172d0b96 rb_iterate is no longer used in ruby/spec 2021-07-26 13:24:38 +02:00
Nobuyoshi Nakada
b8386f7f7f
Prepend DebugSystem to VCS class only
And revert 24e5f1c982, pepending to
Kernel did not affect the top level methods before 3.0.
2021-07-26 15:44:40 +09:00
Nobuyoshi Nakada
24e5f1c982
Ignore 7z unless available
`DebugSystem#system` is prepended in vcs.rb and defaulted to
`exception: true`.
2021-07-26 14:17:30 +09:00
git
165a098ffc * 2021-07-26 [ci skip] 2021-07-26 05:09:20 +09:00
Nobuyoshi Nakada
070557afc4 Distinguish signal and timeout [Bug ] 2021-07-25 13:09:03 -07:00
Kazuhiro NISHIYAMA
8897098b5c
Update bundled_gems 2021-07-25 20:58:58 +09:00
git
02facb86da * 2021-07-25 [ci skip] 2021-07-25 20:07:55 +09:00
Nobuyoshi Nakada
b360588cd3
Sort feature index arrays by the priority of file types [Bug ]
When looking for libraries to load with a feature name without
extension, `.rb` files are given priority. However, since the
feature index arrays were not in that order of priority, but in
the order in which they were loaded, a lower priority extension
library might be returned. In that case, the `.rb` file had to be
searched for again from the `$LOAD_PATH`, resulting in poor
performance.
2021-07-24 23:59:07 +09:00
git
971d24cd97 * 2021-07-24 [ci skip] 2021-07-24 17:58:57 +09:00
Nobuyoshi Nakada
eec45a93ef
Escape unprintable chars only, without surrounding quotes 2021-07-24 14:31:41 +09:00
Nobuyoshi Nakada
8cc18703cf
[NEWS] added [Feature ] [ci skip] 2021-07-23 12:43:51 +09:00
Nobuyoshi Nakada
5385731374
[NEWS] adjusted formats [ci skip] 2021-07-23 12:41:01 +09:00
Nobuyoshi Nakada
377995035a Suppress exception message in finalizer [Feature ] 2021-07-23 12:01:15 +09:00
Nobuyoshi Nakada
fc4dd45d01 Show exception in finalizer [Feature ] 2021-07-23 12:01:15 +09:00
Nobuyoshi Nakada
63e5f4df38 Access rb_execution_context_t::errinfo directly 2021-07-23 12:01:15 +09:00
Nobuyoshi Nakada
b726c4ee38 Use rb_equal
It can be optimized and handles Qnil properly.
2021-07-23 10:25:37 +09:00
Nobuyoshi Nakada
4da07ac2f3 Finalizers no longer store the safe level 2021-07-23 10:25:37 +09:00
git
fc78a08904 * 2021-07-23 [ci skip] 2021-07-23 03:13:31 +09:00
manga_osyo
86e0eecc84 [ruby/irb] Fix
Support int that follow on symbeg in IRB

https://github.com/ruby/irb/commit/90cb27b1bd
2021-07-23 03:13:14 +09:00
Peter Zhu
62661dd9e4 Don't recompute the heap page
We already page the page of the zombie calculated. Don't recalculate the
page.
2021-07-22 10:10:23 -04:00
Peter Zhu
018f3961ae Don't set flags in finalize_list
The call after it to `heap_page_add_freeobj` will set the flags.
2021-07-22 10:10:23 -04:00
Nobuyoshi Nakada
75f60e5a46 Sort out quad_t related macros 2021-07-22 15:41:42 +09:00
S.H
fc50b2eae5
Remove unneeded function declarations 2021-07-22 15:41:03 +09:00
Ulysses Zhan
e4b68ab700
[DOC] Fixed the description of regexp alternations [ci skip] 2021-07-22 14:10:57 +09:00
S-H-GAMELINKS
d6b8819b79 Refactor rb_proc_call_with_block function 2021-07-22 14:02:54 +09:00
S-H-GAMELINKS
e882905d0d Refactor sym_each_i function 2021-07-22 14:02:23 +09:00
Nobuyoshi Nakada
e3cda75436
Remove useless casts 2021-07-22 09:58:23 +09:00
Nobuyoshi Nakada
a4e39112a8
Cast to size_t instead of int
len and *retlen are size_t since r22957
(commit:4de12b6ae9a7fc1e28ada4b62291a78f28ae7528).
2021-07-22 09:52:29 +09:00
Peter Zhu
31144fe987 Change GC verification to walk all pages
`gc_verify_internal_consistency_` does not walk pages in the tomb heap
so numbers were off. This commit changes it to walk all allocated pages.
2021-07-21 14:40:44 -04:00
git
f5f7010613 * 2021-07-22 [ci skip] 2021-07-22 02:06:59 +09:00
eileencodes
b940a45357 Fix interpolated heredoc
This fixes https://bugs.ruby-lang.org/issues/18038. The provided
reproduction showed that this happens in heredocs with double
interpolation. In this case `DSTR` was getting returned but needs to be
convered to a `EVSTR` which is what is returned by the function. There
may be an additional bug here that we weren't able to produce. It seems
odd that `STR` returns `DSTR` while everything else should return
`EVSTR` since the function is `new_evstr`.

[Bug ][ruby-core:104597]

Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
2021-07-21 10:06:33 -07:00
Nobuyoshi Nakada
fa308a683d
Update bundled_gems 2021-07-21 20:44:34 +09:00
Nobuyoshi Nakada
c25cf1eaaa
Drop optional commit hash when updated 2021-07-21 20:44:13 +09:00
Nobuyoshi Nakada
04b5e85bfd
Look up ruby_digit36_to_number_table
Instead of scanning ruby_hexdigits.
2021-07-21 19:32:18 +09:00
git
b2749e0026 * 2021-07-21 [ci skip] 2021-07-21 17:40:23 +09:00
Nobuyoshi Nakada
1c80e0e6b0
Use typeprof supporting rbs 1.3 2021-07-21 16:28:04 +09:00
Nobuyoshi Nakada
42745ecae3
Remove meaningless IO#close_on_exec= spec [Feature ] 2021-07-20 21:45:11 +09:00
Nobuyoshi Nakada
bc1323ce5c
Use RB_INTEGER_TYPE_P 2021-07-20 21:45:11 +09:00
aycabta
261dca2ee2 [ruby/irb] Support non-English code page message
https://github.com/ruby/irb/commit/e7d71fea46
2021-07-20 20:36:19 +09:00
git
5e7675d442 * 2021-07-20 [ci skip] 2021-07-20 14:47:50 +09:00
Kazuhiro NISHIYAMA
2e67043041
Use UNREACHABLE instead of fall through 2021-07-20 14:46:46 +09:00
Kazuhiro NISHIYAMA
036f26a4e2
Add fall through
Pointed out by Coverity Scan

```
** CID 1487522: Control flow issues (MISSING_BREAK)
/error.c: 1273 in exc_full_message()
```
2021-07-19 17:21:45 +09:00
Nobuyoshi Nakada
fa239e0479
Remove unneeded quotes [ci skip] 2021-07-19 17:18:51 +09:00
Hiroshi SHIBATA
95dd461387
[ruby/racc] Removed pre-setup from gemspec
https://github.com/ruby/racc/commit/2f6f02e5c1
2021-07-19 11:59:42 +09:00