Nobuyoshi Nakada
296a2cab07
Parse "-00:00" as UTC for the round-trip [Feature #17544 ]
2021-02-16 20:34:23 +09:00
Nobuyoshi Nakada
5b7439bb7b
UTC zone should be still "+00:00" [Feature #17544 ]
2021-02-16 20:34:23 +09:00
Nobuyoshi Nakada
9ef66ce3fc
strftime.c: support unknown offset UTC in RFC 3339 [Feature #17544 ]
...
In RFC 3339, -00:00 is used for the time in UTC is known, but the
offset to local time is unknown. Support that representation by
`-` flag for `z`.
2021-02-16 20:34:23 +09:00
Kazuhiro NISHIYAMA
1a84c07715
Fix a failure
...
http://ci.rvm.jp/results/trunk-test@ruby-sky1/3359644
```
: 1)
: TestEncoding#test_nonascii_library_path [/tmp/ruby/v3/src/trunk-test/test/ruby/test_encoding.rb:157]:
: Exception(LoadError) with message matches to /\[Bug #16382\]/.
```
2021-02-16 18:17:09 +09:00
David Rodríguez
02151dad1b
$LOAD_PATH.resolve_feature_path
should not raise
...
I think it's more friendly and easier to work with to return `nil` when
the feature is not found in the $LOAD_PATH.
2021-02-16 18:11:13 +09:00
Nobuyoshi Nakada
4f47d655e3
Added Thread::Backtrace.limit [Feature #17479 ]
2021-02-15 18:29:35 +09:00
Nobuyoshi Nakada
522b256689
Added tests for --backtrace-limit option
2021-02-15 18:29:35 +09:00
xtkoba (Tee KOBAYASHI)
a681c484a3
Fixed codepage for utime [Bug #17626 ]
...
Should use the given codepage argument.
Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-02-14 19:44:41 +09:00
Nobuyoshi Nakada
1f0e0dfb22
Thread::Queue.new should accept an Enumerable [Feature #17327 ]
...
Enumerable implements #to_a but not #to_array.
2021-02-12 12:21:49 +09:00
Jeremy Evans
2d877327e1
Make a cyclic prepend not modify ancestors for the receiver
...
Check for cyclic prepend before making any changes. This requires
scanning the module ancestor chain twice, but in general modules
do not have large numbers of ancestors.
2021-02-11 07:45:52 -08:00
aycabta
6eb5b3ac27
[ruby/irb] The command "irb_info" should show RUBY_PLATFORM
...
39d1cd874f
2021-02-11 20:36:43 +09:00
aycabta
b2d2d25b94
[ruby/irb] Suppress colorize on Windows tests
...
5be9354cf9
2021-02-11 20:31:29 +09:00
Hiroshi SHIBATA
231f0f6f45
[ruby/zlib] test-unit didn't provide __name__ attribute
...
7d3fc1f325
2021-02-10 12:49:16 +09:00
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
...
e1d9240ada
2021-02-07 05:12:19 +09:00
aycabta
fee19da230
[ruby/reline] Autowrap correctly when inserting chars in the middle of a line
...
ebaf37255f
2021-02-07 05:12:07 +09:00
aycabta
7b354cf67b
[ruby/irb] Enable to reassign a new block with "measure" command
...
b444573aa2
2021-02-06 21:09:31 +09:00
aycabta
5704b5fe5e
[ruby/irb] Allow "measure" command to take block
...
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
a486b72e5e
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.
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.
4a21610ece
2021-02-05 12:01:38 +09:00
Charles Oliver Nutter
8960d6b5bd
[ruby/io-console] Add console.rb to search for paths
...
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.
8817d07951
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
...
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
...
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
bdefaa7cfd
2021-01-27 15:02:05 +09:00
Nobuyoshi Nakada
19e6d27126
[ruby/rdoc] Support iso-strict format in git-log
...
2a6c22da63
2021-01-25 18:33:33 +09:00
Nobuyoshi Nakada
7fe22152fc
[ruby/rdoc] Support other date formats in git-log
...
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 8187228de0
"
results in "8187-08-16", that is, day 228 in the year 8187.
9711e6f6d9
2021-01-24 16:46:27 +09:00
Nobuyoshi Nakada
d5d1c41728
[ruby/rdoc] Sort by CommitDate if available
...
455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada
fa048a0f85
[ruby/rdoc] Add links to the commits
...
1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada
f3f1a666c7
[ruby/rdoc] Shorten commit hashes
...
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
5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada
b88d1e6b44
[ruby/rdoc] Make each commit entries h3
...
11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada
bb570ce6d8
[ruby/rdoc] Support ChangeLog generated by git log
...
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
...
e7c68e74a0
2021-01-24 14:35:34 +09:00
aycabta
fc54af8aa1
[ruby/irb] Indent correctly with keyword "for" and "in"
...
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