aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Move helper file of logger to under the test/logger.Hiroshi SHIBATA2019-07-155-5/+4
|
* [ruby/logger] Add option to set the binary mode of the log deviceRafael Mendonça França2019-07-152-0/+26
| | | | | | | | | | | | Without binmode strings with incompatible encoding can't be written in the file. This is very common in applications that log user provided parameters. We need to allow changing the binnary mode because right now it is impossible to use the built-in log rotation feature when you provide a File object to the LogDevice, and if you provide a filename you can't have binmode. https://github.com/ruby/logger/commit/9114b3ac7e
* [ruby/logger] Set filename when initializing logger with a File objectJeremy Evans2019-07-151-0/+15
| | | | | | This should allow reopen to work. Requested in ruby issue #14595. https://github.com/ruby/logger/commit/bd367aff12
* [ruby/logger] Fix to use logger and test-unit in this repo withsonots2019-07-154-9/+11
| | | | | | `ruby test/logger/test_xxx.rb` https://github.com/ruby/logger/commit/d3c2402340
* [ruby/logger] Add support for changing severity using bang methods.Samuel Williams2019-07-151-0/+11
| | | | https://github.com/ruby/logger/commit/ae4c6dfcbb
* add tests for orphan/not-orphan proc/lambda.Tanaka Akira2019-07-152-0/+54
|
* add tests for "break" in lambda.Tanaka Akira2019-07-151-0/+15
|
* Move a test file of Reline to test/reline/aycabta2019-07-151-0/+0
|
* The default charset of text/* media type is UTF-8.Tanaka Akira2019-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks for the patch gareth (Gareth Adams). [Bug #15933] ------- Combines two small, but very related changes 1: Treat HTTPS the same as HTTP Previously, OpenURI followed guidance in RFC2616/3.7.1: > When no explicit charset parameter is provided by the sender, media > subtypes of the "text" type are defined to have a default charset > value of "ISO-8859-1" when received via HTTP. However this RFC was written before TLS was established and OpenURI was never updated to treat HTTPS traffic the same way. So, HTTPS documents received a different default to HTTP documents. This commit removes the scheme check so that all text/* documents processed by OpenURI are treated the same way. In theory this processing gets applied to FTP URIs too, but there's no mechanism in OpenURI for FTP documents to have Content-Type metadata appended to them, so this ends up being a no-op. 2: Change default charset for text/* to UTF-8 Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now obsoleted) with a UTF-8 charset as defined in RFC6838. Fixes: https://bugs.ruby-lang.org/issues/15933
* Remove unused method.manga_osyo2019-07-151-1/+1
|
* Rename to Reline::History::Test.manga_osyo2019-07-151-1/+1
|
* Add `class Reline::History` and test.manga_osyo2019-07-151-0/+273
|
* [ruby/csv] Fix a bug that strip: true removes newlinesKouhei Sutou2019-07-141-0/+30
| | | | https://github.com/ruby/csv/commit/5540d35a30
* [ruby/csv] Don't raise on eof?Kouhei Sutou2019-07-141-0/+3
| | | | | | | | GitHub: fix #86 Reported by krororo. Thanks!!! https://github.com/ruby/csv/commit/5a8d9d9297
* Check the result of String#-@Nobuyoshi Nakada2019-07-141-3/+5
|
* MJIT Support for getblockparamproxyTakashi Kokubun2019-07-141-2/+12
|
* Fix links to headingsMaxime Lapointe2019-07-141-4/+4
| | | | | A previous change made the header's id be fully referenced (for the sidebar I believe) but this broke links to them. This fixes the issue.
* Delegates 3 arguments for Pathname.glob.Tanaka Akira2019-07-141-0/+11
| | | | Thanks for the patch by pocke (Masataka Kuwabara) [Feature #14405].
* Warn open-uri's "open" method at Kernel.Tanaka Akira2019-07-142-55/+67
| | | | | | Use URI.open instead. Thanks for the patch by jeremyevans0 (Jeremy Evans) [Misc #15893].
* Method#inspect with source location.Koichi Sasada2019-07-142-9/+9
| | | | | Method#inspect shows with source location. [Feature #14145]
* add encoding conversion from/to CESU-8Martin Dürst2019-07-141-0/+22
| | | | | | | | | | | | | | | Add encoding conversion (transcoding) from UTF-8 to CESU-8 and back. CESU-8 is an encoding similar to UTF-8, but encodes codepoints above U+FFFF as two surrogates, these surrogates again being encoded as if they were UTF-8 codepoints. This preserves the same binary sorting order as in UTF-16. It is also somewhat similar (although not exactly identical) to an encoding used internally by Java. This completes issue #15995. enc/trans/cesu_8.trans: Add encoding conversion from/to CESU-8 test/ruby/test_transcode.rb: Add tests for above
* Relaxed delta of nanosec from Float timeNobuyoshi Nakada2019-07-131-1/+1
|
* Fixed duplicate test nameNobuyoshi Nakada2019-07-121-1/+1
|
* Check exception flag as a bool [Bug #15987]Nobuyoshi Nakada2019-07-115-0/+36
|
* Revert "parse.y: Deprecate flip-flops"Nobuyoshi Nakada2019-07-111-2/+0
| | | | | | This reverts commit bae638ad5b782c44c80efe33834cb9039279af46. [Feature #5400]
* $LOAD_PATH.resolve_feature_pathNobuyoshi Nakada2019-07-111-3/+3
| | | | Moved from RubyVM. [Feature #15903]
* remove an unused variable.Tanaka Akira2019-07-111-1/+0
|
* WEBrick::HTTPResponse create tempfile if required.Tanaka Akira2019-07-111-0/+40
| | | | | | | | | | | | | | | | | | | | | WEBrick::HTTPProxyServer implementes HTTP proxy using WEBrick and Net::HTTP. WEBrick accepts HTTP/1.0 clients and Net::HTTP uses always HTTP/1.1. However HTTP/1.1 supports chunked transfer coding HTTP/1.0 doesn't. Chunked transfer coding doesn't require that content-length before the content is sent. But non-chunked transfer coding require content-length before the content is sent. So, when HTTP/1.0 clients connects WEBrick::HTTPProxyServer and origin server returns chunked response, WEBrick::HTTPProxyServer needs to store whole content to know the length of it. This patch do it using tempfile.
* Restore support library for only test files that are digest and csv.Hiroshi SHIBATA2019-07-093-2/+24
|
* Restore support library for only test files.Hiroshi SHIBATA2019-07-095-4/+72
|
* Check indent of `end` against `else` if presentNobuyoshi Nakada2019-07-081-5/+6
|
* Get rid of toplevel methodsNobuyoshi Nakada2019-07-081-22/+8
|
* Message to pipe should end with a newlineNobuyoshi Nakada2019-07-071-10/+14
|
* Enable indentation warning against `if` just after `else`Nobuyoshi Nakada2019-07-071-5/+8
| | | | | | | | | | | | | ```ruby if false puts 'false' else if true puts 'true' end # -:5: warning: mismatched indentations at 'end' with 'if' at 3 end ``` [Feature #15990]
* Added assertions for Unicode escaped CHAR scanner eventsNobuyoshi Nakada2019-07-061-0/+11
|
* Fix segfault when using method reference operator without using resultJeremy Evans2019-07-051-0/+7
| | | | Fixes [Bug #15985]
* Multiple codepoints are not allowed at single character literalNobuyoshi Nakada2019-07-051-0/+1
| | | | It has unintentionally passed since 2.5.
* Support Control- and Meta-aycabta2019-07-041-0/+2
|
* Check commented out line in inputrc correctlyaycabta2019-07-041-0/+22
|
* Parse key sequence more strictlyNobuyoshi Nakada2019-07-041-0/+5
|
* Skip indented comment lines [Bug #15981]Nobuyoshi Nakada2019-07-041-0/+5
|
* Suppress uninitialized instance variable warningsNobuyoshi Nakada2019-07-041-0/+1
|
* Do not dispatch a nil token in ripperNobuyoshi Nakada2019-07-041-0/+6
| | | | | | | As a comment token includes the newline, so delayed newline token just follows it should not be dispatched. [Bug #11485] Co-Authored-By: Jeremy Evans <code@jeremyevans.net>
* Revert self-referencing finalizer warning [Feature #15974]Nobuyoshi Nakada2019-07-041-29/+3
| | | | | | | | | | | | | | | | | | | | It has caused CI failures. * d0cd0866d82a58933e5dccd073c753c0c2ad4eb5 Disable GC during rb_objspace_reachable_object_p * 89cef1c56b3a0f9c5e6ccc22a5044477a4fd16c1 Version guard for [Feature #15974] * 796eeb6339952d92ae1b353d450c7883e589852d. Fix up [Feature #15974] * 928260c2a613bbdd4402c300e0bf86ae7562e52a. Warn in verbose mode on defining a finalizer that captures the object
* Just disable inlining with local varaible for nowTakashi Kokubun2019-07-031-0/+14
| | | | | | | | | | | This partially reverts commit 712a66b0741605f5b2db670a292b9bb352f8a716. The previous fix made CI strange like: http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2124178 Let me just downgrade the behavior for now and deal with it later. [Bug #15971]
* Fix up [Feature #15974]Nobuyoshi Nakada2019-07-031-3/+29
| | | | | | * Fixed warning condition * Fixed function signature * Use ident hash
* Revert "Avoid corrupting VM stack on inlined setlocal"Koichi Sasada2019-07-031-14/+0
| | | | | This reverts commit ea30dd702512ff9df34fe8c71c825f8f901bf5b1. because it fails when VM_CHECK_MODE=1.
* Check that String#scrub block does not modify receiverJeremy Evans2019-07-021-0/+13
| | | | | | | Similar to the check used for String#gsub. Can fix possible segfault. Fixes [Bug #15941]
* Make String#-@ not freeze receiver if called on unfrozen subclass instanceJeremy Evans2019-07-021-0/+16
| | | | | | | | | rb_fstring behavior in this case is to freeze the receiver. I'm not sure if that should be changed, so this takes the conservative approach of duping the receiver in String#-@ before passing to rb_fstring. Fixes [Bug #15926]
* Implement Array#minmaxJeremy Evans2019-07-021-0/+19
| | | | | | | | | Array#minmax was previous not implemented, so calling #minmax on array was actually calling Enumerable#minmax. This is a simple implementation of #minmax by just calling rb_ary_min and rb_ary_max, which improves performance significantly. Fixes [Bug #15929]