aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Rewrite dependency API specs to use new deployment modeDavid Rodríguez2020-06-052-13/+16
| | | | | | | | | Some of them were passing "by chance" because they used a `bundle install` command that failed, but the assertion was using the result of the previous. Others were skipped on bundler 3. Now they all pass in all versions. https://github.com/rubygems/rubygems/commit/cedf611e11
* [rubygems/rubygems] Make `forgotten_command_line_options` always "forget" ↵David Rodríguez2020-06-051-2/+0
| | | | | | options https://github.com/rubygems/rubygems/commit/4d39338670
* [rubygems/rubygems] Improve specs testing option remembering behaviorDavid Rodríguez2020-06-052-5/+5
| | | | | | By making them more explicit. https://github.com/rubygems/rubygems/commit/9979c5a811
* [rubygems/rubygems] Centralize `with` and `without` settingDavid Rodríguez2020-06-051-6/+2
| | | | https://github.com/rubygems/rubygems/commit/5e854722e2
* [rubygems/rubygems] Remove redundant substractionDavid Rodríguez2020-06-051-1/+1
| | | | https://github.com/rubygems/rubygems/commit/365b46329b
* [rubygems/rubygems] Remove unnecessary option mutationDavid Rodríguez2020-06-051-5/+2
| | | | https://github.com/rubygems/rubygems/commit/744c03d144
* [rubygems/rubygems] Fix `bundle install` unintentionally saving configurationDavid Rodríguez2020-06-052-8/+15
| | | | | | Even if no explicit flags were passed to it. https://github.com/rubygems/rubygems/commit/0598cbb68c
* [rubygems/rubygems] Move all `without` and `with` option handling togetherDavid Rodríguez2020-06-051-9/+9
| | | | https://github.com/rubygems/rubygems/commit/5e47879330
* [rubygems/rubygems] Change descriptions to not mention deprecated flagsDavid Rodríguez2020-06-051-2/+2
| | | | https://github.com/rubygems/rubygems/commit/731b3783f1
* [rubygems/rubygems] Fix flag name in spec descriptionsDavid Rodríguez2020-06-051-2/+2
| | | | https://github.com/rubygems/rubygems/commit/6395392b83
* [rubygems/rubygems] Improve wording of some specsDavid Rodríguez2020-06-051-7/+7
| | | | https://github.com/rubygems/rubygems/commit/3372b21553
* [rubygems/rubygems] Remove old no longer meaningful specDavid Rodríguez2020-06-051-10/+0
| | | | | | | | | This spec was originally written many years ago to verity gems were properly "remembered" in the lock file. At this point, the test feels a bit dummy since the first `bundle install` already runs on a "clean machine". https://github.com/rubygems/rubygems/commit/dbfefb3f5a
* [rubygems/rubygems] Revert multi ruby{,gems} version requirement fixDavid Rodríguez2020-06-053-245/+13
| | | | | | | This reverts commit 20f06d9e178211a3016133852b72d21ac7bb93ad, reversing changes made to f2b30cb70df8a518bef0e8a64bbceb86234d922d. https://github.com/rubygems/rubygems/commit/40802bdb18
* [rubygems/rubygems] Support running specs against a tarballDavid Rodríguez2020-06-053-8/+18
| | | | | | | | | | | | | When bundler specs are run from a ruby tarball (ruby-core does this), there's no git folder, so `git ls-files` fails. Support this case by making specs rely on the list of files from the bundler gemspec instead, and invert the spec that makes sure we ship the right set of files. As per the other quality specs, skip them in this case. https://github.com/rubygems/rubygems/commit/b28d5ec931
* [rubygems/rubygems] Remove unintended extra spaceDavid Rodríguez2020-06-051-1/+1
| | | | https://github.com/rubygems/rubygems/commit/1cc02930f3
* Revert "Fix a error in a `before(:suite)` hook"Hiroshi SHIBATA2020-06-051-18/+0
| | | | This reverts commit 67d2a715ca35090fbb3ab13df5b7348b1807dd47.
* Revert "Fix a failure in bundle version with version outputs the version ↵Hiroshi SHIBATA2020-06-051-2/+1
| | | | | | with build metadata" This reverts commit fcc8be0198a16cc5fa7d4827be0c781209b70f98.
* [rubygems/rubygems] Test against compact_index 0.13.0David Rodríguez2020-06-052-3/+3
| | | | https://github.com/rubygems/rubygems/commit/9f15b595ab
* [rubygems/rubygems] Bump compact_index to 0.12.1David Rodríguez2020-06-052-3/+3
| | | | https://github.com/rubygems/rubygems/commit/08374d0e4a
* [rubygems/rubygems] Deprecate the `--no-deployment` flagDavid Rodríguez2020-06-052-0/+15
| | | | | | | | | | | | And never recommend it inside CLI messages. This flag represents the default behaviour of `bundle install`, and the only reason it exists is to "override" previous `--deployment` flag usages which were silently remembered. So it should be deprecated just like all the other flags the rely on remembering their values across invocations. https://github.com/rubygems/rubygems/commit/40e50b7190
* [rubygems/rubygems] Don't recommend the `--no-deployment` flagDavid Rodríguez2020-06-052-6/+2
| | | | https://github.com/rubygems/rubygems/commit/b368c7e0c4
* [rubygems/rubygems] Pass `--deployment` flag directlyDavid Rodríguez2020-06-051-1/+1
| | | | | | | This spec is run only in bundler 2 mode, and it's testing the `--deployment` flag specifically. https://github.com/rubygems/rubygems/commit/a5d91c68b6
* [rubygems/rubygems] Unskip "monorepo issues"David Rodríguez2020-06-052-10/+0
| | | | | | They seem to be passing? https://github.com/rubygems/rubygems/commit/a00d1e6896
* [rubygems/rubygems] June man pagesDavid Rodríguez2020-06-0550-50/+50
| | | | https://github.com/rubygems/rubygems/commit/cea610e197
* Moved vm_empty_cc to local in vm.c [Bug #16934]Nobuyoshi Nakada2020-06-041-14/+1
| | | | Missed to commit a staged change.
* Moved vm_empty_cc to local in vm.c [Bug #16934]Nobuyoshi Nakada2020-06-041-1/+1
| | | | | As it is referenced only from compile.c, except for MJIT, simply use the accessor function.
* Removed no longer used constants [Bug #16934]Nobuyoshi Nakada2020-06-041-3/+0
| | | | | `RESERVED_HASH_VAL` and `RESERVED_HASH_SUBSTITUTION_VAL` have not been used directly in hash.c since 72825c35b0d8.
* Update leaked-globals [Bug #16934]Nobuyoshi Nakada2020-06-042-3/+3
| | | | | * match uppercase types which would be global, other than [BDT] * ignore `RUBY_` prefixed symbols
* No GITPULLOPTIONS by defaultNobuyoshi Nakada2020-06-049-9/+9
| | | | | To honor the environment variable, keep GITPULLOPTIONS unset by default, and appended the option to VCSUP.
* test/socket/test_addrinfo.rb: Fix syntax errorYusuke Endoh2020-06-041-1/+1
| | | | Sorry!
* test/socket/test_addrinfo.rb: Suppress Errno::EACCES when addr is in useYusuke Endoh2020-06-041-1/+4
| | | | | | | | | | | | | | | | | | MinGW seems to raise Errno::EACCES instead of EADDRINUSE when bind fails due to in use. https://github.com/ruby/ruby/runs/736825846 ``` 2) Error: TestSocketAddrinfo#test_connect_from: Errno::EACCES: Permission denied - bind(2) for 0.0.0.0:49721 D:/a/ruby/ruby/build/.ext/common/socket.rb:54:in `bind' D:/a/ruby/ruby/build/.ext/common/socket.rb:54:in `connect_internal' D:/a/ruby/ruby/build/.ext/common/socket.rb:114:in `connect_from' D:/a/ruby/ruby/src/test/socket/test_addrinfo.rb:379:in `block in test_connect_from' D:/a/ruby/ruby/src/test/socket/test_addrinfo.rb:374:in `open' D:/a/ruby/ruby/src/test/socket/test_addrinfo.rb:374:in `test_connect_from' ```
* No one reads the detached head adviceNobuyoshi Nakada2020-06-045-0/+13
|
* Fetch no tagsNobuyoshi Nakada2020-06-046-0/+9
| | | | Fetched tags by `make up` are not used, in CI environments.
* Removed fetch-depthNobuyoshi Nakada2020-06-046-6/+0
| | | | Only the last commit is used, unless creating the ChangeLog file.
* Enhanced Rdoc for Hash (#3178)Burdette Lamar2020-06-031-53/+160
| | | | | | | * Enhanced Rdoc for Hash * Fix typo in Hash Rdoc * Enhanced Rdoc for Hash
* Properly resolve refinements in defined? on private call [Bug #16932]Nobuyoshi Nakada2020-06-044-4/+34
|
* Properly resolve refinements in defined? on method call [Bug #16932]Nobuyoshi Nakada2020-06-043-2/+30
|
* * 2020-06-04 [ci skip]git2020-06-041-1/+1
|
* Ensure origins for all included, prepended, and refined modulesJeremy Evans2020-06-039-48/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes various issues when a module is included in or prepended to a module or class, and then refined, or refined and then included or prepended to a module or class. Implement by renaming ensure_origin to rb_ensure_origin, making it non-static, and calling it when refining a module. Fix Module#initialize_copy to handle origins correctly. Previously, Module#initialize_copy did not handle origins correctly. For example, this code: ```ruby module B; end class A def b; 2 end prepend B end a = A.dup.new class A def b; 1 end end p a.b ``` Printed 1 instead of 2. This is because the super chain for a.singleton_class was: ``` a.singleton_class A.dup B(iclass) B(iclass origin) A(origin) # not A.dup(origin) ``` The B iclasses would not be modified, so the includer entry would be still be set to A and not A.dup. This modifies things so that if the class/module has an origin, all iclasses between the class/module and the origin are duplicated and have the correct includer entry set, and the correct origin is created. This requires other changes to make sure all tests still pass: * rb_undef_methods_from doesn't automatically handle classes with origins, so pass it the origin for Comparable when undefing methods in Complex. This fixed a failure in the Complex tests. * When adding a method, the method cache was not cleared correctly if klass has an origin. Clear the method cache for the klass before switching to the origin of klass. This fixed failures in the autoload tests related to overridding require, without breaking the optimization tests. Also clear the method cache for both the module and origin when removing a method. * Module#include? is fixed to skip origin iclasses. * Refinements are fixed to use the origin class of the module that has an origin. * RCLASS_REFINED_BY_ANY is removed as it was only used in a single place and is no longer needed. * Marshal#dump is fixed to skip iclass origins. * rb_method_entry_make is fixed to handled overridden optimized methods for modules that have origins. Fixes [Bug #16852]
* Append subsec part instead of creating new stringNobuyoshi Nakada2020-06-031-1/+1
|
* Quarantine specs which fail frequently with CHECK_LEAKS=trueBenoit Daloze2020-06-031-0/+2
|
* Fixed up 56ca006784dNobuyoshi Nakada2020-06-031-6/+13
| | | | | Run lldb just before sending ABRT or KILL signal. Some tests terminate child processes by TERM signal intentionally.
* vm_invoke_proc_block: reduce recursion卜部昌平2020-06-031-4/+8
| | | | | According to nobu recursion can be longer than my expectation. Limit them here.
* vm_call_symbol: check stack overflow卜部昌平2020-06-031-0/+1
| | | | | | | | | VM stack could overflow here. The condition is when a symbol is passed to a block-taking method via &variable, and that symbol has never been used for actual method names (thus yielding that results in calling method_missing), and the VM stack is full (no single word left). This is a once-in-a-blue-moon event. Yet there is a very tiny room of stack overflow. We need to check that.
* vm_invoke_block: remove auto qualifier卜部昌平2020-06-031-3/+3
| | | | Was (harmless but) redundant.
* add benchmark for different block handlers卜部昌平2020-06-031-0/+27
|
* vm_insnhelper.c: add space [ci skip]卜部昌平2020-06-031-0/+6
| | | | Just cosmetic change to improve readability.
* vm_invoke_symbol_block: reduce MEMCPY卜部昌平2020-06-031-59/+84
| | | | | | | | | | | | | | | | | | This commit changes the number of calls of MEMCPY from... | send | &:sym -------------------------|-------|------- Symbol already interned | once | twice Symbol not pinned yet | none | once to: | send | &:sym -------------------------|-------|------- Symbol already interned | once | none Symbol not pinned yet | twice | once So it sacrifices exceptional situation for normal path.
* vm_invoke_symbol_block: call vm_call_opt_send卜部昌平2020-06-031-8/+33
| | | | | | Symbol#to_proc and Object#send are closely related each other. Why not share their implementations. By doing so we can skip recursive call of vm_exec(), which could benefit for speed.
* vm_invoke_block: force indirect jump卜部昌平2020-06-031-11/+11
| | | | | | | | | | | | | | This changeset slightly speeds up on my machine. Calculating ------------------------------------- before after Optcarrot Lan_Master.nes 38.33488426546287 40.89825082589147 fps 40.91288557922081 41.48687465359386 40.96591995270991 41.98499064664184 41.20461943032173 43.67314690779162 42.38344888176518 44.02777536251875 43.43563728880915 44.88695892714136 43.88082889062643 45.11226186242523