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

62324 Коммитов

Автор SHA1 Сообщение Дата
Utkarsh Gupta cbe4d29c2d [rubygems/rubygems] Roll back to Dir.chdir block
since without that, evaluating the gemspec from
outside `File.expand_path( __dir__)` won't work.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/9e5e52a1d9
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 084489be87 [rubygems/rubygems] Fix tests pertaining to newgem
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/e2ee0b7de3
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 3b0d2a3d6d [rubygems/rubygems] Fix RuboCop offenses
These offenses appear when you create a gem with
`bundle gem foo` and run `rubocop` over it.

Initially, there were around 45 offenses detected,
but with #3731 and this, the number of offenses
have been reduced to 2.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/fe9dcaa1b4
2020-07-15 16:05:12 +09:00
David Rodríguez 2b73f26fde [rubygems/rubygems] Show also output from all commands on rubygems checkout errors
https://github.com/rubygems/rubygems/commit/1fe24e471d
2020-07-15 16:05:12 +09:00
David Rodríguez 5ae80c5207 [rubygems/rubygems] Remove `--quiet` flag to `git checkout`
Since we don't show this output by default, it's better to be verbose
in case we happen to need more info.

https://github.com/rubygems/rubygems/commit/baa4ccf5a6
2020-07-15 16:05:12 +09:00
MSP-Greg 23cf99e99d [rubygems/rubygems] Bundler specs - Windows - remove skips, File.open => File.readlines
Using File.open without a block leaves a file reference that causes issues with file operations

commands/binstubs_spec.rb
install/gems/compact_index_spec.rb
install/gems/dependency_api_spec.rb
install/gems/standalone_spec.rb
runtime/executable_spec.rb

https://github.com/rubygems/rubygems/commit/4b9a6ca156
2020-07-15 16:05:12 +09:00
MSP-Greg ad743337b3 [rubygems/rubygems] bundler/spec/commands/binstubs_spec.rb - remove global Windows skip
Added one skip for:
bundle binstubs <gem>
when the gem exists in the lockfile
when generating bundle binstub outside bundler
should abort

https://github.com/rubygems/rubygems/commit/b77b484889
2020-07-15 16:05:12 +09:00
MSP-Greg f3ad8a00e2 [rubygems/rubygems] bundler/lib/bundler/installer.rb - fix Windows 'executable_stubs'
Windows normal shell requires binstubs with *.cmd extensions

https://github.com/rubygems/rubygems/commit/b46326eb1f
2020-07-15 16:05:12 +09:00
Sora Morimoto 48ba9b6106 Update actions/cache from v1 to v2
Signed-off-by: Sora Morimoto <sora@morimoto.io>
2020-07-15 15:57:16 +09:00
Koichi Sasada c25d249e63 RBasci::flags (VALUE) doesn't match int.
The type of RBasic::flags is VALUE, and INT2FIX(flags) does not
make sense. Use correct type to represent.
2020-07-15 13:36:38 +09:00
git dfe88350df * 2020-07-15 [ci skip] 2020-07-15 11:22:10 +09:00
Koichi Sasada fc220b129d rubygems is needed to run solo-file test 2020-07-15 11:21:33 +09:00
Koichi Sasada c87ee8005b rubygems is needed to run solo-file test 2020-07-15 11:21:14 +09:00
卜部昌平 e60cd14d85 ON_DEBUG: delete unused macro
This is no longer used.
2020-07-14 13:19:55 +09:00
卜部昌平 8d3a084572 _mjit_compile_invokebuiltin: sp_inc can be negative
Was my bad to assume sp_inc was positive.  Real criteria is the
calculated sp is non-negative.  We have to assert that.
2020-07-14 13:15:06 +09:00
Jeremy Evans 8900a25581
Fix Range#{max,minmax} for range with integer beginning and non-integer end
Previously, for inclusive ranges, the max would show up as the
end of the range, even though the end was not an integer and would
not be the maximum value.  For exclusive ranges, max/minmax would
previously raise a TypeError, even though it is possible to get the
correct maximum.

This change to max/minmax also uncovered a similar error in cover?,
which calls max in certain cases, so adjust the code there so that
cover? still works as expected.

Fixes [Bug #17017]
2020-07-13 10:09:38 -07:00
git a1bcfbe30c * 2020-07-14 [ci skip] 2020-07-14 02:07:08 +09:00
Takashi Kokubun 46d1777a43
Remove --jit-min-calls for now
--jit-min-calls=5 is too unstable
2020-07-13 10:06:34 -07:00
Nobuyoshi Nakada c2a6295ec0
Make the mkmf methods private in the global [Bug #16896] 2020-07-13 18:44:22 +09:00
Takashi Kokubun d99d96cc6d
Add --jit-min-calls=5 (#3313)
* RUN_OPTS needs to be specified for overriding it

* Add --jit-min-calls=5
2020-07-12 22:10:57 -07:00
卜部昌平 2e5a711f47 common.mk: add missing dependency 2020-07-13 12:45:26 +09:00
卜部昌平 927fe2422f mk_builtin_loader.rb: STACK_ADDR_FROM_TOP unusable
Stacks are emulated in MJIT, must not touch the original VM stack.

See also http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3061353
2020-07-13 12:30:43 +09:00
Kazuhiro NISHIYAMA 16bc9bf7e8
[DOC] Use https:// instead of http:// [ci skip] 2020-07-13 11:33:40 +09:00
卜部昌平 7e536b3be2 builtin.h: avoid copy&paste
Instead of doubling the invokebuiltin logic here and there, use the same
insns.def definition for both MJIT/non-JIT situations.
2020-07-13 08:56:18 +09:00
卜部昌平 802bcd3ec8 fix MJIT link error 2020-07-13 08:56:18 +09:00
卜部昌平 4506f6119a %p is not portable accross platforms
This commit fixes compiler error on MSVC.  %p on that platform is not
suitable to represent a compile-time constant.

https://ci.appveyor.com/project/ruby/ruby/builds/34017163/job/vj2a8uk3gwv9yxak#L24381
2020-07-13 08:56:18 +09:00
卜部昌平 2363a16e9a add comments 2020-07-13 08:56:18 +09:00
卜部昌平 5783d84a17 fix typo 2020-07-13 08:56:18 +09:00
卜部昌平 9721f477c7 inline Primitive.cexpr!
We can obtain the verbatim source code of Primitive.cexpr!.  Why not
paste that content into the JITed program.
2020-07-13 08:56:18 +09:00
卜部昌平 f66e0212ef precalc invokebuiltin destinations
Noticed that struct rb_builtin_function is a purely compile-time
constant.  MJIT can eliminate some runtime calculations by statically
generate dedicated C code generator for each builtin functions.
2020-07-13 08:56:18 +09:00
git 5d02c1dd14 * 2020-07-13 [ci skip] 2020-07-13 00:35:38 +09:00
Nobuyoshi Nakada 6c8af6b6f2
sync_default_gems.rb: Updated comments
* removed out-of-date and duplicate list
* stated that everything synced from github
2020-07-13 00:31:12 +09:00
Nobuyoshi Nakada 49cb2345c6
sync_default_gems.rb: Added `list` subcommand 2020-07-13 00:30:44 +09:00
Nobuyoshi Nakada 6cd600ef69
sync_default_gems.rb: Ignore conflicted files in toplevel more 2020-07-13 00:14:07 +09:00
Nobuyoshi Nakada 162d08b854
sync_default_gems.rb: Added -e option to edit when conflicted 2020-07-12 23:41:06 +09:00
Nobuyoshi Nakada 99a9c3fe2e
Fixed yday and wday with timezone [Bug #17024] 2020-07-12 21:58:13 +09:00
git 90935ff294 * 2020-07-12 [ci skip] 2020-07-12 17:30:52 +09:00
Kenta Murata 9b433d34da
bidecimal: improve tests' independence (#3297)
Tests depending on the rounding mode must specify the appropriate rounding
mode and restore to the original mode at the end.
2020-07-12 17:30:29 +09:00
Burdette Lamar 3b96ad9b54
Enhanced RDoc for Array#fill (#3301)
* Enhanced RDoc for Array#fill

* Update array.c

There's one more at 5072.  I'll get it.

Co-authored-by: Eric Hodel <drbrain@segment7.net>

* Update array.c

Co-authored-by: Eric Hodel <drbrain@segment7.net>

* Update array.c

Co-authored-by: Eric Hodel <drbrain@segment7.net>

* Update array.c

Co-authored-by: Eric Hodel <drbrain@segment7.net>

* Update array.c

Co-authored-by: Eric Hodel <drbrain@segment7.net>

* Update array.c

Co-authored-by: Eric Hodel <drbrain@segment7.net>
2020-07-11 08:01:56 -05:00
Nobuyoshi Nakada eaa2de3112
Fixed a comment, wrong binary prefix [ci skip] 2020-07-11 15:21:12 +09:00
Alan Wu cbf52087a2 Fix missing imemo cases in objspace_dump by refactoring
imemo_callcache and imemo_callinfo were not handled by the `objspace`
module and were showing up as "unknown" in the dump. Extract the code for
naming imemos and use that in both the GC and the `objspace` module.
2020-07-10 22:42:35 -04:00
Jeremy Evans 021cec938a Clarify behavior of super in method in module included in refinement [ci skip]
Fixes [Bug #16977]
2020-07-10 15:31:51 -07:00
git c786954bf8 * 2020-07-11 [ci skip] 2020-07-11 01:34:33 +09:00
Jeremy Evans ddd9704ae9 Encode ' as &apos; when using encode(xml: :attr)
Fixes [Bug #16922]
2020-07-10 09:34:08 -07:00
Kazuhiro NISHIYAMA 82489f0242
Show messages around the line when replacing failed in format_changelog 2020-07-10 19:27:11 +09:00
Takashi Kokubun 615758bd82
Fix an inaccurate comment in test_jit 2020-07-10 00:49:28 -07:00
Takashi Kokubun 7fa3c71bec
Make sure vm_call_cfunc uses inlined cc
which is checked by the first guard. When JIT-inlined cc and operand
cd->cc are different, the JIT-ed code might wrongly dispatch cd->cc even
while class check is done with another cc inlined by JIT.

This fixes SEGV on railsbench.
2020-07-10 00:44:02 -07:00
Nobuyoshi Nakada 4989987419
Explicit conversion to boolean to suppress shorten-64-to-32 warnings 2020-07-10 13:02:31 +09:00
Nobuyoshi Nakada a82252df42
Fixed another typo 2020-07-10 12:48:47 +09:00
Nobuyoshi Nakada 234f8eee33
Fixed typos 2020-07-10 12:32:48 +09:00