Project

General

Profile

Activity

From 02/06/2013 to 02/12/2013

02/12/2013

10:38 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
+1 for removing autoload. It not only has troubles with thread safety, which I believe is fixable (although I confess I haven't thought much about it).
There is a more serious issue in my opinion that is unfixable with current specs.
...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:37 PM Feature #7835: autoload will be dead
Thanks, Yusuke! I tried to search it on Redmine but I couldn't easily find it nor I could filter for issues created by matz, for instance... rosenfeld (Rodrigo Rosenfeld Rosas)
10:32 PM Feature #7835 (Rejected): autoload will be dead
Matz created #5653 by himself. Please reply into that ticket :-)
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
10:26 PM Feature #7835: autoload will be dead
+1 for removing autoload. It not only has troubles with thread safety, which I believe is fixable (although I confess I haven't thought much about it).
There is a more serious issue in my opinion that is unfixable with current specs.
...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:26 PM Feature #7835 (Rejected): autoload will be dead
A while ago matz declared his intention to remove the autoload feature from the Ruby language. It was sent to the ruby-core mailing list but no ticket has been created for it.
I'm creating the ticket now so that we could discuss the i...
rosenfeld (Rodrigo Rosenfeld Rosas)
09:06 PM Revision 7266d24a (git): * lib/rubygems.rb: Return BINARY strings from Gem.gzip and Gem.gunzip.
Fixes intermittent test failures. RubyGems issue #450 by Jeremey
Kemper.
* test/rubygems/test_gem.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:51 PM Revision d1691db9 (git): * 2013-02-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:51 PM Revision d7923c82 (git): * ext/socket/extconf.rb: test functions just after struct members.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:48 PM Bug #7833 (Closed): DRb has problems with BasicObject
I realized some problems with DRb and BasicObject
1) I cannot create front object of BasicObject class because DRb tries to call private_methods class
2) Call to DRb can't return instance of BasicObject class, instead it hangs.
#...
prijutme4ty (Ilya Vorontsov)
05:58 PM Bug #7829: Rounding error in Ruby Time
akr (Akira Tanaka) wrote:
> 2. Time.strftime("%L") doesn't round, but floor.
> ...
Understood, except for your sentence "rounding is not appropriate here". The example clearly shows the opposite! Just surprised that floor is used inste...
loirotte (Philippe Dosch)
05:51 PM Bug #7829: Rounding error in Ruby Time
drbrain (Eric Hodel) wrote:
> Seems like %L uses floor, not rounding should be documented so I'll switch this to a DOC ticket.
Improve the documentation makes sense, but is there really a good reason to floor this value instead of ro...
loirotte (Philippe Dosch)
10:48 AM Bug #7829: Rounding error in Ruby Time
Seems like %L uses floor, not rounding should be documented so I'll switch this to a DOC ticket. drbrain (Eric Hodel)
09:53 AM Bug #7829: Rounding error in Ruby Time
2013/2/12 loirotte (Philippe Dosch) <loirotte@gmail.com>:

> Bug #7829: Rounding error in Ruby Time
> https://bugs.ruby-lang.org/issues/7829

> Even if I know the precision errors related to the implementation of IEEE 754 floa...
akr (Akira Tanaka)
05:52 AM Bug #7829 (Closed): Rounding error in Ruby Time
Even if I know the precision errors related to the implementation of IEEE 754 floating values, I'm very surprised of:
irb(main):001:0> Time.utc(1970,1,1,0,0,12.860).strftime("%H:%M:%S,%L")
=> "00:00:12,859"
The fact is that I obta...
loirotte (Philippe Dosch)
12:18 PM Bug #7828 (Closed): invalid glibcver in test_m17n_comb.rb:test_str_crypt fails 2.17 system
This issue was solved with changeset r39209.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Get libc's path by ldd [Bug #7828] [ruby-core:52129]
naruse (Yui NARUSE)
04:31 AM Bug #7828 (Closed): invalid glibcver in test_m17n_comb.rb:test_str_crypt fails 2.17 system
On my Arch 3.7.6 32bit system with a 2.17 libc, the following line in `test_m17n_comb.rb:test_str_crypt` causes the test to fail
glibcver = `#{RbConfig::CONFIG["libdir"]}/libc.so.6`[/\AGNU C Library.*version ([0-9.]+)/, 1].split('.'...
jonforums (Jon Forums)
11:19 AM Bug #5811 (Closed): Ruby Process Deadlocks With Fork on Mac OS X Lion
OK. then I will close this ticket.
Please reopen this if anyone hit the same issue on 2.0 or trunk.
kosaki (Motohiro KOSAKI)
09:50 AM Bug #7827 (Rejected): Allow users to yield a block in string format
Adding it as a standard feature requires Ruby to hold source information, that leads to memory consumption.
You might be interested in ruby2ruby for the purpose.
Matz.
matz (Yukihiro Matsumoto)
02:47 AM Bug #7827 (Rejected): Allow users to yield a block in string format
Hi.
Not long ago I realized that you can use "invalid" syntax inside a ruby block.
For instance:
def foo; end
foo() { ABC } # ABC is not known.
This works, until you yield that.
And if you yield it, that would fail, unl...
shevegen (Robert A. Heiler)
09:23 AM Feature #7792: Make symbols and strings the same thing
On Feb 8, 2013, at 4:50 PM, Eric Hodel wrote:

> On Feb 7, 2013, at 17:37, David MacMahon <davidm@astro.berkeley.edu> wrote:
>> Just to play Devil's advocate, could that not be separated into two different hashes: one for config opti...
david_macmahon (David MacMahon)
03:22 AM Revision caa0e40f (git): Suppress warnings: setting Encoding.default_external
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:18 AM Revision edacc7d2 (git): Get libc's path by ldd [Bug #7828] [ruby-core:52129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:05 AM Revision 062d2ee6 (git): * ext/json: merge JSON 1.7.7.
This includes security fix. [CVE-2013-0269]
https://github.com/flori/json/commit/d0a62f3ced7560daba2ad546d83f0479a5ae2cf2
https://groups.google.com/d/topic/rubyonrails-security/4_YvCpLzL58/discussion
git-svn-id: svn+ssh://ci.ruby-la...
naruse (Yui NARUSE)

02/11/2013

10:23 PM Bug #7823: sitelibへのsoのコピー (2.0.0)
artonです。

trunk(r39202)で試してみました。
以下のように、i386-msvcr100がsitearchdirとなり、(当然ですが一応試した)
setup.rbでインストールしたsoがrequireできることを確認しました。

どうもありがとうございます。

----
2.0.0/i386-mswin32_100/2013-02-11

RbConfig::CONFIG
sitearchdir=/li...
arton (Akio Tajima)
10:17 PM Bug #7823: sitelibへのsoのコピー (2.0.0)
arton さん、確認ありがとうございます。
なかださん、ruby_2_0_0 にバックポートしてくださいますでしょうか。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:23 PM Bug #7823: sitelibへのsoのコピー (2.0.0)
arton さん、
r39201 と r39202 で望みの挙動になっているか一応確認してもらえませんでしょうか。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:20 PM Bug #7823 (Assigned): sitelibへのsoのコピー (2.0.0)
nobu (Nobuyoshi Nakada)
01:15 PM Bug #7823 (Closed): sitelibへのsoのコピー (2.0.0)
This issue was solved with changeset r39201.
Akio, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Makefile.sub: sitearch
* win32/Makefile.sub (config.status): sit...
nobu (Nobuyoshi Nakada)
07:53 PM Bug #7807: [PATCH] Remove duplicated load paths when empty version string is configured
Note that in 1.8.7 days, there was used also different, more generic approach [1] to remove duplicated load paths. However I don't think it is better solution.
[1] http://pkgs.fedoraproject.org/cgit/ruby.git/tree/ruby-1.8.7-p352-pat...
vo.x (Vit Ondruch)
08:07 AM Bug #7807 (Open): [PATCH] Remove duplicated load paths when empty version string is configured
Could you please explain? Why r39171 instead of applying my patch? Why there should be version in the path? Actually it is not Ruby version but Ruby ABI version, so it will not help you to install Ruby 1.9.1, 1.9.2 and 1.9.3 side by side... vo.x (Vit Ondruch)
04:40 PM Revision f1194eb9 (git): * 2013-02-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:40 PM Revision 17df7363 (git): add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:26 PM Revision cbacc5d5 (git): * configure.in: enable rb_cv_page_size_log test for MirOS BSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:07 AM Revision c586d820 (git): * configure.in: use -pthread on mirbsd*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:43 AM Bug #7781: Ruby fails make test on Cygwin for test_io.rb.
I found a solution to the stack error: http://stackoverflow.com/a/14790573/148844
starrychloe (Chloe S)
07:08 AM Revision a378fa0d (git): * configure.in: add SOLIBS and LIBRUBY_SO definition for mirbsd*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
06:53 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
"mame (Yusuke Endoh)" <mame@tsg.ne.jp> wrote:
> * maintained
> * CentOS5 (Eric Wong)

Sorry I can't guarantee much support for CentOS5 anymore.
I'm mainly using Debian 6/7 and CentOS6 nowadays.
Fortunately, the platforms a...
normalperson (Eric Wong)
06:23 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
Dne 10.2.2013 21:50, Luis Lavena napsal(a):
> On Sun, Feb 10, 2013 at 4:19 PM, Vít Ondruch <v.ondruch@gmail.com> wrote:
>> Dne 10.2.2013 13:01, mame (Yusuke Endoh) napsal(a):
>>
>> Speaking of Fedora, we would be happy to have R...
Anonymous
05:53 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
On Sun, Feb 10, 2013 at 4:19 PM, Vít Ondruch <v.ondruch@gmail.com> wrote:
> Dne 10.2.2013 13:01, mame (Yusuke Endoh) napsal(a):
>
> Speaking of Fedora, we would be happy to have Ruby SIG [1] listed on Ruby's
> supported platform lis...
luislavena (Luis Lavena)
04:23 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
Dne 10.2.2013 13:01, mame (Yusuke Endoh) napsal(a):
> > * 3rd Party: best-effort support by members of the ruby community (e.g. - https://fedoraproject.org/wiki/Ruby_SIG)
> >
> > Note that the 3rd Party tier is an opportun...
Anonymous
03:09 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
> Actually:
> ...
Luis, are you saying the listing should look like this?
* Windows 7 32/64bit using mingw/mingw-w64 toolchain (nobu, shirosaki, lavena)

Is the idea to list
(a) a single committer who's ultimately responsi...
jonforums (Jon Forums)
01:42 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
Actually:
* mingw (nobu)
Is more nobu, h.shirosaki and myself (luislavena) who care about Ruby be stable and compatible with MinGW/mingw-w64 projects.
luislavena (Luis Lavena)
12:21 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
> I've created a draft page of the supported list:
> ...
Suggested mods given ci.rubyinstaller.org currently has only win7 build slave(s):
Tier 1
- * mingw (nobu)
- * Windows 7/8 32/64bit (nobu)
+ * Windows 7 32/64bit using ...
jonforums (Jon Forums)
04:50 AM Bug #7824 (Closed): [PATCH] Fix FileUtils.rmdir :parents option
This patch also applies cleanly against ruby_1_9_3 and ruby_1_9_2. iosctr (Brian Burns)
04:17 AM Revision 0d467210 (git): configure.in: sitearch
* configure.in (rubysitearchprefix): sitearchdir and vendorarchdir
should use sitearch, not arch. [ruby-dev:46964] [Bug #7823]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:15 AM Revision 507477af (git): Makefile.sub: sitearch
* win32/Makefile.sub (config.status): site and vendor directories
should use sitearch, not arch. [ruby-dev:46964] [Bug #7823]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:33 AM Revision f882c4c5 (git): * configure.in: move OS specific header/function knowledge before
automatic header tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:30 AM Bug #7817: (Unable to compile Ruby 2.0.0-rc2 on OSX (clang version 2.1)
I believe I did compile rc1 successfully but I can't reproduce since I have updated clang, chances are it probably doesn't compile properly, though.
I understand using an older version of clang would be an issue and that's fine, but w...
injekt (Lee Jarvis)
02:06 AM Revision 798e32a1 (git): * 2013-02-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:06 AM Revision 0a8fc937 (git): * configure.in: move the test for -march=i486 just after
RUBY_UNIVERSAL_ARCH/RUBY_DEFAULT_ARCH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

02/10/2013

10:35 PM Bug #7805 (Feedback): ruby 2.0rc2 core on solaris
ngoto (Naohisa Goto)
10:34 PM Bug #7805: ruby 2.0rc2 core on solaris
I couldn't reproduce it on SPARC Solaris10.
Please show config.log, .ext/include/i386-solaris2.10/ruby/config.h, and all messages shown in the screen.
ngoto (Naohisa Goto)
10:34 PM Feature #7816: Don't invalidate method caches when defining a new method on a class without subclasses
charliesome (Charlie Somerville) wrote:
> I think it should stay in include/ruby/ruby.h where all the other
> ...
Rather I think other RMODULE_* flags also should go to internal.h.
> > * Class#has_subclass? is not only useless but h...
nobu (Nobuyoshi Nakada)
09:58 PM Feature #7816: Don't invalidate method caches when defining a new method on a class without subclasses
Thanks for the feedback nobu.
> * RCLASS_INHERITED flag should go to internal.h.
I think it should stay in include/ruby/ruby.h where all the other flags are defined. This way if someone adds a new class flag, they do not accidental...
Anonymous
09:34 PM Feature #7816: Don't invalidate method caches when defining a new method on a class without subclasses
=begin
Nice.
My thoughts are:
* RCLASS_INHERITED flag should go to internal.h.
* Class#has_subclass? is not only useless but harmful, it mimics users
when subclasses are removed.
* RubyVM.state_version seems useless also, and should ...
nobu (Nobuyoshi Nakada)
10:33 AM Feature #7816: Don't invalidate method caches when defining a new method on a class without subclasses
marcandre (Marc-Andre Lafortune) wrote:
> I'd split the new API from the patch; personally I'm not convinced of the usefulness of Class#has_subclass? or of RubyVM.state_version
I'm not particularly attached to Class#has_subclass? - ...
Anonymous
10:19 AM Feature #7816: Don't invalidate method caches when defining a new method on a class without subclasses
marcandre (Marc-Andre Lafortune) wrote:
> It would have been great to get this in 2.0.0
Do not kamikaze!
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:46 AM Feature #7816: Don't invalidate method caches when defining a new method on a class without subclasses
Speed boosts sounds awesome, especially the 15% rails bootup time, since the example is a bit contrived.
It would have been great to get this in 2.0.0
I'd split the new API from the patch; personally I'm not convinced of the useful...
marcandre (Marc-Andre Lafortune)
02:53 AM Feature #7816: Don't invalidate method caches when defining a new method on a class without subclasses
(2013/02/10 2:13), charliesome (Charlie Somerville) wrote:
> In my testing, a fresh Rails app boots about 15% faster (~1.7 sec down to ~1.4 sec).
>
> This controller action can do ~440 requests per second with my patch, compared ...
ko1 (Koichi Sasada)
02:13 AM Feature #7816 (Closed): Don't invalidate method caches when defining a new method on a class without subclasses
=begin
Attached is a patch that avoids incrementing the VM state version when defining a method and these conditions are true:
* The method is not a redefinition of an existing method in the same class or any superclass
* The class ...
Anonymous
09:57 PM Bug #7823 (Assigned): sitelibへのsoのコピー (2.0.0)
そこはsitearchでないといけないので、明らかにバグです。 nobu (Nobuyoshi Nakada)
09:55 PM Bug #7823 (Closed): sitelibへのsoのコピー (2.0.0)
artonです。

ruby-2.0.0-rc2を試していて気付いたのですが、setup.rbで拡張ライブラリをコ
ピーするとrequireに失敗します。
それが2.0.0で導入される非互換によるもの(=setup.rbを直すべきもの)か、バ
グなのか判断がつかないので質問です。
現象)
setup.rbは、$sitearchdirにコピーしますが、rbconfig.rbを読むとsitearchdirは、
$(sitelibdir)/$...
arton (Akio Tajima)
09:17 PM Bug #7819 (Closed): configure script doesn't recognize valid options
You're right, it's just a warning.
Or, just use only --with-opt-dir=/usr/local instead.
nobu (Nobuyoshi Nakada)
06:25 AM Bug #7819 (Closed): configure script doesn't recognize valid options
When configuring the latest version of Ruby, the configure script issues warnings about "unrecognized" but valid (?) build options.
To reproduce:
1. Untar the 1.9.3-p385.tar.gz
2. Give the following options to the configure script...
telemachus (Peter Aronoff)
09:01 PM Bug #7820: Let's decide Ruby 2.0 supported platform list
Thank you for your comments.
I've created a draft page of the supported list:
https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/20SupportedPlatforms
kosaki (Motohiro KOSAKI) wrote:
> > * Tier 1: the platform has a public C...
mame (Yusuke Endoh)
06:59 PM Bug #7820: Let's decide Ruby 2.0 supported platform list
On Sat, Feb 9, 2013 at 8:11 PM, jonforums (Jon Forums)
<redmine@ruby-lang.org> wrote:
>
> Issue #7820 has been updated by jonforums (Jon Forums).
>
>
> A great idea to simplify and clarify!
>
> Perhaps listing support tiers inst...
kosaki (Motohiro KOSAKI)
10:11 AM Bug #7820: Let's decide Ruby 2.0 supported platform list
A great idea to simplify and clarify!
Perhaps listing support tiers instead of "well-cared" and "maintained"?
* Tier 1: the platform has a public CI (normally green) and is maintained by a ruby-core committer
* Tier 2: the platform...
jonforums (Jon Forums)
09:06 AM Bug #7820 (Closed): Let's decide Ruby 2.0 supported platform list
I'm sorry I didn't talk about Ruby 2.0 supported platforms earlier.
At first, I think that the primary purpose of "the supported platform list" is to help users see how much Ruby is tested in their platforms.
For this purpose, the ...
mame (Yusuke Endoh)
06:53 PM Bug #7817: (Unable to compile Ruby 2.0.0-rc2 on OSX (clang version 2.1)
> clang -v returns
>
> Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
> Target: x86_64-apple-darwin12.2.0
> Thread model: posix

I recommend to use latest compiler. Following one works fine at leas...
kosaki (Motohiro KOSAKI)
09:13 AM Bug #7817 (Feedback): (Unable to compile Ruby 2.0.0-rc2 on OSX (clang version 2.1)
Thank you for your report. Were you able to compile rc1 successfully?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:54 AM Bug #7817 (Rejected): (Unable to compile Ruby 2.0.0-rc2 on OSX (clang version 2.1)
clang -v returns
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
Here's the make output:
https://gist.github.com/injekt/4e26a6dee2ce42fc463d
Th...
injekt (Lee Jarvis)
04:32 PM Bug #7815: Backport: Warning about TracePoint events to 2.0.0
Looks good to me. Go ahead. Thank you!
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:43 PM Bug #7815 (Assigned): Backport: Warning about TracePoint events to 2.0.0
It is as Koichi-san says, I don't mean to deprecate Kernel#set_trace_func. Only to advise users to try TracePoint for new programs, since #set_trace_func is the old API.
Anyways, here's the patch for only the warning, I'm not sure how...
zzak (zzak _)
01:53 PM Bug #7815: Backport: Warning about TracePoint events to 2.0.0
(2013/02/10 10:19), mame (Yusuke Endoh) wrote:
>> > If you'd like I can supply a patch only for warning on TracePoint events, it's up to you.
> I prefer this, unless matz officially deprecated only Kernel#set_trace_func. Thanks!
...
ko1 (Koichi Sasada)
10:18 AM Bug #7815: Backport: Warning about TracePoint events to 2.0.0
zzak (Zachary Scott) wrote:
> In my opinion Kernel#set_trace_func is obsolete, because it's an older and outdated API for TracePoint. We should recommend users try TracePoint instead, but it's not an officially deprecated feature. Ok?
...
mame (Yusuke Endoh)
09:48 AM Bug #7815: Backport: Warning about TracePoint events to 2.0.0
Thank you for the review Yusuke-san!
In my opinion Kernel#set_trace_func is obsolete, because it's an older and outdated API for TracePoint. We should recommend users try TracePoint instead, but it's not an officially deprecated featu...
zzak (zzak _)
09:24 AM Bug #7815: Backport: Warning about TracePoint events to 2.0.0
Almost okay (because of only rdoc fix) but the line may matter:
> + * *Note:* this method is obsolete, please use TracePoint instead.
Suddenly making it obsolete is not a good idea after rc2, I think.
Or, is it really discussed a...
mame (Yusuke Endoh)
01:05 AM Bug #7815: Backport: Warning about TracePoint events to 2.0.0
mame-san:
This additional document is important to avoid future compatibility issue.
>+ * *Note* do not depend on current event set, as this list is subject to
> ...
Please see a problem of `set_trace_func'
http://www.atdot.n...
ko1 (Koichi Sasada)
01:01 AM Bug #7815 (Closed): Backport: Warning about TracePoint events to 2.0.0
Can we please backport r39168 to 2_0_0 branch?
https://github.com/ruby/ruby/commit/810516e
and
https://github.com/ruby/ruby/commit/810516e.patch
zzak (zzak _)
02:43 PM Revision c799b112 (git): * ext/socket/extconf.rb: test structure members just after types test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:36 PM Bug #7822 (Rejected): Dir.mkdir can't handle long Windows Unicode paths (\\?\UNC\)
Code:
Dir.mkdir "//?/C:/" + "test" * 100
What I expected:
Ruby will create directory //?/C:/testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest...
shyxormz (Patrick Pokatilo)
01:30 PM Bug #7821 (Rejected): FileUtils.mkdir_p fails on Windows Unicode paths (\\?\UNC\) if dir already exists
Code:
FileUtils.mkdir_p "//?/C:/test"
FileUtils.mkdir_p "//?/C:/test"
What I expected:
Ruby will create directory C:\test on the first call and nothing on the second
What happened on the second call:
Errno::EACCESS: Per...
shyxormz (Patrick Pokatilo)
11:58 AM Revision 5b057eef (git): * ext/socket/extconf.rb: test types just after headers test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:21 AM Bug #7818 (Closed): Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
Alright, closed. Thanks Mark, for sorting this out! MartinBosslet (Martin Bosslet)
09:06 AM Bug #7818: Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
@Martin, you can close this. I think the issue is that the openssl 1.0.1d bundled with rbenv couldn't find it's cacert.pem.
agileanimal (Mark Madsen)
07:33 AM Bug #7818: Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
I am building ruby with 1.0.1d on something that is not a Mac right now and will report back the results. agileanimal (Mark Madsen)
06:48 AM Bug #7818: Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
I was seeing it fail when it tries to validate without a cacert.pem for openssl - but in this case shouldn't it fall back to the pem that comes with ruby gems? agileanimal (Mark Madsen)
05:56 AM Bug #7818: Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
This is working for me:
2.0.0-rc2 ~ ruby -ropenssl -e 'puts RUBY_DESCRIPTION, OpenSSL::OPENSSL_VERSION'
ruby 2.0.0dev (2013-02-08 trunk 39161) [x86_64-darwin12.2.0]
OpenSSL 1.0.1d 5 Feb 2013
2.0.0-rc2 ~ gem install bundler --sour...
bitsweat (Jeremy Daer)
05:30 AM Bug #7818 (Assigned): Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
MartinBosslet (Martin Bosslet)
05:08 AM Bug #7818 (Closed): Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
=begin
Ruby 2.0.0-rc2 is not compatible with openssl 1.0.1d.
It works as expected on 1.0.1c
When used with 1.0.1d ruby is unable to validate certificates and other things might be broken as well.
For example:
gem insta...
agileanimal (Mark Madsen)
09:53 AM Bug #7774: IFUNC上のbinding呼び出しでSEGV
どの reversion をバックポートするという話?

rc1 からの regression ならまあいいと思いますが、
修正が大きいと後ろ向きになるかも。


2013年2月9日 17:14 SASADA Koichi <ko1@atdot.net>:
> SEGV を直すときに,うっかり意図しない非互換が混入されてしまいました,と
> いう理屈で,これは 2_0_0 のほうにバックポートしてもいいでしょうか
> >mame さ...
mame (Yusuke Endoh)
09:10 AM Bug #7656 (Closed): Handful of documentations
This issue was solved with changeset r39180.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/pp.rb, lib/prettyprint.rb: Documentation for PP and Pret...
zzak (zzak _)
09:03 AM Bug #7809: Backport RubyGems fixes in r39166 to ruby 2.0.0
Okay, please commit your second patch. Thank you!
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:54 AM Bug #7809: Backport RubyGems fixes in r39166 to ruby 2.0.0
The change to lib/rubygems/package/old.rb is not critical. It suppresses a warning almost nobody will ever see and fixes behavior on 1.8.7. These are not sufficient for inclusion.
The change to lib/rubygems/package.rb is critical. ...
drbrain (Eric Hodel)
07:27 AM Revision aa70f1fd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:10 AM Revision 6f278350 (git): Add ChangeLog from 39193
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
07:02 AM Revision d5077115 (git): * lib/rake/doc/MIT-LICENSE: Add license file from upstream
* lib/rake/doc/README.rdoc: Link to license file from Rake README
* lib/rake/version.rb: Include README rdoc for Rake module overview
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
06:51 AM Revision 5d1d6543 (git): fix date time mistake in ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
06:44 AM Revision 4a90541c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:39 AM Revision bbc9fd57 (git): vm_exec.h: fix typo
* vm_exec.h (DISPATCH_ARCH_DEPEND_WAY): fix typo. probably "inserted"
or "insetted".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:27 AM Revision ab42c8f7 (git): * doc/rake/*: Sync Rake rdoc files from upstream
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:13 AM Revision dd7a64d1 (git): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:41 AM Revision 0531a076 (git): * vm_exec.h (DISPATCH_ARCH_DEPEND_WAY): use __asm__ __vilatile__
instead of asm volatile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:41 AM Revision 08c11c23 (git): * gc.h (SET_MACHINE_STACK_END): use __volatile__ instead of volatile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:26 AM Revision 2bfa96ec (git): * doc/rake/, lib/rake/doc/: Move Rake rdoc files to lib/rake
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:14 AM Revision a00c92f7 (git): add doc. for IO#close_on_exec=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:29 AM Revision 474e3cd2 (git): add comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:11 AM Revision 1ab6dccf (git): * ext/socket/extconf.rb: test headers at first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:00 AM Revision 20c05cde (git): * doc/rake/*: Removed stale Rake static files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:10 AM Revision 3952de50 (git): * lib/pp.rb, lib/prettyprint.rb: Documentation for PP and PrettyPrint
Based on a patch by Vincent Batts [ruby-core:51253] [Bug #7656]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)

02/09/2013

10:43 PM Bug #7467: lib/mkmf.rb merge_lib fails on larger sets of libraries
just curious what the new code does more over the simple `libs.flatten.uniq`?
mpapis (Michal Papis)
09:23 PM Bug #7812 (Closed): Backport BSDL copyright fix in r39167 to ruby 2.0.0
I've committed it in r39172. ktsj (Kazuki Tsujimoto)
01:04 PM Bug #7812: Backport BSDL copyright fix in r39167 to ruby 2.0.0
Please, thanks.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:31 PM Bug #7812 (Closed): Backport BSDL copyright fix in r39167 to ruby 2.0.0
mame-san, can I backport it to 2_0_0?
http://mla.n-z.jp/~w3ml/w3ml.cgi/ruby-changes/msg/27115
ktsj (Kazuki Tsujimoto)
08:42 PM Feature #6721: Object#yield_self
Anonymous wrote:
> Why you can't simply do the following?
> ...
I can, but i guess i want it to look more like declarative programming, than like imperative.
alexeymuranov (Alexey Muranov)
05:23 AM Feature #6721: Object#yield_self
Why you can't simply do the following?

~~~ruby
def full_name_with_affiliation_and_position
a_ap = " (#{a_ap})" unless (a_ap = [affiliation, academic_position].compact.join ', ').empty?
"#{full_name}#{a_ap}"
end
~~~
Anonymous
07:29 PM Bug #7808: [PATCH] Allow to install arch specific code into different location then nonarch
Hanmac (Hans Mackowiak) wrote:
> does this patch break that ticket did? #6111
No it does not. It just extends what was done for #6111
vo.x (Vit Ondruch)
07:17 PM Bug #7808: [PATCH] Allow to install arch specific code into different location then nonarch
--with-rubyarchprefix always prepends --with-rubylibprefix ... therefore you can hardly use it to separate arch libraries into /usr/lib while place noarh into /usr/share
And no, we don't need ruby version, since Fedora provides just s...
vo.x (Vit Ondruch)
03:11 PM Bug #7808 (Feedback): [PATCH] Allow to install arch specific code into different location then nonarch
=begin
Isn't ((%--with-rubyarchprefix%)) enough?
Do you want ((|rubyarchdir|)) not to include ((|ruby_version|))?
=end
nobu (Nobuyoshi Nakada)
09:19 AM Bug #7808: [PATCH] Allow to install arch specific code into different location then nonarch
does this patch break that ticket did? #6111
for debianoid system that support more than two architectures, /usr/lib32 and /usr/lib64 are not enough
so i wanted that ruby can be installed "/usr/lib/<arch>/ruby/<version>" like "/usr/l...
Hanmac (Hans Mackowiak)
08:41 AM Bug #7808 (Closed): [PATCH] Allow to install arch specific code into different location then nonarch
Due to recent changes in configuration, it is pretty easy to allow install architecture specific code into different location (/usr/lib64) then nonarch code (/usr/share) and thus provide better compliancy with FHS [1]. Could you please c... vo.x (Vit Ondruch)
07:00 PM Bug #7807: [PATCH] Remove duplicated load paths when empty version string is configured
Could you be more specific please? What doesn't work? It cannot be applied? Or does it break something? I can provide updated patch of course. vo.x (Vit Ondruch)
05:47 PM Bug #7807 (Rejected): [PATCH] Remove duplicated load paths when empty version string is configured
It doesn't work right now, sorry. nobu (Nobuyoshi Nakada)
08:23 AM Bug #7807 (Rejected): [PATCH] Remove duplicated load paths when empty version string is configured
=begin
My configuration options:
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysco...
vo.x (Vit Ondruch)
05:38 PM Bug #7804 (Closed): [PATCH] configure --help provides misleading informations about site and vendor arch parameters
This issue was solved with changeset r39170.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
configure.in: fix help message
* configure.in: fix arch parameter...
nobu (Nobuyoshi Nakada)
01:02 AM Bug #7804 (Closed): [PATCH] configure --help provides misleading informations about site and vendor arch parameters
vo.x (Vit Ondruch)
05:23 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
SEGV を直すときに,うっかり意図しない非互換が混入されてしまいました,と
いう理屈で,これは 2_0_0 のほうにバックポートしてもいいでしょうか
>mame さん


Binding はどう取れるべきか,については実はそんなに自明ではないので,今度
誰か議論させて下さい.この辺,今は本当に「実装がそうだったから」以外じゃ
ないような気がしています.


(2013/02/09 16:45), Kazuki Tsujimot...
ko1 (Koichi Sasada)
04:53 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
辻本です

Subject: [ruby-dev:46961] Re: [ruby-trunk - Bug #7774][Assigned] IFUNC上のbinding呼び出しでSEGV
From: SASADA Koichi <ko1@atdot.net>
Date: Sat, 9 Feb 2013 13:12:59 +0900

>  とまぁ,こんな感じで,「呼び出し側のフレームを返す」という仕様ではな
> かったわけです.
>...
ktsj (Kazuki Tsujimoto)
01:23 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
(2013/02/09 12:12), Kazuki Tsujimoto wrote:
> たびたびすみません。この修正ですが、下記の変更は意図されたものでしょうか。
>
> * r39067より前では、+メソッド/injectメソッドで例外が起きた場合は両方ともメソッド起動時のコンテキスト(例ではmain)のbindingが返ってきていた。
> * r39067以降は、injectメソッドで例外が起きた場合の動きが変更されレシーバのbindingが...
ko1 (Koichi Sasada)
12:23 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
辻本です。

Subject: [ruby-dev:46921] Re: [ruby-dev:46908] [ruby-trunk - Bug#7774][Assigned] IFUNC上のbinding呼び出しでSEGV
From: SASADA Koichi <ko1@atdot.net>
Date: Tue, 5 Feb 2013 15:15:30 +0900

>  ご報告,ありがとうございました.多分,治ったんじゃないかと思います.
...
ktsj (Kazuki Tsujimoto)
04:44 PM Revision cf2da377 (git): the process maybe already finished
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:30 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Hi Matz,
matz (Yukihiro Matsumoto) wrote:
> The reason I hesitate to add to_h to nil is because I am not fully satisfied with nil.to_a etc.
> ...
Thank you very much for accepting nil.to_h in issue #6276. ^_^
I just read about th...
sunaku (Suraj Kurapati)
03:16 PM Revision 649820fd (git): * 2013-02-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:16 PM Revision 41dbe74b (git): common.mk: no expansion
* common.mk (showconfig): get rid of variable expansion by shell.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:50 PM Revision 817dff03 (git): configure.in: escape
* configure.in (configure_args): escape $ for Makefile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:35 PM Bug #7813 (Closed): github mirror missing ruby_2_0_0 branch
Thanks Evan! zzak (zzak _)
02:23 PM Bug #7813: github mirror missing ruby_2_0_0 branch
It's been added. The script doesn't currently handle creating branches properly. I had to create it manually.

--
Evan Phoenix // evan@phx.io


On Friday, February 8, 2013 at 8:02 PM, jonforums (Jon Forums) wrote:

>
...
evanphx (Evan Phoenix)
01:02 PM Bug #7813 (Closed): github mirror missing ruby_2_0_0 branch
Please add svn's ruby_2_0_0 branch to your automated repo sync process. jonforums (Jon Forums)
01:39 PM Revision e8bc7180 (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:13 PM Revision c38f3cd9 (git): * configure.in: move header files check to the beginning of
"header and library section".
test rlim_t with sys/types.h and sys/time.h for MirOS BSD.
sys/types.h and sys/time.h is gurded by #ifdef and the above move
is required for this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
akr (Akira Tanaka)
12:16 PM Revision 88cc04cf (git): * 2013-02-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:16 PM Revision 33be5d2d (git): * backport r39167 from trunk. [ruby-core:52059] [Bug #7812]
* BSDL: update copyright notice for 2013.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
12:12 PM Bug #7811 (Closed): SecureRandom::random_bytes Only use random bytes, not extra String
=begin
From ((<github #247|URL:https://github.com/ruby/ruby/pull/247>))
=end
zzak (zzak _)
12:00 PM Bug #7809: Backport RubyGems fixes in r39166 to ruby 2.0.0
It looks a borderline case. Is there no workaround?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:28 AM Bug #7809 (Closed): Backport RubyGems fixes in r39166 to ruby 2.0.0
r39166 contains two RubyGems fixes.
The change to lib/rubygems/package.rb is a critical bug fix for RubyGems signing support. Without this fix users of the LowSecurity policy will not be able to install signed gems.
The change to ...
drbrain (Eric Hodel)
11:48 AM Bug #7805 (Assigned): ruby 2.0rc2 core on solaris
mame (Yusuke Endoh)
04:04 AM Bug #7805 (Closed): ruby 2.0rc2 core on solaris
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin:/tmp/bin \
CC=cc CFLAGS="-m64 -O3" CXX=CC CXXFLAGS=-m64 CPPFLAGS="-I/opt/apache2/yaml/include -I/usr/sfw/include" \
LDFLAGS="-m64 -L/usr/sfw/lib/64 -R/usr/sfw/lib/64...
groenveld@acm.org (John Groenveld)
09:53 AM Feature #7792: Make symbols and strings the same thing
On Feb 7, 2013, at 17:37, David MacMahon <davidm@astro.berkeley.edu> wrote:
> Just to play Devil's advocate, could that not be separated into two different hashes: one for config options and one for command default arguments? You have...
drbrain (Eric Hodel)
08:46 AM Revision c4544321 (git): configure.in: empty version
* configure.in, version.c: prevent duplicated load paths by empty
version string, it does not work right now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 8a915126 (git): configure.in: fix help message
* configure.in: fix arch parameters in help message. [Bug #7804]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:32 AM Feature #5281 (Closed): Support for custom sitearch and vendorarch directories
This was addressed in rev39107. Thank you. vo.x (Vit Ondruch)
08:24 AM Feature #5231 (Closed): Allow to disable versioned paths
This is no more relevant. I opened #7807 for leftovers. vo.x (Vit Ondruch)
07:27 AM Revision 0b24985d (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:09 AM Bug #7806 (Closed): inconsistency between Method#inspect and Method#name
=begin
it seems that Method#inspect does some magic with alias methods
code:
class A
def xyz
end
alias ver xyz
end
p A.instance_method(:ver) #<UnboundMethod: A#xyz>
p A.instance_method(:ver).name #:ver
...
Hanmac (Hans Mackowiak)
05:46 AM Bug #7758: Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
Usa, do you agree in resolution?
I haven't tested this against trunk or ruby_2_0_0 branch to confirm it happen too, but most likely.
luislavena (Luis Lavena)
05:44 AM Bug #7758 (Assigned): Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
luislavena (Luis Lavena)
04:14 AM Revision 810516ed (git): * vm_trace.c: Note about TracePoint events set, and comment on
Kernel#set_trace_func to prefer new TracePoint API
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
01:12 AM Revision d48f539c (git): * BSDL: update copyright notice for 2013.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
12:24 AM Revision 7f046c65 (git): * lib/rubygems/package/old.rb: Fix behavior only on ruby 1.8.
* lib/rubygems/package.rb: Include checksums.yaml.gz signatures for
verification.
* test/rubygems/test_gem_package.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)

02/08/2013

11:57 PM Bug #6634 (Rejected): Deadlock with join and ConditionVariable
Marking this as rejected due to lack of feedback by the submitter.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:51 PM Bug #7768: Inherited Array class missing
@usa
Thank you!
@charliesome
I think that it is a good idea to fix only Array#uniq first.
Then, if you want to change other Array methods, please ask matz.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:59 PM Bug #7768 (Assigned): Inherited Array class missing
usa (Usaku NAKAMURA)
07:58 PM Bug #7768 (Closed): Inherited Array class missing
This issue was solved with changeset r39157.
Roman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_dup): reverted r39004. see [Bug #7768], and t...
usa (Usaku NAKAMURA)
07:53 PM Bug #7768: Inherited Array class missing
@shugo
Okay, I agree with reverting r39004. Sorry for my poor decision.
@charliesome
Sorry for confusing you. Please commit it again after I create ruby_2_0_0 branch.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:56 PM Bug #7768 (Assigned): Inherited Array class missing
Stated as the maintainer of 1.9.3, +1 to shugo. usa (Usaku NAKAMURA)
02:25 PM Bug #7768 (Open): Inherited Array class missing
I believe r39004 should be reverted.
Matz said "If a method is originally defined in Enumerable, i.e. its return value (Array) is a collection of values from enumerable." at http://bugs.ruby-lang.org/issues/4136#note-7.
However, Arra...
shugo (Shugo Maeda)
10:41 PM Feature #6721: Object#yield_self
Here is a "real life" use case. It again has to do with formatting strings.
I want to have a list of conference participants in the form:
Full Name (Affiliation, academic position)
but without empty parentheses or trailing comma i...
alexeymuranov (Alexey Muranov)
09:53 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
前田です。

2013年2月8日 20:15 Yusuke Endoh <mame@tsg.ne.jp>:
> チケット自体の対処は向こうに書きました通り revert でいいです。
> 判断が変わってすみません。

いえ、了解です。

遠藤さんを責めるつもりはないのですが、一応言い訳にもコメントします。

> 2013/02/08 shugo (Shugo Maeda) <redmine@ruby-lang.org>:
>...
shugo (Shugo Maeda)
08:23 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
チケット自体の対処は向こうに書きました通り revert でいいです。
判断が変わってすみません。


以下、言い訳。

2013/02/08 shugo (Shugo Maeda) <redmine@ruby-lang.org>:
> これがバグ修正扱いなのであれば2.0.0が出た後で直してもよいと思いますし、

「実はこれはバグだったんだよ!!」と言って挙動を変えるのは決して
好ましいことではないですよね。今回は matz ...
mame (Yusuke Endoh)
08:00 PM Bug #7625 (Closed): Arrayを継承したオブジェクトのcompactがArrayを返す
#7768 を残してこちらは閉じます。 usa (Usaku NAKAMURA)
02:27 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
#7768の方にもコメントしましたので、議論の続きは(もしあれば)そちらでやりましょう。
shugo (Shugo Maeda)
02:23 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
>> 2.0.0-rc2 はその挙動でいきましょう。それで重大な問題が報告されなければ、p0 もそのままで。
>> なお、rails 等に影響を与えない公算が高いと思っています (1.9.2 と同じ挙動のはずなので) 。
>
> 現状まつもとさんの意図が正しく反映されているか疑問ですので、r39004はいったん
> revertすべきだと思います。
> これがバグ修正扱いなのであれば2.0.0が出た後で直してもよいと思いますし、仕様変更
> な...
kosaki (Motohiro KOSAKI)
02:03 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
mame (Yusuke Endoh) wrote:
> > ただ、ArrayにあってEnumerableにないメソッドはレシーバーのクラスを返したほうが良いと思います。
> ...
いや、そうなっていないと思います。
$ ./ruby -ve 'class Foo < Array; end; p Foo[2,1,3].sort.class'
ruby 2.0.0dev (2013-02-08 trunk 39154) [i686-linux]
...
shugo (Shugo Maeda)
06:26 PM Bug #7800 (Closed): Makesnapshot fails since r39107
Seems to be fixed in rev39150. Thank you. vo.x (Vit Ondruch)
12:28 AM Bug #7800 (Closed): Makesnapshot fails since r39107
=begin
# tool/make-snapshot tmp trunk@39107
Exporting trunk@39107
Exported revision 39107.
take a breath, and go ahead
creating configure... done
creating prerequisites...
generating id.h
id.h updated
generating opt_sc....
vo.x (Vit Ondruch)
04:27 PM Revision 35a5e376 (git): * 2013-02-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:27 PM Revision b7d8d032 (git): * test/fiddle/helper.rb: specify libc and libm locations for MirOS BSD.
* test/dl/test_base.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
04:23 PM Feature #7792: Make symbols and strings the same thing
Em 07-02-2013 23:57, Bill Kelly escreveu:
> ...but nevertheless, the symbol/string distinction is being put to use.)

Thanks for letting me know, Bill.
rosenfeld (Rodrigo Rosenfeld Rosas)
10:59 AM Feature #7792: Make symbols and strings the same thing
Rodrigo Rosenfeld Rosas wrote:
>
> I'm really curious what kind of programs rely on symbols behaving
> differently from strings.

One example:

Since symbols aren't garbage collected, my Ruby-based RPC system
is design...
spatulasnout (B Kelly)
10:53 AM Feature #7792: Make symbols and strings the same thing
On Feb 7, 2013, at 5:15 PM, Eric Hodel wrote:

> On Feb 7, 2013, at 10:43, David MacMahon <davidm@astro.berkeley.edu> wrote:
>> I think the number of real world uses of something like:
>>
>> {:a => 0, 'a' => 1}
>>
>> is likely ...
david_macmahon (David MacMahon)
10:23 AM Feature #7792: Make symbols and strings the same thing
Hi,

In message "Re: [ruby-core:52017] Re: [ruby-trunk - Feature #7792] Make symbols and strings the same thing"
on Fri, 8 Feb 2013 09:26:38 +0900, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> writes:

|Thank you for your ...
Anonymous
10:23 AM Feature #7792: Make symbols and strings the same thing
On Feb 7, 2013, at 10:43, David MacMahon <davidm@astro.berkeley.edu> wrote:
> I think the number of real world uses of something like:
>
> {:a => 0, 'a' => 1}
>
> is likely to be very small.

Every time you run `gem` you use a ...
drbrain (Eric Hodel)
09:29 AM Feature #7792: Make symbols and strings the same thing
Em 07-02-2013 21:58, Yukihiro Matsumoto escreveu:
> Hi,
>
> During early stage of 1.9 development, I tried to make symbols and
> strings behave same (at least similar), and it had broken too many
> programs. I understand your...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:59 AM Feature #7792: Make symbols and strings the same thing
Hi,

During early stage of 1.9 development, I tried to make symbols and
strings behave same (at least similar), and it had broken too many
programs. I understand your problem but it's not worth raising huge
compatibility issu...
Anonymous
08:23 AM Feature #7792: Make symbols and strings the same thing
Sent from my phone, so excuse the typos.
On Feb 8, 2013 8:50 AM, "Rodrigo Rosenfeld Rosas" <rr.rosas@gmail.com>
wrote:
>
> If you really believe symbols are similar to enums I guess you haven't
done much C, C++ or Java programming ...
phluid61 (Matthew Kerwin)
07:30 AM Feature #7792: Make symbols and strings the same thing
Em 07-02-2013 19:15, Matthew Kerwin escreveu:
> On 8 February 2013 03:01, jeremyevans0 (Jeremy Evans)
> <merch-redmine@jeremyevans.net <mailto:merch-redmine@jeremyevans.net>>
> wrote:
>
>
> phluid61 (Matthew Kerwin) wr...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:23 AM Feature #7792: Make symbols and strings the same thing
Em 07-02-2013 19:11, Matthew Kerwin escreveu:
> On 7 February 2013 23:09, Rodrigo Rosenfeld Rosas wrote:
> > Enums have two goals in such languages. Improving performance and
> > reducing memory footprint is one of them. The other...
rosenfeld (Rodrigo Rosenfeld Rosas)
06:23 AM Feature #7792: Make symbols and strings the same thing
On 8 February 2013 03:01, jeremyevans0 (Jeremy Evans) <
merch-redmine@jeremyevans.net> wrote:

>
> phluid61 (Matthew Kerwin) wrote:
> > > Take the Sequel library for instance.
> >
> > No thanks, apparently the authors do...
phluid61 (Matthew Kerwin)
06:23 AM Feature #7792: Make symbols and strings the same thing
On 7 February 2013 23:09, Rodrigo Rosenfeld Rosas wrote:
> Enums have two goals in such languages. Improving performance and
> reducing memory footprint is one of them. The other one is to help the
> compiler to find errors at com...
phluid61 (Matthew Kerwin)
05:08 AM Feature #7792: Make symbols and strings the same thing
I could see myself using "Map(a: 1, b: 2)" instead of "{a: 1, b: 2}" when I want HWIA. Sounds good to you? Should I create a ticket like this one? rosenfeld (Rodrigo Rosenfeld Rosas)
04:55 AM Feature #7792: Make symbols and strings the same thing
@rosenfeld Well I would hope for a much shorter name myself. e.g. `Map`, `Index`, `Dict` are some viable candidates. trans (Thomas Sawyer)
04:29 AM Feature #7792: Make symbols and strings the same thing
On Feb 7, 2013, at 11:04 AM, Rodrigo Rosenfeld Rosas wrote:

> Em 07-02-2013 16:43, David MacMahon escreveu:
>>> ...An extra parse operation on a big list could easily add 100ms to the request timing.
>> So use explicit initializati...
david_macmahon (David MacMahon)
04:28 AM Feature #7792: Make symbols and strings the same thing
Thomas, if you think we could get some constructor for HWIA, like say, {{a: 'a'}}, then it would already help a lot. But I don't see typing such a long name (HashWithIndifferentAccess) whenever I need such behavior being it included on c... rosenfeld (Rodrigo Rosenfeld Rosas)
04:23 AM Feature #7792: Make symbols and strings the same thing
Em 07-02-2013 16:43, David MacMahon escreveu:
>> ...An extra parse operation on a big list could easily add 100ms to the request timing.
> So use explicit initialization instead of lazy initialization.

Sorry, didn't get. Could ...
rosenfeld (Rodrigo Rosenfeld Rosas)
03:58 AM Feature #7792: Make symbols and strings the same thing
I think the best thing to do about this is simply to ask that a HWIA class be added to Ruby's core. That's as far as this issue can possibly go at this time. And be very happy if it happens b/c 1) its hard to get such things to happen an... trans (Thomas Sawyer)
03:53 AM Feature #7792: Make symbols and strings the same thing
On Feb 7, 2013, at 10:23 AM, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:

>
> Issue #7792 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).
>
>
> david_macmahon (David MacMahon) wrote:
>> I still think the fundamental is...
david_macmahon (David MacMahon)
03:23 AM Feature #7792: Make symbols and strings the same thing
david_macmahon (David MacMahon) wrote:
> I still think the fundamental issue is that Sequel is returning something that contains symbols, but JSON.parse(JSON.unparse(x)) will never return anything containing a symbol even if x does. B...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:53 AM Feature #7792: Make symbols and strings the same thing
On Feb 7, 2013, at 3:00 AM, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:

>
> Issue #7792 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).
>
>
> rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
>
>> cache = Redis.new
>> use...
david_macmahon (David MacMahon)
02:01 AM Feature #7792: Make symbols and strings the same thing
phluid61 (Matthew Kerwin) wrote:
> > Take the Sequel library for instance.
> ...
Sequel uses symbol keys instead of string keys intentionally. Sequel maps SQL features directly to ruby objects, mapping SQL identifiers (columns/tables...
jeremyevans0 (Jeremy Evans)
04:09 PM Bug #7802 (Closed): Ruby crashes when detect is called while executing the ensure callback given to rb_ensure
This issue was solved with changeset r39156.
Brad, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
eval.c: preserve errinfo
* eval.c (rb_ensure): preserve errinfo ...
nobu (Nobuyoshi Nakada)
11:33 AM Bug #7802 (Closed): Ruby crashes when detect is called while executing the ensure callback given to rb_ensure
Conditions:
- rb_ensure(cb, cb_args, ensure, ensure_args) is used from C API
- cb raises an exception
- ensure calls Enumerable#detect and detect finds an element
Sample code:
# ensured.c
#include "ruby.h"
static VALUE
...
bladenkerst (Brad Sumersford)
03:38 PM Bug #7803 (Closed): RDoc documentation: `Array#&` clarification
In the RDoc documentation for `Array#&`, it does not mention whether the order of the elements in the returned array preserves the order in the receiver. There is a question raised regarding this point in stackoverflow:
http://sta...
sawa (Tsuyoshi Sawada)
02:41 PM Bug #5811: Ruby Process Deadlocks With Fork on Mac OS X Lion
I guess this problem is caused by Ruby 1.9.3 invokes non-async-signal-safe functions, such as getpwuid(), in a forked child process before exec.
Ruby trunk fixed the cause: dln_find_exe_r() is called from a parent process, for example...
akr (Akira Tanaka)
01:44 PM Bug #5811 (Assigned): Ruby Process Deadlocks With Fork on Mac OS X Lion
AFAIK, pipe and `command` are unsafe if multi thread is used. this issues was fixed at trunk (aka 2.0).
akr-san, do you have any commnet?
kosaki (Motohiro KOSAKI)
05:02 AM Bug #5811: Ruby Process Deadlocks With Fork on Mac OS X Lion
We've encountered the same issue on Mac OS X (Lion and Mountain Lion). It's been causing one of our test suites to hang regularly and the process can only be stopped with a kill -9.
We've created a reproduction case which reproduces ...
samg (Sam Goldstein)
02:30 PM Revision 01e7ec01 (git): fix the previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:26 PM Revision 513bfb29 (git): * configure.in: change CFLAGS temporally to test
ARCH_FLAG="-march=i486".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:47 PM Bug #7798: 子スレッドを実行しているとき Process.daemon すると,その後メインスレッドが終了してもプロセスが終了しない
Closed because duplicated with #7720. kosaki (Motohiro KOSAKI)
01:05 PM Bug #7798 (Closed): 子スレッドを実行しているとき Process.daemon すると,その後メインスレッドが終了してもプロセスが終了しない
kosaki (Motohiro KOSAKI)
01:35 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
To me, there are separate issues that relate to YAML parsing external data.
1) Creating symbols. DOS vector. Presumably part of the impetus for this code.
2) Using []= as a setter when []= is an instance method. WAT?
It is this last-...
Student (Nathan Zook)
01:10 PM Feature #6975: Changing UID/GID when calling spawn/popen
> Should I create a new feature request?
Yes, please make another ticket.
kosaki (Motohiro KOSAKI)
12:27 AM Feature #6975: Changing UID/GID when calling spawn/popen
Thank you very much!
However it would useful and recommendable if spawn could also initialize additional groups, either directly via setgroups(2) or via initgroups(3)
Do you agree?
Should I create a new feature request?
vihai (Daniele Orlandi)
01:07 PM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
I prefer using the name `#reverse_merge`
Since we don't have operator for `#merge`
Using an explicit name makes people try to understand what they are doing
PikachuEXE (Pikachu EXE)
12:20 PM Revision 89ae338e (git): * configure.in: don't define ARCH_FLAG="-march=i486" if it causes
compilation problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:06 PM Revision eea39155 (git): Release branch of Ruby 2.0.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
11:28 AM Revision 123a3a48 (git): fix a revision number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:58 AM Revision 450a515e (git): * array.c (rb_ary_dup): reverted r39004. see [Bug #7768], and the
release manager finailly decided to revert it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:40 AM Feature #7796: Hash#keys should return a set
About the core/lib issue, there is an open request about adding Set to the core: #5478. alexeymuranov (Alexey Muranov)
07:47 AM Feature #7796: Hash#keys should return a set
The first problem for me is that Hash is part of core while Set is part of the standard lib. One cannot have core depend on lib.
The second problem is that hash#keys has returned an array for the entire history of Ruby. It is far fr...
Student (Nathan Zook)
08:23 AM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
>
> Have no idea! My suspect is that someone thought: "hey maybe it would
> be a great idea if we could optimize some constant strings - we could
> create a symbol for that - hey, look ...
spatulasnout (B Kelly)
03:23 AM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
Em 07-02-2013 13:51, Yorick Peterse escreveu:
> ...
>> And for the performance argument I really believe symbols cause more
>> harm than good to the overall performance given all conversions that
>> it will require in most code ...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:53 AM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
> The only real reason I remember people mentioning is the performance
> thing and how they are different internally. It shouldn't really
> matter to the language design its implementation details (if they are
> different internal...
yorickpeterse (Yorick Peterse)
12:03 AM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
shevegen (markus heiler) wrote:
> > Since #7792 has been rejected (although I don't really understand the
> ...
The only real reason I remember people mentioning is the performance thing and how they are different internally. It should...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:59 AM Feature #7795: Symbol.defined? and/or to_existing_symbol
When methods can be dynamically generated, things get hairy. For instance, active record 1 & 2 defined > n! dynamic finders for each model where n is the number of columns in the model. These methods are never all generated at once, bu... Student (Nathan Zook)
07:39 AM Bug #7656 (Assigned): Handful of documentations
Thanks Vincent! I will review this and commit tonight. zzak (zzak _)
07:35 AM Bug #7794 (Closed): Documentation bug in Net::HTTP.post_form example code
This issue was solved with changeset r39141.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/http.rb (HTTP.post_form): Fix module scope in document...
zzak (zzak _)
07:33 AM Bug #7790 (Closed): documentation about exception in Comparable#==
This issue was solved with changeset r39140.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compar.c (cmp_equal): Document ignored exception and return f...
zzak (zzak _)
07:09 AM Revision 98932f51 (git): eval.c: preserve errinfo
* eval.c (rb_ensure): preserve errinfo accross ensure proc before
JUMP_TAG(). [ruby-core:52022] [Bug #7802]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:08 AM Revision 49c5a3da (git): envutil.rb: check termsig
* test/ruby/envutil.rb (assert_separately): check also terminating
signal not only if core dumped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:53 AM Bug #7784: [mingw] r39055 creates test failures and functionality loss
On Feb 7, 2013, at 04:12, "usa (Usaku NAKAMURA)" <usa@garbagecollect.jp> wrote:

> Issue #7784 has been updated by usa (Usaku NAKAMURA).
>
> Status changed from Closed to Assigned
>
> Eric, please backport r39133 to rubygems tru...
drbrain (Eric Hodel)
04:12 AM Revision 70fc27b7 (git): * lib/rdoc/generator/darkfish.rb: Set encoding on output template to
user-specified encoding.
* test/rdoc/test_rdoc_generator_darkfish.rb: Test for above.
* lib/rdoc.rb: Bump version
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:58 AM Revision d2be12ef (git): * lib/rubygems/security/policy.rb: Raise proper exceptions when
verifying unsigned gems (instead of crashing).
* test/rubygems/test_gem_security_policy.rb: Tests for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:09 AM Revision 16f6500c (git): make-snapshot: fix typo
* tool/make-snapshot (package): fix typo, liburyb, in fake
config.status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:09 AM Revision cc9a5a40 (git): make-snapshot: File.join
* tool/make-snapshot (package): use File.join to get rid of continuous
slashes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:09 AM Revision b3cd1997 (git): make-snapshot: rubyarchdir
* tool/make-snapshot (package): fake rubyarchdir too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:58 AM Revision c5d1d129 (git): * test/rubygems/test_gem_dependency_installer.rb: Improve coverage of
--install-dir feature of gem install.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:15 AM Revision 8bb45796 (git): * lib/rubygems/config_file.rb: Add missing require for
user_interaction.rb
* lib/rubygems/dependency_installer.rb: Minor refactor for clarity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:44 AM Bug #7801 (Third Party's Issue): Segfault with block called from continuation
I'm getting a crash on OSX with 1.9.3-p385. I've also had the same crash on all the releases since at least -p194. I've seen some similar crash reports but nothing quite the same. Unfortunately this only happens intermittently when runni... chrismcg (Chris McGrath)
12:35 AM Revision 978c0f0f (git): mkmf.rb: RUBY_VERSION_NAME
* lib/mkmf.rb (MakeMakefile#configuration): set all ruby names.
hdrdir now needs RUBY_VERSION_NAME.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:26 AM Revision 7fd6f82f (git): process.c: ix typo
* process.c (USE_GETPWNAM_R): fix typo. _SC_GETPW_R_SIZE_MAX instead
of same macro twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/07/2013

11:58 PM Revision f79876e1 (git): * lib/rubygems/package/old.rb: Fix loading old format gems on ruby
1.8. This commit is only so trunk and rubygems master have the same
code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:54 PM Revision 1c836f81 (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: fixing string quotation
when dumping Ruby strings. Thanks Ingy
* test/psych/test_psych.rb: appropriate tests.
* test/psych/test_yaml.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
11:52 PM Revision 7a68f53d (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: change output reference
ids to be sequential numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
11:50 PM Feature #7796: Hash#keys should return a set
Matthew, in some sense it is indeed related to #5123, because both are about Set and Hash abstractions. However, it is independent, because as long as Hash is ordered, so is Set. If ever #5123 is accepted and OrderedHash is separated f... alexeymuranov (Alexey Muranov)
08:07 PM Feature #7796 (Feedback): Hash#keys should return a set
For feature requests, please provide use cases and assessment on existing code, rather than "opinions". duerst (Martin Dürst)
05:59 PM Feature #7796: Hash#keys should return a set
On 7 February 2013 17:52, alexeymuranov (Alexey Muranov) <
redmine@ruby-lang.org> wrote:

>
> =begin
> In my opinion, (({Hash#keys})) should return an instance of (({Set})).
> =end
>
>
Is this related to an earlier req...
phluid61 (Matthew Kerwin)
04:52 PM Feature #7796 (Feedback): Hash#keys should return a set
=begin
In my opinion, (({Hash#keys})) should return an instance of (({Set})).
=end
alexeymuranov (Alexey Muranov)
11:44 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
matz (Yukihiro Matsumoto) wrote:
> ふむ。まあ、同感なんですが、それはそれとして charliesome には「もうRCだから変更すんな」と釘を刺すべきでは無いですかね。
IRC で話した感じでは反省してくれてました。
というか、もう RC だから遠藤がもっと監視してる体制でないといけないんですが、全然余力がなくてすみません。
多分明日の晩には ruby_2_0_0 ブランチを切るんで、そこからリリースまではなるべく全コミッ...
mame (Yusuke Endoh)
11:29 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
こんにちは、なかむら(う)です。

In message "[ruby-dev:46942] [ruby-trunk - Bug #7625] Arrayを継承したオブジェクトのcompactがArrayを返す"
on Feb.07,2013 23:12:55, <mame@tsg.ne.jp> wrote:
> 1.9.3 を変えるかどうかはうささんにお任せします。

バグだったのなら1.9.3も当然変えます。
仕様だったのなら当...
usa (Usaku NAKAMURA)
11:23 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
こんにちは、なかむら(う)です。

In message "[ruby-dev:46940] [ruby-trunk - Bug #7625] Arrayを継承したオブジェクトのcompactがArrayを返す"
on Feb.07,2013 23:06:05, <matz@ruby-lang.org> wrote:
> 正直なところ、どうして1.9.3と2.0の挙動が異なってしまっているのか経緯を把握してないので適切な答えはできません。
...
usa (Usaku NAKAMURA)
11:22 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
ふむ。まあ、同感なんですが、それはそれとして charliesome には「もうRCだから変更すんな」と釘を刺すべきでは無いですかね。
Matz.
matz (Yukihiro Matsumoto)
11:12 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
matz (Yukihiro Matsumoto) wrote:
> 正直なところ、どうして1.9.3と2.0の挙動が異なってしまっているのか経緯を把握してないので適切な答えはできません。
#7768 の修正で入った r39004 の副作用で、2.0 の挙動は 1.9.2 の挙動に戻りました。
> ...
たまたま現在の挙動が matz の好みということになります。
2.0.0-rc2 はその挙動でいきましょう。それで重大な問題が報告されなければ、p0 ...
mame (Yusuke Endoh)
11:06 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
正直なところ、どうして1.9.3と2.0の挙動が異なってしまっているのか経緯を把握してないので適切な答えはできません。
ただ、ArrayにあってEnumerableにないメソッドはレシーバーのクラスを返したほうが良いと思います。
Matz.
matz (Yukihiro Matsumoto)
10:08 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
結局のところ、1.9.3の挙動は仕様だったのでしょうか?
それとも実はミス?
それによって、trunkに既にcharliesomeが先走って入れちゃった変更を
revertすべきかどうかとか(した方がいいと私個人は強く思っていることを
表明しておきます>mameさん)、1.9.3で現状rubyspecが仕様と思って記述
してしまっているのを変更した上で1.9.3でもバグとして直すべきかどうか、
などといった判断に影響が出ます。
usa (Usaku NAKAMURA)
11:40 PM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
> Since #7792 has been rejected (although I don't really understand the
> ...
Several reasons were given to you. I do not understand why you try to
"summarize" them all by stating that "people are afraid of change".
Symbols and Stri...
shevegen (Robert A. Heiler)
11:39 PM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
Thomas, the reason I didn't suggest your approach is because it wouldn't really fix several use cases, such as the example pointed out in the description using the json gem. It will use rb_hash_new for instance:
https://github.com/flo...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:13 PM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
I offer a slight modification that would ease the transition somewhat. Instead of renaming Hash, just add a new code class, e.g. Map or Index, that does as you suggest. Then at some major version change (3.0?) use {} -> Map, instead of {... trans (Thomas Sawyer)
08:19 PM Feature #7797 (Rejected): Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
Since #7792 has been rejected (although I don't really understand the reason except people being afraid of changing I guess) I'd like to propose an alternative solution to most of the problems caused by the differences between symbols an... rosenfeld (Rodrigo Rosenfeld Rosas)
11:22 PM Bug #7768: Inherited Array class missing
=begin
Summary of my discussion with mame in #ruby-core:
[00:33:08] <mame1> r30148
[00:34:16] <mame1> some people complains to your r39004
[00:34:43] <mame1> because it might be an intentional change by matz at r30148
[00:...
Anonymous
10:53 PM Feature #7791: Let symbols be garbage collected
(2013/02/07 20:25), Rodrigo Rosenfeld Rosas wrote:
> I think Koichi's approach is a better one. I don't think there are any
> needs to actually garbage collect internally used symbols like method
> names and the like.

Note th...
ko1 (Koichi Sasada)
08:29 PM Feature #7791: Let symbols be garbage collected
I think Koichi's approach is a better one. I don't think there are any
needs to actually garbage collect internally used symbols like method
names and the like.

You'll usually want to collect symbols created with to_sym. They...
rosenfeld (Rodrigo Rosenfeld Rosas)
01:53 PM Feature #7791: Let symbols be garbage collected
I can't claim to know much about ruby's internals, but this strikes me as the wrong approach.
Symbols have a number of features which differentiate them from other objects--strings in particular. These features play important/central...
Student (Nathan Zook)
12:53 PM Feature #7791: Let symbols be garbage collected
(2013/02/07 12:20), "Martin J. Dürst" wrote:
>
> Anyway, this is just an idea, there may be quite a few downsides to it.

The downside is performance and availability. Mark will be spread wide
and wide. And it is difficult to...
ko1 (Koichi Sasada)
12:23 PM Feature #7791: Let symbols be garbage collected
A slightly different idea, closer to the existing garbage collection:

The existing garbage collection is based on finding all pointers to
locations that can possibly be heap locations. This is done by scanning
the stack and a...
duerst (Martin Dürst)
11:59 AM Feature #7791: Let symbols be garbage collected
On 2013/02/07 2:02, trans (Thomas Sawyer) wrote:
>
> Issue #7791 has been updated by trans (Thomas Sawyer).
>
>
> @resenfeld After the exception is raised, you can still create symbols. The point is, now you know somethings up...
duerst (Martin Dürst)
07:23 AM Feature #7791: Let symbols be garbage collected
@trans

You cannot 'purge the symbol table'. If a symbol used by a method name, etc is purged then you will encounter strange problems like:

* not being able to call the method
* the wrong code gets invoked when you call a method
...
Anonymous
04:28 AM Feature #7791: Let symbols be garbage collected
@rosenfeld Just had a thought... maybe we could combine these approaches. Maybe GCing Symbols is too difficult. But what if it were done manually? Would that be more doable? .e.g
begin
...
rescue SymbolExhaustion
purge_...
trans (Thomas Sawyer)
03:56 AM Feature #7791: Let symbols be garbage collected
@trans, if symbols are collected, instantiating many symbols wouldn't exhaust the memory so an attempt of a DoS attack by creating many symbols wouldn't succeed.
Of course someone could always overload your server with many requests b...
rosenfeld (Rodrigo Rosenfeld Rosas)
03:07 AM Feature #7791: Let symbols be garbage collected
@rosenfeld I get your points. My solutions certainly is not perfect and has tough issues to deal with, certainly. But what alternative do you have really? You are under DoS attack, your whole server is about to go down! Better to restart... trans (Thomas Sawyer)
02:21 AM Feature #7791: Let symbols be garbage collected
@trans, yes I'm talking about threaded servers as I really believe they are a better model than multi-process (maybe not with MRI, but in the broad sense and I still believe MRI will improve support for threads at some point).
If you'...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:02 AM Feature #7791: Let symbols be garbage collected
@resenfeld After the exception is raised, you can still create symbols. The point is, now you know somethings up and you need to deal with it. So once raised the idea is that you'd report the error (log and redirect user) and then shut d... trans (Thomas Sawyer)
01:53 AM Feature #7791: Let symbols be garbage collected
On Wed, Feb 6, 2013 at 5:24 PM, Rodrigo Rosenfeld Rosas
<rr.rosas@gmail.com> wrote:
> Em 06-02-2013 14:00, Nikolai Weibull escreveu:

> Nikolai, it is possible to fix the applications/frameworks against this kind
> of attack, but p...
now (Nikolai Weibull)
01:32 AM Feature #7791: Let symbols be garbage collected
trans (Thomas Sawyer) wrote:
> > But anyway, I believe that DoS attacks are usually targeted at applications. If you make your application always raise for some actions, then I'd say your DoS attack is successful.
> ...
I think it woul...
rosenfeld (Rodrigo Rosenfeld Rosas)
01:29 AM Feature #7791: Let symbols be garbage collected
Em 06-02-2013 14:00, Nikolai Weibull escreveu:
> On Wed, Feb 6, 2013 at 2:37 PM, rosenfeld (Rodrigo Rosenfeld Rosas)
> <rr.rosas@gmail.com> wrote:
>
>> Lots of Denial-of-Service security vulnerabilities exploited in Ruby progra...
rosenfeld (Rodrigo Rosenfeld Rosas)
01:23 AM Feature #7791: Let symbols be garbage collected
On Wed, Feb 6, 2013 at 2:37 PM, rosenfeld (Rodrigo Rosenfeld Rosas)
<rr.rosas@gmail.com> wrote:

> Lots of Denial-of-Service security vulnerabilities exploited in Ruby programs rely on symbols not being collected by garbage collector...
now (Nikolai Weibull)
12:12 AM Feature #7791: Let symbols be garbage collected
> But anyway, I believe that DoS attacks are usually targeted at applications. If you make your application always raise for some actions, then I'd say your DoS attack is successful.
That doesn't make any sense to me. Errors happen, y...
trans (Thomas Sawyer)
12:01 AM Feature #7791: Let symbols be garbage collected
It depends. If the process eats up all system memory it will eventually crash and release all memory used by the Ruby process, right? This doesn't seem like a really big problem once the limit is reached and the application crashed.
But...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:48 PM Revision a7592201 (git): * lib/rubygems/package/old.rb: Disallow installation of old-format
gems when a security policy is active.
* test/rubygems/test_gem_package_old.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:36 PM Bug #7798: 子スレッドを実行しているとき Process.daemon すると,その後メインスレッドが終了してもプロセスが終了しない
タイトルを誤りました.
「子スレッドを実行しているとき Process.daemon すると,その後メインスレッドが終了してもプロセスが終了しない」
です.
clicube (cube cube)
10:34 PM Bug #7798 (Closed): 子スレッドを実行しているとき Process.daemon すると,その後メインスレッドが終了してもプロセスが終了しない
■ 再現コード
Thread.new{ sleep }
Process.daemon
■ ruby -v の結果
ruby 1.9.3p385 (2013-02-06 revision 39114) [i686-linux]
■ 実際に起きた結果
プロセスが終了せずに残ります.
kill -TERM では終了できず, kill -KILL する必要があります.
■ 期待した結果
メインスレッドが終了し,プロセスが終了すると期待しました.
...
clicube (cube cube)
10:35 PM Revision 45bcf5d4 (git): * lib/net/http.rb (HTTP.post_form): Fix module scope in documentation
Patch by David Albert [Bug #7794] [ruby-core:51955]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
10:33 PM Revision e798251a (git): * compar.c (cmp_equal): Document ignored exception and return false
By Makoto Kishimoto [Bug #7790] [ruby-dev:46925] [ruby-dev:46910]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
10:23 PM Feature #7792: Make symbols and strings the same thing
Em 07-02-2013 10:04, Matthew Kerwin escreveu:
> On 7 February 2013 20:46, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> > I agree that a string is what I want in all cases. That is exactly why I
> > don't feel the need for symbols....
rosenfeld (Rodrigo Rosenfeld Rosas)
09:23 PM Feature #7792: Make symbols and strings the same thing
On 7 February 2013 20:46, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> I agree that a string is what I want in all cases. That is exactly why I
> don't feel the need for symbols. If symbols are just really required as
> a fundamen...
phluid61 (Matthew Kerwin)
08:05 PM Feature #7792: Make symbols and strings the same thing
david_macmahon (David MacMahon) wrote:
> Hi, Rodrigo,
> ...
I'm not asking for performance nor flexibility. The only reason I didn't suggest to simply remove symbols at all is because I know it would be promptly rejected since all Ruby...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:59 PM Feature #7792: Make symbols and strings the same thing
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:

> cache = Redis.new
> ...
Sorry, I forgot the JSON conversion in the example above:
cache = Redis.new
db = Sequel.connect('postgres://user:password@localhost/mydb')
users = if cached =...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:50 PM Feature #7792: Make symbols and strings the same thing
Also, so that you stop arguing that the differences between symbols and strings are just like the differences between strings and integers (non-sense), notice that HashWithIndifferentAccess makes this distinction:
h = HashWithIndiffer...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:46 PM Feature #7792: Make symbols and strings the same thing
phluid61 (Matthew Kerwin) wrote:
> You say "old syntax," maybe you should think of it as the "general syntax." Or, as I think of it, the "real syntax." The new {id: id} syntax is special case sugar for Hashes keyed on Symbols, which w...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:18 AM Feature #7792: Make symbols and strings the same thing
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> @drbrain, that means I'm unable to do things like
> ...
You say "old syntax," maybe you should think of it as the "general syntax." Or, as I think of it, the "real syntax." The new {id: id...
phluid61 (Matthew Kerwin)
09:59 AM Feature #7792: Make symbols and strings the same thing
Hi, Rodrigo,

FWIW, I sympathize with your symbols-vs-strings as keys frustration, but I think it's not so trivial to have the best of both worlds (flexibility and performance). Here is a simplification of your example:

require 'r...
david_macmahon (David MacMahon)
08:53 AM Feature #7792: Make symbols and strings the same thing
Em 06-02-2013 17:12, Yorick Peterse escreveu:
>> And "growing until you hit your memory limit" is actually only valid
>> for symbols, not for strings that are garbage collected already.
>> Unless you have some leak in your code th...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:51 AM Feature #7792: Make symbols and strings the same thing
@drbrain, that means I'm unable to do things like
results << {id: id, name: name}
and have to use the old syntax all the time (and worrying about the differences all the time):
results << {'id' => id, 'name' => 'name'}
I still believ...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:01 AM Feature #7792: Make symbols and strings the same thing
There's another issue here, which has been overlooked because it's philosophical rather than technical:
symbols aren't strings.
A string's value is a sequence of characters, which can be iterated over and operated on.
A symbol...
phluid61 (Matthew Kerwin)
05:19 AM Feature #7792 (Rejected): Make symbols and strings the same thing
=begin
This proposal has no description of how to overlay the functionality of strings (mutable) with symbols (immutable).
This was previously tried during 1.9 which had such a plan but was ultimately rejected.
Due to a previous a...
drbrain (Eric Hodel)
04:23 AM Feature #7792: Make symbols and strings the same thing
> And "growing until you hit your memory limit" is actually only valid
> for symbols, not for strings that are garbage collected already.
> Unless you have some leak in your code that prevent those strings from
> being collected b...
yorickpeterse (Yorick Peterse)
03:53 AM Feature #7792: Make symbols and strings the same thing
Em 06-02-2013 16:22, Yorick Peterse escreveu:
>> What I'm trying to say is that the main reason why symbols exist in
>> Ruby in the first place is performance from what I've been told.
> Correct, and your proposed changes would co...
rosenfeld (Rodrigo Rosenfeld Rosas)
03:23 AM Feature #7792: Make symbols and strings the same thing
> What I'm trying to say is that the main reason why symbols exist in
> Ruby in the first place is performance from what I've been told.

Correct, and your proposed changes would completely nullify those
performance benefits (se...
yorickpeterse (Yorick Peterse)
02:23 AM Feature #7792: Make symbols and strings the same thing
Em 06-02-2013 13:25, Yorick Peterse escreveu:
> I don't think I'm following you, can you explain what's supposedly
> ironic about it? Using Hashie only "slows" things down based on whether
> you use Symbols, Strings or object attr...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:29 AM Feature #7792: Make symbols and strings the same thing
I don't think I'm following you, can you explain what's supposedly
ironic about it? Using Hashie only "slows" things down based on whether
you use Symbols, Strings or object attributes. Unless you use it *all*
over the place the p...
yorickpeterse (Yorick Peterse)
10:17 PM Revision bab42629 (git): * lib/rubygems/dependency_installer.rb: Only install local gems if
they end in '.gem'. Fixes github rubygems issue #407.
* test/rubygems/test_gem_dependency_installer.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:12 PM Bug #7784 (Assigned): [mingw] r39055 creates test failures and functionality loss
Eric, please backport r39133 to rubygems trunk :) usa (Usaku NAKAMURA)
05:53 PM Feature #7795: Symbol.defined? and/or to_existing_symbol
On 7 February 2013 17:17, alexeymuranov (Alexey Muranov) wrote:
> In my opinion, it would be more useful to have a method that checks if a
> given string matches one of a symbols in a given set. It is hard for me
> to think of a ...
phluid61 (Matthew Kerwin)
04:46 PM Feature #7795: Symbol.defined? and/or to_existing_symbol
I think also that finding a symbol in a set is related to (can be used in) Hash With Indifferent Access. HWIA are implemented in RoR and Sinatra in different ways. Would be nice if Ruby itself had Hash With Indifferent Access. alexeymuranov (Alexey Muranov)
04:16 PM Feature #7795: Symbol.defined? and/or to_existing_symbol
In my opinion, it would be more useful to have a method that checks if a given string matches one of symbols in a given set. It is hard for me to think of a situation where one needs to know if a string matches any of the created symbol... alexeymuranov (Alexey Muranov)
02:08 PM Feature #7795 (Assigned): Symbol.defined? and/or to_existing_symbol
I'm pulling this out from deep in the discussions of issue http://bugs.ruby-lang.org/issues/7791, Let Symbols be Garbage Collected.
The problem is that the extreme utility of symbols makes them enticed to use, which results in a DOS v...
Student (Nathan Zook)
04:03 PM Revision 97204169 (git): * ChangeLog: fix a typo for r39136.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:33 PM Bug #7467 (Closed): lib/mkmf.rb merge_lib fails on larger sets of libraries
This issue was solved with changeset r39128.
Michal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
mkmf.rb: fix merge_libs
* lib/mkmf.rb (MakeMakefile#merge_libs...
nobu (Nobuyoshi Nakada)
03:07 PM Revision 876b0d27 (git): * 2013-02-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:07 PM Revision 9b0a7f49 (git): * process.c (obj2gid): use getgrnum_r() only if getgrnam_r() and
_SC_GETGR_R_SIZE_MAX is available.
MirOS BSD (MirBSD 10 GENERIC#1382 i386) have getgrnam_r() but
no _SC_GETGR_R_SIZE_MAX.
(obj2uid): use getpwnam_r() only if getpwnam_r() and
_SC_GETPW_R_SIZE_MAX is available.
This is consisten...
akr (Akira Tanaka)
02:52 PM Bug #7656: Handful of documentations
Alrighty, since I don't have rights to close issues, I'll just add the updated PP/PrettyPrint patch here.
This patch fixes the confusing *_inspect_key example and also sets nodoc on the pretty print modifications to basic objects.
Thi...
vbatts (Vincent Batts)
01:02 PM Revision 8f5f8945 (git): * configure.in: define linker for shared library on MirOS BSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:20 PM Revision ba7a0b46 (git): vpath.rb: no rbconfig.rb
* tool/vpath.rb (VPath#list): no rbconfig.rb, to get rid of cyclic
dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:11 PM Revision 7d272549 (git): * test/rubygems/test_gem_config_file.rb
(TestGemConfigFile#test_check_credentials_permissions): skip on
Windows. see [Bug #7784] [ruby-core:51864] and r39070.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:55 AM Revision 2314a8fc (git): * win32/Makefile.sub (config.status): added variables which were
missing at r39130.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:14 AM Feature #7793: New methods on Hash
Considering existing methods:
~~~
$ ruby -e 'p Hash.instance_methods(false).grep(/each_/)'
[:each_value, :each_key, :each_pair]
~~~
They should be `map_key`, `may_value`, and `map_pair`, respectively, I
think.
Anyway, why do...
nobu (Nobuyoshi Nakada)
06:59 AM Feature #7793: New methods on Hash
At the risk of bike shedding, I think map_k and map_v should be named map_keys and map_values. That can be for matz to decide though. Anonymous
06:51 AM Feature #7793 (Assigned): New methods on Hash
Fine, I'll reopen and assign this to Matz.
marcandre (Marc-Andre Lafortune)
05:02 AM Feature #7793: New methods on Hash
This should be re-opened. It is not for all enumerables but only for hash.
map_v and map_k are very useful
map_kv is similar to h.mash and others and could be eliminated by those other bugs but the other functions aren't and are s...
dsisnero (Dominic Sisneros)
02:00 AM Feature #7793 (Closed): New methods on Hash
I am glad to see that more people like you take the time to propose ways to create hashes.
I completely agree that hash creation from Enumerable is lacking currently.
I will close this feature request because I am convinced it can'...
marcandre (Marc-Andre Lafortune)
01:53 AM Feature #7793 (Closed): New methods on Hash
It would be nice to have the following methods added to hash
~~~ruby
h = { name: 'dominic', request: 'add the following methods', :why => 'convenience'}
h.map_v{|v| v.upcase}
#=> {:name=>"DOMINIC", :request=>"ADD THE FOLLOWING ME...
dsisnero (Dominic Sisneros)
09:18 AM Bug #7794 (Closed): Documentation bug in Net::HTTP.post_form example code
I've attached a patch that fixes a small error in the Net::HTTP.post_form documentation. davidbalbert (David Albert)
08:21 AM Feature #6641: Hash.auto constructor
I agree with nobu-shi, if I were to encounter `Hash::with_default &block` I would assume it was the equivalent of:
Hash.new{ |h,k| yield }
rather than:
Hash.new{ |h,k| h[k] = yield }
Perhaps there could be ::with_defa...
phluid61 (Matthew Kerwin)
08:02 AM Revision 67e07672 (git): rbinstall.rb: CONFIG['arch'] not $arch
* tool/rbinstall.rb: use CONFIG['arch'] instead of $arch which was not
added finally. fix r39108.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:44 AM Feature #6669: A method like Hash#map but returns hash
I might also suggest the name `map_pairs`, derived from `each_pair`. I think it's not incorrect, as the return value from `each_pair` is the original Hash object, so the return value from `map_pairs` could also be a Hash object.
Incide...
phluid61 (Matthew Kerwin)
07:21 AM Revision c206b802 (git): Makefile.sub: rubyarchdir in config.status
* win32/Makefile.sub (config.status): now rbconfig.rb needs
rubyarchdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:21 AM Revision 26aae774 (git): mkconfig.rb: fix concatenated lines
* tool/mkconfig.rb: see if a variable is set before setting it to fix
concatenated lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:33 AM Revision 13b11810 (git): mkmf.rb: fix merge_libs
* lib/mkmf.rb (MakeMakefile#merge_libs): insert following reversal
ordered elements just after the duplicated element, not overwriting
successive elements. [ruby-core:50314] [Bug #7467]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
nobu (Nobuyoshi Nakada)
06:32 AM Revision fd0c338d (git): test_libs.rb: new test
* test/mkmf/test_libs.rb (TestMkmf:TestLibs): tests for $libs operations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:56 AM Revision c27fd333 (git): * lib/rubygems/package.rb: Ensure digests are generated for signing.
* test/rubygems/test_gem_package.rb: Test for the above.
* lib/rubygems/security/policy.rb: Ensure digests are present when
verifying a gem and match the number of signatures bidirectionally.
* test/rubygems/...
drbrain (Eric Hodel)
02:33 AM Bug #7773: Calling send("attribute=", value) returns nil instead of value
I meant to assign it to myself... in any case, it's fixed with r39121. marcandre (Marc-Andre Lafortune)
02:31 AM Bug #7773 (Closed): Calling send("attribute=", value) returns nil instead of value
This issue was solved with changeset r39121.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_insnhelper.c: attr_writer should return its argument [Bug #...
marcandre (Marc-Andre Lafortune)
01:13 AM Bug #7773 (Assigned): Calling send("attribute=", value) returns nil instead of value
gaffneyc (Chris Gaffney) wrote:
> I consider it a bug because the behavior only happens using `send`.
Actually, it is not a bug itself.
An assignment-like method call always returns its right value rather than the return value from ...
mame (Yusuke Endoh)
01:01 AM Bug #7773: Calling send("attribute=", value) returns nil instead of value
I consider it a bug because the behavior only happens using `send`. If I were to call `bar=` directly (see below) it returns the value that was set.
class Foo
attr_writer :bar
end
Foo.new.bar = "test" # => "test"
Should `sen...
gaffneyc (Chris Gaffney)
12:06 AM Bug #7773 (Open): Calling send("attribute=", value) returns nil instead of value
nobu (Nobuyoshi Nakada) wrote:
> Why do you consider it a bug?
I don't know about Chris, but here is why I consider it a bug:
* returning nil is less useful than value
* it is less intuitive too (to me)
* it is a change of behavio...
marcandre (Marc-Andre Lafortune)
01:20 AM Revision 38f04d82 (git): test_basicinstructions.rb: fix typo
* test/ruby/test_basicinstructions.rb (test_send_opassign): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:07 AM Revision 46761cdb (git): test_basicinstructions.rb: implementation defined
* test/ruby/test_basicinstructions.rb (test_send_opassign):
implementation defined behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:05 AM Revision cbb86ec6 (git): test_basicinstructions.rb: fix typo
* test/ruby/test_basicinstructions.rb (test_send_opassign): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/06/2013

11:58 PM Feature #7792: Make symbols and strings the same thing
I'd just like to highlight what performance impact we may be referring to:
https://gist.github.com/rosenfeld/4723061
I'll copy it here:
require 'benchmark'

hashes = []
1_000_000.times { hashes << { some_key_name: 1, 'some_k...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:53 PM Feature #7792: Make symbols and strings the same thing
Em 06-02-2013 12:36, Yorick Peterse escreveu:
> You don't need to hijack any code for it, you'd just use it as
> following:
>
> require 'hashie'
>
> parsed = JSON.parse('{"name": "Ruby"}')
> hash = Hashie::Ma...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:53 PM Feature #7792: Make symbols and strings the same thing
You don't need to hijack any code for it, you'd just use it as
following:

require 'hashie'

parsed = JSON.parse('{"name": "Ruby"}')
hash = Hashie::Mash.new(parsed)

hash.name # => "Ruby"
...
yorickpeterse (Yorick Peterse)
11:33 PM Feature #7792: Make symbols and strings the same thing
@yorickpeterse, your suggestion wouldn't work for my case. The hash is created by JSON.parse where I don't control the hash creation. And I don't like the idea of monkey patching core classes either. Specially in fundamental classes like... rosenfeld (Rodrigo Rosenfeld Rosas)
11:29 PM Feature #7792: Make symbols and strings the same thing
Although I'd really prefer that symbols and strings were the same there is an alternative that would satisfy me as well:
Make Hash behave as HashWithIndifferentAccess and create a new class StrictHash to keep the behavior of the existen...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:23 PM Feature #7792: Make symbols and strings the same thing
Symbols and Strings both have different use cases and that's actually a
good thing. If you want to be able to use both Strings and Symbols as
your Hash keys you can use something like Hashie:
https://github.com/intridea/hashie

...
yorickpeterse (Yorick Peterse)
11:22 PM Feature #7792: Make symbols and strings the same thing
Mmm, it sounds too big to me.
@rosenfeld I know your situation. But is it really a right solution for you? How about a hash with indifferent access? Or how about changing {foo:1} to be { 'foo' => 1 }, not { :foo => 1 } ? It seems ...
shyouhei (Shyouhei Urabe)
11:20 PM Feature #7792: Make symbols and strings the same thing
rosenfeld: see #5964 for similar discussion. luislavena (Luis Lavena)
11:13 PM Feature #7792: Make symbols and strings the same thing
I'm not sure that's even possible. If String#hash produced the same number as Symbol#hash, then that would do the trick, but that probably lead to some unforeseen breakages.
I do know one related thing, though. I don't like having to ...
trans (Thomas Sawyer)
10:48 PM Feature #7792 (Rejected): Make symbols and strings the same thing
Recently I had to replace several of my symbols to plain strings in my project. Here is what happened:
I generated some results with some class that would add items to an array like this:
results << {id: 1, name: 'abc'}
Then I w...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:53 PM Feature #7791: Let symbols be garbage collected
I'd don't think the problem is an error being raised. Just handle the exception. The issue is having a process eat up all the systems memory. Isn't it?
trans (Thomas Sawyer)
11:53 PM Feature #7791: Let symbols be garbage collected
Em 06-02-2013 12:35, SASADA Koichi escreveu:
> (2013/02/06 23:21), SASADA Koichi wrote:
>> One rough idea (but not verified) is:
>>
>> Separated Symbols into two sets:
>> (a) Symbols created by rb_intern()
>> (b) Symbo...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:53 PM Feature #7791: Let symbols be garbage collected
Em 06-02-2013 12:21, SASADA Koichi escreveu:
> (2013/02/06 22:50), shyouhei (Shyouhei Urabe) wrote:
>> @rosenfeld do you have any conceptual patch to implement it? The reason Symbols aren't GCed is simply because the committers (in...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:53 PM Feature #7791: Let symbols be garbage collected
(2013/02/06 23:21), SASADA Koichi wrote:
> One rough idea (but not verified) is:
>
> Separated Symbols into two sets:
> (a) Symbols created by rb_intern()
> (b) Symbols created from String object (String#to_sym)

Addi...
ko1 (Koichi Sasada)
11:45 PM Feature #7791: Let symbols be garbage collected
trans (Thomas Sawyer) wrote:
> An error would be raised.
So you would have a successful DoS attack, right? Because the attacker would cause an exception after the symbols limit has been reached. After that, any request relying on #to...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:26 PM Feature #7791: Let symbols be garbage collected
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> At least now I know that you're willing to accept any patch to make them GCed. :)
Yes. I promise I vote a big +1 for such thing. It cannot be a boring patch.
shyouhei (Shyouhei Urabe)
11:23 PM Feature #7791: Let symbols be garbage collected
Garbage collecting Symbols would most likely do more harm than good.
Sure, a ddos based on Symbols may no longer be possible but there's a
big chance it will introduce a significant performance penalty as a
result of having to cre...
yorickpeterse (Yorick Peterse)
11:23 PM Feature #7791: Let symbols be garbage collected
(2013/02/06 22:50), shyouhei (Shyouhei Urabe) wrote:
> @rosenfeld do you have any conceptual patch to implement it? The reason Symbols aren't GCed is simply because the committers (including matz) don't have any idea how.

One ro...
ko1 (Koichi Sasada)
11:14 PM Feature #7791: Let symbols be garbage collected
An error would be raised. trans (Thomas Sawyer)
11:09 PM Feature #7791: Let symbols be garbage collected
There is already a limit (memory bounded) and the problems begin after the limit is reached. If you just limit the amount of symbols using another kind of limit you won't prevent DoS attacks. What would happen once the limit is reached i... rosenfeld (Rodrigo Rosenfeld Rosas)
11:04 PM Feature #7791: Let symbols be garbage collected
Is it possible to set a maximum size to the number of symbols allowed? An error would be raised if the limit was hit. Would that at least suffice to stop DoS attacks? trans (Thomas Sawyer)
10:58 PM Feature #7791: Let symbols be garbage collected
Sorry @shyouhei, but I don't know Ruby's code base. But I believe I won't be able to understand how this could work if any of the core committers could get it to work :P
I didn't know this was the reason why they weren't collected by ...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:57 PM Feature #7791: Let symbols be garbage collected
Adding to shyouhei's comment, Symbols are actually used for quite a specific purpose inside MRI. Because they are essentially integers with names, they are used as keys in method tables/ivar tables/etc. as they speed up lookup quite a lo... Anonymous
10:48 PM Feature #7791 (Feedback): Let symbols be garbage collected
@rosenfeld do you have any conceptual patch to implement it? The reason Symbols aren't GCed is simply because the committers (including matz) don't have any idea how. shyouhei (Shyouhei Urabe)
10:37 PM Feature #7791 (Closed): Let symbols be garbage collected
Lots of Denial-of-Service security vulnerabilities exploited in Ruby programs rely on symbols not being collected by garbage collector.
Ideally I'd prefer symbols and strings to behave exactly the same being just alternate ways of wri...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:59 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
Em 05-02-2013 23:57, Aaron Patterson escreveu:
>> I really don't see this as a problem.
>>
>> What I see as a problem is having sites compromised.
> Who would argue with this? The security patches release do not allow
> YAML ...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:59 AM Bug #7780: Marshal & YAML should deserialize only basic types by default.
On Wed, Feb 06, 2013 at 06:05:24AM +0900, marcandre (Marc-Andre Lafortune) wrote:
> I'll repeat that the proposal is for a migration path, giving Rails or any library using YAML at least a year of transition where they can call `load!...
Anonymous
06:05 AM Bug #7780: Marshal & YAML should deserialize only basic types by default.
> serialized objects in the database. I am very against changing this
> ...
I'll repeat that the proposal is for a migration path, giving Rails or any library using YAML at least a year of transition where they can call `load!` if YAML...
marcandre (Marc-Andre Lafortune)
05:23 AM Bug #7780: Marshal & YAML should deserialize only basic types by default.
Em 05-02-2013 16:20, Aaron Patterson escreveu:
> On Mon, Feb 04, 2013 at 12:54:50PM +0900, marcandre (Marc-Andre Lafortune) wrote:
>> Issue #7780 has been updated by marcandre (Marc-Andre Lafortune).
>>
>>
>> mame (Yusuke Endo...
rosenfeld (Rodrigo Rosenfeld Rosas)
03:23 AM Bug #7780: Marshal & YAML should deserialize only basic types by default.
On Mon, Feb 04, 2013 at 12:54:50PM +0900, marcandre (Marc-Andre Lafortune) wrote:
>
> Issue #7780 has been updated by marcandre (Marc-Andre Lafortune).
>
>
> mame (Yusuke Endoh) wrote:
> > I think that this issue is not a...
Anonymous
02:13 AM Bug #7780: Marshal & YAML should deserialize only basic types by default.
After refactoring Psych to handle Tag Schema, I have to concur with @marcandre. I don't think people realize the extent to which Psych is mapping tags to classes. It's no where near YAML spec (albeit the spec is nice enough to allow you ... trans (Thomas Sawyer)
10:29 PM Bug #5278: REXML -- Malformed comment
須藤です。

In <20130206132214.95E816EA62@zanzibar.garbagecollect.jp>
"[ruby-dev:46931] Re: [ruby-changes:27041] usa:r39093 (ruby_1_9_3): merge revision(s) 33210,33212: [Backport #5278]" on Wed, 6 Feb 2013 22:22:14 +0900,
"U.Naka...
kou (Kouhei Sutou)
09:53 PM Bug #5278: REXML -- Malformed comment
こんにちは、なかむら(う)です。

In message "[ruby-dev:46929] Re: [ruby-changes:27041] usa:r39093 (ruby_1_9_3): merge revision(s) 33210,33212: [Backport #5278]"
on Feb.06,2013 20:46:00, <kou@cozmixng.org> wrote:
> 須藤です。
>
> 私がお願いしていたこ...
usa (Usaku NAKAMURA)
08:53 PM Bug #5278: REXML -- Malformed comment
須藤です。

私がお願いしていたこのバックポートなんですが、
https://bugs.ruby-lang.org/issues/7764

ChangeLogの変更だけがバックポートされていて、実際の変更
https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/33210
はバックポートされていないようにみえます。
(lib/rexml/parse...
kou (Kouhei Sutou)
09:59 PM Bug #7773 (Feedback): Calling send("attribute=", value) returns nil instead of value
Why do you consider it a bug? nobu (Nobuyoshi Nakada)
08:51 PM Revision 90eb265f (git): * doc/pty/README: Remove static documentation file
* ext/pty/pty.c: Add License to PTY module overview
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:33 PM Feature #6111 (Closed): Request for making ruby multiarchable
This issue was solved with changeset r39109.
Hans, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
configure.in: multiarch option
* configure.in (multiarch): add o...
nobu (Nobuyoshi Nakada)
05:31 PM Revision 6851ad47 (git): * vm_insnhelper.c: attr_writer should return its argument [Bug #7773]
* test/ruby/test_basicinstructions.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:16 PM Revision 4f74d59b (git): * doc/security.rb: Translate japanese kanji to english
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:35 PM Revision efcc536b (git): * 2013-02-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:35 PM Revision a99dc841 (git): * doc/security.rdoc: Link to japanese version of CVE page patch by
nagachika
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
03:53 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
> Enumerableで定義されていないArray独自のメソッドはサブクラスを返したほうが良いと思います。
> 直すタイミングはいつがいいのかな。

いまから2.0にspecレベルの変更が入るのは反対します。念のため。
kosaki (Motohiro KOSAKI)
03:38 PM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
Enumerableで定義されていないArray独自のメソッドはサブクラスを返したほうが良いと思います。
直すタイミングはいつがいいのかな。
Matz.
matz (Yukihiro Matsumoto)
03:51 PM Bug #7787 (Feedback): ruby 1.9 regexp quantifiers behave unpredictably when stacked
It is not considered as a bug, but if there is a reasonable patch I'll merge it. naruse (Yui NARUSE)
04:29 AM Bug #7787 (Rejected): ruby 1.9 regexp quantifiers behave unpredictably when stacked
Ruby (1.8 and 1.9) allows for stacked quantifiers such as /x{2}{5}/ and appears to treat them more or less as expected, i.e., modulo capturing, /x{2}{5}/ is equivalent to /(x{2}){5}/ is equivalent to /x{10}/.
However, in Ruby 1.9, suc...
calfeld (Christopher Alfeld)
03:37 PM Bug #7789 (Closed): test_setsid fails for OpenBSD
This issue was solved with changeset r39097.
George, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/ruby/test_process.rb (test_setsid): skip when platform i...
kosaki (Motohiro KOSAKI)
03:37 PM Bug #7789: test_setsid fails for OpenBSD
> The only fix is to skip the Process::getsid(pid) in the test. I wrote a patch for this.
OK. I agree with skipping test. But I would like to just skip instead of your approach.
> ...
Yeah! You are right. I'll fix this.
kosaki (Motohiro KOSAKI)
09:21 AM Bug #7789 (Assigned): test_setsid fails for OpenBSD
kosaki (Motohiro KOSAKI)
08:31 AM Bug #7789 (Closed): test_setsid fails for OpenBSD
=begin
TestProcess#test_setsid always fails because OpenBSD doesn't allow Process::getsid(pid) when the pid is in a different session. Quoting man getsid, "[EPERM] The current process and the process pid are not in the same session."
...
kernigh (George Koehler)
02:31 PM Revision a493ec03 (git): * doc/pty/README.expect: Removed static documentation file
* ext/pty/lib/expect.rb: Documentation for IO#expect
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:11 PM Bug #7790: documentation about exception in Comparable#==
英語をなんとかしました metanest (Makoto Kishimoto)
12:12 PM Bug #7790 (Closed): documentation about exception in Comparable#==
[ruby-dev:46910] に書いた Comparable#== の、例外に関する仕様の文書化です。 metanest (Makoto Kishimoto)
01:46 PM Revision e45e0641 (git): * hash.c (env_reject_bang): hide keys array from ObjectSpace
* hash.c (env_select_bang): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
01:03 PM Revision e52527a4 (git): merge miss of r39093.
I don't understand why svn merge didn't merge any files and reported no errors.
terrible...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:40 AM Revision e5938a11 (git): * ChangeLog: forgotten to commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
08:33 AM Revision 834fd50a (git): configure.in: multiarch option
* configure.in (multiarch): add option to move architecture dependent
directories. [Feature #6111]
* template/ruby.pc.in: add arch dependent paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39109 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
08:32 AM Revision 67db06ba (git): configure.in: arch dependent header directory options
* configure.in (rubyarchhdrdir, sitearchhdrdir, vendorarchhdrdir): add
options to customize architecture dependent header directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:32 AM Revision 29c214e4 (git): configure.in: arch dependent library directory options
* configure.in (rubyarchprefix, sitearchdir, vendorarchdir): add
options to customize architecture dependent library directories.
* template/ruby.pc.in, tool/mkconfig.rb, tool/rbinstall.rb: use
configured values.
* tool/mkconfig.rb: ...
nobu (Nobuyoshi Nakada)
08:32 AM Revision d32b1229 (git): configure.in: RUBY_VERSION_NAME
* configure.in (RUBY_VERSION_NAME), template/ruby.pc.in: add
substitution and define.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:32 AM Revision 85aae4c6 (git): configure.in: architecture name
* configure.in, version.c: parametric architecture name for paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:32 AM Revision a8795e35 (git): configure.in: shvar_to_cpp
* configure.in (shvar_to_cpp): convert sh variable references
by replacing with string literal forms in cpp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:05 AM Revision 6d0647c3 (git): * lib/rdoc: Import RDoc 4.0.0.rc.2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
08:00 AM Revision fd061353 (git): * lib/rdoc: Import RDoc 3.9.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:47 AM Revision b99c3e74 (git): mkconfig.rb: fix anchor
* tool/mkconfig.rb: should match whole word.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:49 AM Revision b7d6d06a (git): fixed commit miss of previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:37 AM Revision 6cd1e11d (git): * test/ruby/test_process.rb (test_setsid): ensure to call
Process.wait(). Reported by George Koehler. Thanks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:37 AM Revision 88903e23 (git): * test/ruby/test_process.rb (test_setsid): skip when platform is
OpenBSD. Contributed from George Koehler.
[Bug #7789] [ruby-core:51889]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:27 AM Bug #7782: Struct both has and does not have an allocator
Ok. One last comment on this:
> I am not positive about adding exception classes. So far, TypeError only caused by inexistence of allocator.
Assessments like "So far", are what make's a coder worry. In future that could change, the...
trans (Thomas Sawyer)
05:40 AM Bug #7782: Struct both has and does not have an allocator
=begin
Ah, `else`. I've never used that, and forgotten about it.
So I should be able to write instead:
begin
object = type.allocate
rescue TypeError
...
else
...
end
Reads kind of funny. But okay. I w...
trans (Thomas Sawyer)
04:38 AM Bug #7782: Struct both has and does not have an allocator
Sounds like you are reinventing begin; rescue; else; end: https://github.com/ruby/ruby/blob/trunk/doc/syntax/exceptions.rdoc drbrain (Eric Hodel)
03:31 AM Bug #7782: Struct both has and does not have an allocator
=begin
But is not so nice to have to write code like this:
success = begin
object = type.allocate
true
rescue TypeError
false
end
if success
...
else
...
end
Instead of like:
...
trans (Thomas Sawyer)
05:30 AM Revision ee6e1db1 (git): merge revision(s) 35474,35479,38939,38943,38963,38991,38994: [Backport #7786]
* ext/socket/raddrinfo.c (init_unix_addrinfo): support the longest
path in sockaddr_un.
(inspect_sockaddr): ditto.
(addrinfo_mdump): ditto.
(addrinfo_mload): ditto.
(rsock_unixpath_str): ...
U.Nakamura
05:25 AM Revision 42b13375 (git): * README: Fix typo, patch by zzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:21 AM Revision 2618ffc5 (git): merge revision(s) 38993: [Backport #7775]
* ext/socket/basicsocket.c (bsock_getsockname): ignore truncated
part of socket address.
(bsock_getpeername): ditto.
(bsock_local_address): ditto.
(bsock_remote_address): ditto.
* ext/sock...
U.Nakamura
05:19 AM Revision 0297247f (git): merge revision(s) 33210,33212: [Backport #5278]
* lib/rexml/parsers/baseparser.rb, test/rexml/test_comment.rb:
allow a single hyphen in comment. [Bug 5278]
Reported by Thomas Fritzsche. Thanks!!!
allow a single hyphen in comment. [Bug #5278] [ruby-core:39...
U.Nakamura
05:14 AM Revision 326ce405 (git): merge revision(s) 37174: [Backport #7754]
* file.c (realpath_rec): prevent link from GC while link_names refers
the content.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:13 AM Revision 4be94836 (git): merge revision(s) 36151: [Backport #7746]
* missing/setproctitle.c (environ): use (*_NSGetEnviron()) instead of
environ on Darwin for namespace cleanness, same as [ruby-core:00537].
[ruby-core:45615] [Bug #6576]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/b...
U.Nakamura
05:06 AM Revision 10d2b5ec (git): merge revision(s) 36905: [Backport #6977]
* dir.c (glob_make_pattern): names under recursive need to be single
basenames to match for each name. [ruby-core:47418] [Bug #6977]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39090 b2dd03c8-39d4-4d8f-98...
U.Nakamura
05:05 AM Feature #7788 (Assigned): YAML Tag Schema Support
=begin
I have endeavoured to add proper Schema support to Psych (see ((<YAML Spec|URL:http://www.yaml.org/spec/1.2/spec.html#Schema>)) on Schemas). The primary reasons for supporting schemas are two fold: security and global tag conflic...
trans (Thomas Sawyer)
04:43 AM Bug #7784 (Closed): [mingw] r39055 creates test failures and functionality loss
Fixed by r39070 which removes the check on windows. If writing a file as 0600 works on windows someday we can reintroduce it.
Credentials are loaded when .gemrc is loaded. Changing when credentials are loaded is too risky.
drbrain (Eric Hodel)
04:35 AM Revision 6eb76ba6 (git): vm_method.c: show respond_to location
* proc.c (rb_method_entry_location, rb_{mod,obj}_method_location): new
functions to obtain source location of method definition.
* vm_method.c (rb_obj_respond_to): show the location of old style
respond_to? method.
git-svn-id: svn+s...
nobu (Nobuyoshi Nakada)
04:03 AM Revision fe072cef (git): * doc/security.rdoc: Add link to CVEs on ruby-lang.org/en/security
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:49 AM Revision a77af99a (git): * NEWS: Add note about removal of CSV::load and CSV::dump from r39077
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:39 AM Revision 4ce8ede2 (git): Update README to direct questions & bug reports adequately
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:17 AM Revision 5e9648be (git): test_require.rb: shared drive
* test/ruby/test_require.rb (TestRequire#test_require_with_unc):
cannot test unless the local drive is shared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:56 AM Bug #7656: Handful of documentations
I see, the example added to the methods is misleading. I'll revamp the docs for PP, and create a new issue. vbatts (Vincent Batts)
12:33 AM Revision f5c616f0 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:33 AM Revision 585af39c (git): * ChangeLog: fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:30 AM Revision 50cdfe2d (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
 

Also available in: Atom