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

61287 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 1039c32de6 [rubygems/rubygems] Simplify nested require exceptions
https://github.com/rubygems/rubygems/commit/7fbef2f0e3
2020-05-08 14:13:29 +09:00
David Rodríguez 43daf4d288 [rubygems/rubygems] Fix ruby warning about unused local variables
https://github.com/rubygems/rubygems/commit/cca2fccd95
2020-05-08 14:13:29 +09:00
David Rodríguez 2ece4d96f0 [rubygems/rubygems] Fix ruby warnings about a shadowed variable
https://github.com/rubygems/rubygems/commit/5cfb3252d9
2020-05-08 14:13:29 +09:00
Josef Šimánek a0c4d14acf [rubygems/rubygems] Fix symlink RubyGems test problems for non-admin user.
https://github.com/rubygems/rubygems/commit/75f672ff0e
2020-05-08 14:13:29 +09:00
David Rodríguez 3315ce6904 [rubygems/rubygems] Fix race condition on bundler's parallel installer
When installing in parallel, bundler creates several `Gem::Installer`
instances that run in parallel. These installers access the `@@all` class
variable of `Gem::Specification` concurrently.

If a concurrent thread calls `Gem::Specification.reset` (resetting
`@all` to `nil`) while another thread is running
`Gem::Specification._all` or another method that expects `@@all` to be
loaded and not `nil`, that can result in `Enumerable` methods being
called on `nil`, resulting in crashes.

I fix it by protecting the other concurrent access to the `@all`
variable.

https://github.com/rubygems/rubygems/commit/58b343c530
2020-05-08 14:13:29 +09:00
Dmytro Shyrshov 03fe7da186 [rubygems/rubygems] Allow spaces in file headers during octal check
https://github.com/rubygems/rubygems/commit/e9e25731d8
2020-05-08 14:13:29 +09:00
Aaron Patterson 7574b836a9
Add T_IMEMO support to lldb
I'm trying to find why a reference to an IMEMO object isn't being
updated
2020-05-07 15:54:00 -07:00
Peter Zhu ce91c5615c Fix typo in test name 2020-05-08 07:46:33 +09:00
David Rodríguez 427eb2b93f [rubygems/rubygems] Remove unnecessary DIR constant
We have `__dir__` which is the same thing.

https://github.com/rubygems/rubygems/commit/f89776427f
2020-05-08 07:38:50 +09:00
David Rodríguez 1ede0c15a1 [rubygems/rubygems] Move stuff to the instance level
I don't know why it was living at the class level. At first I thought it
would be to reuse some server instances between tests, but they seem to
be cleaned up after every test anyways, so I don't think any of it is
needed.

https://github.com/rubygems/rubygems/commit/04bee71216
2020-05-08 07:38:50 +09:00
David Rodríguez 0b40279d7d Normalize heredoc case in rubygems code base 2020-05-08 07:38:50 +09:00
David Rodríguez 2205ae8af5 Normalize heredoc delimiters 2020-05-08 07:38:50 +09:00
Benoit Daloze 31663e9e64 [rubygems/rubygems] These specs seem to work just fine on jruby
https://github.com/rubygems/rubygems/commit/a0219b9f27
2020-05-08 07:38:50 +09:00
Benoit Daloze fe2b83e225 [rubygems/rubygems] Fix platform comparison bug in #contains_requirable_file?
* One should not compare RUBY_ENGINE and Gem::Platform.
* Introduced in https://github.com/rubygems/rubygems/pull/2672

https://github.com/rubygems/rubygems/commit/0e62c3be91
2020-05-08 07:38:50 +09:00
Benoit Daloze 1464719f5f [rubygems/rubygems] Only run the $SAFE test on MRI < 2.7
* Other Ruby implementations don't support $SAFE.

https://github.com/rubygems/rubygems/commit/9a4ba16efa
2020-05-08 07:38:50 +09:00
Olle Jonsson bb3d80bbbe [rubygems/rubygems] Autoload name_tuple.rb before use
- Resolver asked Molinillo to resolve-then-activate, which led to using Gem::NameTuple before any require had been passed

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>

https://github.com/rubygems/rubygems/commit/e11782b0c8
2020-05-08 07:38:50 +09:00
Josef Šimánek 39322317f3 [rubygems/rubygems] Do not use set.
https://github.com/rubygems/rubygems/commit/1a72c8796f
2020-05-08 07:38:50 +09:00
Josef Šimánek 832a7b0458 [rubygems/rubygems] Add gem build test to check for removed methods.
https://github.com/rubygems/rubygems/commit/c07b9cf4f1
2020-05-08 07:38:50 +09:00
Josef Šimánek 856cbbdd52 [rubygems/rubygems] Track removed methods calls and warn during build time.
move rubyforge_project= to removed methods

https://github.com/rubygems/rubygems/commit/223f7fd470
2020-05-08 07:38:50 +09:00
Josef Šimánek 4dd46dbad0 [rubygems/rubygems] Deprecate rubyforge_project attribute only during build time.
https://github.com/rubygems/rubygems/commit/c44eb21648
2020-05-08 07:38:50 +09:00
Josef Šimánek 60cafe8ea9 [rubygems/rubygems] Revert deprecation of deprecate method for now.
https://github.com/rubygems/rubygems/commit/965eee1741
2020-05-08 07:38:50 +09:00
bronzdoc 0e85a39dc7 [rubygems/rubygems] Restore and deprecate old deprecate method
https://github.com/rubygems/rubygems/commit/024267fa60
2020-05-08 07:38:50 +09:00
bronzdoc 7db538a7c9 [rubygems/rubygems] Rename version horizon deprecation methods
https://github.com/rubygems/rubygems/commit/6afd914fda
2020-05-08 07:38:50 +09:00
bronzdoc 361ed8d0a6 [rubygems/rubygems] Avoid "ambiguous first argument" warning
https://github.com/rubygems/rubygems/commit/984bb9b815
2020-05-08 07:38:50 +09:00
bronzdoc 80163db936 [rubygems/rubygems] Add next_rubygems_major_version method
https://github.com/rubygems/rubygems/commit/db5bb65baf
2020-05-08 07:38:50 +09:00
bronzdoc ff37dd7e9e [rubygems/rubygems] Modify files to use new version horizon deprecations
https://github.com/rubygems/rubygems/commit/4fe5bb5bf3
2020-05-08 07:38:50 +09:00
bronzdoc 42c91de9ce [rubygems/rubygems] Use the next major version as default for deprecations
https://github.com/rubygems/rubygems/commit/b679ab27af
2020-05-08 07:38:50 +09:00
bronzdoc feb2974000 [rubygems/rubygems] Remove deprecation methods by date
https://github.com/rubygems/rubygems/commit/3a14635cf5
2020-05-08 07:38:50 +09:00
bronzdoc a7a7e7bea0 [rubygems/rubygems] Make the deprecate_command method recieve a Rubygems version instead of a date
https://github.com/rubygems/rubygems/commit/bf95b1de78
2020-05-08 07:38:50 +09:00
bronzdoc 2f7865bb6e [rubygems/rubygems] Make the deprecate method recieve a Rubygems version instead of a date
https://github.com/rubygems/rubygems/commit/f0e098a1b7
2020-05-08 07:38:50 +09:00
Hiroshi SHIBATA 1fe2b7f41c Workaround for Minitest5 2020-05-08 07:38:50 +09:00
Hiroshi SHIBATA 7050f86ae1 [rubygems/rubygems] Removed deprecated methods for Minitest5
It was migrated on ruby core repository too.

  e5db3da9d3

https://github.com/rubygems/rubygems/commit/848bbe3c76
2020-05-08 07:38:50 +09:00
Hiroshi SHIBATA e29c94e86b [rubygems/rubygems] Minitest::Test is works fine with the ruby core repository
https://github.com/rubygems/rubygems/commit/afa01a29a3
2020-05-08 07:38:50 +09:00
Hiroshi SHIBATA 3041e2626d [rubygems/rubygems] Revert https://github.com/rubygems/rubygems/pull/3445
These changes completely broke the test suite on ruby core repository.

https://github.com/rubygems/rubygems/commit/84b0bea3e1
2020-05-08 07:38:50 +09:00
David Rodríguez 3256480317 [rubygems/rubygems] Don't swallow gem activation exception
Our tests are now guaranteed to not work on older versions of minitest,
so I don't think we should swallow this activation error because it will
make it very clear for the user what the problem is if she has a
minitest version not satisfying the requirement.

https://github.com/rubygems/rubygems/commit/a291b65369
2020-05-08 07:38:50 +09:00
David Rodríguez 2396f703cf [rubygems/rubygems] Update minitest version in `Gem.install` docs
https://github.com/rubygems/rubygems/commit/aec3887d9c
2020-05-08 07:38:50 +09:00
David Rodríguez b8ef5ed8bd [rubygems/rubygems] Remove minitest compatibility code
https://github.com/rubygems/rubygems/commit/24213b97d8
2020-05-08 07:38:50 +09:00
David Rodríguez f4022f943d [rubygems/rubygems] [rubygems/rubygems] Require minitest `~> 5.13`
https://github.com/rubygems/rubygems/commit/f2cc5d7033

https://github.com/rubygems/rubygems/commit/ae5b4e2043
2020-05-08 07:38:50 +09:00
David Rodríguez b72c56681e [rubygems/rubygems] Use newer module Minitest name
https://github.com/rubygems/rubygems/commit/2890622479
2020-05-08 07:38:50 +09:00
Aaron Patterson 56c6d520a0
Add T_MOVED support to lldb 2020-05-07 14:19:45 -07:00
Aaron Patterson 2d27632c3c
Add compaction support for backtrace objects
This just introduces compaction support for backtrace objects.
2020-05-07 11:42:39 -07:00
Aaron Patterson ff4f9cf95d
Allow global variables to move
This patch allows global variables that have been assigned in Ruby to
move.  I added a new function for the GC to call that will update
global references and introduced a new callback in the global variable
struct for updating references.

Only pure Ruby global variables are supported right now, other
references will be pinned.
2020-05-07 11:42:39 -07:00
Kazuhiro NISHIYAMA 7ded8fd29a
Fix a typo [ci skip] 2020-05-08 01:22:38 +09:00
Jean Boussier cbe4f75ef8 Fix rb_profile_frame_classpath to handle module singletons
Right now `SomeClass.method` is properly named, but `SomeModule.method`
is displayed as `#<Module:0x000055eb5d95adc8>.method` which makes
profiling annoying.
2020-05-07 08:46:36 -07:00
Aaron Patterson 00698f26a9
`T_MOVED` should never be pushed on the mark stack
No objects should ever reference a `T_MOVED` slot.  If they do, it's
absolutely a bug.  If we kill the process when `T_MOVED` is pushed on
the mark stack it will make it easier to identify which object holds a
reference that hasn't been updated.
2020-05-07 08:44:11 -07:00
Yusuke Endoh 1084b679bd Restore the external and internal encodings of STDIN, STDOUT, and STDERR
IRB::ReadlineInputMethod#initialize changes them via IRB.set_encoding.
2020-05-08 00:19:54 +09:00
Yusuke Endoh 3b147c4213 test/irb/test_cmd.rb: clear IRB.@CONF on setup
It caches a path to .irbrc file, which has caused random failure:

```
  1) Failure:
TestIRB::ExtendCommand#test_irb_info_multiline [/home/mame/work/ruby/test/irb/test_cmd.rb:49]:
Expected /
        Ruby\sversion: .+\n
        IRB\sversion:\sirb .+\n
        InputMethod:\sReidlineInputMethod\swith\sReline .+ and .+\n
        \.irbrc\spath: .+
      /x to match "Ruby version: 2.8.0\n" +
"IRB version: irb 1.2.3 (2020-02-15)\n" +
"InputMethod: ReidlineInputMethod with Reline 0.1.4 and /tmp/test_reline_config_155659/.inputrc\n".
```
2020-05-08 00:15:01 +09:00
git 00a3b8f730 * 2020-05-08 [ci skip] 2020-05-08 00:13:53 +09:00
Kazuhiro NISHIYAMA 22b1e824d7
Check encodings of STDIN,STDOUT,STDERR too 2020-05-08 00:12:48 +09:00
卜部昌平 f38c641994 LEGAL: add legal situation of parse.h [ci skip]
There is parse.h apart from parse.c these days.
2020-05-07 17:20:05 +09:00