Project

General

Profile

Activity

From 08/17/2016 to 08/23/2016

08/23/2016

11:23 PM Feature #12697: Why shouldn't Module meta programming methods be public?
This is somewhat an interesting comment made here, epecially in regards to .send().
Take code snippets such as here:
https://gist.github.com/melborne/665406/4a2a732b1c35b290ddb5a08661453704b8d3c047#file-irc-rb
Quote:
...
shevegen (Robert A. Heiler)
11:08 PM Feature #12697 (Closed): Why shouldn't Module meta programming methods be public?
Methods like alias_method, attr_accessor, define_method, and similar
I don't think Ruby discourages this kind of meta programming, so why make it less convenient, by necessitating `send` or `module_eval`?
bughit (bug hit)
11:10 PM Bug #4537: Incorrectly creating private method via attr_accessor
define_method used to have the same (or similar) problem
https://bugs.ruby-lang.org/issues/9005
which was fixed, so why shouldn't this be?
bughit (bug hit)
10:50 PM Bug #4537: Incorrectly creating private method via attr_accessor
why should top level visibility (which applies to methods defined in the Object class) have any effect on other classes?
this also applies to any other module which you might be in
```ruby
class Class1
end
module SomeUnrelated...
bughit (bug hit)
10:55 PM Bug #12372: Resolv::DNS does not fetch authority section resources when calling getresource(s)
Ping again. headius (Charles Nutter)
08:18 PM Bug #12696 (Closed): Defining anonymous classes via `Class.new {}` does not run `class_eval` on the block
When defining anonymous classes, the documentation comment (https://github.com/ruby/ruby/blob/b9a82eaa13a5438318d78aee0afb907a1d143a51/object.c#L1754) explains that
~~~
If a block is given, it is passed the class object, and the block ...
kklimuk (Kirill Klimuk)
12:20 PM Bug #12688: Thread unsafety in autoload
I have the same expectations as you, Charles, and as so I'd also expect this to be a bug. rosenfeld (Rodrigo Rosenfeld Rosas)
12:01 PM Feature #12694: Want a String method to remove heading substr
Thanks, I found an issue which is 3 years old https://bugs.ruby-lang.org/issues/6842 sonots (Naotoshi Seo)
11:39 AM Feature #12694: Want a String method to remove heading substr
IIRC, there were proposals of `lstrip` and `rstrip` enhancement.
I'd expect them to accept char class(es), than a sub-string.
Note that `rb_str_index_m` accepts a `Regexp` too.
Calling `str_strlen` on it will segfault.
nobu (Nobuyoshi Nakada)
09:03 AM Feature #12694 (Closed): Want a String method to remove heading substr
I often write codes like:
```ruby
str = 'abcdef'
substr = 'abc'
str[substr.size..-1] if str.start_with?(substr) #=> 'def'
# or
str.sub(/\A#{Regexp.escape(substr)}/, '') #=> 'def'
```
I want a short hand which is something lik...
sonots (Naotoshi Seo)
11:36 AM Feature #12695 (Closed): File.expand_path should resolve ~/ using /etc/passwd when HOME is not set
I would expect a call like File.expand_path('~/.ssh/known_hosts') to work even though HOME is not set.
A reason this is important to fix is that libraries (in my use case Net::SSH) do calls like File.expand_path('~/.ssh/known_hosts'),...
fursten (Mårten Svantesson)
08:00 AM Revision 92a09548 (git): goruby.c: call Init_golf [ci skip]
* goruby.c (init_golf): call Init_golf, because ruby_init_ext only
registers the function since r43514.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:30 AM Feature #12693 (Rejected): Want a way to receive EINTR on Process.waitpid
sonots (Naotoshi Seo)
07:28 AM Feature #12693: Want a way to receive EINTR on Process.waitpid
It worked like a charm :)
test.rb
```
puts Process.pid
trap(:CONT) do
raise 'CONT'
end
_pid = fork do
sleep 10
end
begin
Process.waitpid(-1)
rescue => e
puts e.backtrace.join("\n")
end
```
Sending sign...
sonots (Naotoshi Seo)
07:05 AM Feature #12693: Want a way to receive EINTR on Process.waitpid
You can raise exception on main threadh by Thread.main.raise in trap. naruse (Yui NARUSE)
06:55 AM Feature #12693: Want a way to receive EINTR on Process.waitpid
If adding an option to raise EINTR is not acceptable, adding timeout option is acceptable for **my** case. sonots (Naotoshi Seo)
06:49 AM Feature #12693: Want a way to receive EINTR on Process.waitpid
I am currently using Timeout hack for when I wanted to get EINTR like https://github.com/sonots/ruby-server-starter/blob/7fbc8db2548c215aae02afef385caa683040bd8a/lib/server/starter.rb#L215-L223.
I was glad if I did not need to write s...
sonots (Naotoshi Seo)
06:45 AM Feature #12693: Want a way to receive EINTR on Process.waitpid
Naotoshi Seo wrote:
> However, ruby implementation of Process.waitpid does not raise EINTR
No you don't. It is an extremely bad idea to use signal to interrupt execution.
Is it you must use signal for some reason or you just want...
shyouhei (Shyouhei Urabe)
01:32 AM Feature #12693 (Rejected): Want a way to receive EINTR on Process.waitpid
http://man7.org/linux/man-pages/man2/waitpid.2.html tells EINTR error if WNOHANG flag was not set and an unblocked signal or a SIGCHLD was caught.
However, ruby implementation of Process.waitpid does not raise EINTR https://github.com...
sonots (Naotoshi Seo)
02:05 AM Revision d3e7e3cc (git): test_ssl_server.rb: fix FD leak
* test/webrick/test_ssl_server.rb (assert_self_signed_cert): close
underlying TCP socket to fix FD leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:34 AM Revision c58c9025 (git): test_psych.rb: close Tempfile
* test/psych/test_psych.rb (test_load_file_with_fallback): fix
Tempfile leak. https://github.com/tenderlove/psych/pull/288
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:15 AM Revision c2bf7e6f (git): string.c: rb_fs_setter
* string.c (rb_fs_setter): check and convert $; value at
assignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/22/2016

06:25 PM Bug #12537: Fiddle::TestPointer#test_to_s and test_to_str destroy literal string data
ruby_2_3 r55989 merged revision(s) 55554. nagachika (Tomoyuki Chikanaga)
06:25 PM Revision 7e58a509 (git): merge revision(s) 55554: [Backport #12537]
* test/fiddle/test_pointer.rb (test_to_str, test_to_s, test_aref_aset):
Attempt to use independent strings for destructive tests that
directly modify values on memory by using Fiddle::Pointer.
[Bug #12537] [...
nagachika (Tomoyuki Chikanaga)
06:24 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
We can make it faster across ranges, with just a little bit more code,
by adaptively selecting the Prime Generator to use based on the number size.
The method select_pg has a profile of the best PG to use for given number ranges.
It's...
jzakiya (Jabari Zakiya)
06:18 PM Bug #12536: SIGABRT during GC on Debian GNU/Linux 8 (x86_64) due to insufficient string buffer allocation related with term fill
ruby_2_3 r55988 merged revision(s) 55547,55551,55552,55555,55557,55559,55575,55691,55568. nagachika (Tomoyuki Chikanaga)
06:18 PM Revision 6f122a4f (git): merge revision(s) 55547,55551,55552,55555,55557,55559,55575,55691,55568: [Backport #12536]
* string.c: Fix memory corruptions when using UTF-16/32 strings.
[Bug #12536] [ruby-dev:49699]
* string.c (TERM_LEN_MAX): Macro for the longest TERM_FILL length,
the same as largest value of rb_enc_mbminlen(e...
nagachika (Tomoyuki Chikanaga)
06:08 PM Bug #12599: For CLang, increase inline-threshold to get 7%-10% speedup of optcarrot
Yui Naruse: you suggest I find out which functions are inlined in this way and add ALWAYS_INLINE for them? I'll see if there's a way I can do that.
noahgibbs (Noah Gibbs)
06:41 AM Bug #12599: For CLang, increase inline-threshold to get 7%-10% speedup of optcarrot
The change inlines many functions by 3MB, but I think this speed up is come from few functions which are too complex to inline.
If so such functions should be refactored to ease compiles optimize them, or simply add ALWAYS_INLINE.
Fo...
naruse (Yui NARUSE)
05:10 PM Revision 2e2f7df7 (git): * 2016-08-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:10 PM Revision bd6fe326 (git): string.c: $; name in error message
* string.c (rb_str_split_m): show $; name in error message when it
is a wrong object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:18 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
Okay, so sounds like just a documentation fix for ReXML. That makes sense. Thanks! noahgibbs (Noah Gibbs)
09:26 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
Noah Gibbs wrote:
> Sounds good to me. Do we need to fix ReXML, if it depends on the current rounding mode?
The rdoc of `REXML::Functions.number` states:
> ...
sign followed by a Number followed by whitespace is converted to the IEE...
nobu (Nobuyoshi Nakada)
09:01 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
Noah Gibbs wrote:
> Another reason not to add an argument: `Float#round` already takes an argument for the number of digits to round to.
It's easy to distinguish a `Fixnum` and a `Symbol`.
Or keyword arguments will work well.
nobu (Nobuyoshi Nakada)
01:51 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
Another reason not to add an argument: `Float#round` already takes an argument for the number of digits to round to. noahgibbs (Noah Gibbs)
12:58 PM Bug #12421: Please backport r53816, r53817
backporting those fixes would make ruby compatible with a syntax handled by other tools. otherwise it means people need to take special care for ruby and things like that are often used against ruby later on.
also do you see any poten...
darix (Marcus Rückert)
11:06 AM Bug #12689: Thread isolation of $~ and $_
That's why i would deprecate the $ variables and make people use match objects all the time.
I mean the stdlib even has code that reads
```
matchdata = $~
```
That feels just wrong.
Maybe 2.4 could start issue warnings abou...
darix (Marcus Rückert)
07:30 AM Bug #12691 (Closed): CSV performance problem on large files that are misformatted (unclosed quoted field)
Applied in changeset r55985.
----------
csv.rb: performance with very long quoted lines
* lib/csv.rb (CSV#shift): store partial quoted strings in an array
and join at last, to improve performance with very long quoted
lines. [ruby...
nobu (Nobuyoshi Nakada)
07:29 AM Revision 4e5114b0 (git): csv.rb: performance with very long quoted lines
* lib/csv.rb (CSV#shift): store partial quoted strings in an array
and join at last, to improve performance with very long quoted
lines. [ruby-core:76987] [Bug #12691]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55985 b2dd03c...
nobu (Nobuyoshi Nakada)
07:23 AM Bug #12688: Thread unsafety in autoload
Charles Nutter wrote:
> I need clarification here. I expected, based on Ruby's assertion that autoloads are thread-safe, that the following code would never error. Instead, it gets a couple iterations in and raises NameError:
> ...
`$"...
h.shirosaki (Hiroshi Shirosaki)
05:36 AM Bug #12692 (Closed): remove RUBYLIB_PREFIX from man/irb.1
Applied in changeset r55984.
----------
irb.1: useless option [ci skip]
* man/irb.1: remove useless -width option.
[ruby-dev:49767] [Bug #12692]
nobu (Nobuyoshi Nakada)
05:35 AM Revision c37de380 (git): irb.1: useless option [ci skip]
* man/irb.1: remove useless -width option.
[ruby-dev:49767] [Bug #12692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:21 AM Revision 2329d8b0 (git): array.c: elements in self
* array.c (rb_ary_splice): consider elements in middle of self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:03 AM Revision 7ac136c9 (git): * 2016-08-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:02 AM Revision 36b9a37a (git): iseq.c: undef allocator
* iseq.c (Init_ISeq): undefine allocator of InstructionSequence,
to get rid of segfaults at method call on uninitialized object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/21/2016

03:29 PM Bug #10856: Splat with empty keyword args gives unexpected results
Guyren Howe wrote:
> I believe this behavior is wrong and should be fixed.
> ...
There is a simple fix for your use-case, if you just want to fowrard arguments, don't use ** at all:
(it's not like in Python, keyword arguments are less...
Eregon (Benoit Daloze)
06:09 AM Bug #10856: Splat with empty keyword args gives unexpected results
I believe this behavior is wrong and should be fixed.
This gets in the way of simple functional programming idioms. eg "Call each of these functions with these args until one doesn't fail"
~~~ ruby
class FnSeries
def initialize...
gisborne (Guyren Howe)
11:03 AM Revision 02a30129 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:52 AM Bug #12668 (Closed): Please backport r53433
Applied in changeset ruby_2_3|r55979.
----------
merge revision(s) 53433: [Backport #12668]
test_ostruct.rb: sort method names
* test/ostruct/test_ostruct.rb (test_accessor_defines_method):
should not depend on the order of methods.
nagachika (Tomoyuki Chikanaga)
05:52 AM Bug #12668: Please backport r53433
ruby_2_3 r55979 merged revision(s) 53433. nagachika (Tomoyuki Chikanaga)
05:49 AM Bug #12668 (Assigned): Please backport r53433
nagachika (Tomoyuki Chikanaga)
05:52 AM Revision 0b8b3a82 (git): merge revision(s) 53433: [Backport #12668]
test_ostruct.rb: sort method names
* test/ostruct/test_ostruct.rb (test_accessor_defines_method):
should not depend on the order of methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55979 b2dd03c8-39d4-4d...
nagachika (Tomoyuki Chikanaga)
05:14 AM Revision 009a2956 (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tad (Tadashi Saito)
05:13 AM Feature #12347: [PATCH] Make CSV::Row#each etc. return Enumerator when no block given
I will commit it in a month.
Let me know if you have any concerns.
ktsj (Kazuki Tsujimoto)
04:03 AM Revision 4831eb86 (git): array.c: no temporary array
* array.c (rb_ary_splice): use pointer and length pair instead of
an array object to replace.
* array.c (rb_ary_insert): get rid of creating temporary array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55977 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
03:01 AM Bug #12353: Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
r55500 breaks `1.days`, while it fixed Marshal.dump with object which respond to marshal_dump with method_missing.
Even though it's obviously a bug-fix, introduce more critical issue as for activesupport-4.1.x.
I think I should revert ...
nagachika (Tomoyuki Chikanaga)

08/20/2016

08:51 PM Revision 48e19b66 (git): * 2016-08-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:51 PM Revision d661b277 (git): enum.c (enum_sort): prevent wasteful array duplicaion
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
05:58 AM Revision 33ae176b (git): rubystub.c: sys/param.h for MAXPATHLEN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:30 AM Bug #12692 (Closed): remove RUBYLIB_PREFIX from man/irb.1
remove RUBYLIB_PREFIX like r45599?
* https://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/man/irb.1?view=markup&pathrev=53867#l122
sho-h (Sho Hashimoto)
02:37 AM Bug #12588: When an exception is re-raised in the "rescue" clause, the back trace does not contain the line in that clause
I think it's intentional, and don't see why it should contain a new line. nobu (Nobuyoshi Nakada)
02:20 AM Revision 9b454bfa (git): rubystub
* rubystub.c: generalize win32/stub.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:19 AM Revision e79b23c1 (git): * 2016-08-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:19 AM Revision 51d30645 (git): win32.c: no newline for rb_fatal
* win32/win32.c (StartSockets): rb_fatal does not need a newline
at the end.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/19/2016

10:43 PM Feature #11815: Proposal for method `Array#difference`
Implemented the method in a clearer and more efficient manner. CaryInVictoria (Cary Swoveland)
10:09 PM Bug #12691 (Closed): CSV performance problem on large files that are misformatted (unclosed quoted field)
If you have a large file which has an unclosed quoted field in it, the amount of time it takes for the CSV parser to determine that error increases worse-than-exponentially. My example tests -
60k records - takes 50 seconds to determ...
uberbrady (Brady Wetherington)
07:59 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
An additional change to the implementation of `prime_division2` provides an
another 3x increase in speed over using the generators implemented as classes.
Using class based generators, and enumerable methods, incur a metaprogramming ...
jzakiya (Jabari Zakiya)
07:21 PM Feature #8365: Make variables objects
I deleted my account by mistake so my earlier posts show as 'Anonymous'. I'm back and curious how this feature request resolves in the end. boris-s (Boris Stitnicky)
06:12 PM Bug #12689: Thread isolation of $~ and $_
Marcus Rückert wrote:
> I wonder, if moving away from those special $ variables to explicit match objects wouldn't be a possible solution to this.
If you always use the returned MatchData then you can avoid these problems. This only ...
headius (Charles Nutter)
10:17 AM Bug #12689: Thread isolation of $~ and $_
I wonder, if moving away from those special $ variables to explicit match objects wouldn't be a possible solution to this. darix (Marcus Rückert)
09:53 AM Bug #12689: Thread isolation of $~ and $_
Maybe $~ is always set in the surrounding method frame, but never in a block frame?
There is still a lot of weird cases to explain though.
Eregon (Benoit Daloze)
06:39 AM Bug #12689: Thread isolation of $~ and $_
To clarify the one-liners' behavior: when the thread's top-level frame is the same as a proc's frame that it calls, it will see thread-local values. When the proc's frame is not the top-level frame for the thread, the memory location for... headius (Charles Nutter)
06:37 AM Bug #12689 (Open): Thread isolation of $~ and $_
We are debating what is correct behavior now, and what should be correct behavior in the future, for the thread-visibility of the special variables `%~` and `$_`
We have several examples from https://github.com/jruby/jruby/issues/3031...
headius (Charles Nutter)
04:47 PM Feature #12690: Improve GC with external library that may use large memory
LGTM. Iff Koichi agrees, it should be merged.
Matz.
matz (Yukihiro Matsumoto)
04:03 PM Feature #12690 (Closed): Improve GC with external library that may use large memory
GC cares memory allocated by only Ruby. GC doesn't care memory allocated by external library. GC isn't run frequently when external library allocates large memory but Ruby allocates only small memory. In the case, process uses large memo... kou (Kouhei Sutou)
10:44 AM Revision ea293952 (git): ruby_cmdline_options_t
* ruby.c (ruby_cmdline_options_t): typedef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:32 AM Revision c6bf0472 (git): Revert r55968 "scriptbin on cygwin"
win32/stub.c only works with malloced argv as win32/win32.c, to
realloc it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:01 AM Revision 7f7e809a (git): scriptbin on cygwin
* cygwin/GNUmakefile.in (scriptbin): enable on cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:01 AM Revision 468a766b (git): strip stub program
* cygwin/GNUmakefile.in (STUBPROGRAM): strip.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:14 AM Bug #12688: Thread unsafety in autoload
Oh, sorry...the source of bar.rb is trivial:
```ruby
class Foo
Bar = 1
end
```
headius (Charles Nutter)
05:13 AM Bug #12688 (Closed): Thread unsafety in autoload
I need clarification here. I expected, based on Ruby's assertion that autoloads are thread-safe, that the following code would never error. Instead, it gets a couple iterations in and raises NameError:
```ruby
loop do
class Foo
...
headius (Charles Nutter)
04:38 AM Revision 438f52d1 (git): extmk.rb: makefiles for gems
* ext/extmk.rb (extmake): now yield makefile content at creation.
substitute makefiles for gems in the block, not to rewrite when
nothing changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55966 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
02:39 AM Feature #12686 (Closed): Allowing a postposed rescue in a method argument
Applied in changeset r55965.
----------
parse.y: lparen_arg statement
* parse.y (primary): allow parenthesised statement as a method
argument. [Feature #12686]
nobu (Nobuyoshi Nakada)
02:39 AM Revision ec8f8fa4 (git): parse.y: lparen_arg statement
* parse.y (primary): allow parenthesised statement as a method
argument. [Feature #12686]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:12 AM Revision 6f22777f (git): vm.c: check TOPLEVEL_BINDING
* vm.c (vm_set_main_stack): TOPLEVEL_BINDING must be built.
http://www.viva64.com/en/b/0414/#ID0EQ1CI [ruby-core:76973]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/18/2016

04:49 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
Sounds good to me. Do we need to fix ReXML, if it depends on the current rounding mode? noahgibbs (Noah Gibbs)
01:15 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
I doubt if we need multiple rounding modes. I guess for every situation when a specific rounding mode is mandatory, what is needed is the round-even mode. I have never experienced the needs of other modes. Almost everybody don't care ... shyouhei (Shyouhei Urabe)
03:59 PM Revision ea31b6c0 (git): * 2016-08-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:59 PM Revision c4d4abf2 (git): * proc.c (mnew_missing): Remove an unused argument.
After r51126 rid is not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yui-knk (Kaneko Yuichiro)
02:55 PM Bug #12660: [PATCH] openssl: avoid undefined behavior on empty SSL_write
ruby_2_3 r55961 merged revision(s) 55822. nagachika (Tomoyuki Chikanaga)
02:54 PM Revision a9e98cf7 (git): merge revision(s) 55822: [Backport #12660]
* ext/openssl/ossl_ssl.c (ossl_ssl_write_internal):
avoid undefined behavior
* test/openssl/test_pair.rb (test_write_zero): new test
[ruby-core:76751] [Bug #12660]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nagachika (Tomoyuki Chikanaga)
02:26 PM Bug #12645: ext/socket fails to link on some Solaris 10 versions
ruby_2_3 r55960 merged revision(s) 55797. nagachika (Tomoyuki Chikanaga)
02:26 PM Revision 6d37aaab (git): merge revision(s) 55797: [Backport #12645]
* ext/socket/option.c, ext/socket/rubysocket.h (inet_ntop): share
the fallback definition. [ruby-core:76646] [Bug #12645]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:19 PM Bug #12687: OpenSSL::X509::Store wont load certificates from set_default_paths
Kazuki Yamaguchi wrote:
> It's working for me:
> ...
I see, is there a way to call c_rehash from Ruby ?
bararchy (Bar Hofesh)
01:12 PM Bug #12687 (Feedback): OpenSSL::X509::Store wont load certificates from set_default_paths
It's working for me:
~~~
OpenSSL::X509::DEFAULT_CERT_DIR #=> "/usr/lib/ssl/certs"
cert, *chain = OpenSSL::SSL::SSLSocket.new(TCPSocket.new("bugs.ruby-lang.org", 443)).connect.peer_cert_chain
store = OpenSSL::X509::Store.new
store....
rhenium (Kazuki Yamaguchi)
11:14 AM Bug #12687 (Closed): OpenSSL::X509::Store wont load certificates from set_default_paths
Setting up a new instance of OpenSSL::X509::Store, and setting "set_default_paths" will not actually import any certificates into Store.
Environment: Ubuntu 14.04
`File.dirname OpenSSL::Config::DEFAULT_CONFIG_FILE
=> "/usr/lib/ssl...
bararchy (Bar Hofesh)
02:17 PM Bug #12611: Issues, reported by PVS-Studio static analyzer
ruby_2_3 r55959 merged revision(s) 55729. nagachika (Tomoyuki Chikanaga)
02:17 PM Revision 4c3d49e9 (git): merge revision(s) 55729: [Backport #12611]
* vm.c (vm_set_main_stack): remove unnecessary check. toplevel
binding must be initialized. [Bug #12611] (N1)
* win32/win32.c (w32_symlink): fix return type. [Bug #12611] (N3)
* string.c (rb_str_split_m): s...
nagachika (Tomoyuki Chikanaga)
02:06 PM Bug #12609: rexml attribute class is using &quote instead of &quot when replacing " for the XML character entity "
ruby_2_3 r55958 merged revision(s) 55726,55727. nagachika (Tomoyuki Chikanaga)
02:06 PM Revision f376d0ef (git): merge revision(s) 55726,55727: [Backport #12609]
* lib/rexml/attribute.rb (REXML::Attribute#to_string): Fix wrong
entry reference name of double quote.
[Bug#12609][ruby-core:76509]
Patch by Joseph Marrero. Thanks!!!
[Bug #12609][ruby-core:76509]
...
nagachika (Tomoyuki Chikanaga)
02:05 PM Bug #12575: Conditional jump or move depends on uninitialised value(s) at rb_wait_for_single_fd (thread.c:3864)
ruby_2_3 r55957 merged revision(s) 55613. nagachika (Tomoyuki Chikanaga)
02:05 PM Revision 7dd1ce91 (git): merge revision(s) 55613: [Backport #12575]
* thread.c (rb_wait_for_single_fd): Clean up fds.revents every time
before calling ppoll(2). [Bug #12575] [ruby-dev:49725]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:03 PM Bug #12568: wrong ArgumentError if an array is given for instance_exec with optional argument
ruby_2_3 r55956 merged revision(s) 55609. nagachika (Tomoyuki Chikanaga)
02:03 PM Revision 2c07970d (git): merge revision(s) 55609: [Backport #12568]
* vm_args.c (setup_parameters_complex): don't raise ArgumentError
if an array is given for instance_exec with optional argument.
[ruby-core:76300] [Bug #12568]
https://github.com/rails/rails/pull/25699
git...
nagachika (Tomoyuki Chikanaga)
08:10 AM Feature #12686: Allowing a postposed rescue in a method argument
`tLPAREN_ARG` has been introduced at 1.7, I think we can clear up spaces and parentheses rules now. nobu (Nobuyoshi Nakada)
06:22 AM Feature #12686: Allowing a postposed rescue in a method argument
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12686-lparen_arg-stmt nobu (Nobuyoshi Nakada)
06:00 AM Feature #12686: Allowing a postposed rescue in a method argument
It sounds nothing wrong with it, to me.
```diff
diff --git i/parse.y w/parse.y
index 17f0f9c..7a14941 100644
--- i/parse.y
+++ w/parse.y
@@ -2659,7 +2659,7 @@ primary : literal
$<val>1 = cmdarg_stack;
CMDARG_SET(0);
...
nobu (Nobuyoshi Nakada)
05:03 AM Feature #12686 (Closed): Allowing a postposed rescue in a method argument
On defining my own DSL, I wanted to write a code like:
```
foo (Integer(ENV['FOO']) rescue nil)
```
where `foo` is a method which receives one argument , but I got following error
```
SyntaxError: (irb):1: syntax error, unexp...
sonots (Naotoshi Seo)
03:19 AM Revision 2edcca66 (git): test_rand.rb: refine probability test
* test/ruby/test_rand.rb (test_new_seed): refine probability of
failure from 1/256 to 1/256**8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:44 AM Feature #8960: Add Exception#backtrace_locations
Ryan Nevell wrote:
> Is there any way to re-raise an exception and propagate `backtrace_locations`? When I want to trap an exception and provide a different exception class and error message, I'm used to doing something like:
Nothing...
nobu (Nobuyoshi Nakada)
12:26 AM Revision a3d25f54 (git): * gems/bundled_gems: bump to test-unit-3.2.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

08/17/2016

11:55 PM Feature #12020: Documenting Ruby memory model
> Koichi, would you be open to spend some time discussing it?
Sure! Other than my presentation time, I'll be happy to discuss about it.
Thanks,
Koichi
ko1 (Koichi Sasada)
09:03 AM Feature #12020: Documenting Ruby memory model
I am going to RubyKaigi, I would be very interested to have a meeting face to face there to discuss this topic in depth. Koichi, would you be open to spend some time discussing it? Would anybody else be interested? Afaik Charles is not g... pitr.ch (Petr Chalupa)
09:08 PM Feature #8960: Add Exception#backtrace_locations
Is there any way to re-raise an exception and propagate `backtrace_locations`? When I want to trap an exception and provide a different exception class and error message, I'm used to doing something like:
~~~ ruby
rescue => e
rais...
ryannevell (Ryan Nevell)
07:32 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
Nobu: but then, default will still be inconsistent.
Maybe add a parameter and require libraries to supply it if they care? Then later we could change the default from :even to :closest or :biased or whatever we call the common roundin...
noahgibbs (Noah Gibbs)
02:54 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
I agree that round-even is preferable, but it introduces an incompatibility.
Some libraries, e.g., rexml, depend on the current behavior.
So I'm thinking an optional parameter to select rounding mode.
~~~ruby
2.5.round #=> 3...
nobu (Nobuyoshi Nakada)
07:06 PM Bug #12685 (Closed): malloc error: pointer being freed was not allocated
ruby crashed
- never seen that before
- should never happen
- looks serious to me
I'm using ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] from macports
I was running rails in dev mode.
The bug happened while rel...
eike.rb (Eike Dierks)
06:19 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
By using a faster prime generator than the current one in prime.rb the performance for
the prime_division function can reach the desired 3x performance sought for Ruby 3 (3x3).
```
Timing comparisons for optimal method prime_divisio...
jzakiya (Jabari Zakiya)
05:36 PM Bug #12683 (Closed): never be able to install trunk
Applied in changeset r55952.
----------
skip failed gems
* tool/rbinstall.rb: skip gems which failed to build extensions.
[ruby-dev:49764] [Bug #12683]
nobu (Nobuyoshi Nakada)
04:12 PM Bug #12683 (Closed): never be able to install trunk
r55950 以降だと思いますが、bundleされているgemの拡張ライブラリがビルドできない場合、make installが失敗するのでruby自体がinstallできません。 usa (Usaku NAKAMURA)
05:36 PM Revision 23051126 (git): * 2016-08-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:36 PM Revision a5eab8cc (git): skip failed gems
* tool/rbinstall.rb: skip gems which failed to build extensions.
[ruby-dev:49764] [Bug #12683]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:12 PM Bug #12684 (Closed): Delegator#eql? missing
There is some strange behavior because Delegator is missing an alias of #eql? to #==
```
2.3.1 :001 > s = 'test'
=> "test"
2.3.1 :002 > d = SimpleDelegator.new(s)
=> "test"
2.3.1 :003 > d.eql?(d)
=> false
2.3.1 :004 > d =...
carsonreinke (Carson Reinke)
03:08 PM Bug #12353 (Open): Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
I found this backport broke ActiveSupport::Duration of ActiveSupport 4.1.x:
```
% ruby -e '
gem "activesupport", "4.1.16"
require "active_support/time"
10.days'
/PREFIX/lib/ruby/gems/2.3.0/gems/activesupport-4.1.16/lib/active_sup...
knu (Akinori MUSHA)
02:35 PM Revision 819d87ed (git): bump up tk
* gems/bundled_gems (tk): bump up to 0.1.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 PM Bug #12681 (Closed): Gemfied tk issue
Applied in changeset r55950.
----------
gem extensions
* ext/extmk.rb: build gem extensions into separate directories
* tool/rbinstall.rb: install pre-built gem extension files gem
extension directories. [ruby-core:76931] [Bug #12681]
nobu (Nobuyoshi Nakada)
02:14 PM Revision 9839d82d (git): gem extensions
* ext/extmk.rb: build gem extensions into separate directories
* tool/rbinstall.rb: install pre-built gem extension files gem
extension directories. [ruby-core:76931] [Bug #12681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@559...
nobu (Nobuyoshi Nakada)
01:15 PM Feature #6783: Infinite loop in inspect, not overriding inspect, to_s, and no known circular references. Stepping into inspect in debugger locks it up with 100% CPU.
I would like to reopen discussion on this subject. I think the default implementation of #inspect tends to hang/explode for complex/large object graphs with lots of cycles. In 10 years of programming Ruby I ran into this twice and had to... stefan.kroes (Stefan Kroes)
07:20 AM Revision 39e3db35 (git): mkmf.rb: use TARGET_SO
* lib/mkmf.rb (create_makefile): use TARGET_SO consistently.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:28 AM Bug #8837 (Rejected): net/telnet: strange implementation
net-telnet has been extracted https://github.com/ruby/net-telnet hsbt (Hiroshi SHIBATA)
05:28 AM Bug #8668 (Rejected): Net::Telnet waitfor('Waittime'=>0) may wait forever
net-telnet has been extracted https://github.com/ruby/net-telnet hsbt (Hiroshi SHIBATA)
05:27 AM Feature #8324 (Rejected): Net::Telnet.new のオプション
net-telnet has been extracted https://github.com/ruby/net-telnet hsbt (Hiroshi SHIBATA)
05:26 AM Feature #11720 (Rejected): XMLRPC::DateTime.to_time does not support times prior to 1970.
xmlrpc has been extracted http://github.com/ruby/xmlrpc hsbt (Hiroshi SHIBATA)
05:26 AM Bug #10786 (Rejected): SIGINT can not interrupt remaining codes after XMLRPC::Server gets SIGINT
xmlrpc has been extracted http://github.com/ruby/xmlrpc hsbt (Hiroshi SHIBATA)
01:40 AM Bug #12682 (Rejected): Hash#flatten(level) does not recursively flatten inner hashes.
The documentation of `Array#flatten` is pretty clear:
"...That is, for every element that is an **array**, extract its elements into the new array."
So it follows the documentation and would create massive incompatibilities to change!
marcandre (Marc-Andre Lafortune)
01:25 AM Feature #11057 (Rejected): Gemify JSON
rdoc depends on json. And gem authors rely on json of stdlib.
ref. http://www.mikeperham.com/2016/02/09/kill-your-dependencies/
I gave up to extract json from stdlib.
hsbt (Hiroshi SHIBATA)
01:16 AM Bug #12156 (Rejected): TckImage.new broken after r53077 (2.3, trunk)
tk has been extracted https://github.com/ruby/tk from stdlib hsbt (Hiroshi SHIBATA)
01:16 AM Bug #5686 (Rejected): compile error for ext/tk/tcltklib.c: ‘ruby_errinfo’ undeclared
tk has been extracted https://github.com/ruby/tk from stdlib hsbt (Hiroshi SHIBATA)
01:13 AM Revision 62565598 (git): * 2016-08-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:13 AM Revision b6fbbf33 (git): make-snapshot: remove $GZIP
* tool/make-snapshot: remove deprecated environment variable GZIP
to its command line arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom