Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-15 | tool/gen-mailmap.rb: odaira is removed as he is added in upstream | Yusuke Endoh | |
https://github.com/ruby/ruby-commit-hook/commit/ddc83bea6fe6f4696e140b605db10ef0c922bba6 | |||
2019-12-15 | tool/gen-mailmap.rb: Added for generating git `.mailmap` file | Yusuke Endoh | |
`.mailmap` can be used To show canonical names and email addresses. It is helpful for statistics of committers. | |||
2019-12-15 | Add more debug info | Kazuhiro NISHIYAMA | |
closed server doesn't have useful info. So call inspect before close. And add local debug code in comment. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191215T092405Z.fail.html.gz ``` 1) Failure: IMAPTest#test_connection_closed_without_greeting [/export/home/rubyci/chkbuild-tmp/tmp/build/20191215T092405Z/ruby/test/net/imap/test_imap.rb:483]: [Net::IMAP::Error] exception expected, not #<RuntimeError: {:e=>#<Errno::EINVAL: Invalid argument - connect(2) for [::1]:41748>, :server=>#<TCPServer:(closed)>, :port=>41748, :server_addr=>"::1"}>. ``` | |||
2019-12-15 | Prepare to release rubygems-3.1.0 | Hiroshi SHIBATA | |
2019-12-15 | Delegate should be supported now | David Rodríguez | |
Since `did_you_mean` dropped its dependency on it. Notes: Merged: https://github.com/ruby/ruby/pull/2753 | |||
2019-12-15 | Fixed test failures with gem command path on ruby core repo. | Hiroshi SHIBATA | |
Notes: Merged: https://github.com/ruby/ruby/pull/2753 | |||
2019-12-15 | Vendor thor 1.0.0 | David Rodríguez | |
Notes: Merged: https://github.com/ruby/ruby/pull/2753 | |||
2019-12-15 | Prepare to release bundler-2.1.0 | Hiroshi SHIBATA | |
Notes: Merged: https://github.com/ruby/ruby/pull/2753 | |||
2019-12-15 | rand(beginless_range) raise Errno::EDOM instead of TypeError | Kazuhiro NISHIYAMA | |
same as `rand(endless_range)` Before: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 2: from -e:1:in `<main>' 1: from -e:1:in `rand' -e:1:in `-': nil can't be coerced into Integer (TypeError) ``` After: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 1: from -e:1:in `<main>' -e:1:in `rand': Numerical argument out of domain (Errno::EDOM) ``` | |||
2019-12-15 | [DOC] Fixed the class name in FrozenError#receiver | Nobuyoshi Nakada | |
2019-12-15 | Revert "[DOC] Fixed the class name in FrozenError#receiver" | Nobuyoshi Nakada | |
This reverts commit 5f56a5fc9be9ea7b088795c2d3871c2352a020c2. `FrozenError.new(mesg, nil).receiver` should not raise an ArgumentError. | |||
2019-12-15 | * 2019-12-15 [ci skip] | git | |
2019-12-15 | [DOC] Fixed the class name in FrozenError#receiver | Nobuyoshi Nakada | |
2019-12-15 | [DOC] Fixed the FrozenError.new result [ci skip] | Nobuyoshi Nakada | |
2019-12-14 | Improve highlighting in RubyVM::AbstractSyntaxTree docs when using `ri` | Benoit Daloze | |
2019-12-14 | Clarify in the documentation that RubyVM::AbstractSyntaxTree is not stable API | Benoit Daloze | |
* See [Feature #14844]. | |||
2019-12-14 | [Feature #13083] is already reverted | Kazuhiro NISHIYAMA | |
2019-12-14 | Update warnings in NEWS | Kazuhiro NISHIYAMA | |
2019-12-13 | Drop delegate dependency | Yuki Nishijima | |
Original comment: https://github.com/ruby/did_you_mean/commit/2f26c9ee770f28da0942c42cbc9e5800535b75e1 | |||
2019-12-13 | NEWS: fix pattern matching example | Marcus Stollsteimer | |
2019-12-14 | * 2019-12-14 [ci skip] | git | |
2019-12-14 | [ruby/irb] Restore environment variables | Nobuyoshi Nakada | |
https://github.com/ruby/irb/commit/236590882c | |||
2019-12-13 | Fixed a typo | Hiroshi SHIBATA | |
2019-12-13 | Added explicitly loading `Gem::Command` class | Hiroshi SHIBATA | |
2019-12-13 | warn should be a global function | Nobuyoshi Nakada | |
2019-12-13 | Fix visibility as module_function | Nobuyoshi Nakada | |
2019-12-13 | Add `Warning.[]` and `Warning.[]=` | Nobuyoshi Nakada | |
Notes: Merged: https://github.com/ruby/ruby/pull/2739 | |||
2019-12-13 | Create backtrace location array directly | Nobuyoshi Nakada | |
Notes: Merged: https://github.com/ruby/ruby/pull/2739 | |||
2019-12-13 | Moved Kernel#warn to warning.rb | Nobuyoshi Nakada | |
Notes: Merged: https://github.com/ruby/ruby/pull/2739 | |||
2019-12-13 | Prepare to release RubyGems 3.1.0 final version. | Hiroshi SHIBATA | |
2019-12-13 | Ignore error of `apt-get update` in MJIT workflow too | Kazuhiro NISHIYAMA | |
2019-12-13 | Ignore error of `apt-get update` on GitHub Actions | Kazuhiro NISHIYAMA | |
2019-12-13 | readable function names for inline functions. | Koichi Sasada | |
Now, C functions written by __builtin_cexpr!(code) and others are named as "__builtin_inline#{n}". However, it is difficult to know what the function is. This patch rename them into "__builtin_foo_#{lineno}" when cexpr! is in 'foo' method. | |||
2019-12-13 | Allow more than one major version number in target_os | Matt Valentine-House | |
2019-12-13 | Show a menu before a document | aycabta | |
IRB should show a menu first if a completed list has plural items. But just shows document without menu if a completed list with plural items includes a perfect matched item. The behavior is a bug. This commit fixes it. | |||
2019-12-13 | Improved the test for Thread#inspect [Feature #16412] | Nobuyoshi Nakada | |
2019-12-13 | * 2019-12-13 [ci skip] | git | |
2019-12-13 | Check wether TestReadline is defined | aycabta | |
2019-12-12 | Show the failed message too | Nobuyoshi Nakada | |
2019-12-12 | Move `rescue` for debug into block of assert_raise | Kazuhiro NISHIYAMA | |
2019-12-12 | [cygwin] fix File.absolute_path? test | Nobuyoshi Nakada | |
Paths start with the root are absolute on cygwin, regardless the drive letter. | |||
2019-12-12 | Cygwin path cannot be mapped to a UNC as-is | Nobuyoshi Nakada | |
2019-12-12 | Add more debug info when Errno::EINVAL | Kazuhiro NISHIYAMA | |
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191212T072406Z.fail.html.gz | |||
2019-12-12 | show self on control frame dump. | Koichi Sasada | |
control frame detailed info on RUBY_DEBUG=ci should also show self information. | |||
2019-12-12 | Make super in instance_eval in method in module raise TypeError | Jeremy Evans | |
This makes behavior the same as super in instance_eval in method in class. The reason this wasn't implemented before is that there is a check to determine if the self in the current context is of the expected class, and a module itself can be included in multiple classes, so it doesn't have an expected class. Implementing this requires giving iclasses knowledge of which class created them, so that super call in the module method knows the expected class for super calls. This reference is called includer, and should only be set for iclasses. Note that the approach Ruby uses in this check is not robust. If you instance_eval another object of the same class and call super, instead of an TypeError, you get super called with the instance_eval receiver instead of the method receiver. Truly fixing super would require keeping a reference to the super object (method receiver) in each frame where scope has changed, and using that instead of current self when calling super. Fixes [Bug #11636] Notes: Merged: https://github.com/ruby/ruby/pull/2717 | |||
2019-12-12 | proper initialization of struct RVALUE | 卜部昌平 | |
This changeset makes no difference unless GC_DEBUG is on. When that flag is set, struct RVALUE is bigger than struct RObject. We have to take care of the additional fields. Otherwise we get a SIGSEGV like shown below. The way obj is initialized in this patch works for both GC_DEBUG is on and off. See also ISO/IEC 9899:1999 section 6.7.8 paragraph #21. ``` Program received signal SIGSEGV, Segmentation fault. __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62 62 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory (gdb) bt #0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62 #1 0x00005555557dd9a7 in BSD_vfprintf (fp=0x7fffffff6be0, fmt0=0x5555558f3059 "@%s:%d", ap=0x7fffffff6dd0) at vsnprintf.c:1027 #2 0x00005555557db6f5 in ruby_do_vsnprintf (str=0x555555bfc58d <obj_info_buffers+1325> "", n=211, fmt=0x5555558f3059 "@%s:%d", ap=0x7fffffff6dd0) at sprintf.c:1022 #3 0x00005555557db909 in ruby_snprintf (str=0x555555bfc58d <obj_info_buffers+1325> "", n=211, fmt=0x5555558f3059 "@%s:%d") at sprintf.c:1040 #4 0x0000555555661ef4 in rb_raw_obj_info (buff=0x555555bfc560 <obj_info_buffers+1280> "0x0000555555d2bfa0 [0 ] T_STRING (String)", buff_size=256, obj=93825000456096) at gc.c:11449 #5 0x000055555565baaf in obj_info (obj=93825000456096) at gc.c:11612 #6 0x000055555565bae1 in rgengc_remembered (objspace=0x555555c0a1c0, obj=93825000456096) at gc.c:6618 #7 0x0000555555666987 in newobj_init (klass=93824999964192, flags=5, v1=0, v2=0, v3=0, wb_protected=1, objspace=0x555555c0a1c0, obj=93825000456096) at gc.c:2134 #8 0x0000555555666e49 in newobj_slowpath (klass=93824999964192, flags=5, v1=0, v2=0, v3=0, objspace=0x555555c0a1c0, wb_protected=1) at gc.c:2209 #9 0x0000555555666b94 in newobj_slowpath_wb_protected (klass=93824999964192, flags=5, v1=0, v2=0, v3=0, objspace=0x555555c0a1c0) at gc.c:2220 #10 0x000055555565751b in newobj_of (klass=93824999964192, flags=5, v1=0, v2=0, v3=0, wb_protected=1) at gc.c:2256 #11 0x00005555556575ca in rb_wb_protected_newobj_of (klass=93824999964192, flags=5) at gc.c:2272 #12 0x00005555557f36ea in str_alloc (klass=93824999964192) at string.c:728 #13 0x00005555557f2128 in rb_str_buf_new (capa=0) at string.c:1317 #14 0x000055555578c66d in rb_reg_preprocess (p=0x555555cc8148 "^-(.)(.+)?", end=0x555555cc8152 "", enc=0x555555cc7c80, fixed_enc=0x7fffffff74e8, err=0x7fffffff75f0 "") at re.c:2682 #15 0x000055555578ea13 in rb_reg_initialize (obj=93825000046736, s=0x555555cc8148 "^-(.)(.+)?", len=10, enc=0x555555cc7c80, options=0, err=0x7fffffff75f0 "", sourcefile=0x555555d1a5c0 "lib/optparse.rb", sourceline=1460) at re.c:2808 #16 0x000055555578e285 in rb_reg_initialize_str (obj=93825000046736, str=93825000046904, options=0, err=0x7fffffff75f0 "", sourcefile=0x555555d1a5c0 "lib/optparse.rb", sourceline=1460) at re.c:2869 #17 0x000055555578ee02 in rb_reg_compile (str=93825000046904, options=0, sourcefile=0x555555d1a5c0 "lib/optparse.rb", sourceline=1460) at re.c:2958 #18 0x0000555555748dfb in rb_parser_reg_compile (p=0x555555d1f760, str=93825000046904, options=0) at parse.y:12157 #19 0x00005555557581c3 in parser_reg_compile (p=0x555555d1f760, str=93825000046904, options=0) at parse.y:12151 #20 0x00005555557580ac in reg_compile (p=0x555555d1f760, str=93825000046904, options=0) at parse.y:12167 #21 0x0000555555746ebb in new_regexp (p=0x555555d1f760, node=0x555555dece68, options=0, loc=0x7fffffff89e8) at parse.y:10072 #22 0x000055555573d1f5 in ruby_yyparse (p=0x555555d1f760) at parse.y:4395 #23 0x000055555574a582 in yycompile0 (arg=93825000404832) at parse.y:5945 #24 0x00005555558c6898 in rb_suppress_tracing (func=0x55555574a470 <yycompile0>, arg=93825000404832) at vm_trace.c:427 #25 0x0000555555748290 in yycompile (vparser=93824999283456, p=0x555555d1f760, fname=93824999283624, line=1) at parse.y:5994 #26 0x00005555557481ae in rb_parser_compile_file_path (vparser=93824999283456, fname=93824999283624, file=93824999283400, start=1) at parse.y:6098 #27 0x00005555557cdd35 in load_file_internal (argp_v=140737488331760) at ruby.c:2023 #28 0x00005555556438c5 in rb_ensure (b_proc=0x5555557cd610 <load_file_internal>, data1=140737488331760, e_proc=0x5555557cddd0 <restore_load_file>, data2=140737488331760) at eval.c:1128 #29 0x00005555557cb68b in load_file (parser=93824999283456, fname=93824999283624, f=93824999283400, script=0, opt=0x7fffffffa468) at ruby.c:2142 #30 0x00005555557cb339 in rb_parser_load_file (parser=93824999283456, fname_v=93824999283624) at ruby.c:2164 #31 0x00005555556ba3e1 in load_iseq_eval (ec=0x555555c0a650, fname=93824999283624) at load.c:579 #32 0x00005555556b857a in require_internal (ec=0x555555c0a650, fname=93824999284352, exception=1) at load.c:1016 #33 0x00005555556b7967 in rb_require_string (fname=93824999284464) at load.c:1105 #34 0x00005555556b7939 in rb_f_require (obj=93824999994824, fname=93824999284464) at load.c:811 #35 0x00005555558b7ae0 in call_cfunc_1 (recv=93824999994824, argc=1, argv=0x7ffff7ecd0a8, func=0x5555556b7920 <rb_f_require>) at vm_insnhelper.c:2348 #36 0x00005555558a8889 in vm_call_cfunc_with_frame (ec=0x555555c0a650, reg_cfp=0x7ffff7fccfa0, calling=0x7fffffffaab0, cd=0x555555d76a10, empty_kw_splat=0) at vm_insnhelper.c:2513 #37 0x000055555589fb5c in vm_call_cfunc (ec=0x555555c0a650, reg_cfp=0x7ffff7fccfa0, calling=0x7fffffffaab0, cd=0x555555d76a10) at vm_insnhelper.c:2538 #38 0x000055555589f22e in vm_call_method_each_type (ec=0x555555c0a650, cfp=0x7ffff7fccfa0, calling=0x7fffffffaab0, cd=0x555555d76a10) at vm_insnhelper.c:2924 #39 0x000055555589ef47 in vm_call_method (ec=0x555555c0a650, cfp=0x7ffff7fccfa0, calling=0x7fffffffaab0, cd=0x555555d76a10) at vm_insnhelper.c:3038 #40 0x0000555555866dbd in vm_call_general (ec=0x555555c0a650, reg_cfp=0x7ffff7fccfa0, calling=0x7fffffffaab0, cd=0x555555d76a10) at vm_insnhelper.c:3075 #41 0x00005555558ae557 in vm_sendish (ec=0x555555c0a650, reg_cfp=0x7ffff7fccfa0, cd=0x555555d76a10, block_handler=0, method_explorer=0x5555558ae5d0 <vm_search_method_wrap>) at vm_insnhelper.c:4021 #42 0x000055555587745b in vm_exec_core (ec=0x555555c0a650, initial=0) at insns.def:801 #43 0x0000555555899b9c in rb_vm_exec (ec=0x555555c0a650, mjit_enable_p=1) at vm.c:1907 #44 0x000055555589aaf0 in rb_iseq_eval_main (iseq=0x555555c1da80) at vm.c:2166 #45 0x0000555555641f0b in rb_ec_exec_node (ec=0x555555c0a650, n=0x555555c1da80) at eval.c:277 #46 0x0000555555641d62 in ruby_run_node (n=0x555555c1da80) at eval.c:335 #47 0x000055555557a188 in main (argc=11, argv=0x7fffffffc848) at main.c:50 (gdb) fr 7 #7 0x0000555555666987 in newobj_init (klass=93824999964192, flags=5, v1=0, v2=0, v3=0, wb_protected=1, objspace=0x555555c0a1c0, obj=93825000456096) at gc.c:2134 2134 if (rgengc_remembered(objspace, (VALUE)obj)) rb_bug("newobj: %s is remembered.", obj_info(obj)); (gdb) p ((struct RVALUE*)obj)->file $1 = 0x65a5992b0fb25ce7 <error: Cannot access memory at address 0x65a5992b0fb25ce7> (gdb) ``` | |||
2019-12-12 | add casts | 卜部昌平 | |
%p is for void *. Becuase fprintf is a function with variadic arguments automatic cast from any pointer to void * does not work. We have to be explicit. | |||
2019-12-12 | fix arity mismatch | 卜部昌平 | |
I missed this in bc3e7924bc66d3ef77b219c72f3e59cc154550a3 because the function is inside of a #ifdef. | |||
2019-12-12 | implement make test-all TESTS=--gc-compact | 卜部昌平 | |
79eb5e1acac2339c6ec71db723298bdfcd92b233 implemented RUBY_TEST_GC_COMPACT=1 so why not make it also possible via the command line argument. | |||
2019-12-12 | Import json-2.3.0 from flori/json | Hiroshi SHIBATA | |