Project

General

Profile

Activity

From 01/26/2016 to 02/01/2016

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 methods and params.
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 GitHub: https://github.com/ruby/ruby/pull/1232
An instance of `NullSocket` is stored in a `@sock` variable of a new `Net::FTP`, it also has a `#close` method (that obviously does nothing...
antstorm (Anthony Dmitriyev)
10:01 PM Bug #11969: [PATCH] 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://github.com/ruby/ruby/compare/trunk...nobu:feature/11868-SyntaxError-location.
For this example:
~~~~
RubyVM::InstructionSequence.new("puts 'hi'\n puts 'hi2'\n\nthis.is -> no...
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 from
opendir_internal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 is defined, and the DOSISH macro is set in defines.h if _WIN32 is defined.
In any case, it's definitely not limited to...
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 method to `NoMethodError` that tells whether or not private methods are callable from the line where the exception is rais... 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.5.2 release notes for other fixes and enhancements.
https://github.com/rubygems/rubygems/blob/a8aa3bac723f045c52471c7b...
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 the change. This change has made it impossible to get a list of local variables available within a NameError scope. It wo... 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_error
```
If `NameError#initialize` has third argument, where will it be placed?
The last?
```ruby
NoMethodError....
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 like this:
```ruby
receiver_object = Object.new
name_error = NameError.new("Error message", "name", receiver_obj...
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-lang.org/ruby/trunk@53706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:40 AM Bug #12037: did_you_mean reporting impossible suggestion
fixed in [yuki24/did_you_mean@1c52c88](https://github.com/yuki24/did_you_mean/commit/1c52c887c62b0921e799f94bcc4a846dc7cbc057). Thank you Chris for reporting this issue!
Martin, your idea sounds great to me, but I think it sounds more...
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
> Assignee set to Yuki Nishijima
>
> Probably the same name as the erred should be removed from candidates first.

Even bett...
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 path,
especially path separators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53705 b2dd03c8-39d4-4d8f-98ff-82...
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 the volume ID of a new VHD volume,
~~~
C:> set vol
\\?\Volume{3C458AE9-C8B1-11E5-A233-0800271D089F}\
C:> mkdir x...y...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@53703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 Contributor Covenant. Thanks everyone for your work and leadership on a difficult topic. 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 with a default logical implementation where possible. 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://github.com/rails/arel/issues/411
Both Float and BigDecimal do respond to infinite? but Integer derivatives don't. It sort of makes sense, since w...
ioquatix (Samuel Williams)
02:02 AM Feature #12024: Add String.buffer, for creating strings with large capacities
On 2016/01/30 21:17, mame@ruby-lang.org wrote:
> I have no strong objection, but still I have a question. I guess that creating a large string by concatenating many short strings is natural use case in Ruby. However, are there so mu...
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-lang.org/ruby/trunk@53702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 to make sure that perspectives are on the table.
Coraline Ada Ehmke wrote:
> It should be noted that the leaders of...
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-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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+ssh://ci.ruby-lang.org/ruby/trunk@53700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 > publish
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 of unnecessary object creation
and conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53698 b2dd03c8-39d4...
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.ruby-lang.org/ruby/trunk@53696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 to the topic.

Done.

The reason is not being troll, the reason is ethnic insult. Trolling
is obviously wrong behavi...
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://contributor-covenant.org/version/1/4/
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 think she did a really bang up job with
her version 1.4. This feels and reads like an even-handed document centred
on de...
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 proposed CoC and have decided to consult with professionals on developing an appropriate code of conduct for their comm...
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 proposed CoC
I cannot see that from the email you referred to. On the contrary the first item of the list mentions ...
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 decided to consult with professionals on developing an appropriate code of conduct for their community. In light of that I don... 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 done here. If you wish to continue, suggest another venue for discussion.
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 list. Matz said it was enough days ago.

It is rather clear to me that these people still posting to this thread are ...
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 #11967 for the explanation.
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_2_2 branches and they have same potential bug, but rb_check_funcall_with_hook() is never called in these branches.
I fi...
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 should call the
given hook before returning Qundef when overridden respond_to?
method returned false. [ruby-core:73556...
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 string. If you know your average generated string is 8k, you can use a 8k buffer by default. If the string generated is onl... 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 against your proposal.
realloc takes O(1) if the size is much larger than page size (4096B in Linux), but the benchmark sta...
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 our specs.
I tried dropping the optimization down to -O2 from the -O3 we had been using, along with bumping libedit fr...
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/efetch.fcgi?db=nuccore&id=189458859&rettype=fasta&retmode=text").read)
So it was indeed quite simple.
Maybe some docum...
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 am trying to download:
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=189458859&rettype=fast...
shevegen (Robert A. Heiler)
07:01 AM Feature #11917: Add Range#length as an alias for size
Attached patch 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:
~~~
userinput = "|env"
Dir.chdir("/app/public/downloads") do
puts File.read(userinput)
end
~~~
(Yes, it...
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 respond_to?
method returned false. [ruby-core:73556] [Bug #12030]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
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
> ...
"Dict" is another possible name.
How would this proposal handle other key types? Should `obj[1] = 'a'` convert using `to_s` or raise an error?
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 naming convention.
Colin,
Thank you for the investigation. Your survey means most code does not consider exceptional ...
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 case 3.
In that case, how about `dig` vs. `dig!` ?
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', 'TRUE', 'y', 'Y', 'yes', 'YES']
FALSY_VALUES = [false, 0, '0', 'f', 'F', 'false', 'FALSE', 'n', 'N', 'no', 'NO']
~~~
...
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.ruby-lang.org/ruby/trunk@53694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 the current scope after it is being called:
~~~
irb(main):001:0> def foo
irb(main):002:1> bar
irb(main):003:1> bar ...
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 that someone may need to handle that error and continue processing the rest of the enumerator.
12:22 < Ox0dea> I thin...
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 public spaces are most likely just guilty of doing so. Just because the harassment occurs outside the scope of the project ...
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 has done well so far and I trust that Matz will act with wisdom and inclusion on this issue, and not exclude other cultura...
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 I was not able to before.
Coraline Ada Ehmke wrote:
> It's not about my values, it's about our shared values. I'm en...
angularjays (Jay S)
03:11 AM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
For over 5 years now, I've been a Ruby developer. This discussion has to be on of the most disruptive topics I have ever read from the Ruby Community. In all of the other email threa...
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 - the Internet is a place where no matter how
much you wish, you can't expect all people to act nice. It is quite unfortun...
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 seems that when sets of characters are used, only
the first one in the parse specification string actually returns
...
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, and ubuntu 10.04, respectively). The chef rspec test suite triggers this:
git clone https://github.com/chef/chef
cd c...
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 functions, to hijack them into "real" posix versions. Now the problem is, if I am trying to write a Ruby wrapper for a stat...
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 compatibility with Unix-like platforms,
Ruby makes some hack about Windows' socket.
The return value of Unix's `socket` is a fil...
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-viable. I have tried this using the native DevKit compiler, rake-compiler-dock, ruby 2.2, 2.1, 32 and 64 bits, to no avail. ... 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-encoding.rb
ASCII-8BIT
US-ASCII
~~~
The RegExp should have ASCII-8BIT encoding IMO.
Actually there is somethin...
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?(*args)
super
end
end
{ foo: Foo }.dig(:foo, :foo)
~~~
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.org/ruby/trunk@53690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 expected buffer
size but "\??\" prefix is dropped from the result.
* win32/win32.c (w32_readlink): ditto, including NUL-te...
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_read_reparse_point): check the reparse point is
a volume mount point or not.
* win32/file.c (rb_readlink): follow above...
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
mount point should be treated as directory, not symlink.
[ruby-core:72483] [Bug #11874]
* win32/win32.c (rb_w32_read_r...
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 GH-1226]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 duplicated
and stale magic comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53684 b2dd03c8-39d4-4d8f-98ff-8...
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_erb.rb: use assert_raise instead of assert(false).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53683 b2dd03c8-39...
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-string-literal.
[ruby-core:73561] [Bug #12031]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53682 b2dd03c8-39d4-4d...
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): explicitly make mutable string as
a buffer to make ERB work with --enable-frozen-string-literal.
[ruby-core:73561] [Bug #12031]
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 syntax
yet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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] Patch by @teosz
* test/net/http/test_httpheader.rb: Added test for nil HTTP Header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

01/28/2016

10:14 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Thank you Matz for letting us know.
Something I'd like people to keep in mind is that a majority of people will contribute to projects without first reading any conduct guidelines...
danielpclark (Daniel P. Clark)
07:38 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
What about this one https://github.com/domgetter/NCoC/blob/master/CODE_OF_CONDUCT.md
Also, if any of you are not sure what's going on and who are all these nice people, please rea...
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 public spaces are most likely just guilty of doing so.
Please do not jump to conclusions! This is an assumption which...
rklemme (Robert Klemme)
05:30 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
I would recommend the Contributor Covenant. People complaining that it includes harassment in public spaces are most likely just guilty of doing so. Just because the harassment occur...
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 it means to be representing the project, and what circumstances one is liable to be under the CoC.
If we do decide on...
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 object is an array, then the behaviour is unpredictable:
~~~ruby
lm = lambda { |target, *options| puts target.inspect, op...
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-literal erb
-:1:in `concat': can't modify frozen String (RuntimeError)
from -:1:in `<main>'
from /usr...
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://github.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
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
...
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:
> ...
hmmm, okay. I think I misunderstood how some Enumerable methods work. Thanks.
How do I close this issue by the way?
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.
~~~ruby
def foo
yield 1, 2
end
to_enum(:foo).count { |e| e == [1, 2] }
# Returns: 0
# Expected: 1
~~~
It app...
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/ruby/trunk@53677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:20 AM Feature #10658: ThreadGroup local variables
Lin Jen-Shin wrote:
> Here's a demonstration:
> ...
I quite liked this syntax and the idea. I actually needed something like ThreadGroup-variables in my project so I've implemented them with this monkey patch:
~~~ruby
# Thread.cu...
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://bugs.ruby-lang.org/issues/905#note-2
I think String.new(:buffersize=>10000) is better because it can be combined with :...
akr (Akira Tanaka)

01/27/2016

05:17 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Here's the benchmark I wrote for this:
~~~Ruby
require 'benchmark/ips'
eval("def a; b = ' ' * 1000; String.new " + "<< b " * 100 + "end")
eval("def c; b = ' ' * 1000; String.buffer(100000) " + "<< b " * 100 + "end")
Benchmark...
jeremyevans0 (Jeremy Evans)
02:18 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Yui NARUSE wrote:
> More effective example.
What an artificial example that pinpoints realloc overhead :-)
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
02:10 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Yui NARUSE wrote:
> Motohiro KOSAKI wrote:
> ...
why not something like "String.new(:buffersize => 10000)" then?
darix (Marcus Rückert)
02:07 PM Feature #12024: Add String.buffer, for creating strings with large capacities
More effective example.
```
% cat test.rb; ./ruby test.rb
# frozen_string_literal: true
require 'benchmark'
M = 100
N = 25
Benchmark.bm 5 do |r|
r.report "buffer" do
j = 0
while j < M
i = 0
buf = Stri...
naruse (Yui NARUSE)
01:45 PM Feature #12024: Add String.buffer, for creating strings with large capacities
Motohiro KOSAKI wrote:
> Class method is really bad idea because of thread unsafe.
It return a new string object.
naruse (Yui NARUSE)
01:41 PM Feature #12024: Add String.buffer, for creating strings with large capacities
```ruby
% cat test.rb
# frozen_string_literal: true
require 'benchmark'
N = 50_000_000
Benchmark.bm 5 do |r|
r.report "buffer" do
i = 0
buf = String.buffer(N)
while i < N
buf << 'a'
i += 1
end
...
naruse (Yui NARUSE)
01:31 PM Feature #12024: Add String.buffer, for creating strings with large capacities
On Tue, Jan 26, 2016 at 7:12 PM, <merch-redmine@jeremyevans.net> wrote:
> Issue #12024 has been updated by Jeremy Evans.
>
>
> I wasn't aware of #905 when I created this, I probably should have searched first.
>
> This feature is...
kosaki (Motohiro KOSAKI)
11:16 AM Feature #12024: Add String.buffer, for creating strings with large capacities
I'm unsure if this pre-allocation is really effective since recent "realloc" implementations take just O(1). What operating system are you using?
In #905, pre-allocation was actually helpful in JRuby because JVM did not provide such ...
mame (Yusuke Endoh)
12:12 AM Feature #12024: Add String.buffer, for creating strings with large capacities
I wasn't aware of #905 when I created this, I probably should have searched first.
This feature is similar to #905, but the implementation is different. The implementation in #905 is an instance method that changes the capacity of an...
jeremyevans0 (Jeremy Evans)
04:41 PM Bug #11935: Date.new returns inconsistent errors when passed invalid arguments
Tadayoshi Funaba appears to have been gone for a year, so it's unclear who this should be assigned to. CJKinni (C Kinniburgh)
04:28 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Thank you.
rubydino (Ruby Dino)
04:04 PM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Yes, thank you.
elight (Evan Light)
05:52 AM Misc #12004: Code of Conduct
Yukihiro Matsumoto wrote:
> OK, that's enough.
> ...
Thank you.
davidcelis (David Celis)
05:36 AM Misc #12004: Code of Conduct
Ruby Dino wrote:
> Coraline Ada Ehmke wrote:
> ...
This seems to touch PC, but anyway some other people may also feel like that.
Japanese has good Constitution and curriculum in compulsory education made by U.S. for 70 years.
There...
naruse (Yui NARUSE)
05:33 AM Misc #12004: Code of Conduct
OK, that's enough.
We will set up some form of CoC in the future. Let me think for a while which one we are going to choose.
Matz.
matz (Yukihiro Matsumoto)
05:25 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> All of these scaremongering posts about a Ruby CoC being abused reveals a deep distrust of the leadership in the Ruby community.
Wrong. It reveals a deep distrust about those who would like to be judge.
...
gordon_king (Gordon King)
05:19 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> It's not about my values, it's about our shared values. I'm encouraging us to figure them out, write them down, and enforce them.
> ...
Our shared values and goals are to enhance the lives of others throug...
rubydino (Ruby Dino)
04:38 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> All of these scaremongering posts about a Ruby CoC being abused reveals a deep distrust of the leadership in the Ruby community. Who do you think would be enforcing the code of conduct? Do you trust them to b...
Hanmac (Hans Mackowiak)
04:34 AM Misc #12004: Code of Conduct
> Right here lies the problem. Your values aren't internationally recognized, as many have brought up including the Japanese and Russian participants in the community.
It's not about my values, it's about our shared values. I'm encour...
CoralineAda (Coraline Ada Ehmke)
04:28 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> our values
Right here lies the problem. Your values aren't internationally recognized, as many have brought up including the Japanese and Russian participants in the community.
rubydino (Ruby Dino)
04:23 AM Misc #12004: Code of Conduct
All of these scaremongering posts about a Ruby CoC being abused reveals a deep distrust of the leadership in the Ruby community. Who do you think would be enforcing the code of conduct? Do you trust them to be fair or not?
Matz, as yo...
CoralineAda (Coraline Ada Ehmke)
04:18 AM Misc #12004: Code of Conduct
what my problem is about such "PC" is:
first: i am from a country where law is: "innocent until proven wrong" (means that even if you did something wrong, the other side does need to proof that) thats why what if such CoC is misused fro...
Hanmac (Hans Mackowiak)
03:46 AM Misc #12004: Code of Conduct
Gregory Brown wrote:
> Few people in this thread have the leadership responsibilities to understand that aspect of things
Few people in this thread have the age and experience to understand that aspect of things.
Few people in thi...
gordon_king (Gordon King)
02:21 AM Misc #12004: Code of Conduct
woops, was totally blind when looking at the branches. looks good! thanks! rubyhubie (Hubie Fuller)
02:15 AM Misc #12004: Code of Conduct
Hubie Fuller wrote:
> Can we have the Contributor Covenant utilize the alphabetical order of 'age, body size, culture, disability, ethnicity, gender, gender identity and expression, level of experience, nationality, personal appearance,...
CoralineAda (Coraline Ada Ehmke)
02:00 AM Misc #12004: Code of Conduct
Can we have the Contributor Covenant utilize the alphabetical order of 'age, body size, culture, disability, ethnicity, gender, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sex... rubyhubie (Hubie Fuller)
12:44 AM Misc #12004: Code of Conduct
I also support adopting a Code of Conduct.
I believe CC 1.3 is a good base to work from simply because it is already used on many well known projects. #275 provides the best outline I've seen of specifically what CC does that's import...
sandal (Gregory Brown)
03:58 PM Feature #12026: Support warning processor
I think this filter should be "one for the whole execution" and therefore something like an environment variable or a CLI flag.
Taking inspiration from javac's -Xlint: [1], having them associated by a group or short name would help to...
Eregon (Benoit Daloze)
02:57 PM Revision c308fa68 (git): depend: add capacity.o
* ext/-test-/string/depend (capacity.o): add dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:04 PM Revision b6e761e6 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:04 PM Revision b7b5692a (git): * test/-ext-/string/test_capacity.rb: Added missing library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:00 PM Revision cf3c1bfe (git): * test/ruby/test_file.rb (TestFile#test_realpath_encoding): rescue Errno::EACCES
and skip the testcase because it'll be raised on Windows always unless the
runner doesn't have the administrator privilege.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:52 AM Feature #12025: Reduce minimum string buffer size from 128 to 127
With glibc as Eric says it won't save memory so much.
But with jemalloc, whose next allocation size of 128 is 192, saves some memory.
Darwin also saves 6%.
memo:
https://www.facebook.com/notes/facebook-engineering/scalable-memory-a...
naruse (Yui NARUSE)
11:37 AM Revision 63710b73 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:37 AM Revision d14f0cfd (git): Add tests about String's internal capacity
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:58 AM Feature #12023: Allow ivars to be used as method arguments
With your patch, seems that `def initialize(@foo, @bar = @foo)` wouldn't work.
> ~~~diff
> ...
Dynamic size array isn't allowed in C89.
nobu (Nobuyoshi Nakada)
09:54 AM Revision a7c98796 (git): * enc/unicode.c: Fixed bit mask in macro OnigCodePointCount
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
08:55 AM Revision 415949fa (git): * enc/unicode.c: Protect code point count by macro, in order to
be able to use the remaining bits for flags.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
07:35 AM Revision 75687e0a (git): Fix doc with default value with GH-523
* lib/tempfile.rb (Tempfile#initialize): [DOC] the first parameter
`basename` is optional and defaulted to an empty string since
[GH-523]. [Fix GH-1225]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53668 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
07:30 AM Revision b14ea7d0 (git): hash.c: exception examples
* hash.c (rb_hash_dig): [DOC] add examples of exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:26 AM Revision 4df16807 (git): Fix a Ruby-Doc comment for Array#dig
* array.c (rb_ary_dig): [DOC] fix the exception class to be raised
when intermediate object does not have dig method. TypeError
will be raised now. [Fix GH-1224]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53666 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
04:11 AM Revision a82d2728 (git): test_require.rb: fix temporary library directory
* test/rubygems/test_require.rb (test_dash_i_beats_gems): create
temporary library directory under the temporary directory
created by Gem::TestCase#setup, not to leave garbages in the
default temporary directory.
git-svn-id: svn+s...
nobu (Nobuyoshi Nakada)
02:56 AM Bug #12027 (Rejected): Hash descendants are ignoring custom to_hash method
Because `b.is_a?(Hash)` already.
`to_hash` is the method to pretend to be a `Hash`.
nobu (Nobuyoshi Nakada)
12:20 AM Bug #12027 (Rejected): Hash descendants are ignoring custom to_hash method
I'm not sure it is not intended, but feels really strange:
~~~ruby
class A
def to_hash
{foo: 'bar'}
end
end
class B < Hash
def to_hash
{foo: 'bar'}
end
end
a = A.new
b = B.new
p({**a}) # => {foo: 'ba...
zverok (Victor Shepelev)

01/26/2016

11:45 PM Feature #12024: Add String.buffer, for creating strings with large capacities
I think this ticket is a duplicate of #905.
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
11:13 PM Feature #12024: Add String.buffer, for creating strings with large capacities
I like the idea.
Matz.
matz (Yukihiro Matsumoto)
07:17 PM Feature #12024 (Closed): Add String.buffer, for creating strings with large capacities
If you know you are going to need to create a large string,
it's better to create it with a large capacity. Otherwise,
ruby will need to continuously resize the string as it grows.
For example, if you will be producing a string that ...
jeremyevans0 (Jeremy Evans)
11:15 PM Misc #12004: Code of Conduct
I'd like to add my vote in favor of a CoC, too. The Swift team put a lot of thought into its community and currently adopts CC 1.3. stephencelis (Stephen Celis)
11:07 PM Misc #12004: Code of Conduct
Yet another prominent member of our community, working on a large project with many contributors, who supports adopting CC.
At some point the leaders of Ruby have to decide who the ruby community is: The people asking for guidelines o...
krainboltgreene (Kurtis Rainbolt-Greene)
10:17 PM Misc #12004: Code of Conduct
Adding my vote in favor of a CoC. I'm fully in support of adopting CC 1.3. mperham (Mike Perham)
09:05 PM Misc #12004: Code of Conduct
#433 Kurtis Rainbolt-Greene wrote:
*Done. See: Backlog.*
No. NOT done. I've read this entire thread and I haven't seen any proponent of a CoC provide a single, solid shred of evidence that a CoC will improve the project. There have b...
cremes (Chuck Remes)
08:54 PM Misc #12004: Code of Conduct
> I'm too lazy to do the work to prove this out one way or the other
Yeah, that seems to be happening a lot in this thread.
> ...
Done. See: Backlog.
krainboltgreene (Kurtis Rainbolt-Greene)
04:58 PM Misc #12004: Code of Conduct
In #371, Kurtis Rainbolt-Greene listed several projects that have adopted the CoC and asked if any of the feared downsides of a CoC have arisen. I think we should ask an opposite question. Have any of those projects seen an *increase* in... cremes (Chuck Remes)
04:51 PM Misc #12004: Code of Conduct
On 2016-01-26 7:39 AM, Austin Ziegler wrote:
> Ideas [are] considered equally and must stand on [their] own merit and
> not the reputation of the proponent

I just can't see what is wrong with this important principle. This is
the...
avit (Andrew Vit)
04:48 PM Misc #12004: Code of Conduct
Olivier Lacan wrote:
> Can someone from Ruby Core or Matz himself please prioritize the resolution and closure of this issue?
> ...
There's no devolving of the conversation. People are conversing on the issue. Just because you don't li...
rubydino (Ruby Dino)
04:03 PM Misc #12004: Code of Conduct
Can someone from Ruby Core or Matz himself please prioritize the resolution and closure of this issue?
It has been going on for 8 days now, and I'm afraid to see how much more this thread can devolve given one more week.
olivierlacan (Olivier Lacan)
12:21 PM Misc #12004: Code of Conduct
Motohiro KOSAKI wrote:
> ph ph wrote:
> ...
Oh, it has started already.
If we start policing language on that level then we are forcing people into what they will consider a straitjacket. Some may leave, but what will be worse is t...
rklemme (Robert Klemme)
10:07 AM Misc #12004: Code of Conduct
> Please don't use kiss you or hug you or such kind of expression in an international community like here.
> ...
This is one of the reasons. Different cultures, laws and definition of normal. In proposed document there are specific pri...
Gedrovits (Vjatseslav Gedrovits)
05:31 AM Misc #12004: Code of Conduct
On 2016/01/26 01:32, Austin Ziegler wrote:
> I’m sorry, but this, like the code of merit, is merely a derailing tactic.
> People have been pushing the myth of meritocracy in OSS for years, but *it
> just isn’t so*. Ignore the fact th...
duerst (Martin Dürst)
05:27 AM Misc #12004: Code of Conduct
Tsuyoshi Sawada wrote:
> Vjatseslav Gedrovits, thank you for reminding us of the nature of the poster of this thread by linking to: (https://twitter.com/CoralineAda/status/690334282607378432). It may be redundant, but to emphasize, and ...
kosaki (Motohiro KOSAKI)
04:33 AM Misc #12004: Code of Conduct
Yui NARUSE wrote:
> Olivier Lacan wrote:
> ...
Agreed.
If a document need to be understand 100% accurate, translation doesn't help. For example, Ruby uses MIT license and we always recommend to read an original English document
ins...
kosaki (Motohiro KOSAKI)
04:21 AM Misc #12004: Code of Conduct
ph ph wrote:
> Vjatseslav Gedrovits wrote:
> ...
Please don't use kiss you or hug you or such kind of expression in an international community like here.
These words are ok (e.g. In my understanding, Russian people kiss each other fo...
kosaki (Motohiro KOSAKI)
04:10 AM Misc #12004: Code of Conduct
Eric Wong wrote:
> I am not an administrator, but I disagree with your action to suspend
> ...
I also disagree :)
It's not my decision, but, of course, I respect other administrators' decision.
> Individual readers should be tr...
usa (Usaku NAKAMURA)
03:41 AM Misc #12004: Code of Conduct
Sam Saffron wrote:
> @Naruse
> ...
Removed #179.
Comments by fake accounts are also distributed through ML.
So I thought it should be kept to clarify it is fake at this time.
How do you think, Coraline?
naruse (Yui NARUSE)
03:34 AM Misc #12004: Code of Conduct
Olivier Lacan wrote:
> Yui NARUSE wrote:
> ...
I believe translations doesn't help issues related laws even if it helps rough understanding.
Moreover I don't trust Contributor Covenant because of such loose attitude about translatio...
naruse (Yui NARUSE)
03:32 AM Misc #12004: Code of Conduct
@Naruse
Can you PLEASE PLEASE PLEASE prune out all the hitler bullshit and fake account bullshit from this public artefact. (and delete this comment while at it)
#170 #179 etc... I can not see anything but red when reading this t...
sam.saffron (Sam Saffron)
03:14 AM Misc #12004: Code of Conduct
Tsuyoshi Sawada wrote:
> Vjatseslav Gedrovits, thank you for reminding us of the nature of the poster of this thread by linking to: (https://twitter.com/CoralineAda/status/690334282607378432). It may be redundant, but to emphasize, and ...
naruse (Yui NARUSE)
12:23 AM Misc #12004: Code of Conduct
Carlos Jennings wrote:
> is wrong, it's been done before. See how Lars Hupel hijacked the scalaz library from its inventor, Tony Morris, by unilaterally creating a code of conduct and using it as a club to sanction him, ex post facto st...
avit (Andrew Vit)
12:16 AM Misc #12004: Code of Conduct
I want to point out another code of conduct similar to Jeremy Evan's PostgreSQL inspired version. It is that of the Fedora community:
~~~
The Fedora community is made up of a mixture of professionals and volunteers from all over the ...
lubyamateur (Ruby Amateur)
12:08 AM Misc #12004: Code of Conduct
Coraline Ada Ehmke wrote:
> Relevant: https://subfictional.com/2016/01/25/the-complex-reality-of-adopting-a-meaningful-code-of-conduct/
I just skimmed through it but it's trivially falsifiable. This bit:
> ...
is wrong, it's been ...
carlosjennings (Carlos Jennings)
10:13 PM Feature #12026 (Closed): Support warning processor
This adds a simple way to filter warnings from being displayed. You
just set a $WARNING_FILTER with a regexp, and any warnings that
match the regexp will not be displayed.
I think this is a much simpler approach to filtering warning...
jeremyevans0 (Jeremy Evans)
10:11 PM Feature #12025: Reduce minimum string buffer size from 128 to 127
merch-redmine@jeremyevans.net wrote:
> String.buffer(100) wastes much less memory with this patch, as the
> malloc implementation can more easily deal with the power-of-2
> sized memory usage. As measured above, memory usage is 44% ...
normalperson (Eric Wong)
09:11 PM Feature #12025 (Closed): Reduce minimum string buffer size from 128 to 127
This changes the minimum buffer size for string buffers from 128 to
127. The underlying C buffer is always 1 more than the ruby buffer,
so this changes the actual amount of memory used for the minimum
string buffer from 129 to 128. ...
jeremyevans0 (Jeremy Evans)
10:03 PM Bug #11657: Abort Trap 6 when running a test suite
Tomoyuki Chikanaga wrote:
> The next patchlevel release 2.2.5 contains the fix for this issue.
That is excellent :-) many thanks.
adh1003 (Andrew Hodgkinson)
05:19 PM Revision ae09a6ae (git): * 2016-01-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:19 PM Revision 2743c491 (git): increase timeout for Solaris 10 SPARC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:23 PM Feature #12021: Final instance variables
A version accessible without JS is here https://docs.google.com/document/d/1c07qfDArx0bhK9sMr24elaIUdOGudiqBhTIRALEbrYY/pub. Sorry for not thinking about that. pitr.ch (Petr Chalupa)
01:21 AM Feature #12021: Final instance variables
email@pitr.ch wrote:
> https://docs.google.com/document/d/1c07qfDArx0bhK9sMr24elaIUdOGudiqBhTIRALEbrYY/edit#.

Also inaccessible without JavaScript.
normalperson (Eric Wong)
03:19 PM Feature #12020: Documenting Ruby memory model
Thanks, I've published the document on following address, it'll be updated automatically, works without JS. Sorry i did not think about non-JS viewers. https://docs.google.com/document/d/1pVzU8w_QF44YzUCCab990Q_WZOdhpKolCIHaiXG-sPw/pub pitr.ch (Petr Chalupa)
08:59 AM Feature #12020: Documenting Ruby memory model
@Petr
You can "publish" the document and provide a simpler view with [following process](https://support.google.com/docs/answer/37579?hl=en):
```
To publish a file:
Open a document, spreadsheet, presentation, or drawing.
Click...
naruse (Yui NARUSE)
02:41 AM Feature #12020: Documenting Ruby memory model
eregontp@gmail.com wrote:
> I attached a RTF version to this issue.

Thanks.

I'm not sure if shared memory is even a good model for Ruby (and not my
decision). Anyways, my comments below if matz/ko1 decide to go down
this route...
normalperson (Eric Wong)
12:54 PM Revision 0e2f2ea9 (git): merge revision(s) 53654:
* gc.c (RVALUE_PAGE_WB_UNPROTECTED): fix a typo of argument name.
[Fix GH-1221]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@53662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:56 AM Feature #8259: Atomic attributes accessors
This could be implemented in MRI faster than on other platforms. While MRI has GIL it can do normal comparison and assignment without any synchronisation, instead of synchronised CAS operation, assuming that the implementation of the ope... pitr.ch (Petr Chalupa)
10:39 AM Revision d0128a69 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:37 AM Revision 7cf2a0a1 (git): array.c: reword [ci skip]
* array.c (permute0, rpermute0): [DOC] Substitute indexes ->
indices in documentation for consistency. [Fix GH-1222]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:13 AM Feature #12023 (Open): Allow ivars to be used as method arguments
I've found myself writing a lot of code similar to the following, especially when writing service-style classes:
~~~Ruby
class ResizeImage
def initialize(image, width:, height: width)
@image = image
@width = width
...
mogest (Roger Nesbitt)
06:29 AM Bug #12022 (Closed): Inconsistent behavior with splatted named arguments
# The Bug
When an empty hash is splatted (using \*\*) into a call of a method with no parameters, the empty hash is passed in as a positional argument *instead* of doing nothing. This causes an ArgumentError, which is confusing becaus...
justcolin (Colin Fulton)
06:23 AM Revision 1282a4a8 (git): fstring early for internal iseq
All of the strings created here eventually get converted to
fstrings when they are frozen into the iseq. Prepare the
fstring early so we may reduce a one or two objects.
This is a very minor change, mainly for the '<main>' dedupe.
* c...
Eric Wong
06:14 AM Revision f4ca0739 (git): compile.c: fix tailcall optimization
* compile.c (iseq_peephole_optimize): don't apply tailcall
optimization to send/invokesuper instructions with blockiseq.
This is a follow-up to the changes in r51903; blockiseq is now
the third operand of send/invokesuper instructi...
nobu (Nobuyoshi Nakada)
06:14 AM Bug #12018 (Closed): Tail call optimization is incorrectly applied in Ruby 2.3.0
Applied in changeset r53658.
----------
compile.c: fix tailcall optimization
* compile.c (iseq_peephole_optimize): don't apply tailcall
optimization to send/invokesuper instructions with blockiseq.
This is a follow-up to the change...
nobu (Nobuyoshi Nakada)
05:33 AM Revision 667c0a3a (git): Signal.list deduplicates keys
This allows us to reuse string objects used in symbols as well
as any string representations of signal names in source code.
* signal.c (sig_list): use fstring for hash key
* test/ruby/test_signal.rb (test_signal_list_dedupe_keys): adde...
Eric Wong
04:09 AM Revision a52be8fb (git): signal.c: reserved signals
* signal.c (rb_f_kill): should immediately deliver reserved
signals SIGILL and SIGFPE, ont only SIGSEGV and SIGBUS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:04 AM Feature #11181: Add a line directive to Ruby
Pull request up to date as of 2016-01-25
gam3 (Allen Morris)
 

Also available in: Atom