Project

General

Profile

Activity

From 01/28/2016 to 02/03/2016

02/03/2016

10:44 PM Bug #4044: Regex matching errors when using \W character class and /i option
Martin Dürst wrote:
> On 2016/02/03 12:21, [email protected] wrote:
>
> > I want to write a spec for this, ...
phluid61 (Matthew Kerwin)
07:31 AM Bug #4044: Regex matching errors when using \W character class and /i option
On 2016/02/03 12:21, [email protected] wrote:

> I want to write a spec for this, but some of the details are ...
duerst (Martin Dürst)
03:21 AM Bug #4044: Regex matching errors when using \W character class and /i option
I want to write a spec for this, but some of the details are unclear to me. Can we confirm whether each of the follow... phluid61 (Matthew Kerwin)
09:04 PM Feature #12020: Documenting Ruby memory model
Thank you, for taking time to read it and for your input. I apologise for delayed answer, I was rather busy lately.
...
pitr.ch (Petr Chalupa)
01:31 PM Bug #12048 (Rejected): "Unknown keyword" error when calling function with keyword argument inside parameter
Contents of attached file ruby_bug.rb
~~~ruby
def x(a) ; a ; end
def y(*a, b: nil) ; end
y(x(c: 1))
~~~
~~~...
devwout (Ewout VT)
11:30 AM Bug #11742: lib/webrick/utils.rb:196:in `register': ERROR RuntimeError: can't add a new key into hash during iteration
そんなアプリは死んでおけばいいんじゃないですかね^^
互換性をどこまで保つかって難しい判断なわけですが、うーん。
2.1についてはまた後で考えます(そして時間切れで自動的にWONTFIXになる)。
usa (Usaku NAKAMURA)
11:08 AM Bug #11742: lib/webrick/utils.rb:196:in `register': ERROR RuntimeError: can't add a new key into hash during iteration
WEBrick::Utils::TimeoutHandler がモンキーパッチされていたため、Ruby 2.3 にバージョンアップしたら動かなくなったアプリがあった、と、どこかで見た記憶があります。モンキーパッチは基本は当てる人の責任... ngoto (Naohisa Goto)
10:08 AM Revision b7503d03 (git): Remove debug print introduced in r52386
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:59 AM Bug #11946: Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
Thank you Ben Miller for providing the script and thanks to you Yui NARUSE for creating the fix! felixmohnert (Felix Mohnert)
04:52 AM Bug #11946 (Closed): Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
Applied in changeset r53724.
----------
* string.c (str_new_frozen): if the given string is embeddedable
but not e...
naruse (Yui NARUSE)
03:18 AM Bug #11946 (Assigned): Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
Ben Miller wrote:
> I was able to reduce to a script that doesn't need any gems. I'm using Arch Linux.
This is so...
naruse (Yui NARUSE)
07:44 AM Bug #12045 (Assigned): Add documentation lib/debug.rb
zzak (zzak _)
07:40 AM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
https://.com/ruby/ruby/compare/trunk...nobu:feature/12043-NoMethodError%23private_call-p nobu (Nobuyoshi Nakada)
07:37 AM Revision fc6073bd (git): test_exception.rb: NameError at FCALL
* test/ruby/test_exception.rb (test_name_error_info): add
assertions for FCALL.
git-svn-id: svn+ssh://ci.ruby-lang...
nobu (Nobuyoshi Nakada)
07:21 AM Revision 6bc6708b (git): vm_eval.c: argument names
* vm_eval.c (make_no_method_exception): enumerate argument
meanings instead of a magic number.
git-svn-id: svn+ssh...
nobu (Nobuyoshi Nakada)
05:44 AM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
https://.com/ruby/ruby/compare/trunk...nobu:feature/12041-NameError%23initialize-recevier nobu (Nobuyoshi Nakada)
05:35 AM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
Nobuyoshi Nakada wrote:
> or same as `NameError#initialize`?
>
> ```ruby
> NoMethodError.new(msg, name [, receiv...
nobu (Nobuyoshi Nakada)
05:10 AM Feature #12042: A better interface that returns a list of local variables available where the exception is raised
Rename `NameError#local_variables` not to override `Kernel#local_variables`?
Do you have candidates for that name?
nobu (Nobuyoshi Nakada)
04:52 AM Revision 040ce056 (git): * string.c (str_new_frozen): if the given string is embeddedable
but not embedded, embed a new copied string. [Bug #11946]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53724 b2...
naruse (Yui NARUSE)
12:18 AM Feature #12047: Set#=== (aliased to include?)
I think that is ad hoc. Splat could be used, just like with arrays.
~~~Ruby
case my_command
when *GOOD_COMMANDS ...
sawa (Tsuyoshi Sawada)

02/02/2016

11:28 PM Bug #11946: Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
I was able to reduce to a script that doesn't need any gems. I'm using Arch Linux. bjmllr (Ben Miller)
11:25 PM Revision e14c9f10 (git): Fix typo on OpenSSL::PKey doc [ci skip]
* ext/openssl/ossl_pkey.c (Init_ossl_pkey): [DOC] Fix typo
"encrypted" to "decrypted". [Fix GH-1235]
git-svn-id: ...
nobu (Nobuyoshi Nakada)
11:21 PM Revision a43f2cba (git): Fix Ripper.lex error in dedenting squiggly heredoc
* ext/ripper/lib/ripper/lexer.rb (on_heredoc_dedent): Fix
Ripper.lex error in dedenting squiggly heredoc. heredoc ...
nobu (Nobuyoshi Nakada)
09:36 PM Feature #12047 (Closed): Set#=== (aliased to include?)
Add `Set#===` as an alias for `Set#include?` so that sets may be used in `case` statements:
~~~
require 'set'
GO...
Phrogz (Gavin Kistner)
06:51 PM Feature #12034: RegExp does not respect file encoding directive
[email protected] wrote:
> That encoding has never changed since 1.9.
> It seems because `File.readlink` and `Fil...
normalperson (Eric Wong)
10:14 AM Feature #12034: RegExp does not respect file encoding directive
This is considered as a spec now.
Anyway the change is very tiny.
```c
diff --git a/re.c b/re.c
index 3f7d227...
naruse (Yui NARUSE)
06:50 PM Bug #11930: Segmentation Fault in gc_mark_ptr in 2.3.0p0
Nobuyoshi Nakada wrote:
> Seems a GC problem with `Proc`.
>
> ```
> -- C level backtrace information -----------...
b264 (Brian Giaraffa)
05:38 PM Revision 922d359e (git): * 2016-02-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:38 PM Revision 7aefa7b8 (git): * re.c (rb_reg_prepare_enc): use already compiled US-ASCII regexp
if given string is ASCII only.
121.2s to 113.9s on my x86_64-freebsd10.2 Intel Core i5 661
git-svn-id: svn+ssh://c...
naruse (Yui NARUSE)
02:56 PM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
I agree, it seems the best place to put this information is in the SyntaxError exception. If we need to keep compat... jrafanie (Joe Rafaniello)
12:06 AM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
If the character position can be achieved in addition to the line number, then the "hint" can be reconstructed. (Howe... sawa (Tsuyoshi Sawada)
02:30 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Benoit, you are absolutely right about the error message. I was a bad person and didn't really check after copying & ... yuki24 (Yuki Nishijima)
02:17 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Does it satisfy your use case that raising another exception when private method call with `self.` ?
```ruby
begi...
usa (Usaku NAKAMURA)
02:09 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
The first error message is actually
"undefined method `method_that_does_not_exist' for main:Object".
But that does ...
Eregon (Benoit Daloze)
01:57 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
I think I should've been more specific and also should've mentioned that in the example above, the method you are try... yuki24 (Yuki Nishijima)
01:14 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
So this would essentially be a way to tell if the call was a "fcall", without needing to parse the exception message?... Eregon (Benoit Daloze)
01:02 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Nakada-san, that's exactly what I want. A code example would be something like this:
```ruby
begin
self.do_s...
yuki24 (Yuki Nishijima)
01:54 AM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
I think he wants to distinguish `self.foo` and `foo()`.
Only public methods can be candidates in the former case, bu...
nobu (Nobuyoshi Nakada)
01:39 PM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
Speaking of `NoMethodError`, I think the former (`NoMethodError.new(msg, name [, args [,receiver]])`) makes more sens... yuki24 (Yuki Nishijima)
01:29 PM Feature #12042: A better interface that returns a list of local variables available where the exception is raised
As you may know, in Ruby 2.2 and older, `#local_variables` returns a list of local variables available in the scope w... yuki24 (Yuki Nishijima)
01:01 PM Revision 59e8cd3e (git): follow r53691
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:02 AM Revision 10eef96d (git): Skip SHA from test_digest_constants for LibreSSL 2.3
The first one of ruby/openssl#40
https://.com/ruby/openssl/issues/40#issuecomment-159839338
git-svn-id: svn+ss...
naruse (Yui NARUSE)
07:08 AM Revision df64c27e (git): downloader.rb: https setter
* tool/downloader.rb (Downloader.https): define class variable
setter for 1.8, class_variable_set was private.
git...
nobu (Nobuyoshi Nakada)
05:43 AM Revision eee61631 (git): win32.c: reuse fullpath buffer
* win32/win32.c (open_dir_handle): reuse the fullpath buffer
instead of allocating another buffer for copy.
git-sv...
nobu (Nobuyoshi Nakada)
04:39 AM Revision 21daa56b (git): * re.c: Introduce RREGEXP_PTR.
by dbussink.
partially merge https://.com/ruby/ruby/pull/497
* include/ruby/ruby.h: ditto.
* gc.c: di...
naruse (Yui NARUSE)
04:39 AM Revision 73733206 (git): enc: workdir timestamps
* enc/depend: make timestamps for each work directory, instead of
making for each compilation and link.
git-svn-id...
nobu (Nobuyoshi Nakada)
04:24 AM Feature #12046 (Rejected): Allow attr_reader :foo? to define instance method foo? for accessing @foo
Now we should write an accessor method of a boolean instance variable like
```ruby
def foo?
@foo
end
```
...
mrkn (Kenta Murata)
03:53 AM Revision 120c23ed (git): ChangeLog: reword
* ChangeLog: reword "affect" as it is a verb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53713 b2dd03c8-39d4-...
nobu (Nobuyoshi Nakada)
03:50 AM Bug #12037: did_you_mean reporting impossible suggestion
Yuki Nishijima wrote:
> Martin, your idea sounds great to me, but I think it sounds more like a feature. Could you...
duerst (Martin Dürst)
02:27 AM Bug #9817 (Feedback): The extconf.rb for OpenSSL assumes MingW
First of all, from where did your "openssl" libraries come?
`ws2_32.lib` should be linked by the default, and I can'...
nobu (Nobuyoshi Nakada)
12:11 AM Revision 4e8b8c10 (git): * lib/rubygems/specification.rb: `coding` is affect only first line except
shebang.
* lib/rubygems/package.rb, lib/rubygems/package/*: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
hsbt (Hiroshi SHIBATA)

02/01/2016

11:25 PM Bug #12045 (Closed): Add documentation lib/debug.rb
I am currently working on wrapping up documentation for lib/debug.rb. Right now there are quite a few undocumented me... dpulliam (Dylan Pulliam)
10:52 PM Bug #12044 (Closed): net/ftp.rb: add NullSocket#closed? to fix closing not yet opened connection
Hi there,
I've opened a PR for this issue on : https://.com/ruby/ruby/pull/1232
An instance of `Nul...
antstorm (Anthony Dmitriyev)
10:01 PM Bug #11969: [] IRB: Final newline missing in truncated backtraces
Ping... Any update on this? javawizard (Alex Boyd)
09:28 PM Feature #11868: Proposal for RubyVM::InstructionSequence.compile to return an object containing the syntax error information currently written to STDERR
Hi @nobu, thanks for working on this feature in https://.com/ruby/ruby/compare/trunk...nobu:feature/11868-Synt... jrafanie (Joe Rafaniello)
03:06 PM Revision a8bf0f71 (git): * 2016-02-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 0f19e79b (git): win32.c: w32_wopendir
* win32/win32.c (w32_wopendir): remove filename parameter, and
check the drive letter in wpath instead. rename fro...
nobu (Nobuyoshi Nakada)
02:02 PM Bug #9817: The extconf.rb for OpenSSL assumes MingW
Looking at the source code, File::ALT_SEPARATOR only appears to be defined on Windows. It's set in file.c if DOSISH i... djberg96 (Daniel Berger)
01:16 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Is respond_to?(no_method_error.name, false) not enough for this purpose? Eregon (Benoit Daloze)
12:22 PM Feature #12043 (Closed): Add a method to NoMethodError that tells if private methods are callable at the time of
I've briefly talked about this to Sasada-san, but also wanted to hear from other committers. I would like to add a me... yuki24 (Yuki Nishijima)
12:43 PM Revision a82fb030 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:43 PM Revision 7a06afa9 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:43 PM Revision a21d403f (git): * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2.
It supports to enable frozen string literal and add `--norc` option for
disable to `.gemrc` configuration.
See 2....
hsbt (Hiroshi SHIBATA)
12:30 PM Feature #12042 (Feedback): A better interface that returns a list of local variables available where the exception is raised
I'm uncertain about what you mean by "change".
Could you elaborate the behavior what you expect?
nobu (Nobuyoshi Nakada)
12:16 PM Feature #12042 (Feedback): A better interface that returns a list of local variables available where the exception is raised
We've changed the behavior of `NameError#local_variables` as discussed on #11777, but I'm not actually satisfied by t... yuki24 (Yuki Nishijima)
12:25 PM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
What's about `NoMethodError`?
Currently, it is
```ruby
NoMethodError.new(msg, name [, args]) #-> no_method_erro...
nobu (Nobuyoshi Nakada)
11:42 AM Feature #12041 (Open): Change the initializer of NameError to take a receiver as the third argument
I would like to change `NameError#initialize` to take a receiver object as the third argument. An example would be li... yuki24 (Yuki Nishijima)
12:08 PM Revision 94cfa289 (git): win32.c: volume_prefix_len
* win32/win32.c (rb_w32_read_reparse_point): name the prefix
length to be dropped.
git-svn-id: svn+ssh://ci.ruby-l...
nobu (Nobuyoshi Nakada)
10:40 AM Bug #12037: did_you_mean reporting impossible suggestion
fixed in [yuki24/did_you_mean@1c52c88](https://.com/yuki24/did_you_mean/commit/1c52c887c62b0921e799f94bcc4a846d... yuki24 (Yuki Nishijima)
03:02 AM Bug #12037: did_you_mean reporting impossible suggestion
> Issue #12037 has been updated by Nobuyoshi Nakada.
>
> Status changed from Open to Third Party's Issue
> Assign...
duerst (Martin Dürst)
09:47 AM Feature #11678 (Closed): ability to comment out methods in a multi-line method chain without needing a new line escape
naruse (Yui NARUSE)
08:43 AM Feature #11678: ability to comment out methods in a multi-line method chain without needing a new line escape
It is a duplicate of https://bugs.ruby-lang.org/issues/7639. sawa (Tsuyoshi Sawada)
08:14 AM Revision 19162d26 (git): win32.c: suffix should be alnum
* win32/win32.c (fileattr_to_unixmode): built-in executable
suffixes are alpha-numeric only, no needs to scan whole...
nobu (Nobuyoshi Nakada)
08:13 AM Bug #12040 (Assigned): [Win32] File.stat fails on a mounted volume
On Windows, `File.stat` fails on the volume mount point directory whose name contains `"..."`.
Where `%vol%` is th...
nobu (Nobuyoshi Nakada)
06:25 AM Revision 01cfc8b5 (git): * 2016-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:25 AM Revision 1664a4ca (git): win32.c: move counting length
* win32/win32.c (opendir_internal): defer counting the length just
before the loop where it is used.
git-svn-id: s...
nobu (Nobuyoshi Nakada)
03:59 AM Misc #12004: Code of Conduct
Hi, for what it's worth at this point, I strongly support both adopting a code of conduct, and adopting the Contribut... kevinburke (Kevin Burke)
03:11 AM Feature #12039: Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
This is probably a useful method to be able to rely on universally, even if `Fixnum` and `Bignum` just return `false`. seantheprogrammer (Sean Griffin)
01:22 AM Feature #12039: Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
It might also make sense to consider if other "predicates" make sense, e.g. `nan?` They should be declared on Numeric... ioquatix (Samuel Williams)
01:19 AM Feature #12039 (Closed): Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
We have an issue where it is not easy to ask if a number is +ve or -ve infinity. https://.com/rails/arel/issues... ioquatix (Samuel Williams)
02:02 AM Feature #12024: Add String.buffer, for creating strings with large capacities
On 2016/01/30 21:17, [email protected] wrote:
> I have no strong objection, but still I have a question. I guess...
duerst (Martin Dürst)

01/31/2016

09:43 AM Revision 28a7199a (git): r53688 test
* test/ruby/test_file_exhaustive.rb (test_realpath_mount_point):
test for r53688.
git-svn-id: svn+ssh://ci.ruby-la...
nobu (Nobuyoshi Nakada)
07:52 AM Misc #12004: Code of Conduct
Just some clarification of context on this for the record. Again, my goal is not to debate whether we need a CoC but... einhverfr (Chris Travers)
05:43 AM Bug #11993: foo(hash) is handled like foo(**hash)
See #11967 for Marc-Andre's explanation. avit (Andrew Vit)
03:34 AM Revision c2e998d6 (git): additional math operations
* test/drb/ut_large.rb (multiply, avg, median): add additional
math operations to DRbLarge. [Fix GH-1086]
git-svn...
nobu (Nobuyoshi Nakada)
03:20 AM Revision 8b9cd1db (git): test for File#lstat.
* test/ruby/test_file_exhaustive.rb (test_lstat): Add lacking test
for File#lstat. [Fix GH-1231]
git-svn-id: svn+...
nobu (Nobuyoshi Nakada)
03:16 AM Revision 92862661 (git): standard_library.rdoc: fix typo [ci skip]
* doc/standard_library.rdoc: fix typo [Fix GH-1230]
Spelling mistakes -
outputing > outputting
publich > publi...
nobu (Nobuyoshi Nakada)
03:11 AM Revision 610e39e9 (git): io.c: rb_io_open_generic
* io.c (rb_io_open_generic): split from rb_io_open without
argument conversions.
* io.c (rb_io_s_binread): get rid...
nobu (Nobuyoshi Nakada)
02:58 AM Revision c949aab5 (git): * 2016-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:58 AM Revision e7cf2031 (git): io.c: constify
* io.c (rb_file_open_generic, pipe_open, pipe_open_s): constify
convconfig parameter.
git-svn-id: svn+ssh://ci.rub...
nobu (Nobuyoshi Nakada)

01/30/2016

10:51 PM Misc #12004: Code of Conduct
> And also, can we get the troll removed, please? Whether or not jewish Illuminati
> rule the world is irrelevant t...
kosaki (Motohiro KOSAKI)
10:03 PM Misc #12004: Code of Conduct
Since I posted that version 1.4 has been merged into master. You can find the final version here:
http://contribut...
CoralineAda (Coraline Ada Ehmke)
09:47 PM Misc #12004: Code of Conduct
I must say I'm actually positively surprised by Contributor Covenenant 1.4.
I'm no fan of Coraline or SJWs, but I th...
jaen (Tomek Mańko)
08:25 PM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> It should be noted that the leaders of the Postgres project rejected the language in the...
jeremyevans0 (Jeremy Evans)
08:15 PM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> It should be noted that the leaders of the Postgres project rejected the language in the...
rklemme (Robert Klemme)
07:56 PM Misc #12004: Code of Conduct
It should be noted that the leaders of the Postgres project rejected the language in the proposed CoC and have decide... CoralineAda (Coraline Ada Ehmke)
07:12 PM Misc #12004: Code of Conduct
Shlomo Shekelstein wrote:
> ...
Please stop: this is unprofessional. Everyone has made their points and it is don...
avit (Andrew Vit)
11:54 AM Misc #12004: Code of Conduct
(This message has been deleted) ShlomoShekelstein (Shlomo Shekelstein)
11:31 AM Misc #12004: Code of Conduct
(This message has been deleted)
ShlomoShekelstein (Shlomo Shekelstein)
01:51 AM Misc #12004: Code of Conduct
On 01/30/2016 05:39 AM, Matthew Kerwin wrote:
> Please take the rest of this discussion off the tracker and mailing...
shyouhei (Shyouhei Urabe)
08:20 PM Bug #8316: Can't pass hash to first positional argument; hash interpreted as keyword arguments
Andrew Schwartz wrote:
> This is unfortunately still an issue with default values in positional arguments
See #11...
avit (Andrew Vit)
06:03 PM Bug #12030: Crash calling Hash#dig when hash contains ActiveRecord objects
r53695 should be backported into ruby_2_3 branch.
rb_check_funcall_with_hook() exists in ruby_2_0_0, ruby_2_1, ruby_...
nagachika (Tomoyuki Chikanaga)
06:18 AM Bug #12030 (Closed): Crash calling Hash#dig when hash contains ActiveRecord objects
Applied in changeset r53695.
----------
vm_eval.c: fix hook call
* vm_eval.c (rb_check_funcall_with_hook): also sho...
nobu (Nobuyoshi Nakada)
05:28 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Template engines would be the main use case for this. Note that you don't need to know the exact length of the strin... jeremyevans0 (Jeremy Evans)
12:17 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Thank you for your benchmark. I tried it and confirmed the speed up in Linux. Now I have no strong objection agains... mame (Yusuke Endoh)
04:29 PM Bug #11869: random hang/SegFault when accessing a missing constant in irb
I built our whole system (ruby, libedit, ncurses, etc) without any optimizations at all and got a build that passed o... lamont (Lamont Granquist)
11:58 AM Feature #12038 (Third Party's Issue): Please add documentation to open-uri showing how to obtain an attachment
naruse (Yui NARUSE)
10:47 AM Feature #12038: Please add documentation to open-uri showing how to obtain an attachment
al2o3-cr on IRC showed the solution:
File.write('foo.txt', open("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efet...
shevegen (Robert A. Heiler)
10:45 AM Feature #12038 (Third Party's Issue): Please add documentation to open-uri showing how to obtain an attachment
The current documentation for open-uri is at:
ruby-doc.org/stdlib-2.3.0/libdoc/open-uri/rdoc/OpenURI.html
I a...
shevegen (Robert A. Heiler)
07:01 AM Feature #11917: Add Range#length as an alias for size
Attached for consideration. I made the aliases the same as Array. avit (Andrew Vit)
06:24 AM Bug #11915: File.read reading string starting with | executes it.
People should (hopefully) always read files with an absolute path prefix, but something like this could be surprising... avit (Andrew Vit)
06:19 AM Revision 6ee8ec70 (git): vm_eval.c: fix hook call
* vm_eval.c (rb_check_funcall_with_hook): also should call the
given hook before returning Qundef when overridden r...
nobu (Nobuyoshi Nakada)
04:08 AM Feature #11882: Map or NamedMap
Robert A. Heiler wrote:
> I concur with Hampton Catlin for the most part (save for the
> name "Map", that is not a ...
avit (Andrew Vit)
03:13 AM Bug #12037 (Third Party's Issue): did_you_mean reporting impossible suggestion
Probably the same name as the erred should be removed from candidates first. nobu (Nobuyoshi Nakada)
02:57 AM Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Andrew,
I don't think `dig!` is a good name, because `!` usually denotes dangerous version of a method in Ruby nam...
matz (Yukihiro Matsumoto)
02:38 AM Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Yukihiro Matsumoto wrote:
> If #dig returns nil instead of exception, as you want, we cannot distinguish case 2 and ...
avit (Andrew Vit)
02:49 AM Feature #12034: RegExp does not respect file encoding directive
That encoding has never changed since 1.9.
It seems because `File.readlink` and `File.realpath` return locale strings.
nobu (Nobuyoshi Nakada)
02:04 AM Feature #11848: New #to_b method for String, Symbol, Numeric, NilClass, TrueClass and FalseClass.
I've had to do this in a few places over the years myself:
~~~
TRUTHY_VALUES = [true, 1, '1', 't', 'T', 'true', '...
avit (Andrew Vit)
01:49 AM Revision 68241c2e (git): common.mk: update-bundled_gems
* common.mk (update-bundled_gems): to update version numbers in
gems/bundled_gems file.
git-svn-id: svn+ssh://ci.r...
nobu (Nobuyoshi Nakada)
01:08 AM Revision 807b9187 (git): update bundled gems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

01/29/2016

11:56 PM Bug #12037 (Third Party's Issue): did_you_mean reporting impossible suggestion
The did_you_mean feature in Ruby 2.3.0 reports an impossible suggestion when you define whatever is being called in t... chrisarcand (Chris Arcand)
09:30 PM Bug #12036 (Closed): Enumerator's automatic rewind behavior
When enumerating an enumerator, the enumerator automatically rewinds when #next raises an error. The concern here is ... slash_nick (Ryan Hosford)
06:59 PM Misc #12004: Code of Conduct
Lisa Beld wrote:
> I would recommend the Contributor Covenant. People complaining that it includes harassment in pub...
avit (Andrew Vit)
08:36 AM Misc #12004: Code of Conduct
Hi everyone;
First, in scope I recognize the discussion as to whether to have a code of conduct is over. Ruby ha...
einhverfr (Chris Travers)
06:37 AM Misc #12004: Code of Conduct
First off, thank you to mods for re-opening account registration. I would like to jump in and comment on this, since ... angularjays (Jay S)
03:11 AM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
>
> We will set up some form of CoC in the future. Let me think fo...
Anonymous
02:10 AM Misc #12004: Code of Conduct
I've noticed new accounts can register again, so I guess I'll add my two cents.
I understand the need for CoCs - t...
jaen (Tomek Mańko)
06:01 PM Bug #12035 (Rejected): scanf suspicious results.
The code: 'a b c'.scanf('%[a] %[b] %[c]')
yields the result: ["a"] and not ["a","b","c"] as expected.
So far it...
PeterCamilleri (Peter Camilleri)
04:53 PM Bug #11869: random hang/SegFault when accessing a missing constant in irb
I'm seeing this on debian 7, rhel 6, and ubuntu 14.04 at least (but running binaries compiled on debian 6, rhel 5, an... lamont (Lamont Granquist)
04:45 PM Bug #12033: WSASocket can't work with Ruby extensions.
Okay. I see.
What you're telling me is that you're basically overriding at link time the list of posix-looking fun...
nicolasnoble (Nicolas Noble)
11:12 AM Bug #12033: WSASocket can't work with Ruby extensions.
First, You don't have to care about initializing/cleanup WinSock.
Ruby does them.
To keep source level compatibil...
usa (Usaku NAKAMURA)
10:56 AM Bug #12033: WSASocket can't work with Ruby extensions.
I forgot to mention that I tried this under windows 10 and Windows 7, with the same result on both os. nicolasnoble (Nicolas Noble)
10:39 AM Bug #12033 (Closed): WSASocket can't work with Ruby extensions.
Basically, when creating a gem with C code that tries to do a WSASocket() call, the socket will end up being non-viab... nicolasnoble (Nicolas Noble)
03:52 PM Feature #12034 (Open): RegExp does not respect file encoding directive
~~~
$ cat regexp-encoding.rb
# -*- encoding: binary -*-
puts ''.encoding
puts //.encoding
$ ruby regexp-encodi...
vo.x (Vit Ondruch)
03:21 PM Revision 562b14cb (git): * 2016-01-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:21 PM Revision 563706fa (git): suppress warning: assigned but unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:16 PM Bug #12030: Crash calling Hash#dig when hash contains ActiveRecord objects
Hi, I was able to reproduce it on a bit minified example. Here it is:
~~~
class Foo
def self.respond_to?(*ar...
akhramov (Artem Khramov)
09:32 AM Revision 1e226382 (git): r53689 test
* test/ruby/test_file_exhaustive.rb (test_readlink_junction): test
for r53689.
git-svn-id: svn+ssh://ci.ruby-lang....
nobu (Nobuyoshi Nakada)
08:41 AM Revision ec943ac6 (git): win32/file.c: drop garbage
* win32/file.c (rb_readlink): drop garbage after the substitute
name, as rb_w32_read_reparse_point returns the expe...
nobu (Nobuyoshi Nakada)
08:13 AM Revision 47f6196c (git): * win32/win32.c (fileattr_to_unixmode, rb_w32_reparse_symlink_p): volume
mount point should be treated as directory, not symlink.
[ruby-core:72483] [Bug #11874]
* win32/win32.c (rb_w32_re...
U.Nakamura
08:12 AM Bug #11874 (Closed): File.realpath fail on volume mount point directory
Applied in changeset r53688.
----------
* win32/win32.c (fileattr_to_unixmode, rb_w32_reparse_symlink_p): volume
m...
usa (Usaku NAKAMURA)
08:01 AM Revision c0b13e29 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:18 AM Revision 93eb95f0 (git): Rename parameter name
* enum.c (enum_take_while, enum_drop_while): rename block
parameter to obj, since they are generic objects. [Fix G...
nobu (Nobuyoshi Nakada)
05:16 AM Revision 4f8245b7 (git): erb.rb: fronzen-string-literal in comment [Fix GH-1229]
* lib/erb.rb (ERB::Compiler#detect_magic_comment): allow
fronzen-string-literal in comment as well as encoding.
gi...
nobu (Nobuyoshi Nakada)
05:14 AM Revision 708a982c (git): erb.rb: duplicated magic comments [Fix GH-1229]
* lib/erb.rb (ERB#def_method): insert def line just before the
first non-comment and non-empty line, not to leave d...
nobu (Nobuyoshi Nakada)
03:53 AM Feature #12032 (Closed): Matrix.rb ruby documentation
Added documentation for three methods within matrix.rb file: elements_to_f, elements_to_i, elements_to_r Oneill38 (Megan O'Neill)
03:18 AM Revision f54b960d (git): test_erb.rb: improve assertions
* test/erb/test_erb.rb: improve failure messages with
assert_respond_to and assert_not_respond_to.
* test/erb/test...
nobu (Nobuyoshi Nakada)
02:14 AM Revision c55ad90a (git): erb.rb: frozen-string-literal safe
* lib/erb.rb (ERB#set_eoutvar): explicitly make mutable string as
a buffer to make ERB work with --enable-frozen-st...
nobu (Nobuyoshi Nakada)
02:13 AM Bug #12031 (Closed): Make ERB work with --enable-frozen-string-literal
Applied in changeset r53682.
----------
erb.rb: frozen-string-literal safe
* lib/erb.rb (ERB#set_eoutvar): explicit...
nobu (Nobuyoshi Nakada)
02:13 AM Revision 1c3a3f47 (git): test_erb.rb: escape
* test/erb/test_erb.rb (test_token_extension): escape % in
dedented heredoc for editors which do not support this s...
nobu (Nobuyoshi Nakada)
01:46 AM Revision cb50da1d (git): * 2016-01-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:46 AM Revision 809d3770 (git): * lib/net/http/header.rb: Warn nil variable on HTTP Header.
It caused to NoMethodError. [fix GH-952][fix GH-641] by @teosz
* test/net/http/test_httpheader.rb: Added test f...
hsbt (Hiroshi SHIBATA)

01/28/2016

10:14 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
>
> We will set up some form of CoC in the future. Let me think fo...
danielpclark (Daniel P. Clark)
07:38 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
>
> We will set up some form of CoC in the future. Let me think fo...
iced (Andrew Kirilenko)
07:11 PM Misc #12004: Code of Conduct
Lisa Beld wrote:
> I would recommend the Contributor Covenant. People complaining that it includes harassment in p...
rklemme (Robert Klemme)
05:30 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
>
> We will set up some form of CoC in the future. Let me think fo...
lisa-beld (Lisa Beld)
01:30 AM Misc #12004: Code of Conduct
I would just like to add that I think CoC version 1.4.0 is a good improvement: it better defines the "scope" of what ... avit (Andrew Vit)
09:51 PM Feature #7314: Convert Proc to Lambda doesn't work in MRI
Use case: a stored block gets called with a "target" as first parameter, plus optional arguments. If the target objec... avit (Andrew Vit)
09:41 PM Bug #12031 (Closed): Make ERB work with --enable-frozen-string-literal
ERB currently does not work with --enable-frozen-string-literal:
~~~
$ echo "a" | RUBYOPT=--enable-frozen-string-...
jeremyevans0 (Jeremy Evans)
08:11 PM Bug #11962: Ruby 2.3.0 causing compile failure on extensions using a C++ compiler
BTW this causes issues compiling SWIG:
https://.com/swig/swig/issues/593
vo.x (Vit Ondruch)
06:21 PM Bug #12030 (Closed): Crash calling Hash#dig when hash contains ActiveRecord objects
This code results in a stack consistency error:
~~~
begin
require 'bundler/inline'
rescue LoadError => e
$...
sbleon (Leon Miller-Out)
04:14 PM Bug #12029 (Rejected): Not all elements are yielded when count is given a block
nobu (Nobuyoshi Nakada)
12:44 PM Bug #12029: Not all elements are yielded when count is given a block
Hans Mackowiak wrote:
> you need splash:
>
> ```ruby
> to_enum(:foo).count { |*e| e == [1, 2] } #=> 1
> ```
...
jsyeo (Jason Yeo)
11:06 AM Bug #12029: Not all elements are yielded when count is given a block
you need splash:
```ruby
to_enum(:foo).count { |*e| e == [1, 2] } #=> 1
```
Hanmac (Hans Mackowiak)
10:19 AM Bug #12029 (Rejected): Not all elements are yielded when count is given a block
When count is called on an enumerable that yields multiple elements, not all elements are yielded to the block.
~~...
jsyeo (Jason Yeo)
04:13 PM Bug #12028 (Feedback): Crash ruby
How to reproduce? nobu (Nobuyoshi Nakada)
09:43 AM Bug #12028 (Closed): Crash ruby
(snip segv messages) russian_max (Max Erkin)
08:32 AM Revision 0897a6df (git): * 2016-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:32 AM Revision 173e287f (git): socket.c: unlimited size hostname
* ext/socket/socket.c (sock_gethostname): support unlimited size
hostname.
git-svn-id: svn+ssh://ci.ruby-lang.org/...
nobu (Nobuyoshi Nakada)
07:20 AM Feature #10658: ThreadGroup local variables
Lin Jen-Shin wrote:
> Here's a demonstration:
>
> module Kernel
> def should
> Should.new(sel...
amw (Adam Wróbel)
02:34 AM Feature #12024: Add String.buffer, for creating strings with large capacities
Jeremy Evans wrote:
> As to why `String.buffer(10000)` instead of `String.new(:buffersize=>10000)`, see https://bu...
akr (Akira Tanaka)
 

Also available in: Atom