Project

General

Profile

Activity

From 11/21/2017 to 11/27/2017

11/27/2017

10:49 PM Bug #12689: Thread isolation of $~ and $_
We've had another report in JRuby about this behavior. In this case, two threads doing String#split step on each others backrefs because they share a backref frame: https://github.com/jruby/jruby/issues/4868
This case can't even be av...
headius (Charles Nutter)
07:58 PM Feature #12275: String unescape
Sorry for late, I implemented `#undump` as `v1.patch` based on my "string_undump" gem.
Please see https://github.com/ruby/ruby/pull/1765 also.
## Spec
Roughly speaking, my implementation follows steps below:
1. If `self` is wra...
tad (Tadashi Saito)
04:31 PM Bug #14131 (Closed): test_backtrace.rb: Fails on ppc64le
Current test_backtrace.rb fails on ppc64el environment with the following stack:
~~~
unstable ➜ ruby git:(trunk) ✗ ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="...
leitao (Breno Leitao)
02:42 PM Feature #8563: Instance variable arguments
matz (Yukihiro Matsumoto) wrote:
> Arguments are giving names to passed values, which is different from attribute (instance variables) initialization. I think they should be separated clearly.
This may be a valid theoretical distinct...
marcandre (Marc-Andre Lafortune)
02:01 PM Feature #13563 (Closed): Implement Hash#choice method.
marcandre (Marc-Andre Lafortune)
12:38 PM Feature #2710 (Rejected): Kernel#load loads a relative path
mame (Yusuke Endoh)
12:38 PM Feature #2709 (Rejected): $VERBOSE, $DEBUG and Kernel#sprintf
mame (Yusuke Endoh)
12:31 PM Feature #3591: Adding Numeric#divisor? (Have working implementation)
Summary:
* Name candidates are:
* `divisor?` (the original proposal)
* `divisible?`
* `divisible_by?` (OP's final choice)
* `multiple?`
* `multiple_of?` (ActiveSupport's choice)
* `factor?`
* There is no objection t...
mame (Yusuke Endoh)
12:24 PM Feature #3591: Adding Numeric#divisor? (Have working implementation)
marcandre (Marc-Andre Lafortune) wrote:
> I still curious as to actual use cases. Looking at Rails' code, there is one instance of this, and followed immediately by the more general `foo % bar == baz` (when implementing `nth_child`).
...
mame (Yusuke Endoh)
11:55 AM Feature #11256 (Assigned): anonymous block forwarding
Lazy Proc allocation for block parameters (#14045) is implemented, so capturing a block into a proc is not slow.
One of the motivation now disappeared, but there is another motivation of this feature: the simplicity of the notation. ...
mame (Yusuke Endoh)
11:48 AM Bug #3434 (Feedback): Specs for coercion?
All of this are just my opinion, but obviously, coercion is a "best effort" feature. I believe there is no conclusive spec for coercion even in matz's heart. Until we encounter a concrete case that doesn't work well, we can't think wha... mame (Yusuke Endoh)
11:04 AM Feature #3333 (Rejected): mkmf (have|find)_cxx_header
望み薄なので一旦閉じます。
今でも必要とお思いでしたら、議論を進める材料(`lang: "C++"` の方針でのパッチとか)を用意すると良いかも知れません。
mame (Yusuke Endoh)
11:02 AM Revision 6592dca9 (git): Ignored obsoleted `bundle_ruby` command from upstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
10:48 AM Feature #3388: regexp support for start_with? and end_with?
After that, `String#start_with?` now accepts regexp (#13712). But `end_with?` does not support regexp yet because we don't have a direct use case for `end_with?` (and because of the difficulty of implementation). mame (Yusuke Endoh)
10:45 AM Revision c6fa9664 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:45 AM Revision 55518710 (git): Merge rdoc-6.0.0.beta4 from upstream.
It version applied `frozen_string_literal: true`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:57 AM Feature #3328 (Rejected): Kernel#p outputs as default_internal encoding, and so on
望みがなさそうなので一旦閉じます。
たるいさん、もしまだこれが必要とお思いでしたら、なんかファシリテートをお願いします。
(わりと Unicode 世界制覇の理想郷に近づいてきたんですかね。2.0 で Unicode デフォルトになったし)
mame (Yusuke Endoh)
07:51 AM Feature #3300 (Rejected): onig_number_of_captures に相当するメソッド Regexp#ncapture
望みがなさそうなので一旦閉じます。
きしもとさん、もしまだ Regexp#ncaptures が必要とお思いでしたら、フィードバック付きで reopen してください。
mame (Yusuke Endoh)
07:41 AM Feature #3289 (Rejected): Division of negative numbers
I believe this ticket is hopeless. Closing. mame (Yusuke Endoh)
07:29 AM Feature #3219 (Rejected): assert now passes non-boolean result
I don't remember this ticket, but I guess this request should be handled in [the upstream of test/unit](https://github.com/test-unit/test-unit). (Or, if you want to change `test/lib/minitest`, please change freely.) mame (Yusuke Endoh)
07:13 AM Feature #3163 (Rejected): SyntaxError when using variable which is also a method in current scope with a Symbol argument
This ticket looks hopeless even if we leave it as open. Also, the current behavior is widely accepted by many people. Eregon, if you really want to change this behavior, could you please try to create a patch that has less side effect ... mame (Yusuke Endoh)
06:59 AM Revision 2d9f20e1 (git): psych_parser.c: fix compile error
* ext/psych/psych_parser.c (parse): fix declarations after
statement, which cause compile error on mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:59 AM Feature #14104: Remove `trace` instructions
vmakarov (Vladimir Makarov) wrote:
> So I considered to remove and insert trace insns when the tracing is off or on. It requires to change branch offset, catch table offsets, and line tables. To speed up this, I would keep the log of ...
ko1 (Koichi Sasada)
05:38 AM Revision 69185464 (git): Ignored `bundle_ruby` example with Ruby core.
It was ignored with Bundler-1.15.x. It's regression at r60603.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:11 AM Revision b613a2c5 (git): Merge psych-3.0.0.beta4 from upstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:11 AM Revision 33201294 (git): Ignore failures related to threading.
* test/lib/tracepointchecker.rb: ignore "deletion trace" check
when there are threads other than the main thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:43 AM Revision 9f1c00ce (git): Relax `rb_bug()` condition.
* iseq.c (rb_iseq_trace_set): simply return immediately if
ISeq::compile_data is available. Not sure why this state
is allowed, but exception during compile (or `ISeq::load`)
can make such states.
git-svn-id: svn+ssh://ci.ruby-la...
ko1 (Koichi Sasada)

11/26/2017

11:52 PM Revision 2734867c (git): parse.y: Fix the last location of NODE_KW_ARG
* parse.y (kwd_append): Update the last location of
NODE_KW_ARG when NODE is appended to the last.
e.g. The locations of the first NODE_KW_ARG is fixed:
```
def a(b: 1, c: 2); end
```
* Before
```
NODE_KW_ARG (line: 1...
yui-knk (Kaneko Yuichiro)
11:33 PM Revision 11dc055b (git): * 2017-11-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:33 PM Revision 62b5c62f (git): parse.y: Fix the last location of NODE_OPT_ARG
* parse.y (opt_arg_append): Update the last location of
NODE_OPT_ARG when NODE is appended to the last.
e.g. The locations of the first NODE_OPT_ARG is fixed:
```
def a(b = 1, c = 2); end
```
* Before
```
NODE_OPT_ARG...
yui-knk (Kaneko Yuichiro)
10:33 AM Revision a9968933 (git): openssl: sync with 2475d94517b4
Merge a commit from upstream:
01445af367ec test/test_ssl: prevent changing default internal encoding
OpenSSL::TestSSL#test_fallback_scsv could change the default internal
encoding accidentally, causing other unrelated test case...
rhenium (Kazuki Yamaguchi)
02:11 AM Revision 4f535768 (git): leakchecker.rb: no conversion
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:36 AM Revision 999e4db6 (git): * 2017-11-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:36 AM Revision cea5a911 (git): util.h: remove my_getcwd
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

11/25/2017

04:41 PM Feature #14128: Introduce Hash#delete default value
I am in favor of this. marcandre (Marc-Andre Lafortune)
02:12 PM Revision a55320b0 (git): openssl: import v2.1.0.beta2
Import Ruby/OpenSSL 2.1.0.beta2. The full commit log since commit
e72d960db262 which was imported by r60013 can be found at:
https://github.com/ruby/openssl/compare/e72d960db262...v2.1.0.beta2
----------------------------------...
rhenium (Kazuki Yamaguchi)
02:12 PM Revision 55953e37 (git): openssl: revert changes in SSLContext#{min,max}_version= in r60310
And adapt a net/http test to their old behavior. [ruby-core:83491]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
rhenium (Kazuki Yamaguchi)
02:00 PM Bug #14130 (Closed): Keyword arguments are ripped from the middle of hash if argument have default value
Here is the code:
```ruby
def test1(source = {}, **opts)
puts "SOURCE: #{source}, OPTS: #{opts}"
end
def test2(source, **opts)
puts "SOURCE: #{source}, OPTS: #{opts}"
end
puts "No source"
test1(length: 2000)
# 1. SOU...
zverok (Victor Shepelev)
11:57 AM Revision c56ac086 (git): parse.y: opt_arg_append
* parse.y (opt_arg_append): extract optional arguments
append.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
08:20 AM Feature #12275: String unescape
> Still, there is the question of what the encoding of the result of #unescape should be.
Indeed. It is one of few things that I'm still worried about.
For now, `undump` inherits receiver's encoding:
~~~ ruby
"abc".encode('euc-...
tad (Tadashi Saito)
01:39 AM Revision bf2ddcf8 (git): * 2017-11-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:39 AM Revision ce64157d (git): parse.y: Fix a location of assignable nodes
* parse.y (new_op_assign_gen): Update the location of
lhs when NODE_OP_ASGN_OR/NODE_OP_ASGN_AND are generated.
When NODE_OP_ASGN_OR/NODE_OP_ASGN_AND are generated
a nd_value of lhs is set, so it is needed to update
a location of ...
yui-knk (Kaneko Yuichiro)

11/24/2017

06:26 PM Feature #14129: Feature Request: sockets - add support for recvmmsg
I can not answer the question, but I believe this should be filed at "Feature"
rather than "Bug". Normally the ruby core team enables functionality if it can
be for several Operating Systems, e. g. not solely confined to but a single
...
shevegen (Robert A. Heiler)
12:17 PM Feature #14129: Feature Request: sockets - add support for recvmmsg
Hi,
Are there any plans to add support for recvmmsg in sockets lib?
http://man7.org/linux/man-pages/man2/recvmmsg.2.html
recvmmsg - receive multiple messages on a socket
Thanks
Donal
IrlJidel (Donal Diamond)
12:16 PM Feature #14129 (Open): Feature Request: sockets - add support for recvmmsg
Hi,
Are there any plans to add support for recvmmsg in sockets lib?
http://man7.org/linux/man-pages/man2/recvmmsg.2.html
recvmmsg - receive multiple messages on a socket
Thanks
Donal
IrlJidel (Donal Diamond)
01:20 PM Feature #14128: Introduce Hash#delete default value
Sorry, I thought I was recording it as a feature request. Thanks for fixing nobu. gshutler (Garry Shutler)
01:08 PM Revision 6240f583 (git): node.h: Remove not used macros
* node.h (nd_modl, nd_clss_, nd_tval, nd_visi_): Remove
not used macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
12:37 PM Revision 7128849c (git): test_workspace.rb: skip test failing on windows
> Note that all files are always readable
> ...
It seems that we can't make a file unreadable with `File.chmod` on
Windows.
When file can't be read, File::EACCES is raised on Windows too. So
r60900 should work anyway, but I don't know h...
k0kubun (Takashi Kokubun)
11:00 AM Revision 6d14c47c (git): Fix TOCTTOU and avoid to read existing unreadable file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:00 AM Revision dff3d5dc (git): Fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:04 AM Feature #12275: String unescape
tad (Tadashi Saito) wrote:
> > Also, please think about encodings. Some people may want all non-ASCII characters escaped, but others may not want that at all.
> ...
Thanks for your explanation. I was confused.
Still, there is the ...
duerst (Martin Dürst)
07:05 AM Feature #12275: String unescape
Thank you for your comments.
> I think rather than using true/false to distinguish single and double quotes, it would be better to have a keyword parameter, such as quotes: :single (and quotes: :double, but that would be default).
...
tad (Tadashi Saito)
05:46 AM Revision 9560d2e0 (git): test/irb/test_workspace.rb: fix SCRIPT_LINES__
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:44 AM Revision 9b48a6ae (git): workspace.rb: one more space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:00 AM Revision 8b6e9aa7 (git): workspace.rb: fix SCRIPT_LINES__
* lib/irb/workspace.rb (code_around_binding): `SCRIPT_LINES__`
values are arrays of lines. get file and line at once. moved
loop-invariant format string. join without extra strings by
`$,`.
git-svn-id: svn+ssh://ci.ruby-lang.or...
nobu (Nobuyoshi Nakada)
04:49 AM Revision 8fb87e43 (git): file.c: simplify eaccess(3) callers
This will make future work to release GVL here simpler.
* file.c (rb_eaccess): new function
(rb_file_readable_p): use rb_eaccess
(rb_file_writable_p): ditto
(rb_file_executable_p): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
Eric Wong
04:29 AM Revision ea576241 (git): NEWS: note about r57274
fixed r60888 to have Feature number too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
04:26 AM Revision f418f9b4 (git): parse.y: make_array
* parse.y (make_array): turn NULL node into zero length array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:26 AM Revision eb13bcec (git): parse.y: refactor list literals
* parse.y (words, symbols, qwords, qsymbols): unify empty list and
non-empty list.
* parse.y (parser_parse_string): always dispatch a word separator
at the beginning of list literals.
[ruby-core:83871] [Bug #14126]
git-svn-id: sv...
nobu (Nobuyoshi Nakada)
04:26 AM Revision 9c86c513 (git): test_parser_events.rb: results of list literals
* test/ripper/test_parser_events.rb (test_qwords_add),
(test_qsymbols_add, test_symbols_add, test_words_add): more
assertions for results of list literals.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60891 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
03:53 AM Feature #14124 (Closed): Show source around binding.irb on irb startup
Applied in changeset trunk|r60888.
----------
irb.rb: show source around binding.irb on start
[Feature #14124] [ruby-dev:50319] [close GH-1764]
k0kubun (Takashi Kokubun)
03:51 AM Feature #14124: Show source around binding.irb on irb startup
いしつかさんにもコンタクトを取ったところ反対ではなく、また他のコミッタの方から何度かレビューをいただく間特に機能自体への反対意見がなかったので、コミットしてしまおうと思います。
Pull Requestを見ていただいた方、ありがとうございました。
k0kubun (Takashi Kokubun)
03:53 AM Revision 4046ca57 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:53 AM Revision 05d7ab61 (git): * 2017-11-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:53 AM Revision 106c9883 (git): irb.rb: show source around binding.irb on start
[Feature #14124] [ruby-dev:50319] [close GH-1764]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
12:53 AM Feature #12700: regexg heredoc support
duerst (Martin Dürst) wrote:
> > So I changed my mind. Let me +1.
> ...
Here you are: https://github.com/shyouhei/optdown/blob/master/lib/optdown/expr.rb
> There may be exceptions, but I don't think it's a good idea to write a rege...
shyouhei (Shyouhei Urabe)

11/23/2017

08:58 PM Feature #14128: Introduce Hash#delete default value
I think this should be filed under features rather than bugs.
Here is a link to the documentation if anyone else wants to have
a look:
https://ruby-doc.org/core/Hash.html#method-i-delete
I am neither pro or con on the sugge...
shevegen (Robert A. Heiler)
02:18 PM Feature #14128 (Assigned): Introduce Hash#delete default value
Mirror `Hash#fetch(key [, default]) → obj` with `Hash#delete(key [, default]) → obj`.
Allows for more concise extraction of a value from a hash with a default.
~~~ ruby
# Currently
a = hash.delete(:a) { 10 }
# Becomes
a = has...
gshutler (Garry Shutler)
03:35 PM Bug #14126: Recent parse.y (Ripper) changes - lexing, tokenizing
@nobu
Thank you for the patch, as the lex array looks as I would think it should (I'm not that familiar with parsers.)
Using 60884, `Ripper.sexp_raw` and `Ripper.sexp` now return nil for all three strings in the above code. They b...
MSP-Greg (Greg L)
04:30 AM Bug #14126 (Closed): Recent parse.y (Ripper) changes - lexing, tokenizing
Applied in changeset trunk|r60883.
----------
ripper.y: fix word list events
* parse.y (parser_skip_words_sep): QWORDS_BEG should not include
the first separators in ripper.
* parse.y (parser_parse_string): WORDS_SEP should not incl...
nobu (Nobuyoshi Nakada)
02:15 PM Revision f8523d35 (git): parse.y: Fix a location of serial NODE_AND/NODE_OR
* parse.y (logop_gen): Update the last location of
NODE_AND/NODE_OR when NODE is appended to the last.
e.g. The locations of NODE_AND is fixed:
```
a && b && c
```
* Before
```
NODE_AND (line: 1, first_lineno: 1, firs...
yui-knk (Kaneko Yuichiro)
02:04 PM Revision dd979f9d (git): .travis.yml: revert "workaround to resolve ::1"
This commit reverts r60736.
Shibata-san reported the cause of r60736 to Travis and it seems fixed:
https://github.com/travis-ci/travis-ci/issues/8780
In another CI, I found "::1 ip6-localhost ip6-loopback" in build
system informati...
k0kubun (Takashi Kokubun)
12:42 PM Bug #14127: (CSV) generating UTF-16LE encoded file without BOM
laykou (Ladislav Gallay) wrote:
> This file should contain BOM information so that it is properly detected as UTF-16LE file.
> ...
csv.rb seems having bugs in ASCII-incompatible encodings support.
> According to `file -I file.csv` t...
nobu (Nobuyoshi Nakada)
11:52 AM Revision 4a738901 (git): thread.c: Update documents
* thread.c (rb_default_coverage): Update documents of internal
data structures for branch coverage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
07:10 AM Revision 1046eae7 (git): io.c: read BOM only for reading
* io.c (io_strip_bom): just abandon detecting UTF encoding by BOM
unless opened for reading.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:30 AM Revision dee6a910 (git): ripper.y: fix word list events
* parse.y (parser_skip_words_sep): QWORDS_BEG should not include
the first separators in ripper.
* parse.y (parser_parse_string): WORDS_SEP should not include
the closing parentheses of a word list in ripper, should include
spaces...
nobu (Nobuyoshi Nakada)
03:14 AM Revision 717b7fd9 (git): debug.c: include RIMemo in ruby_dummy_gdb_enums
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:26 AM Feature #5481: Gemifying Ruby standard library
Charles,
> Clarify for me please: are the new gemified stdlibs all going to use the default gem mechanism?
Default gems have their code included in the ruby repo, and they cannot be removed from a user's installation. But, the use...
MSP-Greg (Greg L)

11/22/2017

10:51 PM Feature #5481: Gemifying Ruby standard library
A few quick notes:
* Clarify for me please: are the new gemified stdlibs all going to use the default gem mechanism?
* Any "ruby" meta-gem will ideally need an equivalent for JRuby, so it doesn't try to install exts that don't exis...
headius (Charles Nutter)
09:13 PM Revision 8692d74b (git): lib/set.rb: [DOC] remove empty comments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
08:58 PM Revision 57d2be7b (git): * 2017-11-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:58 PM Revision 62191f1c (git): set.rb: improve docs for Set
* lib/set.rb: [DOC] add examples for Set#replace,
add examples for creating a set from a hash with duplicates,
simplify and fix style of some other examples, fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60879 b2dd03c...
stomar (Marcus Stollsteimer)
08:58 PM Feature #14125: Readline Module (STDLIB): Add support for ^O emacs keybinding?
Is the functionality you referred to in the C readline available already?
Sometimes it may take a little while to have all C-related code from bindings
available e. g. in the ruby Readline module. I know way too little about
Readli...
shevegen (Robert A. Heiler)
03:50 AM Feature #14125: Readline Module (STDLIB): Add support for ^O emacs keybinding?
Whoops. All those superscript characters should be regular characters preceded by a carat, to signify a CTRL key binding. rlue (Ryan Lue)
03:49 AM Feature #14125 (Closed): Readline Module (STDLIB): Add support for ^O emacs keybinding?
The pry gem features a REPL that uses the Readline stdlib module. With the help of this module, pry's REPL supports most emacs-style readline key bindings:
* ^P / ^N for navigating up/down the command line history,
* ^K for killing t...
rlue (Ryan Lue)
08:38 PM Bug #14127 (Rejected): (CSV) generating UTF-16LE encoded file without BOM
This file should contain BOM information so that it is properly detected as UTF-16LE file.
How to generate such file:
~~~ruby
file = CSV.generate(encoding: 'UTF-16LE') do |csv|
csv << ['something', 'ľščťžýáíé']
end
~~~
A...
laykou (Ladislav Gallay)
08:36 PM Bug #14126 (Closed): Recent parse.y (Ripper) changes - lexing, tokenizing
First of all, I'd like to thank @yui-knk for all the work on `parse.y`. I assume some of it is due the movement of `RDoc` from 'seattlerb' to 'ruby', along with `RDoc` now using Ripper instead of its own parser.
I'm a `YARD` user. R...
MSP-Greg (Greg L)
12:32 PM Revision 9a2ea103 (git): * 2017-11-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:32 PM Revision b5ee3168 (git): parse.y: Fix the locations of NODE_BLOCK_PASS
* parse.y (arg_blk_pass): Update the first location of
NODE_BLOCK_PASS if nd_head is assigned.
e.g. The locations of NODE_BLOCK_PASS is fixed:
```
a(1, &:to_s)
```
* Before
```
NODE_BLOCK_PASS (line: 1, first_lineno...
yui-knk (Kaneko Yuichiro)
11:18 AM Feature #9867 (Closed): Introduce each/else block into ruby
marcandre (Marc-Andre Lafortune)
10:20 AM Feature #7836 (Closed): Need a way to get Method and UnboundMethod objects to methods overridden by prepended modules
marcandre (Marc-Andre Lafortune)
10:13 AM Bug #7755 (Closed): JSON::Generate#configure's argument conversion
marcandre (Marc-Andre Lafortune)
10:08 AM Bug #3128 (Closed): Randomness specs
marcandre (Marc-Andre Lafortune)
10:08 AM Bug #7780 (Closed): Marshal & YAML should deserialize only basic types by default.
marcandre (Marc-Andre Lafortune)
10:06 AM Feature #3714 (Closed): Add getters for Enumerator
marcandre (Marc-Andre Lafortune)
09:59 AM Bug #11776 (Closed): dig and custom objects
marcandre (Marc-Andre Lafortune)
09:44 AM Bug #13781 (Closed): Should the safe navigation operator invoke `nil?`
marcandre (Marc-Andre Lafortune)
08:37 AM Bug #8352: URI squeezes a sequence of slashes in merging paths when it shouldn't
duerst (Martin Dürst) wrote:
>
> ...
It definitely doesn't play nicely with dot-segment resolution, but then I wouldn't want to bear the burden of deciding how to resolve that, one way or the other.
In this particular case, I think...
phluid61 (Matthew Kerwin)
07:41 AM Bug #8352: URI squeezes a sequence of slashes in merging paths when it shouldn't
knu (Akinori MUSHA) wrote:
> I presume there are few programmers who would rely on the current behavior.
I agree that there should be few programmers who would rely on subsequent slashes to be collapsed to a single slash. However, ...
duerst (Martin Dürst)

11/21/2017

06:08 PM Feature #14124 (Closed): Show source around binding.irb on irb startup
k0kubun です。
ソースコード中の複数箇所に binding.irb を記述した時、IRBのセッションがどこから起動されたのか分からず困っています。
以下のように、 binding.irb からIRBを起動した時だけどこから起動されたのかわかるととても助かるのですが、いかがでしょうか。
~~~
$ cat /tmp/test.rb
def test
binding.irb
end
test
$ ruby /tmp/test.rb
...
k0kubun (Takashi Kokubun)
05:37 PM Feature #14123: Kernel#pp by default
I agree with Yusuke Endoh.
I also wanted to suggest this many times before but shied away because
I was not sure if this would have any chance, perhaps due to speed
reason or something.
I love pp. It's my favourite way to "debug"...
shevegen (Robert A. Heiler)
05:11 PM Feature #14123: Kernel#pp by default
Eregon (Benoit Daloze) wrote:
> The thread safety problem is due to `undef`, right?
Correct. The `pp` library defines `Kernel#pp`, so in verbose mode if you don't undef or remove the method first, this causes a warning in verbose m...
jeremyevans0 (Jeremy Evans)
04:15 PM Feature #14123: Kernel#pp by default
> also breaks when running ruby chrooted
Regardless of proposed implementation, `require 'pp'` wouldn't work if chrooted. I couldn't understand why it's problematic.
> ...
It's already module_function, isn't it?
https://github.co...
k0kubun (Takashi Kokubun)
03:28 PM Feature #14123: Kernel#pp by default
jeremyevans0 (Jeremy Evans) wrote:
> I'm not opposed to this feature, but the proposed implementation is not thread-safe, and also breaks when running ruby chrooted. If `Kernel#pp` is implemented, I request the implementation be thread...
Eregon (Benoit Daloze)
03:05 PM Feature #14123: Kernel#pp by default
I'm not opposed to this feature, but the proposed implementation is not thread-safe, and also breaks when running ruby chrooted. If `Kernel#pp` is implemented, I request the implementation be thread-safe and that it fall back to `Kernel... jeremyevans0 (Jeremy Evans)
08:14 AM Feature #14123: Kernel#pp by default
+1
I sometimes get ```undefined method `pp' for main:Object (NoMethodError)``` error when I did debug my script. It's useful for me.
hsbt (Hiroshi SHIBATA)
08:11 AM Feature #14123: Kernel#pp by default
Brief background: I talked about `pp` with some people at RubyConf, and all people are tired of writing `require "pp"`. And then, we reached this simple solution. Note that we already have a similar trick, as [`Binding#irb`](https://gi... mame (Yusuke Endoh)
08:02 AM Feature #14123 (Closed): Kernel#pp by default
Matz, may I commit this? I really want this.
```
diff --git a/prelude.rb b/prelude.rb
index 7b98e28285..87f49ac9fb 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -141,3 +141,11 @@ def irb
irb
end
end
+
+module Kernel
...
mame (Yusuke Endoh)
12:29 PM Revision 31b6079e (git): Fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:29 PM Revision 246c986e (git): Use `const void*` instead of `const char*`
Use cast from `char*` to `void*` instead of union in opendir_without_gvl,
because convert from `void*` to `char*` without union in nogvl_opendir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
11:15 AM Revision cac048a1 (git): vm_args.c: ec arg of args_setup_kw_parameters
* vm_args.c (args_setup_kw_parameters): use same ec as the caller.
make arguments order consistent with other functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:48 AM Revision afa10bd1 (git): Skip comment lines
* template/prelude.c.tmpl (translate): empty (only LF) lines are not necessary.
so skip them, but for safety only when they are made from comment line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60873 b2dd03c8-39d4-4d8f-98ff-8...
U.Nakamura
06:43 AM Feature #14122: Add LogicError
For most method names, on most objects, one gets a `NoMethodError`. This error is produced by the method lookup part of the Ruby interpreter, at no cost to the implementers of particular classes. Changing that to a `LogicError` or whatev... duerst (Martin Dürst)
06:26 AM Feature #14122: Add LogicError
I am not sure if this is a good new error "type".
Who defines what exactly is not about "logic" in these cases? Is
5 / 0 also a logic error? Or adding hash + array via the '+'?
Because that is "TypeError: no implicit conversion of H...
shevegen (Robert A. Heiler)
02:19 AM Feature #14122 (Open): Add LogicError
Dear friends at ruby
I'd like to suggest a new error for ruby-core: LogicError
That error should be thrown
upon operations that are detected to be illogic or impossible by semantics.
I believe that this could improve the error me...
eike.rb (Eike Dierks)
05:01 AM Revision bca96661 (git): fix test_erb.rb [GH-1763]
* test/erb/test_erb.rb (test_run): require stringio. suppress an
unused variable warning.
From: MSP-Greg <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:57 AM Revision eb3e3248 (git): check invariant.
* iseq.c (rb_iseq_trace_set): at this point ISEQ_USE_COMPILE_DATA
should not be set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:56 AM Revision 48bfcdb4 (git): test/ruby/bug-13526.rb: should wait until all threads are stopped
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
12:47 AM Revision c0ffccf7 (git): parse.y: Fix the locations of NODE in percent strings
* parse.y (parser_yylex): token_flush before
calling parse_string. Without token_flush
the first locations of NODE in percent strings
are set to the location of %.
e.g. The locations of NODE_STR is fixed:
```
%w[a b]
...
yui-knk (Kaneko Yuichiro)
 

Also available in: Atom