Project

General

Profile

Activity

From 05/26/2015 to 06/01/2015

06/01/2015

05:58 PM Feature #10974: [PATCH] Remove methods which has suffix `!`(sin!, cos!…) from CMath
matz@ruby-lang.org wrote:
> I am OK with this change. Does anyone else have opinon on this?
> E.g. compatibility issue?

I don't use CMath, but I suggest a deprecation period since it appears
this is a public API. We should never ...
normalperson (Eric Wong)
12:22 PM Feature #10974: [PATCH] Remove methods which has suffix `!`(sin!, cos!…) from CMath
I am OK with this change. Does anyone else have opinon on this?
E.g. compatibility issue?
Matz.
matz (Yukihiro Matsumoto)
05:54 PM Bug #11206 (Closed): short file name match incompatibility
When I develop a foo.gem, my working diretory has foo.gemspec and foo.gem.
If I run `gem install -l foo`, it fails as following:
ERROR: While executing gem ... (Gem::Package::FormatError)
package metadata is missing in foo.gem...
naruse (Yui NARUSE)
05:18 PM Bug #11203: Change method entries into VALUE
I cannot view images at the moment, but I strongly approve of using
VALUE types more in our internals for the same reasons you describe.
normalperson (Eric Wong)
10:48 AM Bug #11203 (Closed): Change method entries into VALUE
Now, `rb_method_entry_t` is an allocated data pointed from method tables (`class/module` has) and from control frame stacks.
I will change this data structure to make `VALUE` (`T_IMEMO/ment`).
And I put them onto value frames instead...
ko1 (Koichi Sasada)
04:14 PM Bug #11205: Problem with __dir__ or it's description
Note that `require_relative` uses `__dir__` as the base to generate an absolute path.
gam3 (Allen Morris)
03:08 PM Bug #11205 (Closed): Problem with __dir__ or it's description
~~~
Kernel#__dir__
Returns the canonicalized absolute path of the directory of the file from which this method is called. It means symlinks in the path is resolved. If __FILE__ is nil, it returns nil. The return value equals to File....
gam3 (Allen Morris)
03:13 PM Revision bd00df2f (git): * lib/resolv.rb (Requester#request): typo, regression introduced at
r49422 (patchlevel 618). reported and patched by Stefan Kolb
[ruby-core:69429] [Backport #11204]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@50723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:02 PM Revision fd4ec2bc (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:00 PM Revision abe5b048 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:00 PM Revision ec38e0ea (git): * 2015-06-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision 49745b5a (git): fix indent (tabify) [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:59 PM Revision 10f0206c (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:05 PM Bug #11201 (Closed): pkg_config NoMethodError when finding other -config program
Applied in changeset r50717.
----------
mkmf.rb: split --libs
* lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
is not available. patch in [ruby-core:69428] by Hans Mackowiak.
[ruby-core:69421] [Bug #11201]
nobu (Nobuyoshi Nakada)
12:44 PM Bug #11201: pkg_config NoMethodError when finding other -config program
i try to modify your possible patch a bit,
now it can parse the libs from the libflags again.
makes it work with wx-config and freetype-config
~~~diff
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 0f588a5..7e8b22d 100644
--- a/l...
Hanmac (Hans Mackowiak)
09:46 AM Bug #11201: pkg_config NoMethodError when finding other -config program
Thank you, does this patch work?
~~~diff
diff --git i/lib/mkmf.rb w/lib/mkmf.rb
index be9b06c..615e2dc 100644
--- i/lib/mkmf.rb
+++ w/lib/mkmf.rb
@@ -1818,11 +1818,15 @@ SRC
cflags = get['cflags']
end
li...
nobu (Nobuyoshi Nakada)
09:00 AM Bug #11201: pkg_config NoMethodError when finding other -config program
wx from wxWidgets does have its own wx-config script with does have other flags than pkg-config
(pkg-config in its second version can call (pkg)-config scripts)
thats why:
wx-config --libs-only-l
*** Error: Unrecognised option:...
Hanmac (Hans Mackowiak)
08:51 AM Bug #11201 (Feedback): pkg_config NoMethodError when finding other -config program
Does `pkg-config --libs-only-l wx` work? nobu (Nobuyoshi Nakada)
06:48 AM Bug #11201 (Closed): pkg_config NoMethodError when finding other -config program

where it does work (existing package)
~~~ruby
pkg_config("gtk+-x11-2.0") # => ["-pthread", "", "-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lg...
Hanmac (Hans Mackowiak)
01:01 PM Revision 5c18ffe2 (git): mkmf.rb: split --libs
* lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
is not available. patch in [ruby-core:69428] by Hans Mackowiak.
[ruby-core:69421] [Bug #11201]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50717 b2dd03c8-39d4-4...
nobu (Nobuyoshi Nakada)
12:20 PM Revision 4777bdce (git): * gc.c (gc_mark_children): remove a garbage character
introduced at the last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:26 AM Revision 7221252a (git): * vm_method.c (rb_method_entry_make): do not show warning message
when method_entry is an alias.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:19 AM Bug #11202 (Rejected): No warning when a link to an original method body was removed
```
class C0
def foo
end
end
class C < C0
alias bar foo # C0#foo is pointed from C0 and C#bar.
C0.class_eval{undef foo} # C0#foo is pointed C#bar.
def bar # C0#foo is not pointed from anybo...
ko1 (Koichi Sasada)
09:46 AM Revision d9d0594a (git): mkmf.rb: logging pkg_config
* lib/mkmf.rb (pkg_config): log executing command and its results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:48 AM Revision 105a2c07 (git): * internal.h: move class related definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:44 AM Revision cd909b55 (git): * class.c: remove needless include pragmra for method.h.
* struct.c: ditto.
* vm_method.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:16 AM Revision 900931cc (git): test/ruby/test_complex.rb: Add test for CMath.log2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kazuki Tanaka
05:38 AM Revision 8305152d (git): enum.c: [DOC] Fix typo [ci skip][Fix GH-904]
Patch provided by @jwworth
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kazuki Tanaka
05:35 AM Revision 2351d88f (git): lib/csv.rb: [DOC] Fix typo [ci skip][Fix GH-907]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kazuki Tanaka
01:55 AM Revision 8e739355 (git): tkutil.c: fix out-of-bounds access
* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): check array
length not access out-of-bounds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/31/2015

11:07 PM Revision 847e919e (git): ext/date/date_core.c: [DOC] fold long paragraphs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:06 PM Revision 473427a3 (git): vm_method.c: suppress warning
* vm_method.c (rb_frame_visibility_check): suppress comparison
warning by gcc 4.8 and 4.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:46 PM Revision c10df9b6 (git): [DOC] Decrease heading under DateTime [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
10:32 PM Revision 30e6825e (git): tkutil.c: fix memory leak and segfault
* ext/tk/tkutil/tkutil.c (cbsubst_append_inf_key): extract a
function append a key in subst info to a string. make result
strings first and get rid of potential memory leak.
* ext/tk/tkutil/tkutil.c (cbsubst_get_subst_arg): allocat...
nobu (Nobuyoshi Nakada)
08:44 PM Revision 1611735b (git): * eval_intern.h, vm_method.c: move macros to functions.
* SCOPE_TEST(f) -> rb_frame_visibility_test(flag).
* SCOPE_CHECK(f) -> rb_frame_visibility_check(flag).
* SCOPE_SET(f) -> rb_frame_visibility_set(flag).
* load.c (load_ext): use it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
ko1 (Koichi Sasada)
07:49 PM Revision 45458752 (git): * ext/date/date_core.c: [DOC] Add comparison of Time and DateTime
Patch provided by @pixeltrix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:23 PM Revision ac6990c7 (git): * vm_core.h (VM_FRAME_MAGIC_DUMMY): introduce new frame type to
recognize dummy frame.
* vm.c (th_init): use new frame type.
* vm_args.c (raise_argument_error): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:17 PM Revision 25813144 (git): * class.c (rb_class_has_methods): added to reduce depenedency
to internal class data structure.
* internal.h: ditto.
* hash.c (has_extra_methods): use added function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:12 PM Revision 3d410dde (git): * gc.c , gc.h (rb_obj_info): export obj_info(VALUE) for debugging.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:53 PM Revision c5421657 (git): * test/ruby/test_gc.rb: increase timeout seconds for GC stressful
debugging.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:08 PM Revision 954c7562 (git): * 2015-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:08 PM Revision 912ae57b (git): tkutil.c: reduce unnecessary buffer
* ext/tk/tkutil/tkutil.c (cbsubst_get_subst_key): reduce
unnecessary buffer. the result string is one byte per one word.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:45 AM Revision 33604da3 (git): test_tempfile.rb: use assert_predicate
* test/test_tempfile.rb: use assert_predicate and
assert_not_predicate for better failure messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:45 AM Revision 56ef5433 (git): test_tempfile.rb: use assert_file
* test/test_tempfile.rb: use assert_file for better failure
messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/30/2015

07:58 PM Revision 9794af35 (git): fix indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
07:18 PM Revision 3da0f60b (git): * method.h: fix typo of comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:45 PM Bug #11173 (Closed): inter class/module alias causes "no superclass method"
Applied in changeset r50691.
----------
* method.h: add VM_METHOD_TYPE_ALIAS rb_method_definition_t::type
to fix [Bug #11173].
Now, inter class/method alias creates new method entry
VM_METHOD_TYPE_ALIAS, which has an original meth...
ko1 (Koichi Sasada)
06:45 PM Revision f1d4e8b3 (git): * method.h: add VM_METHOD_TYPE_ALIAS rb_method_definition_t::type
to fix [Bug #11173].
Now, inter class/method alias creates new method entry
VM_METHOD_TYPE_ALIAS, which has an original method entry.
* vm_insnhelper.c (find_defiend_class_by_owner): added.
Search corresponding defined_class from o...
ko1 (Koichi Sasada)
06:35 PM Revision 255c16b5 (git): * vm_method.c (rb_unlink_method_entry): make it static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:34 PM Revision 744d63aa (git): fix ChangeLog message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:31 PM Revision 7197b86f (git): * 2015-05-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:30 PM Revision 9cf6751f (git): * method.h, vm_method.c (rb_free_method_entry): constify a parameter.
* vm_method.c (rb_unlink_method_entry): constify a parameter.
* vm_core.h: remove useless declaration about rb_unlink_method_entry().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:16 PM Bug #11200 (Closed): Memory leak of method entries
```ruby
def recur
Class.new{
define_method(:foo) do
recur
end
}.new.foo
end
begin
recur
rescue SystemStackError
retry
end
```
This program increase memory consumption because method entries in meth...
ko1 (Koichi Sasada)
10:41 AM Bug #11199 (Closed): IO.copy_stream degrade that can't call pathname to pathname
IO.copy_stream について、2.2.2〜2.3.0dev間で動作に差異がありました。
再現スクリプトを添付します。
~~~ruby
#! /usr/bin/env ruby
require 'pathname'
IO.write "src", "ok"
src = Pathname.new("src")
dst = Pathname.new("dst")
IO.copy_stream src, dst
puts IO.rea...
ksss (Yuki Kurihara)
09:05 AM Revision cc09968d (git): * lib/tempfile.rb (Remover#call): fixed wrong condition introduced at
r50682.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:20 AM Bug #11198 (Closed): [PATCH] ext/socket/ancdata.c: use RB_GC_GUARD instead of volatile
Applied in changeset r50685.
----------
ext/socket/ancdata.c: use RB_GC_GUARD instead of volatile
See doc/extension.rdoc for explanation.
[ruby-core:69419] [Feature #11198]
Anonymous
01:28 AM Bug #11198 (Closed): [PATCH] ext/socket/ancdata.c: use RB_GC_GUARD instead of volatile
See doc/extension.rdoc for explanation or r50646
normalperson (Eric Wong)
08:19 AM Revision 5e345559 (git): ext/socket/ancdata.c: use RB_GC_GUARD instead of volatile
See doc/extension.rdoc for explanation.
[ruby-core:69419] [Feature #11198]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
07:01 AM Revision c1f355d9 (git): * lib/tempfile.rb (Tempfile#initialize): initialize @unlinked to fix
test failures introduced at r50682. I hope that check the results of
tests before committing, at least the tests about the changed feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:04 AM Revision 8252ef0a (git): change lingering dtrace probe documentation from function- to method-
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tenderlovemaking (Aaron Patterson)
01:29 AM Revision 354c9747 (git): * lib/tempfile.rb: refactoring.
* use warn instead of STDERR.print
* remove @tmpname and use @tmpfile.path
* introduce @unlinked flag
* Remover takes only @tmpfile
* mode will be modified just before file reopen
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
Glass_saga (Masaki Matsushita)
12:20 AM Revision e2140589 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:20 AM Revision f6cd5825 (git): variable.c: avoid compatibility table with generic ivars
This recovers and improves performance of Marshal.dump/load on
Time objects compared to when we implemented generic ivars
entirely using st_table.
This also recovers some performance on other generic ivar objects,
but does not bring bri...
Eric Wong
12:14 AM Revision c7ddf9d5 (git): cont.c: Check ruby_current_thread
* cont.c (cont_free): check if ruby_current_thread is still valid.
[Fix GH-914]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/29/2015

11:43 PM Feature #11170 (Closed): [PATCH] use ivar indices for generic ivars
Applied in changeset r50678.
----------
variable.c: use indices for generic ivars
This reduces memory overhead of ivars for common types such as
T_DATA the same way T_OBJECT does it.
For 9992 accepted clients on an OpenSSL server, thi...
Anonymous
12:58 AM Feature #11170: [PATCH] use ivar indices for generic ivars
After the original patch, rb_generic_ivar_table() is much more expensive
but kept for compatibility reasons. I propose deprecating it, I'm not
sure if any 3rd party C-exts use it.

http://80x24.org/spew/m/1432859944-14374-1-git-sen...
normalperson (Eric Wong)
11:42 PM Revision 9d9aea7f (git): variable.c: use indices for generic ivars
This reduces memory overhead of ivars for common types such as
T_DATA the same way T_OBJECT does it.
For 9992 accepted clients on an OpenSSL server, this reduces
memory from 77160K to 69248K with the script in
https://bugs.ruby-lang.org...
Eric Wong
11:22 PM Revision cdd9ff6f (git): * 2015-05-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:22 PM Revision ff4b7360 (git): variable.c: extract common functions for generic ivar indices
* variable.c (iv_index_tbl_make): extract from rb_ivar_set
(iv_index_tbl_extend): ditto
(iv_index_tbl_newsize): ditto
(rb_ivar_set): use extracted functions
[ruby-core:69323] (Part 1)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
Eric Wong
01:58 PM Feature #7148: Improved Tempfile w/o DelegateClass
It doesn't sound like anyone opposes this idea, so are we just missing implementation? headius (Charles Nutter)
01:28 AM Feature #7148: Improved Tempfile w/o DelegateClass
Sadly, r50118 actually caused my problem because I was using `src_offset`
for `IO.copy_stream`
normalperson (Eric Wong)
01:21 AM Feature #7148: Improved Tempfile w/o DelegateClass
I think the problem you faced was resolved at r50118, wasn't it? Glass_saga (Masaki Matsushita)
12:00 PM Feature #11191: Add #to_h method to OptionParser
> You want symbols, I'm guessing for kwargs?
Sure, but not necessarily just for that. It's very common to see these config hashes contain symbol keys, so no reason to not provide them as such.
injekt (Lee Jarvis)
10:44 AM Bug #11197: POSIX matchers broken in Regexp
what do you expect ?
"Γ" for sample is "GREEK CAPITAL LETTER GAMMA"
means letter with is an alpha
so all of them are letters
Hanmac (Hans Mackowiak)
09:00 AM Bug #11197 (Rejected): POSIX matchers broken in Regexp
The POSIX matchers [[:alnum:]] and [[:alpha:]] in the Regexp class seem to be broken, as they successfully match all characters in the (example) string "ƧʂʶˢʵʃˎΓϊϨϢϟƍƍƧʂʶˢʵʃˎΓϊϨϢϟ". Anonymous
08:40 AM Revision b5909db0 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:39 AM Revision 7fd053a0 (git): * tool/make_hgraph.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
05:55 AM Revision 451fe269 (git): openssl: wrapper object before alloc
* ext/openssl: make wrapper objects before allocating structs to
get rid of potential memory leaks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:44 AM Revision 5924f9a6 (git): psych: allocate structs with wrapper
* ext/psych/psych_emitter.c (allocate): allocate structs with
making new wrapper objects and get rid of potential memory leak.
* ext/psych/psych_parser.c (allocate): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50672 b2dd...
nobu (Nobuyoshi Nakada)
05:39 AM Bug #11192 (Closed): capture group special variable with large index invokes UB
Applied in changeset r50671.
----------
parse.y: check NTH_REF range
* compile.c (iseq_compile_each): out of range NTH_REF is always
nil.
* parse.y (parse_numvar): check overflow of NTH_REF and range.
[ruby-core:69393] [Bug #11192]...
nobu (Nobuyoshi Nakada)
05:39 AM Revision 238394e7 (git): parse.y: check NTH_REF range
* compile.c (iseq_compile_each): out of range NTH_REF is always
nil.
* parse.y (parse_numvar): check overflow of NTH_REF and range.
[ruby-core:69393] [Bug #11192]
* util.c (ruby_scan_digits): make public and add length parameter.
gi...
nobu (Nobuyoshi Nakada)
05:04 AM Bug #10823: Issue building bigdecimal.
ruby_2_1 r50670 merged revision(s) 49491. usa (Usaku NAKAMURA)
05:03 AM Revision 0d1f4fb5 (git): merge revision(s) 49491: [Backport #10823]
* ext/bigdecimal/bigdecimal.c (VpSetPTR): fix a typo, 'expoennt'
to 'exponent'. [ruby-core:67980] [Bug #10823] [Fix GH-825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@50670 b2dd03c8-39d4-4d8f-98ff-823fe69b...
U.Nakamura
05:01 AM Bug #10858: File.expand_path on Windows does not handle drive-current path if 2nd arg is relative
ruby_2_1 r50669 merged revision(s) 49618,49640. usa (Usaku NAKAMURA)
05:01 AM Revision 6f97605f (git): merge revision(s) 49618,49640: [Backport #10858]
* win32/file.c (rb_file_expand_path_internal): do not make invalid
(or ADS) path if the path has a drive letter, the result also
should have be under it. [ruby-core:68130] [Bug #10858]
* win32/file.c (rb_fil...
U.Nakamura
04:57 AM Bug #10717: TestGemExtCmakeBuilder#test_self_build fails on RHEL 6/CentOS 6
At r50668, r49703 is partially merged into `ruby_2_1`. usa (Usaku NAKAMURA)
04:56 AM Revision e8dc702f (git): Partially merge revision 49195: [Bug #10717]
Support cmake 2.6 which is used by RHEL6/ CentOS 6
https://github.com/rubygems/rubygems/pull/1124
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@50668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:47 AM Bug #10991: SIGSEGV in Marshal.load
At r50667, fixed `ruby_2_1` branch.
The branch is quite different from trunk, so only an essential part of r50057 was picked up.
usa (Usaku NAKAMURA)
04:43 AM Revision 847b7bcf (git): * marshal.c (r_symreal): register the symbol name first so that
r_symlink always returns valid names. [Bug #10991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@50667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:05 AM Bug #11196 (Third Party's Issue): [SEGFAULT] when running rails s and rake commands
The usual rvm issue.
You mixed an extension library for 2.0.0.
~~~
2 ruby 0x000000010aaa42f3 sigsegv + 83
3 libsystem_platform.dylib 0x00007fff8bd79f1a _sigtramp + 26
4 libruby.2.0...
nobu (Nobuyoshi Nakada)
12:32 AM Bug #11196 (Third Party's Issue): [SEGFAULT] when running rails s and rake commands
Cannot run rails s or rake commands from command line. Command line kept throwing errors with postgres and gemfile (for no apparent reason) when running rake commands, could not compile to push to Heroku then rails s threw the following ... aps913 (Arati Sureddi)
02:24 AM Feature #11145 (Closed): [PATCH] socket: avoid redundant fcntl with MSG_DONTWAIT
Applied in changeset r50666.
----------
socket: avoid redundant fcntl on Linux
* ext/socket/ancdata.c (bsock_sendmsg_internal,
bsock_recvmsg_internal):
avoid redundant fcntl on Linux
[ruby-core:69154] [Feature #11145]
* ext/socke...
Anonymous
02:24 AM Revision d8bbb5ed (git): socket: avoid redundant fcntl on Linux
* ext/socket/ancdata.c (bsock_sendmsg_internal,
bsock_recvmsg_internal):
avoid redundant fcntl on Linux
[ruby-core:69154] [Feature #11145]
* ext/socket/init.c (rsock_s_recvfrom_nonblock): ditto
* ext/socket/rubysocket.h (MSG_DONTWA...
Eric Wong
02:16 AM Revision 1dd4c763 (git): ChangeLog: add missing reference [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
02:06 AM Bug #11182: Refinement with alias causes strange behavior
Koichi Sasada wrote:
> Wait. `each` is not good terminology for our project. Use `iterate` intead.
> ...
If you need to refine iterate you should define OrderedHashIterate
and use it instead.
Refinements are designed not to change ...
shugo (Shugo Maeda)
01:48 AM Feature #11124: [PATCH] lib/*: use monotonic clock for timeouts
"NARUSE, Yui" <naruse@airemix.jp> wrote:
> I don't know an environment which doesn't have CLOCK_MONOTONIC though it may be.

Committed as r50664. Lets hope everything is OK...
normalperson (Eric Wong)
01:40 AM Revision 16aeffef (git): lib/*: use monotonic clock for timeouts
The monotonic clock is preferred as it is guaranteed to be
continuous and not subject to jumps due to adjustments.
* lib/net/resolv.rb (request): use monotonic clock
* lib/net/http.rb (begin_transport, end_transport): ditto
git-svn-id:...
Eric Wong

05/28/2015

10:50 PM Bug #11193 (Rejected): begin-rescue Malfunctions with Threads

Threads execute asynchronously, whereas exceptions are synchronous.
An exception terminated the thread is reported at `Thread#join`.
nobu (Nobuyoshi Nakada)
04:05 PM Bug #11193 (Rejected): begin-rescue Malfunctions with Threads
Explanation resides at the attached test_case.rb.
Thank You for Your time.
martin_vahi (Martin Vahi)
10:38 PM Feature #11195: Add "no_proxy" parameter to Net::HTTP.new
See also https://github.com/jruby/jruby/issues/2983 and https://bugs.ruby-lang.org/issues/11194. headius (Charles Nutter)
10:37 PM Feature #11195 (Closed): Add "no_proxy" parameter to Net::HTTP.new
Net::HTTP.new currently accepts parameters for proxy host, proxy port, proxy username, and proxy password.
It does not accept an argument for non-proxied addresses, and as a result specifying a proxy host will use that proxy unconditi...
headius (Charles Nutter)
10:31 PM Bug #11182: Refinement with alias causes strange behavior
Alias does not redispatch, so this is the result I'd expect. These are some of the edge cases that I don't think we can solve for everyone.
Bottom line is that method table changes are method table changes. The only way we could imple...
headius (Charles Nutter)
09:57 AM Bug #11182: Refinement with alias causes strange behavior
Let's discuss with use cases. I don't have good example, but please assume we want to make new Hash class to support something like HashWithIndifferentAccess.
<scenario>
Okay, we need an extra Hash class doing something special.
`...
ko1 (Koichi Sasada)
09:22 AM Bug #11182: Refinement with alias causes strange behavior
I wrote pictures again for original examples D, C and M.
![(1) Like module include model (on original example)](6.PNG)
![(2) Method selector model (on original example)](7.PNG)
In this case, I think both are acceptable (calling C#...
ko1 (Koichi Sasada)
08:03 AM Bug #11182 (Feedback): Refinement with alias causes strange behavior
Koichi Sasada wrote:
> With model (1), it seems C#foo will be called.
> ...
I agree that both models are possible and attached a patch implementing model (2).
However, even in the selector model, alias need not to be affected by refin...
shugo (Shugo Maeda)
10:24 PM Bug #11194: Refactor env-sourced proxy logic for uri/generic
The net/http changes can be ignored; they remove an earlier incorrect mechanism for honoring the JVM properties. headius (Charles Nutter)
10:23 PM Bug #11194 (Closed): Refactor env-sourced proxy logic for uri/generic
For https://github.com/jruby/jruby/issues/2983 we are modifying uri/generic.rb's find_proxy logic to also check the JVM properties used to configure proxies.
The diff is here: https://gist.github.com/headius/6272d168cf165ddf675f
Th...
headius (Charles Nutter)
07:40 PM Revision c1b35ab1 (git): * 2015-05-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:40 PM Revision 6abf7938 (git): * ext/objspace/objspace.c: add two methods to debug internals.
* ObjectSpace.internal_class_of: return RBASIC_CLASS(obj).
* ObjectSpace.internal_super_of: return RCLASS_SUPER(cls).
* NEWS: add information about both methods.
* test/objspace/test_objspace.rb: add tests for both methods.
git-svn-...
ko1 (Koichi Sasada)
05:57 PM Feature #11191: Add #to_h method to OptionParser
> I think having strings is better than nothing, but I do think symbols would be better.
You want symbols, I'm guessing for kwargs?
zzak (zzak _)
02:58 PM Feature #11191: Add #to_h method to OptionParser
> This is not acceptable as-is though, because of the design that an `OptionParser` instance should not be modified (and may be frozen) at parsing.
Yes good point.
> ...
I noticed that too. This functionality is not exposed though...
injekt (Lee Jarvis)
05:34 PM Feature #11181: Add a line directive to Ruby
I have changed the code to use the **magic comment** feature. To use the directive you now use:
# -*- line: filename 1000 -*-
or
# -*- line: 1000 -*-
Where the filename is optional and the line number is greater than...
gam3 (Allen Morris)
02:25 PM Bug #11192 (Closed): capture group special variable with large index invokes UB
~~~
$ ruby --dump=parsetree -e "$9999999999"
###########################################################
## Do NOT use this node dump for any purpose other than ##
## debug and research. Compatibility is not guaranteed. ##
#######...
cremno (cremno phobia)
08:38 AM Feature #11124: [PATCH] lib/*: use monotonic clock for timeouts
I don't know an environment which doesn't have CLOCK_MONOTONIC though it may be.

2015-05-28 6:13 GMT+09:00 Eric Wong <normalperson@yhbt.net>:
> Eric Wong <normalperson@yhbt.net> wrote:
>> Just checking, which systems do we support ...
naruse (Yui NARUSE)
07:17 AM Revision 4d059bf9 (git): generator.c: allocate structs with wrapper
* ext/json/generator/generator.c (cState_s_allocate): allocate
structs with making new wrapper objects and get rid of potential
memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:17 AM Revision cbf902fc (git): parser.rl: allocate structs with wrapper
* ext/json/parser/parser.rl (cJSON_parser_s_allocate): allocate
structs with making new wrapper objects and get rid of potential
memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:46 AM Revision 828de1a0 (git): win32ole.c: wrapper object before alloc
* ext/win32ole/win32ole.c (Init_win32ole): make wrapper object
before making st_table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:45 AM Revision fbc67dbf (git): tcltklib.c: allocate structs with wrapper
* ext/tk/tcltklib.c (ip_create_slave_core): allocate structs with
making new wrapper objects and get rid of potential memory leak.
* ext/tk/tkutil/tkutil.c (allocate_cbsubst_info): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
nobu (Nobuyoshi Nakada)
06:44 AM Revision d5026011 (git): tkutil.c: check arguments type
* ext/tk/tkutil/tkutil.c (cbsubst_get_subst_key): check arguments
type. implicit conversion is disabled to get rid of method
calls which can modify other arguments.
* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): ditto.
* ext/tk/t...
nobu (Nobuyoshi Nakada)
05:53 AM Revision 0c58f697 (git): tkutil.c: check type
* ext/tk/tkutil/tkutil.c (cbsubst_get_subst_key): ensure the
result type of a method call to be an array before accessing by
RARRAY macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:55 AM Bug #10979: Hash fails to distinguish 0.0 & -0.0
ruby_2_1 r50655 merged revision(s) 49999,50000. usa (Usaku NAKAMURA)
12:54 AM Revision ed737b87 (git): merge revision(s) 49999,50000: [Backport #10979]
* hash.c (rb_any_hash): use same hash values with Float#hash so
that -0.0 and +0.0 will be identical.
[ruby-core:68541] [Bug #10979]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@50655 b2dd03c8-39d4-...
U.Nakamura

05/27/2015

10:56 PM Feature #11191 (Feedback): Add #to_h method to OptionParser
Very interesting idea.
This is not acceptable as-is though, because of the design that an `OptionParser` instance should not be modified (and may be frozen) at parsing.
Currently, you can get a hash by using `parse_in_order` direct...
nobu (Nobuyoshi Nakada)
08:44 PM Feature #11191 (Closed): Add #to_h method to OptionParser
Simply collecting configuration values is a very popular use for OptionParser. Code like this is quite common:
~~~ruby
config = {}
opts = OptionParser.new do |o|
o.on "-h", "--host=HOST", "hostname" do |h|
config[:host] = h
...
injekt (Lee Jarvis)
09:56 PM Revision c8b3f1b4 (git): * 2015-05-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:56 PM Revision 86f7fcee (git): Fix typo in samples for tk ext [skip ci]
* ext/tk/sample/figmemo_sample.rb (open_file),
ext/tk/sample/tktextio.rb (TkTextIO): fix typo in messages.
[Fix GH-916]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:38 PM Feature #7148: Improved Tempfile w/o DelegateClass
"Glass_saga (Masaki Matsushita)" <glass.saga@gmail.com> wrote:
> Feature #7148: Improved Tempfile w/o DelegateClass
> https://bugs.ruby-lang.org/issues/7148

I would still like this for 2.3.0, just hit a snag with `IO.copy_strea...
normalperson (Eric Wong)
09:18 PM Feature #11124: [PATCH] lib/*: use monotonic clock for timeouts
Eric Wong <normalperson@yhbt.net> wrote:
> Just checking, which systems do we support do not have CLOCK_MONOTONIC
> (emulated or otherwise).
>
> We already emulate it with mach_absolute_time() and times(), so
> I'd like to remove ...
normalperson (Eric Wong)
08:25 PM Bug #11173: inter class/module alias causes "no superclass method"
とりあえず、2.3dev 用のパッチを書いてみました。
クラス/モジュールをまたぐ alias が行なわれたときには、
メソッドエントリ ALIAS 型のメソッドを登録する、という実装にしています。
ALIAS 型は、owner class/module を把握しておき(me->def->body.alias.original_me->klass)、
メソッドディスパッチ時に継承空間から辿って owner を探し、それを defined_class として処...
ko1 (Koichi Sasada)
08:16 PM Feature #11190 (Closed): [PATCH] openssl: use io/nonblock instead of fcntl
* ext/openssl/lib/openssl/ssl.rb: use io/nonblock instead of fcntl
IO#nonblock= is easier-to-read, potentially more portable, and
avoids redundantly setting flags.
I'll commit in a few days unless there's objections.
normalperson (Eric Wong)
08:03 PM Bug #11189: alias prepended module
今、こんなコードだと、
* C1 (m_tbl 空)
* T_ICLASS(m_tbl 空) -> P
* T_ICLASS(C1 の m_tbl) -> C1
* C0
* Object...
という継承関係(下が親)が作られるけど、alias のために C1 に m_tbl 作らないといかんね、って話な気がします。が、なんか以前この話をしていたことがあったような。結局 C1 にはテーブル作れないんでしたっけ。
メソッド定義については、
...
ko1 (Koichi Sasada)
07:58 PM Bug #11189 (Closed): alias prepended module
```ruby
module P
def m1
p :P_m1
super
end
def m2
p :P_m2
super
end
end
class C0
def m1
p :C0_m1
end
end
class C1 < C0
def m1
p :C1_m1
super
end
prepend P
alias m...
ko1 (Koichi Sasada)
06:39 PM Bug #11188 (Closed): Method#inspect for chaining alias methods
The following script prints strange results (at least for me).
```ruby
class C0
def foo
end
end
class C1 < C0
alias foo1 foo
alias foo2 foo1
alias foo3 foo2
end
p C1.new.method(:foo)
p C1.new.method(:foo1)
p ...
ko1 (Koichi Sasada)
05:12 PM Bug #11182: Refinement with alias causes strange behavior
I will offer a quick opinion: refinements are an overlay on the method table, and therefore modifications to the method table should not reflect refinements. Put differently: the alias bar foo should call C#foo always, because there it i... headius (Charles Nutter)
05:36 AM Bug #11182: Refinement with alias causes strange behavior
My last explanation was wrong.
I wrote pictures again.
![(3)](3.PNG)
![(4)](4.PNG)
With model (1), it seems C#foo will be called.
WIth model (2), it seems M::C#foo will be called.
How about it?
ko1 (Koichi Sasada)
05:33 AM Bug #11182: Refinement with alias causes strange behavior
Koichi Sasada wrote:
> I believe the implementation uses (2) model.
> ...
M::C#bar is not defined in Example #5, so the orignal C#bar, which is an alias of C#foo, should be called, shoudn't it?
shugo (Shugo Maeda)
05:15 AM Bug #11182: Refinement with alias causes strange behavior
I can consider two models (1) and (2) the following pictures show.
![(1)](1.png)
![(2)](2.png)
I believe the implementation uses (2) model.
For (1), calling M::C#bar is reasonable.
For (2), calling M::C#bar is reasonable.
...
ko1 (Koichi Sasada)
05:05 AM Bug #11182 (Open): Refinement with alias causes strange behavior
shugo (Shugo Maeda)
02:49 AM Bug #11182: Refinement with alias causes strange behavior
Koichi Sasada wrote:
> However, I think it is also reasonable to call refined C because people can assume C#bar should be same as C#foo.
If so, what should be printed by the last C.new.bar in the following example?
```ruby
class ...
shugo (Shugo Maeda)
01:36 PM Revision c83883cf (git): tcltklib.c: fix memory leak
* ext/tk/tcltklib.c (ip_init): reject already initialized
interpreter to fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:56 AM Revision 19341b86 (git): test_bigdecimal.rb: adjust
* test/bigdecimal/test_bigdecimal.rb (assert_no_memory_leak): fix
GC scope and adjust limits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:33 AM Bug #11187 (Rejected): Crash Report with clean install of Ruby & Metasploit
usa (Usaku NAKAMURA)
08:26 AM Bug #11187: Crash Report with clean install of Ruby & Metasploit
that ticket will get rejected because you got a version missmatch between:
/usr/local/Cellar/ruby21/2.1.6
/Users/tcs/.rvm/gems/ruby-2.0.0-p353@msf
2.1.6 != 2.0.0
Hanmac (Hans Mackowiak)
08:03 AM Bug #11187 (Rejected): Crash Report with clean install of Ruby & Metasploit
Just installed latest versions of Ruby and Metasploit on Mac OSx Yosemite. Install succeeds and msfconsole runs, but any attempt at running commands in metasploit fails with Seg Fault in Ruby. Full set fault file included. jag-ruby (John G)
08:02 AM Revision bdf07741 (git): bigdecimal.c: wrapper object before alloc
* ext/bigdecimal/bigdecimal.c (VpNewRbClass): make wrapper object
before result structs allocation and manage refcount for each
elements to get rid of potential memory leak.
* ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): dit...
nobu (Nobuyoshi Nakada)
08:02 AM Revision 2df5bb9a (git): envutil.rb: EnvUtil.gc_stress_to_class
* test/lib/envutil.rb (EnvUtil.gc_stress_to_class): check if
GC.stress_to_class is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:55 AM Revision b38b920a (git): gc.c: mark stress_to_class
* gc.c (gc_mark_roots): stress_to_class is also a GC root.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:03 AM Bug #11186 (Closed): Can't refine aliases in subclasses
In the following program, D.new.bar returns :original, but should return :refined.
```
class C
def foo
:original
end
end
class D < C
alias bar foo
end
module M
refine D do
def bar
:refined
en...
shugo (Shugo Maeda)
02:55 AM Bug #11184: Tests fail when configured with different program prefix and suffix
Pushing to upstream https://github.com/rubygems/rubygems/pull/1258 sgibbs (Shane Gibbs)
02:08 AM Revision 7615c70d (git): gc.c: stress_to_class
* gc.c (newobj_of): debug feature to fail allocation of particular
classes.
* gc.c (rb_gcdebug_add_stress_to_class): add classes to the list.
* gc.c (rb_gcdebug_remove_stress_to_class): remove classes from
the list.
git-svn-id: sv...
nobu (Nobuyoshi Nakada)
01:09 AM Bug #11185 (Closed): [PATCH] openssl: use RB_GC_GUARD instead of volatile
Applied in changeset r50646.
----------
openssl: use RB_GC_GUARD instead of volatile
From doc/extension.rdoc:
>
> ...
* ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode,
ossl_asn1_decode_all): use RB_GC_GUARD instead of ...
Anonymous
12:50 AM Bug #11185 (Closed): [PATCH] openssl: use RB_GC_GUARD instead of volatile
From doc/extension.rdoc:
>
> ...
normalperson (Eric Wong)
01:09 AM Revision 9fbf4887 (git): openssl: use RB_GC_GUARD instead of volatile
From doc/extension.rdoc:
>
> ...
* ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode,
ossl_asn1_decode_all): use RB_GC_GUARD instead of volatile
[ruby-core:69371] [Bug #11185]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
Eric Wong
12:43 AM Revision 46ad38a4 (git): drb: avoid redundant fcntl call
Sockets are close-on-exec by default since Ruby 2.0, so it
is redundant to set it again.
* lib/drb/drb.rb (set_sockopt): remove redundant fcntl call
* lib/drb/unix.rb (set_sockopt): ditto
[ruby-core:69128] [Feature #11137]
git-svn-id...
Eric Wong
12:38 AM Revision a98f72f2 (git): * 2015-05-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:38 AM Revision bea4ccb2 (git): ossl_asn1.c: [DOC] Fix typo [skip ci]
* ext/openssl/ossl_asn1.c (Init_ossl_asn1): [DOC] Fix typo
"recieved" to "received". [Fix GH-913]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/26/2015

09:30 PM Feature #11181: Add a line directive to Ruby
Reason why 'eval "string", b, file, line' can't be used in place of line directive.
Use case: Input file looks like
file: alice
<alice>=
puts "'#{__FILE__} #{__LINE__}'" # alice line 2
<bob>
puts "...
gam3 (Allen Morris)
07:56 AM Feature #11181: Add a line directive to Ruby
using 'line' as the key word causes the 'test-rubyspec' tests to fail as they contain:
# line 3
in the __\_\_LINE__\_\_ test.
Using 'pline' for the moment.
gam3 (Allen Morris)
07:05 AM Feature #11181 (Assigned): Add a line directive to Ruby
Add a __line directive__ to Ruby
```
#line {nn} ["filename"]
```
This is done by creating a array of filenames and using the upper bits of the line_number to determine the current filename. The original filename is in position...
gam3 (Allen Morris)
09:25 PM Feature #11145: [PATCH] socket: avoid redundant fcntl with MSG_DONTWAIT
Better patch to support sending, too. I'm limiting this to Linux-only since
it seems newer FreeBSD has support for MSG_DONTWAIT, but I'm not sure it is
complete.
I'll commit in a few days
normalperson (Eric Wong)
07:08 PM Bug #11182: Refinement with alias causes strange behavior
Simplify example:
```ruby
class C
def foo
p "C"
end
end
module M
refine C do
def foo
p "Refiend C"
end
end
end
class C
alias bar foo
end
C.new.foo
C.new.bar
using M
C.new.foo
C.new...
ko1 (Koichi Sasada)
06:59 PM Bug #11182: Refinement with alias causes strange behavior
> By D.new.bar, not foo but bar is searched in refinements, so M#C#foo cannot be found.
I've fixed alias to use C#foo.
Why that? I assumed two scenarios.
(1) Invoke C#foo
* D#bar -> find a method entry (alias to C#foo)
* Invok...
ko1 (Koichi Sasada)
01:22 PM Bug #11182: Refinement with alias causes strange behavior
Koichi Sasada wrote:
> Maybe (1) C#foo or (2) M#C#foo should be called. But I'm not sure which is suitable.
By D.new.bar, not foo but bar is searched in refinements, so M#C#foo cannot be found.
I've fixed alias to use C#foo.
shugo (Shugo Maeda)
01:16 PM Bug #11182 (Closed): Refinement with alias causes strange behavior
Applied in changeset r50642.
----------
* vm_method.c (rb_alias): should resolve refined methods.
[ruby-core:69360] [Bug #11182]
shugo (Shugo Maeda)
12:25 PM Bug #11182 (Assigned): Refinement with alias causes strange behavior
shugo (Shugo Maeda)
08:20 AM Bug #11182 (Closed): Refinement with alias causes strange behavior
The following script causes strange behavior.
```ruby
class C
def foo
p "C"
end
end
module M
refine C do
def foo
p "Refiend C"
end
end
end
class D < C
alias bar foo
end
using M
D.new....
ko1 (Koichi Sasada)
06:58 PM Feature #11124: [PATCH] lib/*: use monotonic clock for timeouts
Just checking, which systems do we support do not have CLOCK_MONOTONIC
(emulated or otherwise).

We already emulate it with mach_absolute_time() and times(), so
I'd like to remove the defined? checks from stdlib if possible.

Than...
normalperson (Eric Wong)
04:30 PM Bug #11184 (Closed): Tests fail when configured with different program prefix and suffix
When the configuration options --program-prefix and --program-suffix are used, the shebang line is of the format Gem.default_exec_format.
Proposed fix: https://github.com/ruby/ruby/pull/912
I was not sure if this was considered a t...
sgibbs (Shane Gibbs)
01:16 PM Revision 834d2bbe (git): * vm_method.c (rb_alias): should resolve refined methods.
[ruby-core:69360] [Bug #11182]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:38 PM Revision 37aec839 (git): * 2015-05-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:37 PM Revision d5a93ed1 (git): fix condition
* include/ruby/defines.h (RUBY_ATTR_ALLOC_SIZE): fix condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
09:37 AM Bug #9790: Zlib::GzipReader only decompressed the first of concatenated files
Hey guys, is there any updates?
I have created a small gem yesterday to make it able to read multiple files https://github.com/exAspArk/multiple_files_gzip_reader
~~~ruby
> MultipleFilesGzipReader.open("3.txt.gz") do |gz|
> ...
#...
exAspArk (Evgeny Li)
09:33 AM Bug #11180: Missing lines with Zlib::GzipReader
Looks like the issue might be similar to https://bugs.ruby-lang.org/issues/9790. exAspArk (Evgeny Li)
09:15 AM Bug #11173: inter class/module alias causes "no superclass method"
「この問題は trivial なので、2.3 では直すけど、2.2 以前は直さない」、ってのは許されるものでしょうか。
というのも、今メソッドディスパッチの部分を大きく書き直しており、別々のパッチを書かないといけなさそうなんですよね。
ko1 (Koichi Sasada)
08:32 AM Bug #11183: Cumulative error on Complex::I ** 100000000000000000000000000000000
めんどくさいと言いつつ、手元には、添付のような「誤差を蓄積しない計算」を試してみたパッチがありますが(コンセプトを確認するためのもので実用ではない)、次は「45°とかは?」という話になることは明らかなのでびみょーです。
より賢い方法が求められていると思われます。
usa (Usaku NAKAMURA)
08:28 AM Bug #11183 (Closed): Cumulative error on Complex::I ** 100000000000000000000000000000000
```
p Complex::I ** 100000000000000000000000000000000
```
が、32bit 環境だと、
```
ruby 2.3.0dev (2015-05-21 trunk 50502) [i386-mswin32_110]
t.rb:1: warning: in a**b, b may be too big
(-0.08483712490438944+1.5651333429325577e+32i)
`...
ko1 (Koichi Sasada)
07:45 AM Bug #10644 (Rejected): WEBrick TimeoutHandler race condition
Hello,
The definition of WEBrick::Utils::TimeoutHandler#initialize in your gist is too old and the issues was already fixed at r35258.
See https://github.com/ruby/ruby/blob/v2_1_5/lib/webrick/utils.rb#L168 and https://github.com/ru...
nagachika (Tomoyuki Chikanaga)
06:29 AM Feature #11164: Garbage collector in Ruby 2.2 provokes unexpected CoW
Here is a discussion about the source of the problem : http://stackoverflow.com/questions/30353272/garbage-collector-in-ruby-2-2-provokes-unexpected-cow tkalmus (Thomas Kalmus)
 

Also available in: Atom