Samuel Williams
5f69a7f604
Expose scheduler as public interface & bug fixes. ( #3945 )
...
* Rename `rb_scheduler` to `rb_fiber_scheduler`.
* Use public interface if available.
* Use `rb_check_funcall` where possible.
* Don't use `unblock` unless the fiber was non-blocking.
2021-02-09 19:39:56 +13:00
Keith Bennett
3a7ff66abc
[ruby/benchmark] Adds `Tms#to_h`
...
[Feature #17601 ]
2021-02-07 23:06:17 -05:00
Nobuyoshi Nakada
bf627e518d
Forward keyword arguments to ARGF from global functions
2021-02-08 11:33:53 +09:00
Nobuyoshi Nakada
1d686bdeb9
Added test for keyword arguments to ARGF
2021-02-08 11:31:34 +09:00
aycabta
300084a854
[ruby/reline] Terminate correctly in the middle of lines higher than the screen
...
https://github.com/ruby/reline/commit/e1d9240ada
2021-02-07 05:12:19 +09:00
aycabta
fee19da230
[ruby/reline] Autowrap correctly when inserting chars in the middle of a line
...
https://github.com/ruby/reline/commit/ebaf37255f
2021-02-07 05:12:07 +09:00
aycabta
7b354cf67b
[ruby/irb] Enable to reassign a new block with "measure" command
...
https://github.com/ruby/irb/commit/b444573aa2
2021-02-06 21:09:31 +09:00
aycabta
5704b5fe5e
[ruby/irb] Allow "measure" command to take block
...
https://github.com/ruby/irb/commit/20f1ca23e9
2021-02-06 20:45:08 +09:00
Nobuyoshi Nakada
7baedeffe9
Added tests for MakeMakefile#test_egrep_cpp
2021-02-05 13:59:27 +09:00
Charles Oliver Nutter
abf71864a5
[ruby/io-console] Mark all tests that use run_pty as pend on JRuby
...
JRuby's PTY.spawn does not produce a process with its own
controlling terminal, which is necessary for testing these raw
escape sequences. This commit marks those tests as pending.
The functionality tested appears to work at a command line, but
due to this PTY bug in JRuby we cannot test it this way.
See https://github.com/jruby/jruby/issues/6552
https://github.com/ruby/io-console/commit/a486b72e5e
https://github.com/ruby/io-console/commit/b5c8e7bfd8
2021-02-05 12:29:33 +09:00
Charles Oliver Nutter
a1cc044ea1
[ruby/io-console] Use omit instead of skip
...
This test runs with test/unit now, which defines omit instead of
skip.
https://github.com/ruby/io-console/commit/bd731d0b8d
2021-02-05 12:01:38 +09:00
Charles Oliver Nutter
2a764fe764
[ruby/io-console] Skip test on JRuby
...
The subprocess script here works fine at a command line, but when
run as a pty subprocess during the tests the master side hangs
waiting for output.
https://github.com/ruby/io-console/commit/4a21610ece
2021-02-05 12:01:38 +09:00
Charles Oliver Nutter
8960d6b5bd
[ruby/io-console] Add console.rb to search for paths
...
https://github.com/ruby/io-console/commit/74567376c4
2021-02-05 12:01:38 +09:00
Nobuyoshi Nakada
9ef7780b09
[ruby/io-console] Run subprocesses without test libraries
...
Now io/console is loaded from test-unit indirectly, test-unit
requires power_assert which requires io/console.
https://github.com/ruby/io-console/commit/8817d07951
https://github.com/ruby/io-console/commit/639cce89de
2021-02-05 11:45:04 +09:00
Jean Boussier
3a888398a6
objspace_dump.c: tag singleton classes and reference the superclass
2021-02-04 09:53:31 -08:00
Nobuyoshi Nakada
b4eba8dfee
Prefer block forms to close opened files
2021-02-03 17:34:41 +09:00
Nobuyoshi Nakada
d05a268adc
Open gzip file in binary mode
2021-02-03 17:32:41 +09:00
Nobuhiro IMAI
b0fb208218
[ruby/irb] follow up the actual line number
...
https://github.com/ruby/irb/commit/7aed8fe3b1
2021-02-03 00:09:32 +09:00
Nobuyoshi Nakada
1cdae49d39
Implement NameError::message#clone for Ractor
2021-02-01 19:54:21 +09:00
Nobuyoshi Nakada
9241211538
Forward keyword arguments for Pathname#each_line [Bug #17589 ]
2021-01-29 14:27:53 +09:00
aycabta
80fb4758a9
In test, need to pass a context to IRB::WorkSpace.new explicitly
2021-01-27 18:33:36 +09:00
Nobuhiro IMAI
69b42ae02d
[ruby/irb] specify the `VERBOSE` to `false` and fix tests to fit
...
https://github.com/ruby/irb/commit/502c590925
2021-01-27 15:02:13 +09:00
Nobuhiro IMAI
e80e5a2f89
[ruby/irb] use `RubyLex::TerminateLineInput` appropriately [Bug #17564 ]
...
* using the appropriciate exception instead of `break` so that the session
can be continue after the `irb_source` and `irb_load` commands
* suppress extra new line due to one more `#prompt` call
https://github.com/ruby/irb/commit/bdefaa7cfd
2021-01-27 15:02:05 +09:00
Nobuyoshi Nakada
19e6d27126
[ruby/rdoc] Support iso-strict format in git-log
...
https://github.com/ruby/rdoc/commit/2a6c22da63
2021-01-25 18:33:33 +09:00
Nobuyoshi Nakada
7fe22152fc
[ruby/rdoc] Support other date formats in git-log
...
https://github.com/ruby/rdoc/commit/ad8cf37d72
2021-01-25 18:33:31 +09:00
Nobuyoshi Nakada
52ebaf718e
[ruby/rdoc] Skip non-date logs by git-log
...
`RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by
git-log, because of too heuristic `Time.parse`.
For instance, "commit 8187228de0142d3ac7950b7d977c2849e934c637"
results in "8187-08-16", that is, day 228 in the year 8187.
https://github.com/ruby/rdoc/commit/9711e6f6d9
2021-01-24 16:46:27 +09:00
Nobuyoshi Nakada
d5d1c41728
[ruby/rdoc] Sort by CommitDate if available
...
https://github.com/ruby/rdoc/commit/455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada
fa048a0f85
[ruby/rdoc] Add links to the commits
...
https://github.com/ruby/rdoc/commit/1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada
f3f1a666c7
[ruby/rdoc] Shorten commit hashes
...
https://github.com/ruby/rdoc/commit/5d3e153963
2021-01-24 16:46:21 +09:00
Nobuyoshi Nakada
127f735c1e
[ruby/rdoc] Tweak log entry markdown
...
* add 3 levels to headings
* prefix commit log to labels to make unique IDs
https://github.com/ruby/rdoc/commit/5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada
b88d1e6b44
[ruby/rdoc] Make each commit entries h3
...
https://github.com/ruby/rdoc/commit/11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada
bb570ce6d8
[ruby/rdoc] Support ChangeLog generated by `git log`
...
https://github.com/ruby/rdoc/commit/5e0a123ca1
2021-01-24 16:46:15 +09:00
NARUSE, Yui
1bd27a7882
Add test for String#casecmp?
...
String#casecmp? also normalize upper case characters in legacy encodings.
2021-01-24 15:57:13 +09:00
aycabta
743c44ee21
[ruby/irb] Indent correctly with method calling with receiver
...
https://github.com/ruby/irb/commit/e7c68e74a0
2021-01-24 14:35:34 +09:00
aycabta
fc54af8aa1
[ruby/irb] Indent correctly with keyword "for" and "in"
...
https://github.com/ruby/irb/commit/47c83ea724
2021-01-24 14:35:26 +09:00
Nobuyoshi Nakada
8dfae85adb
Warn the defined location as deprecation as well as the main message
...
[Bug #17575 ]
2021-01-23 19:58:39 +09:00
Kazuhiro NISHIYAMA
9de68a5221
Fix a warning
...
```
.../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated
```
2021-01-23 10:52:17 +09:00
Nobuyoshi Nakada
a55eb9a2af
Make reciprocal properly of non-integral rational [Bug #17572 ]
2021-01-23 10:30:59 +09:00
Felix Wolfsteller
e34f51fe60
[ruby/matrix] Add `Matrix#rotate_entries` [ #19 ]
...
Co-authored-by: Marc-André Lafortune <github@marc-andre.ca>
2021-01-21 13:22:25 -05:00
Nobuyoshi Nakada
d961f14df3
[ruby/net-http] RubyVM::MJIT is deprecated, prefer RubyVM::JIT now
...
https://github.com/ruby/net-http/commit/abc6ea1877
2021-01-21 20:50:23 +09:00
Takashi Kokubun
922989fa0f
[ruby/erb] Warn safe_level and later args even without -w
...
because, when Ruby 3.1 is released, Ruby 2.5, the last version with the
old method signature, will have been EOL. Therefore we can safely warn
the old interface from Ruby 3.1.
https://github.com/ruby/erb/commit/c3a753f49f
2021-01-21 13:52:02 +09:00
Takashi Kokubun
47b43807a8
[ruby/erb] Make sure erb.rb in this repository is tested
...
https://github.com/ruby/erb/commit/012faba2e5
2021-01-21 13:12:03 +09:00
Nobuyoshi Nakada
565aeb81e0
Skip freezing check on setting temporary class path [Bug #17563 ]
...
Co-authored-by: ryannevell (Ryan Nevell) <ryan.nevell@gmail.com>
2021-01-20 19:24:16 +09:00
Takashi Kokubun
f4a556f4f1
[ruby/irb] Remove pp-specific stub from TestColor
...
because it was for TestColorPrinter
https://github.com/ruby/irb/commit/7569206fd4
2021-01-20 18:10:20 +09:00
Takashi Kokubun
cea6814c2c
[ruby/irb] Undefine unused constants
...
https://github.com/ruby/irb/commit/eea9c16804
2021-01-20 18:07:40 +09:00
Takashi Kokubun
328df00712
[ruby/irb] Split test files for IRB::Color and IRB::ColorPrinter
...
https://github.com/ruby/irb/commit/d95e8daab3
2021-01-20 18:03:37 +09:00
Takashi Kokubun
10d12afa41
[ruby/erb] Prefer __dir__ to reduce ../
...
https://github.com/ruby/erb/commit/cb59f11ec8
2021-01-20 17:46:50 +09:00
Takashi Kokubun
718890aa04
Pend erb command tests for Ruby 2.5 for now
2021-01-20 17:21:09 +09:00
Nobuyoshi Nakada
eeacdcb9a0
Fixed premature return
...
After setting ruby2_keywords for bmethod, the rest of arguments
had been ignored. [Bug #17558 ]
2021-01-19 17:59:37 +09:00
Takashi Kokubun
e6af81bde1
[ruby/irb] Stub a screen size for test_context
...
http://ci.rvm.jp/logfiles/brlog.trunk-random1.20210119-074232
https://github.com/ruby/irb/commit/ea87592d4a
2021-01-19 00:14:48 -08:00