aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding missing test for Net::HTTPGenericRequest initializer (#1835)Espartaco Palma2019-08-161-0/+1
| | | | | A new exception is raised if an URI::HTTP is received and that object doesn't have a hostname property. Complementary to #1278
* Improve `make update-github` to avoid configureTakashi Kokubun2019-08-161-5/+8
| | | | after doing it once.
* Make `make update-github` idempotentTakashi Kokubun2019-08-161-1/+1
|
* Fix crash on $(PULL_REQUEST) expansionTakashi Kokubun2019-08-161-3/+6
| | | | | by directly passing it to Ruby without passing a shell. Formerly it was broken when $(PULL_REQUEST) included quotes.
* Avoid confusion in Array#- and Array#difference docs (#2070)Olivier Lacan2019-08-161-6/+6
| | | | | | My previous attempt to correct #2068 apparently failed and the confusing wording ("instances") was merged into trunk instead. This should address any potential confusion.
* Marked up command line options [ci skip]Nobuyoshi Nakada2019-08-161-7/+7
|
* Fix doc in Object#respond_to_missing? (#2239)songhuangcn2019-08-161-1/+1
|
* * 2019-08-16 [ci skip]git2019-08-161-1/+1
|
* Fixed class, module and method references [ci skip]Nobuyoshi Nakada2019-08-161-23/+21
|
* Fixed a markup in different format [ci skip]Nobuyoshi Nakada2019-08-151-1/+1
|
* Fixed heap-use-after-freeNobuyoshi Nakada2019-08-152-1/+8
| | | | | | * string.c (rb_str_sub_bang): retrieves a pointer to the replacement string buffer just before using it, for the case of replacement with the receiver string itself. [Bug #16105]
* Prepare to pull commits notes [ci skip]Nobuyoshi Nakada2019-08-151-0/+2
|
* Simplified GITHUB_TOKEN argument [ci skip]Nobuyoshi Nakada2019-08-151-4/+1
|
* introduce RUBY_ON_BUG envval. (#2331)Koichi Sasada2019-08-151-1/+13
| | | | | | | | | | | | | | `rb_bug()` is called at critical bug, MRI can't run anymore. To make debug easy, this patch introduces RUBY_ON_BUG environment variable to specify the process which is called with pid. [Feature #16090] [GH #2331] RUBY_ON_BUG='gdb -p' ruby xxx.rb In this case, if ruby interpreter causes critical bug, and call rb_bug(), then "gdb -p [PID]' is called by system(3). You can debug on invoked gdb. This feature is limited on RUBY_DEVEL build.
* * expand tabs. [ci skip]git2019-08-151-2/+2
|
* Make Range#=== operate like cover? instead of include? for string rangesJeremy Evans2019-08-142-9/+22
| | | | | | | | | | | | | | | | | | Previously, Range#=== treated string ranges that were not endless or beginless the same as include?, instead of the same as cover?. I think this was an oversight in 989e07c0f2fa664a54e52a475c2fcc145f06539d, as the commit message did not indicate this behavior was desired. This also makes some previously dead code no longer dead. Previously, the conditionals were doing this: if (RB_TYPE_P(beg, T_STRING) if (NIL_P(beg)) # can never be true This restructures it so at the NIL_P(beg) check, beg could possibly be nil (beginless ranges). Fixes [Bug #15449]
* Fold to lowercase intead of uppercase for String#casecmpJeremy Evans2019-08-141-4/+4
| | | | strcasecmp(3) and String#casecmp? both fold to lowercase.
* Implement Range#minmaxJeremy Evans2019-08-142-0/+43
| | | | | | | | | Range#minmax was previous not implemented, so calling #minmax on range was actually calling Enumerable#minmax. This is a simple implementation of #minmax by just calling range_min and range_max. Fixes [Bug #15867] Fixes [Bug #15807]
* Switch to using a VM stack argument instead of 2nd operand for getconstantJeremy Evans2019-08-142-10/+17
| | | | | | Some tooling depends on the current bytecode, and adding an operand changes the bytecode. While tooling can be updated for new bytecode, this support doesn't warrant such a change.
* Use Qtrue/Qfalse instead of 1/0 for 2nd operand to getconstantJeremy Evans2019-08-142-8/+8
| | | | Fixes error when using -Werror,-Wshorten-64-to-32.
* * expand tabs. [ci skip]git2019-08-152-8/+8
|
* Remove support for nil::ConstantJeremy Evans2019-08-144-13/+19
| | | | | | | | | | This was an intentional bug added in 1.9. The approach taken here is to add a second operand to the getconstant instruction for whether nil should be allowed and treated as current scope. Fixes [Bug #11718]
* * 2019-08-15 [ci skip]git2019-08-151-1/+1
|
* Add `make update-github PR=1234` to refresh PR (#2368)Takashi Kokubun2019-08-151-0/+15
|
* Drop obsoleted `make merge-github` taskTakashi Kokubun2019-08-141-15/+0
|
* backtrace and backtrace_locations can be nil (#2358)Steven Harman2019-08-141-3/+9
| | | | | Exception#backtrace and Exception#backtrace_locations can both be nil if not set. The former can be set via `Exception#set_backtrace`, but the later is only ever set at runtime via `setup_backtrace`.
* Remove strange formatting from English [ci skip]Nikolai B2019-08-141-1/+1
| | | | \vref is not valid doc syntax
* Mark bundler / bundled-gems as continue-on-failureTakashi Kokubun2019-08-142-1/+12
| | | | | because these tests have failed too often and it's false-positive for checking healthiness of the master branch.
* Update the description of check_branchTakashi Kokubun2019-08-141-6/+7
|
* Rename check_branch.master to pull_request.check_branchTakashi Kokubun2019-08-141-2/+2
| | | | | | | | because it's shown as just "master" on a pull request which does not have the check_branch.master job yet. "check_branch" would be easier to understand and now we can grep it from master branch.
* Don't accidentally name anonymous module/classAlan Wu2019-08-142-23/+21
| | | | | | | | | | | | | | | | | | b00f280d4b9569e7153365d7e1c522b3d6b3c6cf introduced an accidental behavior change in that defining a module/class under `m` gives `m` a name when `m` is anonymous. `ruby -ve 'Module.new { class self::A; end; p name }'` outputs a name similar to `Module#inspect` when it should output `nil` like in Ruby 2.6.x. * variable.c: Use `make_temporary_path` instead of `save_temporary_path` when getting the name of the parent module. * variable.c (rb_set_class_path): Delegate to `rb_set_class_path_string` instead of duplicating the logic. [Bug #16097]
* fix last commit.Koichi Sasada2019-08-141-1/+1
|
* * expand tabs.git2019-08-141-1/+1
|
* change Proc#to_s format ('@...' -> ' ...') (#2362)Koichi Sasada2019-08-144-8/+8
| | | | | | | | Now Proc#to_s returns "#<Proc:0x00000237a0f5f170@t.rb:1>". However, it is convenient to select a file name by (double-)clicking on some terminals by separating ' ' instead of '@' like "#<Proc:0x00000237a0f5f170 t.rb:1>" [Feature #16101]
* Suppress Uninitialized variables by Coverity ScanKazuhiro NISHIYAMA2019-08-141-1/+1
| | | | | | | | | | | | | Coverity Scan says: ``` ** CID 1452284: Uninitialized variables (UNINIT) /eval.c: 223 in rb_ec_cleanup() ``` ``` >>> CID 1452284: Uninitialized variables (UNINIT) >>> Using uninitialized value "errs[1]". ```
* io.c: export rb_io_extract_modeencNobuyoshi Nakada2019-08-142-1/+4
| | | | | | * include/ruby/io.h (rb_io_enc_t): add typedef. * io.c (rb_io_extract_modeenc): export.
* [ruby/stringio] Supported BOMNobuyoshi Nakada2019-08-142-0/+95
| | | | https://github.com/ruby/stringio/commit/b249631c43
* [ruby/stringio] Supported `mode:` optionNobuyoshi Nakada2019-08-141-1/+20
| | | | https://github.com/ruby/stringio/commit/53def32ba0
* [ruby/stringio] Allow bignum modeNobuyoshi Nakada2019-08-141-2/+3
| | | | https://github.com/ruby/stringio/commit/d28927b561
* [ruby/stringio] Added support for older versionsNobuyoshi Nakada2019-08-142-0/+56
| | | | | https://github.com/ruby/stringio/commit/c4a13d41cd https://github.com/ruby/stringio/commit/359c9f395c
* [ruby/stringio] stringio: encoding supportNobuyoshi Nakada2019-08-142-28/+31
| | | | https://github.com/ruby/stringio/commit/7b20075ab0
* Try to fix variable reference on Windows (#2361)Takashi Kokubun2019-08-141-8/+2
| | | https://github.com/ruby/ruby/runs/192869165
* Stop using official actions/checkoutTakashi Kokubun2019-08-143-12/+39
| | | | | | because it has been unstable, and also it sometimes does not work for a pull request like: https://github.com/ruby/ruby/pull/2358/checks?check_run_id=192685048#step:4:17
* Move some assertions to CoreAssertions. (#2354)SHIBATA Hiroshi2019-08-142-66/+66
| | | | | | | They are used by default gems like forwardable. * assert_raise_with_message * assert_warning * assert_warn
* * 2019-08-14git2019-08-141-1/+1
|
* Compare actual resultNobuyoshi Nakada2019-08-141-2/+2
|
* UTF LE is fixed at least the first 2 bytesNobuyoshi Nakada2019-08-133-8/+5
| | | | | * io.c (io_strip_bom): if the first 2 bytes are 0xFF0xFE, it should be a little-endian UTF, 16 or 32. [Bug #16099]
* Use the official actions/checkout again (#2357)Takashi Kokubun2019-08-133-6/+12
| | | | because clone does not checkout exact commit sha, and also we'd need to handle pull_request on fork, so I tentatively stopped to do this.
* * expand tabs.git2019-08-131-4/+4
|
* Add compaction callbacks for EnumeratorAaron Patterson2019-08-131-15/+65
| | | | This commit gives Enumerator compaction support