Takashi Kokubun
4da4ad69bb
[ruby/irb] Support GitHub Actions
...
https://github.com/ruby/irb/commit/8e9e6c4037
2021-01-18 23:55:51 -08:00
Takashi Kokubun
b2159f7c38
[ruby/irb] Stub a screen size for tests
...
https://github.com/ruby/irb/commit/6663057083
2021-01-18 23:35:50 -08:00
Takashi Kokubun
4886535ab2
Avoid suppressing unrelated warnings
2021-01-18 20:44:48 -08:00
Yusuke Endoh
f12320cd57
test/ruby/test_jit.rb: Avoid a warning
...
http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20210119T033003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_jit.rb:781:
warning: -e:5: warning: possibly useless use of -@ in void context
```
2021-01-19 13:40:39 +09:00
Yusuke Endoh
ff8c92359a
test/ruby/test_pattern_matching.rb: Avoid a warning
...
http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20210119T033003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_pattern_matching.rb:798:
warning: assigned but unused variable - x
```
2021-01-19 13:34:07 +09:00
Vladimir Dementyev
1b89b99941
Mark pattern labels as unremoveable
...
Peephole optimization doesn't play well with find pattern at
least. The only case when a pattern matching could have
unreachable patterns is when we have lasgn/dasgn node, which
shouldn't happen in real-life.
Fixes https://bugs.ruby-lang.org/issues/17534
2021-01-19 08:34:01 +09:00
Takashi Kokubun
9d1475c621
Fix JIT link failures
...
forgotten in https://github.com/ruby/ruby/pull/4018
2021-01-18 14:52:33 -08:00
Nobuhiro IMAI
166f33d0d1
[ruby/irb] skip a failling test on TruffleRuby
...
* due to the difference of backtrace pointed out by @aycabta
https://github.com/ruby/irb/commit/5e00a0ae61
2021-01-18 02:13:01 +09:00
Nobuhiro IMAI
d290a02bd7
[ruby/irb] handle repeated exception separately
...
https://github.com/ruby/irb/commit/fcf6b34bc5
2021-01-18 02:12:53 +09:00
Nobuhiro IMAI
3f0b4665df
[ruby/irb] handle `__ENCODING__` as a keyword as well
...
https://github.com/ruby/irb/commit/a6a33d908f
2021-01-18 02:12:43 +09:00
aycabta
f3156e457d
[ruby/reline] Windows needs more times to wait rendering
...
https://github.com/ruby/reline/commit/53ff2b09c7
2021-01-18 02:09:34 +09:00
aycabta
9279d3f255
[ruby/reline] Tests with yamatanooroti don't need chdir
...
Because of chdir, log files ware created in temporary directries on Windows.
https://github.com/ruby/reline/commit/200b469a68
2021-01-18 02:08:41 +09:00
Nobuyoshi Nakada
f96eaf54a2
Use the dedicated assertion
2021-01-17 21:55:48 +09:00
Takashi Kokubun
8d099aa040
Warn Struct#initialize with only keyword args ( #4070 )
...
* Warn Struct#initialize with only keyword args
A part of [Feature #16806 ]
* Do not warn if `keyword_init: false`
is explicitly specified
* Add a NEWS entry
* s/in/from/
* Make sure all fields are initialized
2021-01-17 01:35:54 -08:00
manga_osyo
b84b253a69
Fix Ripper with heredoc.
2021-01-17 12:58:13 +09:00
Kenta Murata
b130644584
[ruby/bigdecimal] Fix for the coerce cases in divide and DoDivmod
...
https://github.com/ruby/bigdecimal/commit/1cb92487f7
2021-01-16 00:09:26 +09:00
Nobuyoshi Nakada
0d57d59933
Keep encoding in the result of File.expand_path [Bug #17517 ]
2021-01-15 17:46:48 +09:00
Jeremy Evans
e09094546a
Make Module#prepend affect ancestor chain even if argument already included in receiver
...
Previously, if a class included a module and then prepended the
same module, the prepend had no effect. This changes the behavior
so that the prepend has an effect unless the module is already
prepended the receiver.
While here, rename the origin_seen variable in include_modules_at,
since it is misleading. The variable tracks whether c has been seen,
not whether the origin of klass has been.
Fixes [Bug #17423 ]
2021-01-14 20:43:30 -08:00
Takashi Kokubun
e1fee7f949
Rename RubyVM::MJIT to RubyVM::JIT
...
because the name "MJIT" is an internal code name, it's inconsistent with
--jit while they are related to each other, and I want to discourage future
JIT implementation-specific (e.g. MJIT-specific) APIs by this rename.
[Feature #17490 ]
2021-01-13 22:46:51 -08:00
Aaron Patterson
efcdf68e64
Guard callinfo
...
Callinfo was being written in to an array and the GC would not see the
reference on the stack. `new_insn_send` creates a new callinfo object,
then it calls `new_insn_core`. `new_insn_core` allocates a new INSN
linked list item, which can end up calling `xmalloc` which will trigger
a GC:
70cd351c7c/compile.c (L968-L969)
Since the callinfo object isn't on the stack, the GC won't see it, and
it can get collected. This patch just refactors `new_insn_send` to keep
the object on the stack
Co-authored-by: John Hawthorn <john@hawthorn.email>
2021-01-13 16:13:53 -08:00
Nobuyoshi Nakada
0036648a42
Capture to reserved name variables if already defined [Bug #17533 ]
2021-01-13 21:16:00 +09:00
Nobuyoshi Nakada
e9b93d67ba
Positional and keyword arguments for timezone are exclusive
...
[Feature #17485 ]
2021-01-13 18:37:36 +09:00
Nobuyoshi Nakada
4b15caee8f
Added `in:` timezone option to `Time.new` [Feature #17485 ]
2021-01-13 18:15:50 +09:00
Nobuyoshi Nakada
6f6dfdcc68
Make warning values consistent [Bug #17523 ]
...
They should be affected, as well as `$VERBOSE`, by `-w`/`-W`
options, not only in the main script but in scripts loaded by `-r`
option too.
2021-01-13 18:12:49 +09:00
Nobuyoshi Nakada
85b5d4c8bf
Revert "[Bug #11213 ] let defined?(super) call respond_to_missing?"
...
This reverts commit fac2498e02
for
now, due to [Bug #17509 ], the breakage in the case `super` is
called in `respond_to?`.
2021-01-13 18:11:46 +09:00
Nobuyoshi Nakada
9441f3f970
Allow UTC offset without colons per ISO-8601 [Bug #17504 ]
2021-01-13 16:37:59 +09:00
Marc-Andre Lafortune
f48edc28dd
Fix method protection for modules in the ancestry chain.
...
[Fixes ruby/ostruct#23 ]
2021-01-12 23:29:39 -05:00
Kenta Murata
a5b4b806de
[ruby/bigdecimal] Allow digits=0 in BigDecimal(flt) and Float#to_d
...
Using dtoa of mode=0, we can determine the number of digits in decimal that is
necessary to represent the given Float number without errors.
This change permits digits=0 in BigDecimal(flt) and Float#to_d, and these
methods use dtoa of mode=0 when the given digits is 0.
Internal implicit conversion from Float also uses digits=0.
[Fix GH-70]
https://github.com/ruby/bigdecimal/commit/2dbe170e35
2021-01-13 11:49:18 +09:00
Hiroshi SHIBATA
30f1316401
Skip test when UDP server is no response.
2021-01-13 11:27:30 +09:00
Kenta Murata
2175c2c957
[ruby/bigdecimal] Use pre-allocated objects for special values
...
https://github.com/ruby/bigdecimal/commit/95c201f2d3
2021-01-13 01:58:23 +09:00
Kenta Murata
6670de82c2
[ruby/bigdecimal] Fix exception message raised in Kernel.BigDecimal
...
https://github.com/ruby/bigdecimal/commit/d163f170a4
https://github.com/ruby/bigdecimal/commit/ff8eeeb064
2021-01-13 01:27:04 +09:00
aycabta
eb5a094fc0
[ruby/reline] Move the cursor correctly when deleting at eol
...
This fixes ruby/reline#246 .
https://github.com/ruby/reline/commit/07a73ba601
2021-01-13 01:12:54 +09:00
aycabta
44817db28b
[ruby/reline] Handle ed_search_{prev,next}_history in multiline correctly
...
The current line was being handled incorrectly when displaying the hit
history, so it has been fixed to be correct.
https://github.com/ruby/reline/commit/a3df4343b3
2021-01-13 01:12:54 +09:00
Hiroshi SHIBATA
0dc95266e8
Fix the failing test with XDG_CONFIG_HOME
2021-01-12 20:15:18 +09:00
Nobuyoshi Nakada
7dc0511ea4
Remove "." and ".." from Dir.glob with FNM_DOTMATCH [Bug #17280 ]
...
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2021-01-12 20:02:43 +09:00
Nobuyoshi Nakada
1eb8eb55c2
Convert time component strings to integers more strictly
...
https://bugs.ruby-lang.org/issues/17485#change-89871
2021-01-12 17:24:43 +09:00
Nobuyoshi Nakada
b017848f8a
Show seconds of utc_offset if not zero
2021-01-12 17:00:14 +09:00
Nobuyoshi Nakada
480f436dac
Suppress constant redefinition warnings
2021-01-11 00:33:26 +09:00
Nobuyoshi Nakada
590dc06e38
Get rid of defining methods for tests in core classes
...
Not to interfere in other tests.
2021-01-09 22:38:06 +09:00
Kenta Murata
89f3125207
[ruby/bigdecimal] Add test cases of conversion from Float
...
https://github.com/ruby/bigdecimal/commit/28d3836366
2021-01-09 20:35:08 +09:00
Nobuhiro IMAI
7ff0e93f96
parse.y: handle "duplicated argument name" appropriately on ripper.y
...
refs: 733ed1e184
2021-01-09 13:33:33 +09:00
Takashi Kokubun
98bd7e87a0
[ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.pp
...
The incompatible interface is not helpful, again if you want to use it
as a standalone library, falling it back to PP.
Original PP.pp also ends with `out << "\n"`.
https://github.com/ruby/irb/commit/4c74c7d84c
2021-01-07 22:43:40 -08:00
Koichi Sasada
d4b7e967b6
should use `assert_include` here.
...
Random ordering test can introduce antoher candidate so it should be
`assert_include`.
2021-01-08 14:44:26 +09:00
aycabta
01235f800f
[ruby/reline] Suppress auto indent for adding newlines in pasting
...
Co-authored-by: Juanito Fatas <me@juanitofatas.com>
https://github.com/ruby/reline/commit/074bb017a7
2021-01-08 13:25:18 +09:00
aycabta
76c9a3c8c6
[ruby/reline] Suppress crashing when dynamic_prompt_proc returns a broken prompt list
...
Co-authored-by: Juanito Fatas <me@juanitofatas.com>
https://github.com/ruby/reline/commit/558f7be168
2021-01-08 13:25:18 +09:00
aycabta
88af5085db
[ruby/reline] Suppress crashing when auto_indent_proc returns broken indent info
...
Co-authored-by: Juanito Fatas <me@juanitofatas.com>
https://github.com/ruby/reline/commit/7c24276275
2021-01-08 13:25:18 +09:00
aycabta
e356b71d35
[ruby/reline] Remove debug print
...
https://github.com/ruby/reline/commit/d7fbaedc6a
2021-01-08 13:25:18 +09:00
aycabta
ea75aed98e
[ruby/reline] Correct var names in Reline were different from vi-*-mode-string
...
https://github.com/ruby/reline/commit/8255fc93b9
2021-01-08 13:25:18 +09:00
aycabta
54c1dcba2b
[ruby/reline] Update cursor correctly when just cursor moving
...
This fixes ruby/reline#236 and ruby/reline#239 .
https://github.com/ruby/reline/commit/3e3c89d00b
2021-01-08 13:25:18 +09:00
aycabta
111fddd543
[ruby/irb] Fix BACK_TRACE_LIMIT logic
...
https://github.com/ruby/irb/commit/30dc5d43fe
2021-01-08 13:25:18 +09:00
aycabta
917050220a
[ruby/irb] Use Exception#full_message to show backtrace in the correct order
...
[Bug #17466 ]
https://github.com/ruby/irb/commit/1c76845cca
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI
ed3264d37a
[ruby/irb] refactoring an error handling in `IRB::Inspector`
...
* moved rescue clause to `#inspect_value` to catch all failures in inspectors
* test with all (currently five kind of) inspect modes
- tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject`
https://github.com/ruby/irb/commit/9d112fab8e
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI
f594775230
[ruby/irb] do not escape a predicate method for doc namespace
...
* Fixes #88
https://github.com/ruby/irb/commit/d431a30af4
2021-01-08 13:25:18 +09:00
Kenta Murata
82f6085b3e
[ruby/bigdecimal] Fix trailing zero handling in rb_uint64_convert_to_BigDecimal
...
https://github.com/ruby/bigdecimal/commit/2056604d56
2021-01-07 10:20:40 +09:00
Kenta Murata
698d7947c3
[ruby/bigdecimal] Include TestBigDecimalBase in TestBigDecimalUtil
...
https://github.com/ruby/bigdecimal/commit/f732201df1
2021-01-07 10:19:46 +09:00
Nobuyoshi Nakada
069649389c
strip trailing spaces [ci skip]
2021-01-06 17:34:18 +09:00
Takashi Kokubun
d9fdca81ac
600x larger timeout for Reline
...
I didn't notice it's msec. 2.5s is too short.
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3311385
2021-01-05 23:02:32 -08:00
Adam Hess
e13f41e02d
[ruby/ostruct] Allow ostruct to return a value on super ( #4028 )
...
This fixes cases where you can super in something that inherits from OpenStruct
Co-authored-by: John Hawthorn <john@hawthorn.email>
2021-01-05 18:34:45 -05:00
Nobuyoshi Nakada
ead8d89bd7
[ruby/io-console] Ignore chomp! result and return the modified string
...
https://github.com/ruby/io-console/commit/09e5ccc729
2021-01-05 21:26:11 +09:00
aycabta
0123bc9d38
[ruby/irb] Use error tokens if there are no correct tokens in the same place
...
For example, the broken code "%www" will result in only one error token.
https://github.com/ruby/irb/commit/9fa39a7cf3
2021-01-05 18:06:43 +09:00
aycabta
5a1866caff
[ruby/irb] Use Ripper::Lexer#scan to take broken tokens
...
ref. https://github.com/ruby/reline/pull/242
https://github.com/ruby/irb/commit/54f90cb6c9
2021-01-05 18:06:34 +09:00
aycabta
505e01fe12
[ruby/irb] Heredoc may contain multiple newlines in a single token
...
Use the start token as the indentation criteria so that it works properly in
heredoc.
ref. https://github.com/ruby/reline/pull/242
https://github.com/ruby/irb/commit/9704808dfd
2021-01-05 18:06:26 +09:00
aycabta
5012512398
[ruby/irb] Handle indentations related to keyword "do" correctly
...
This fixes ruby/irb#158 .
https://github.com/ruby/irb/commit/964643400b
2021-01-05 18:06:10 +09:00
aycabta
e72a6ed45f
[ruby/irb] Escape invalid byte sequence in Exception
...
This fixes ruby/irb#141 .
https://github.com/ruby/irb/commit/0815317d42
2021-01-05 18:05:06 +09:00
aycabta
cce72a2411
[ruby/irb] Newline in oneliner def doesn't reset indent
...
This closes ruby/irb#132 .
https://github.com/ruby/irb/commit/43456dcf5e
2021-01-05 18:04:45 +09:00
aycabta
515d6b47ad
[ruby/irb] Stringify when a non-object is passed to PP#text
...
If a nested object is passed to #pp, it may be sometimes passed to the #text
method as an object without being stringified.
This is fixed on the Ruby main repository;
433a3be86a
but it was a bug of Ripper so still needs this workaround for using irb
as a gem on Ruby 3.0.0 or earlier.
Co-authored-by: k0kubun <takashikkbn@gmail.com>
https://github.com/ruby/irb/commit/8d13df22ee
2021-01-04 20:14:31 -08:00
Takashi Kokubun
7a3322a0fd
Fix broken JIT of getinlinecache
...
e7fc353f04
reverted vm_ic_hit_p's signature change made in 53babf35ef
,
which broke JIT compilation of getinlinecache.
To make sure it doesn't happen again, I separated vm_inlined_ic_hit_p to
make the intention clear.
2021-01-04 13:09:08 -08:00
Koichi Sasada
e7fc353f04
enable constant cache on ractors
...
constant cache `IC` is accessed by non-atomic manner and there are
thread-safety issues, so Ruby 3.0 disables to use const cache on
non-main ractors.
This patch enables it by introducing `imemo_constcache` and allocates
it by every re-fill of const cache like `imemo_callcache`.
[Bug #17510 ]
Now `IC` only has one entry `IC::entry` and it points to
`iseq_inline_constant_cache_entry`, managed by T_IMEMO object.
`IC` is atomic data structure so `rb_mjit_before_vm_ic_update()` and
`rb_mjit_after_vm_ic_update()` is not needed.
2021-01-05 02:27:58 +09:00
Hiroshi SHIBATA
5537adf719
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +09:00
Nobuyoshi Nakada
35c3a24c8c
Fixed error message when % at EOF
2021-01-04 12:11:37 +09:00
Nobuyoshi Nakada
f4be7a510e
Added tests for Time#getlocal with UTC offset
2021-01-03 23:56:04 +09:00
Takashi Kokubun
4724bf856f
Avoid hanging on --jit-wait after MJIT.pause
...
When a worker is stopped, nobody will JIT a method for you.
2021-01-03 00:05:38 -08:00
zverok
b8d33df1d9
Add Enumerable#compact and Enumerator::Lazy#compact
2021-01-02 17:27:24 +09:00
Kenta Murata
c2c0147538
[ruby/bigdecimal] Fix test for Ruby 2.4
...
Ruby 2.4 does not have RbConfig::LIMITS.
https://github.com/ruby/bigdecimal/commit/c8087523b0
2021-01-02 00:54:09 +09:00
Kenta Murata
448a67cd81
[ruby/bigdecimal] Implement special conversions for 64-bit integers
...
This change improves the conversion speed from small integers.
```
Comparison:
big_n9
master: 4003688.9 i/s
bigdecimal 3.0.0: 1270551.0 i/s - 3.15x slower
big_n19
master: 5410096.4 i/s
bigdecimal 3.0.0: 1000250.3 i/s - 5.41x slower
```
https://github.com/ruby/bigdecimal/commit/3429bd7e6f
2021-01-02 00:54:09 +09:00
Kenta Murata
5ee6830abe
[ruby/bigdecimal] Fix test_limit
...
Keep the default value of BigDecimal.limit by BigDecimal.save_limit
to avoid failures of the other test methods due to the unexpected limit.
https://github.com/ruby/bigdecimal/commit/bdc1cc6585
2021-01-02 00:30:57 +09:00
Nobuyoshi Nakada
ab32e98f98
Added AST assertions for method definition arguments [Bug #17495 ]
2021-01-01 14:48:46 +09:00
Nobuyoshi Nakada
1e51027763
Added AST tests for endless method definitions
2021-01-01 14:45:00 +09:00
Nobuyoshi Nakada
20a8425aa0
Make any hash values fixable [Bug #17488 ]
...
As hnum is an unsigned st_index_t, the result of RSHIFT may not be
in the fixable range.
Co-authored-by: NeoCat <neocat@neocat.jp>
2020-12-31 12:11:45 +09:00
Takashi Kokubun
15c129d087
Try increasing SMTP's read_timeout for --jit-wait
...
for random hangs like:
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302796
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302188
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3301293
2020-12-29 22:02:48 -08:00
Takashi Kokubun
8e231ffa8c
Increase timeout for reline with --jit-wait
...
for failures like:
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-130509
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-165132
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201228-015519
2020-12-29 20:06:53 -08:00
Nobuhiro IMAI
9b7ceb6765
irb: add more syntax errors colorizing support ( #3967 )
2020-12-28 23:07:20 -08:00
Takashi Kokubun
af9d4ee133
[ruby/irb] Fix failing tests
...
https://github.com/ruby/irb/commit/7723ade899
2020-12-28 23:01:01 -08:00
Nobuyoshi Nakada
c8010fcec0
Dup kwrest hash when merging other keyword arguments [Bug #17481 ]
2020-12-28 01:52:18 +09:00
Nobuyoshi Nakada
92f9f998fb
test/test_trick.rb: fixed the position to add timeout
2020-12-25 22:23:53 +09:00
Yusuke Endoh
a01d28fed7
test/test_trick.rb: increase timeout of some tests
...
http://rubyci.s3.amazonaws.com/raspbian10-armv7l/ruby-master/log/20201225T071824Z.fail.html.gz
2020-12-25 21:58:50 +09:00
Nobuyoshi Nakada
caae14d90b
test_trick.rb: Make the encoding explicit for code written in UTF-8
2020-12-25 15:57:41 +09:00
Yusuke Endoh
09216f63ba
test/test_trick.rb: Add a test file for TRICK entries ( #3988 )
...
* test/test_trick.rb: Add a test file for TRICK entries
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2020-12-25 15:22:37 +09:00
aycabta
9a7647d9eb
[ruby/reline] Doesn't contain terminate spaces by cw
...
This closes ruby/reline#233 .
https://github.com/ruby/reline/commit/4c3f2e2eae
2020-12-24 23:26:22 +09:00
aycabta
78421319d0
[ruby/reline] Use #bytesize for vi_replace_char
...
This closes ruby/reline#228 .
https://github.com/ruby/reline/commit/8205fa0b00
2020-12-24 23:26:22 +09:00
aycabta
0db9842b2c
[ruby/reline] Delete the last char of a line by dw
...
This closes ruby/reline#229 .
https://github.com/ruby/reline/commit/3f0ae689c4
2020-12-24 23:26:22 +09:00
aycabta
634b231f33
[ruby/reline] Discard prompt cache by changing mode icon
...
https://github.com/ruby/reline/commit/bfeda8a79b
2020-12-24 23:26:22 +09:00
Nobuyoshi Nakada
bdbbfd1fa5
Store errno in struct rb_process_status
...
To propagate errno in the fiber thread scheduler hook.
Returns nil when no terminated process.
2020-12-24 22:59:37 +09:00
Marc-Andre Lafortune
7ca2ca9e32
Remove unneeded code
2020-12-24 04:58:40 -05:00
Yusuke Endoh
8e1c0b2f93
dir.c: chdir conflict should raise only when called in different thread
...
... and keep it as a warning (like 2.7) when it is called in the same
thread. [Bug #15661 ]
2020-12-24 14:34:40 +09:00
Koichi Sasada
6f29716f9f
shareable_constant_value: experimental_copy
...
"experimental_everything" makes the assigned value, it means
the assignment change the state of assigned value.
"experimental_copy" tries to make a deep copy and make copyied object
sharable.
2020-12-24 14:28:47 +09:00
Jeremy Evans
1e215a66d2
Fix class of method in Method#inspect for singleton classes of classes
...
Previously, due to a change to fix bug 15608, Method#inspect output
changed for class methods:
Ruby 2.7
"#<Method: String.prepend(*)>"
Before change:
"#<Method: #<Class:Object>(Module)#prepend(*)>"
This is wrong because the Method object was created from String and
not Object. This is because the fix for bug 15608 assumed it was
being called on the singleton class of a instance, and would skip
the first singleton class until it got to the class itself. For
class methods, this results in always using the superclass. Fix
behavior to not skip until the superclass if the singleton class
is the singleton class of a module or class.
After change:
"#<Method: #<Class:Object>(Module)#prepend(*)>"
Fixes [Bug #17428 ]
2020-12-23 19:29:19 -08:00
Yusuke Endoh
f755926ddd
test/ruby/test_module.rb: not depend on the order of method definitions
2020-12-24 10:15:15 +09:00
Nobuyoshi Nakada
4a8ff22f0c
Reset paren_nest at tAREF and tASET [Bug #17431 ]
2020-12-24 01:39:52 +09:00
Yusuke Endoh
3a81daaf8d
Module#public_class_method also accepts a symbol array as an argument
...
I'm unsure if this is intentional, but add a document anyway.
[Feature #17314 ]
2020-12-24 00:15:29 +09:00