Project

General

Profile

Activity

From 06/01/2013 to 06/07/2013

06/07/2013

11:12 PM Revision 9ebd008f (git): * random.c (random_load): Use rb_integer_pack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:56 PM Bug #8498 (Feedback): core dump, occurs repeatedly while running tests
=begin RD
We are not espers, so we need the following information to confirm this issue:
* What configure and compile options did you specify to build your ruby?
* How do we reproduce this issue?
=end
mrkn (Kenta Murata)
10:29 PM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
I can't show you my code, but here are some common usage you can find on Github open source code:
https://github.com/dim/plexigrid/blob/6358f11af7806849de756c226791c53f39521efc/rails_plugin/plexigrid/lib/plexi_grid/column_model.rb#L21...
rosenfeld (Rodrigo Rosenfeld Rosas)
09:50 PM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
I'd prefer index_by! to raise an exception instead... What if you know that any duplicate would actually map to the same object?
Also, you can't judge how my ORM should work (anyway, all the ORM I've worked with, both in Ruby, Groovy ...
rosenfeld (Rodrigo Rosenfeld Rosas)
04:40 PM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> Eregon (Benoit Daloze) wrote:
> ...
I think your ORM should do it (or you should use a different technique in the code).
In this case it is highly preferable to raise an exception if there ...
Eregon (Benoit Daloze)
10:16 PM Revision 97b5a9c1 (git): Refine error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:16 PM Revision b0f14c8b (git): * random.c (numberof): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:01 PM Revision 8bc16423 (git): * random.c: include internal.h.
(mt_state): Use rb_integer_unpack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:56 PM Revision 8ce912bd (git): * bignum.c (integer_pack_loop_setup): word_num_nailbytes_ret argument
removed.
(rb_integer_pack): Follow the above change.
(rb_integer_unpack): Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:39 PM Revision 3dcea601 (git): * bignum.c (validate_integer_pack_format): Renamed from
validate_integer_format.
(integer_pack_loop_setup): Renamed from integer_format_loop_setup.
(integer_pack_fill_dd): Renamed from int_export_fill_dd.
(integer_pack_take_lowbits): Renamed from int_export_take_lowbits.
(integer_unpa...
akr (Akira Tanaka)
03:10 PM Revision dac364db (git): Delete an empty line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:06 PM Feature #6373: public #self
trans (SYSTEM ERROR) wrote:
> Why no answer for: "Why not just public `#self`"? Why add YAMS?
> ...
Because explicit identity element is a VIP of the functional space.
Summary of the discussion thus far + my opinions follow:
Propos...
Anonymous
03:02 PM Revision 860c83a5 (git): * 2013-06-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision f31aed62 (git): * bignum.c (rb_integer_pack): Arguments changed. Use flags to
specify word order and byte order.
(rb_integer_unpack): Ditto.
(validate_integer_format): Follow the above change.
(integer_format_loop_setup): Ditto.
* pack.c: Ditto.
* internal.h: Ditto.
(INTEGER_PACK_MSWORD_FIRST): Defined.
...
akr (Akira Tanaka)
02:53 PM Feature #8469: ABI checker とか導入しませんか
2013年6月7日 2:08 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:

>> 1.9.3 と 2.0.0 はそれぞれの p0 との比較です。
>> ついでに trunk は 2.0.0p0 と比較してみました。
>> (1.8.7 はそろそろ終わるはずなのでやってません)
>
> うを。なんと、もうできたとは。もうこれでいいじゃん!出力想像してたよりも
> ずっと綺麗だし。

そうい...
akr (Akira Tanaka)
02:53 PM Feature #8469: ABI checker とか導入しませんか
2013年6月7日 12:31 Nobuyoshi Nakada <nobu@ruby-lang.org>:

> confname.hというファイルで大量に出ているようなんですが、これは何でしたっけ。

/usr/include/bits/confname.h っぽいですが、なんですかねぇ。
--
[田中 哲][たなか あきら][Tanaka Akira]
akr (Akira Tanaka)
12:53 PM Feature #8469: ABI checker とか導入しませんか
(13/06/07 0:42), Tanaka Akira wrote:
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130606T130700Z.log.html.gz#abi-check
>
> 1.9.3 と 2.0.0 はそれぞれの p0 との比較です。
> ついでに trunk は 2.0.0p0 と比較してみました。

confname.hというファ...
nobu (Nobuyoshi Nakada)
02:23 AM Feature #8469: ABI checker とか導入しませんか
2013/6/6 Tanaka Akira <akr@fsij.org>:
> 2013年6月6日 3:29 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:
>>
>>> まぁそれはつけるとして、悩みどころは出力かなぁ。
>>>
>>> 今は標準出力に垂れ流したのをひとつのファイルとして記録しているのですが、
>>> HTML ファイルをそのまま標準出力に出すのはよろしくないですよね。
>>>
...
kosaki (Motohiro KOSAKI)
12:53 AM Feature #8469: ABI checker とか導入しませんか
2013年6月6日 3:29 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:
>
>> まぁそれはつけるとして、悩みどころは出力かなぁ。
>>
>> 今は標準出力に垂れ流したのをひとつのファイルとして記録しているのですが、
>> HTML ファイルをそのまま標準出力に出すのはよろしくないですよね。
>>
>> chkbuild 的に簡単なのは w3m あたりでテキストにして標準出力に出してしまうとい...
akr (Akira Tanaka)
02:22 PM Revision fb4c8c3a (git): * variable.c (rb_const_set): fix missing semicolon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:25 PM Revision 083e7e39 (git): * variable.c (rb_const_set): fix variable type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:17 PM Revision bcd5328c (git): * lib/rubygems/specification.rb (Gem::Specification#to_yaml):
use Gem::NoAliasYAMLTree.create instead of Gem::NoAliasYAMLTree.new
to suppress deprecated warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:41 PM Revision a08b0011 (git): * bignum.c (rb_integer_pack): Renamed from rb_int_export.
(rb_integer_unpack): Renamed from rb_int_import.
* internal.h, pack.c: Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:16 PM Revision 07b72b8c (git): Update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:06 PM Revision 8f7a3075 (git): * bignum.c (integer_format_loop_setup): Extracted from rb_int_export
and rb_int_import.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:02 PM Feature #8422: add Enumerable#reverse_sort and Enumerable#reverse_sort_by
How do you sort an infinite Enumerable?
~~~
ruby -rprime -e 'p Prime.each.reverse_sort.take 10'
~~~
drbrain (Eric Hodel)
10:49 AM Revision de1b0c96 (git): * bignum.c (validate_integer_format): Extracted from rb_int_export and
rb_int_import.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:37 AM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
I meant `Hash#select` and `Hash#reject` by "the existing methods".
i.e.:
~~~ruby
hash = other_hash.select(:key1, :key2, :key3)
hash = other_hash.reject(:key1, :key2, :key3)
~~~
But `Hash#slice` and `Hash#except` seems fine.
nobu (Nobuyoshi Nakada)
07:53 AM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
On Fri, Jun 7, 2013 at 1:50 AM, Zachary Scott <zachary@zacharyscott.net> wrote:
>> Please update description if the proposal has changed (ie: `Hash#[]`)

I mentioned `Hash#[]` as the reply to nobu's comment #6.
It has not change...
mrkn (Kenta Murata)
03:22 AM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
+1 vipulnsward (Vipul Amler)
12:53 AM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
Yay, +1 for `slice` & `except`
BTW, makes no sense to me if `h[:foo, :bar]` returns keys and values in a
hash while `h[:foo]` returns a value.
---
\<lay trum/\>
claytrump (Clay Trump)
12:38 AM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
prijutme4ty (Ilya Vorontsov) wrote:
> mrkn (Kenta Murata) wrote:
> ...
My proposal primaliry consists of Hash#slice, Hash#except, and bang versions of them.
Hash#[] is optional.
mrkn (Kenta Murata)
12:15 AM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
mrkn (Kenta Murata) wrote:
> nobu (Nobuyoshi Nakada) wrote:
> ...
There was a proposal (can't find it) to make indexing by multiple arguments to work as nested hashes so that `hsh[:a,:b,:c]` works as `(hsh[:a] && hsh[:a][:b] && hsh[:a]...
prijutme4ty (Ilya Vorontsov)
10:24 AM Revision 84d8e582 (git): * bignum.c (rb_absint_size): Use numberof.
(rb_int_export): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:01 AM Revision bd15d4ca (git): * internal.h (numberof): Gathered from various files.
* array.c, math.c, thread_pthread.c, iseq.c, enum.c, string.c, io.c,
load.c, compile.c, struct.c, eval.c, gc.c, parse.y, process.c,
error.c, ruby.c: Remove the definitions of numberof.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
akr (Akira Tanaka)
09:40 AM Revision 8e65ff7e (git): Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:25 AM Revision e54d7088 (git): * bignum.oc (rb_absint_size): Declare a variable, i, just before used
to suppress a warning.
(rb_int_export): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
08:41 AM Revision f8cf4370 (git): * bignum.c (rb_absint_size): explicit cast to BDIGIT to avoid implicit
64 bit to 32 bit shortening warning
* bignum.c (rb_int_export): ditto
* bignum.c (int_import_push_bits): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
08:31 AM Revision 97b825bd (git): * internal.h (RCLASS_SUPER): use descriptive variable name
* internal.h (RCLASS_SET_SUPER): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
07:24 AM Bug #3353 (Closed): Building 32-bit only on Snow Leopard (dylib failed to build)
I maintain the CI for 32-bit OS X.
You can check the result of it in http://rubyci.org/
mrkn (Kenta Murata)
07:22 AM Bug #5538 (Feedback): ruby memory error running minitests
mrkn (Kenta Murata)
06:57 AM Revision e8c6835f (git): fix a typo for r41123
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:57 AM Revision 7f0a2479 (git): fix a typo for r41128
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:45 AM Revision cac2f455 (git): * ext/json/fbuffer/fbuffer.h (fbuffer_append_str): change the place of
RB_GC_GUARD. it should be after the object is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:25 AM Revision b309a369 (git): * gc.c (before_gc_sweep): noinline can also avoid the segv instead of
-O0 of r41084. this way is expected less slow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:52 AM Revision 83db393e (git): adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:50 AM Revision 5385ae9a (git): * rational.c (numeric_quo): move num_quo in numeric.c to numeric_quo
in rational.c to refer canonicalization state for mathn support.
[ruby-core:41575] [Bug #5736]
* numeric.c (num_quo): ditto.
* test/test_mathn.rb: add a test for the change at r41109.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
Kenta Murata
02:49 AM Revision 0b87f8d4 (git): * gc.c (gc_clear_slot_bits): used only if no RGenGC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:41 AM Revision 147775ac (git): use NUM2SIZET and SIZET2NUM
* configure.in: revert r41106. size_t may not be unsigned
* bignum.c (rb_absint_size_in_word, rb_int_export, rb_int_import): use
NUM2SIZET() and SIZET2NUM() already defined in ruby/ruby.h.
* ext/-test-/bignum/export.c (rb_int_export...
nobu (Nobuyoshi Nakada)
02:36 AM Revision 432321d7 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:32 AM Revision f37d0629 (git): * gc.c: use oldgen bitmap as initial mark bitmap when mijor gc.
so can skip oldgen bitmap check around mark & sweep.
* gc.c (slot_sweep_body): change scan algorithm for performance:
from object's pointer base to bitmap one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41128 ...
Masaya Tarui
02:28 AM Revision 1f23dca9 (git): * gc.c: introduce oldgen bitmap for preparing performance tuning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
02:25 AM Revision 5a06ae3b (git): * gc.c (MARKED_IN_BITMAP, MARK_IN_BITMAP, CLEAR_IN_BITMAP): bring
bitmap macros in one place, and introduce BITMAP_BIT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
02:21 AM Revision 2af3621a (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:20 AM Revision 7185eac5 (git): * array.c (ary_new): change order of allocation in order
to remove FL_OLDGEN operation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
02:18 AM Revision b1bbe884 (git): * tool/rdocbench.rb: add gc total time infomation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
01:23 AM Revision f1a8f228 (git): typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
01:17 AM Revision e7dfa869 (git): * gc.c: remove "Sunny" terminology.
"Sunny" doesn't mean antonym of "Shady" (questionable, doubtful, etc).
Instead of "Suuny", use "non-shady" or "normal".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:29 AM Revision 3ebd1ff0 (git): * bignum.c (rb_int_import): explicitly casting BDIGIT_DBL to BDIGIT
to prevent warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata

06/06/2013

11:05 PM Revision a8c4a952 (git): Arguments renamed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:05 PM Revision e0bb10be (git): Fix the class name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:45 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
+1 rosenfeld (Rodrigo Rosenfeld Rosas)
10:43 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
mrkn (Kenta Murata) wrote:
> I think `Hash#[]` with the multiple arguments can be an alternative of `Hash#slice`.
`Hash#[]` should return the values, not the pairs.
nobu (Nobuyoshi Nakada)
05:20 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
+1 Anonymous
05:10 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
nobu (Nobuyoshi Nakada) wrote:
> Or enhance the existing methods?
I think `Hash#[]` with the multiple arguments can be an alternative of `Hash#slice`.
mrkn (Kenta Murata)
04:59 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
Or enhance the existing methods? nobu (Nobuyoshi Nakada)
04:51 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
I could fix the description. mrkn (Kenta Murata)
04:28 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
zzak (Zachary Scott) wrote:
> Hello,
> ...
Yes, It's my mistake!
How can I edit the issue description?
mrkn (Kenta Murata)
04:23 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
Hello,
On Thu, Jun 6, 2013 at 4:12 PM, mrkn (Kenta Murata) <muraken@gmail.com> wrote:
> On Rails, they can be written in the following forms by using ActiveSupport's features.
> ...
Do you mean "`other_hash.except(...)`"? There is a...
zzak (zzak _)
04:13 PM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
+1 sorah (Sorah Fukumori)
04:12 PM Feature #8499 (Closed): Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
According to my experiences, the following two idioms often appeare in application codes.
1. `hash = other_hash.select { |k, | [:key1, :key2, :key3].include? k }`
2. `hash = other_hash.reject { |k, | [:key1, :key2, :key3].include? k ...
mrkn (Kenta Murata)
10:31 PM Bug #5736 (Closed): Numeric#quo should convert with #to_r
This issue was solved with changeset r41109.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* numeric.c (num_quo): Use to_r method to convert the receiver to...
mrkn (Kenta Murata)
10:31 PM Revision d1f3d41f (git): * internal.h (rb_int_export): countp argument is split into
wordcount_allocated and wordcount.
* bignum.c (rb_int_export): Follow the above change.
* pack.c (pack_pack): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:18 PM Revision 7ba52b04 (git): * NEWS: describe a compatibility issue of Numeric#quo
introduced at r41109.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
10:16 PM Revision b465a2b4 (git): * NEWS: fix style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
09:49 PM Revision 896619c7 (git): * numeric.c: remove unused ID id_to_r introduced in r41109.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
09:21 PM Revision 3d8f6f1e (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:20 PM Revision a3b833c0 (git): * 2013-06-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:20 PM Revision c9c67d2f (git): * bignum.c (rb_int_import): New function.
(int_import_push_bits): Ditto.
* internal.h (rb_int_import): Declared.
* pack.c (pack_unpack): Use rb_int_import for BER compressed integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
08:29 PM Feature #8468: Remove $SAFE
Hi,

I use $SAFE in ActiveScriptRuby (IActiveScript interface for ruby) for
implementing IObjectSafety interface (Ixxx is defined by Component
Object Model specification but I think it's not your concern so I don't
describe it...
arton (Akio Tajima)
07:35 PM Bug #8500 (Closed): date_core testing address not value of variable on stack
coding error;
but, it seems to lack effects.
thanks.
tadf (tadayoshi funaba)
05:09 PM Bug #8500 (Closed): date_core testing address not value of variable on stack
=begin
This line appears ten times in date_core.c:
decode_year(y, ns ? -1 : +1, &nth2, ry);
The type of ns is int*, and it seems to always be populated with the address of a stack variable, with the effect that the condition is ...
teleological (Riley Lynch)
03:54 PM Feature #8497: private, protected, private_constなどがブロックを受け取るようにする
headius が反対しているという事実を指摘しておきます。 [ruby-core:47572]
卜部は英語として読み下した時の違和感が気になります。 [ruby-core:47556]
shyouhei (Shyouhei Urabe)
02:42 PM Bug #8313 (Third Party's Issue): rubygem 2.0 can't communicate with remote sources http://rubygems.org/
Closed per author's request. drbrain (Eric Hodel)
02:40 PM Revision 64ed7df5 (git): vm_method.c: change argument of set_visibility
* vm_method.c (set_visibility): use rb_method_flag_t as well as
set_method_visibility() and rename argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:31 PM Revision 7708560b (git): * numeric.c (num_quo): Use to_r method to convert the receiver to
rational. [ruby-core:41575] [Bug #5736]
* test/ruby/test_numeric.rb: add a test for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
01:01 PM Revision b1411888 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:58 PM Revision 58eac249 (git): Specify dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:23 PM Feature #3753: value of def-expr
RubyKaigiのたびに思い出されるネタなわけですが、そういうわけで再浮上。 usa (Usaku NAKAMURA)
11:57 AM Revision 9fea8758 (git): * configure.in: Invoke RUBY_REPLACE_TYPE for size_t.
Don't invoke RUBY_CHECK_PRINTF_PREFIX for size_t to avoid conflict
with RUBY_REPLACE_TYPE.
* internal.h (rb_absint_size): Declared.
(rb_absint_size_in_word): Ditto.
(rb_int_export): Ditto.
* bignum.c (rb_absint_size): New functio...
akr (Akira Tanaka)
10:33 AM Revision c247e628 (git): * ext/date/date_core.c: fixed coding error [ruby-core:55337].
reported by Riley Lynch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
10:04 AM Bug #5515 (Closed): Integer#quo(aFloat) の結果が Rational になる
This issue was solved with changeset r41099.
tadayoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* numeric.c (num_quo): should return a Float for a Float arg...
mrkn (Kenta Murata)
06:54 AM Feature #6373: public #self
laise (Alexey Chernenkov) wrote:
> Quote: "I think that tap method can be improved to be used without block yielding self."
> ...
Because it's called "tap." Tap doesn't "return self", it taps into an execution flow, extracting an inte...
phluid61 (Matthew Kerwin)
02:45 AM Feature #6373: public #self
Quote: "I think that tap method can be improved to be used without block yielding self."
+1
It is a VERY usefull feature! Can't understand why #tap still need to be used with block only.
laise (Alexey Chernenkov)
05:18 AM Revision fbece268 (git): * ext/objspace/object_tracing.c: rename allocation_info to
lookup_allocation_info. At times I confused "struct
allocation_info" with "function allocation_info".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
05:10 AM Revision 15d26c3f (git): * ext/objspace/object_tracing.c: allocation_info function isn't
called by any other file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
04:53 AM Revision 68abc248 (git): Remove empty directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:29 AM Feature #8469: ABI checker とか導入しませんか
>>> 比較対象を用意しないといけないのが面倒くさそうでほったらかしてたんですが。
>>
>> それが受け入れられないとするとglibc みたいに公開するシンボルを全部別ファイルに記述させて、
>
> 別に受け入れられないことはなくて、おっくう、くらいの感じです。

なるほど。じゃあ、いちど今提案している比較方式で走ってみて問題が多いようなら
再議論ということで。


> で、試してみたんですが、--enable-shared ...
kosaki (Motohiro KOSAKI)
03:00 AM Revision 907e3885 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:27 AM Revision 37fe2987 (git): vm_method.c: top_private rdoc
* vm_method.c (top_private): copy rdoc from top_public.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:25 AM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
Eregon (Benoit Daloze) wrote:
> The name does not indicate clearly what it does (which is chosen if multiple yield the same key) and it is a possibly lossy operation. Can you give a couple examples where it is much better than #group_by...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:27 AM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> And what is wrong with the semantics?
The name does not indicate clearly what it does (which is chosen if multiple yield the same key) and it is a possibly lossy operation. Can you give a ...
Eregon (Benoit Daloze)
12:18 AM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
I don't see any issues with index_by, but how about map_by? And what is wrong with the semantics? rosenfeld (Rodrigo Rosenfeld Rosas)
12:16 AM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> if you read index as a name, then you're correct, but in index_by it is a verb, meaning that you're indexing an enumerable by something, by transforming it on a hash indexed by that something...
Eregon (Benoit Daloze)
01:04 AM Revision febc42d0 (git): * numeric.c (num_quo): should return a Float for a Float argument.
[ruby-dev:44710] [Bug #5515]
* test/ruby/test_fixnum.rb: Add an assertion for the above change.
* test/ruby/test_bignum.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:25 AM Bug #8498 (Third Party's Issue): core dump, occurs repeatedly while running tests
Process: ruby [42772]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: 0
Code Type: X86-64 (Native)
Parent Process: fish [469]
User ID: 502
Date/Time: 2013-06-05 17:14:28.22...
mdemare (Michiel de Mare)
12:05 AM Bug #8496 (Closed): String#b does not check the code range properly
This issue was solved with changeset r41092.
Akinori, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (String#b): Allow code range scan to happen later s...
knu (Akinori MUSHA)

06/05/2013

11:53 PM Feature #8490: Bring ActiveSupport Enumerable#index_by to core
if you read index as a name, then you're correct, but in index_by it is a verb, meaning that you're indexing an enumerable by something, by transforming it on a hash indexed by that something... Please reconsider. rosenfeld (Rodrigo Rosenfeld Rosas)
09:15 AM Feature #8490 (Rejected): Bring ActiveSupport Enumerable#index_by to core
I don't think "index" is a proper term here. Array#index, Enumerable#find_index, Enumerable#with_index all treat "index" as an offset to an item in the enumerables. Whereas this method (index_by) is not related to offsets.
Matz.
matz (Yukihiro Matsumoto)
01:30 AM Feature #8490 (Rejected): Bring ActiveSupport Enumerable#index_by to core
It seems to be a common sense to have the useful implementation of Enumerable#index_by as in ActiveSupport.
index_by acts like group_by but only maps a single record, instead of an array, keeping the last match only. It's usually used...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:26 PM Feature #8497 (Rejected): private, protected, private_constなどがブロックを受け取るようにする
RubyKaigi 2013のときにまつもとさんと話したことをチケットにします。
先に提案を書きます。
`private`, `protected`, `private_const`など可視性を変更するメソッドがブロックを受け取るようにして、そのブロック内の可視性を変更するようにしてはどうか。
例:
~~~ruby
private do
def some_private_method
end
end
def some_pub...
kou (Kouhei Sutou)
11:13 PM Bug #8496: String#b does not check the code range properly
coderange_scan may cost too much time, so commit it with ENC_CODERANGE_CLEAR(str);. naruse (Yui NARUSE)
09:41 PM Bug #8496: String#b does not check the code range properly
A patch is attached.
This problem also applies to ruby_2_0_0.
knu (Akinori MUSHA)
09:35 PM Bug #8496 (Closed): String#b does not check the code range properly
Currently "abc".b.ascii_only? returns false, which should be true. knu (Akinori MUSHA)
10:23 PM Feature #6065: Allow Bignum marshalling/unmarshalling from C API
2012/2/25 Yusuke Endoh <mame@tsg.ne.jp>:

> I agree with akr; Martin's proposal depends on the type long, which
> is not "portable" enough. For designing the APIs, I think we should
> refer gmplib, which is a giant in this area...
akr (Akira Tanaka)
09:53 PM Bug #8495: include/ruby/win32.h assumes that __STRICT_ANSI__ isn’t set
On Wed, Jun 5, 2013 at 11:20 AM, luislavena (Luis Lavena)
<luislavena@gmail.com> wrote:
>
> Issue #8495 has been updated by luislavena (Luis Lavena).
>
> Status changed from Open to Feedback
>
> Hello Nikolai,
>
> Than...
Anonymous
06:20 PM Bug #8495 (Feedback): include/ruby/win32.h assumes that __STRICT_ANSI__ isn’t set
Hello Nikolai,
Thanks for the report.
Can you provide us with a concrete example where this issue is happening?
Also, seems you've already dig into this to provide this feedback, any particular resolution suggestion?
luislavena (Luis Lavena)
06:18 PM Bug #8495 (Closed): include/ruby/win32.h assumes that __STRICT_ANSI__ isn’t set
Hi!
include/ruby/win32.h assumes that __STRICT_ANSI__ isn’t set when it uses _controlfp() in rb_w32_pow(). This isn’t the case if you give, for example, -std=c99 to gcc. If __STRICT_ANSI__ is set, float.h won’t define _controlfp(), ...
now (Nikolai Weibull)
09:38 PM Bug #8488: Refactor rbinstall.rb for maintenance, clarity, reuse
I have filed a pull request with RubyGems to better support default gems: https://github.com/rubygems/rubygems/pull/566
The existing format in MRI 2.0 remains supported, but would be deprecated in favor of using unmodified gemspecs fr...
headius (Charles Nutter)
04:26 PM Feature #8494 (Open): Safe method for defensive copies. alternative to 'dup'
As a developer
I want a simple method that will return a "safe" version of my object
So I can make defensive copies easily and safely
This is related to issue 1844: http://www.ruby-forum.com/topic/3650325
I have tried using 'du...
ellipsoid (Andrew Northrop)
04:16 PM Revision b43d6331 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:15 PM Revision 3a17a592 (git): * gc.c (gc_mark): get rid of pushing useless objests.
* gc.c (rgengc_rememberset_mark): bypass gc_mark() in order to push
sunny old object at minor gc.
* gc.c (gc_mark_children): move sunny old check to gc_mark().
* gc.c (rgengc_check_shady): remove DEMOTE that alr...
Masaya Tarui
04:01 PM Revision 2b78c325 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:57 PM Revision 5d10f351 (git): * gc.c (rgengc_rememberset_mark): change scan algorithm for performance:
from object's pointer base to bitmap one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
03:32 PM Revision 6e4cfd94 (git): * win32/win32.c (NET_LUID): define it on MinGW32.
mingw-w64 has NET_LUID but mingw32 (mingw.org) still doesn't have
NET_LUID. reported by taco on IRC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:05 PM Revision dcd8cdbf (git): * 2013-06-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 PM Revision 91538a38 (git): * string.c (String#b): Allow code range scan to happen later so
ascii_only? on a result string returns the correct value.
[ruby-core:55315] [Bug #8496]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
03:02 PM Bug #8493 (Closed): Random Segmentation fault in sass
Hi,
Unfortunately I do not have a good repro for this. It happens several times a day on our Ubuntu 12.04 build agents during a sprockets asset precompile. Most precompiles go just fine. This has happened with old versions of ruby as ...
aaronjensen (Aaron Jensen)
01:44 PM Revision 61b8250a (git): * lib/net/imap.rb (capability_response): should ignore trailing
spaces. Thanks, Peter Kovacs. [ruby-core:55024] [Bug #8415]
* test/net/imap/test_imap_response_parser.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:45 PM Bug #8492 (Closed): ObjectSpace.after_gc_start_hook aborts with GC.stress
以下を実行すると assert(during_gc > 0) に失敗して abort します。
ruby -robjspace -e'ObjectSpace.after_gc_start_hook=proc{};GC.stress=true;{}'
gc.c:3818 の
gc_event_hook(objspace, RUBY_INTERNAL_EVENT_GC_START, 0 /* TODO: pass minor/immediate flag? */);...
naruse (Yui NARUSE)
12:17 PM Revision 13bba43d (git): * bignum.c (big_fdiv): Use nlz() instead of bdigbitsize().
(bdigbitsize): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:53 AM Revision 4a97761c (git): add description of test in comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:35 AM Revision 27e92c66 (git): * include/ruby/ruby.h: fix alignment in comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
11:32 AM Revision 3264042e (git): add parentheses for clarity
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Charlie Somerville
11:27 AM Feature #7022 (Closed): add event hook for garbage collection
Fixed at r40940.
(ticket is here: https://bugs.ruby-lang.org/issues/8107)
Thank you.
authorNari (Narihiro Nakamura)
11:07 AM Revision 99638b5d (git): * random.c (int_pair_to_real_inclusive): Add a cast to BDIGIT.
(random_load): Fix shift width for fixnums.
Re-implement bignum extraction without ifdefs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:53 AM Feature #8469: ABI checker とか導入しませんか
2013年6月4日 15:26 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:

>> 比較対象を用意しないといけないのが面倒くさそうでほったらかしてたんですが。
>
> それが受け入れられないとするとglibc みたいに公開するシンボルを全部別ファイルに記述させて、

別に受け入れられないことはなくて、おっくう、くらいの感じです。

で、試してみたんですが、--enable-shared が必...
akr (Akira Tanaka)
07:25 AM Bug #8485: Incorrect period index for Gregorian Dates at beginning of each CM_PERIOD
different alignments are intentional.
nearly all parts don't require normalized nth and jd.
however, <=> is an exception.
thanks.
tadf (tadayoshi funaba)
06:36 AM Revision 3fb267e5 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:31 AM Revision c0089b4d (git): use attribute is more simple way for r41083
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:27 AM Revision 77857bfc (git): * gc.c (before_gc_sweep): don't optimize it to avoid segv on Ubuntu
10.04 gcc 4.4.
http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130527T190301Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:38 AM Revision 6ef15ce5 (git): merge revision(s) 40887,40888,40894,40896: [Backport #8431]
* win32/win32.c (setup_overlapped, finish_overlapped): extract from
rb_w32_read() and rb_w32_write().
* win32/win32.c (setup_overlapped): check the error code in addition
to the result of SetFilePointer() to ...
U.Nakamura
01:43 AM Revision 2ae30c3f (git): * tool/mkrunnable.rb: fix for native mswin compile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:48 AM Revision 0094cd8c (git): * test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
EACCES for Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:33 AM Feature #7510 (Closed): irb --help が古い
This issue was solved with changeset r41071.
Sho, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/irb/lc/ja/help-message: update help messages.
following r4...
ayumin (Ayumu AIZAWA)

06/04/2013

11:52 PM Bug #8303 (Assigned): YAML does not persist Exception#backtrace
ayumin (Ayumu AIZAWA)
11:47 PM Bug #8487 (Closed): Fix documentation for Hash(nil)
This issue was solved with changeset r41066.
Stefan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c (rb_Hash): fix docs. patched by Stefan Schüßler.
[...
ayumin (Ayumu AIZAWA)
09:12 PM Bug #8487 (Closed): Fix documentation for Hash(nil)
=begin
(({Kernel#Hash(nil)})) returns (({{}})) as said in the documentation: ((*"Returns an empty Hash when arg is nil or []."*)) The example however shows a return value of (({nil})).
=end
sos4nt (Stefan Schüßler)
11:37 PM Bug #8488: Refactor rbinstall.rb for maintenance, clarity, reuse
Here is a first pass breaking rbinstall.rb into a set of component libraries and reducing the use of global state. Starting to look a bit more like a library, which I think is what we want.
There's no functionality change in this patc...
headius (Charles Nutter)
09:27 PM Bug #8488 (Rejected): Refactor rbinstall.rb for maintenance, clarity, reuse
tool/rbinstall.rb is used to install many parts of Ruby at "make install" time, but it has grown to a rather cumbersome size. It also houses some logic that could/should be reused by other implementations, like the default gem installati... headius (Charles Nutter)
11:15 PM Revision 14ec81b0 (git): * bignum.c (rb_big_pow): Don't need to multiply SIZEOF_BDIGITS.
Use nlz instead of bitlength_bdigit.
(bitlength_bdigit): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:23 PM Bug #8486: Random segmentation fault
Can you reproduce without rails and ruby 2.0.0-p195

On Tuesday, June 4, 2013, manudwarf (Emmanuel Bourgerie) wrote:

>
> Issue #8486 has been updated by manudwarf (Emmanuel Bourgerie).
>
>
> I forgot to mention : I trie...
zzak (zzak _)
08:33 PM Bug #8486: Random segmentation fault
I forgot to mention : I tried with ruby 2.0.0 and updated bundle, changed nothing... manudwarf (Emmanuel Bourgerie)
08:19 PM Bug #8486 (Closed): Random segmentation fault
Hello,
Before starting, this is my first bug report here, feel free to tell me if I need to add/modify anything.
I came across a weird segmentation fault, and I apologies for not being able to be more precise about what is happenin...
manudwarf (Emmanuel Bourgerie)
10:18 PM Revision 4eabe819 (git): * ext/date/date_core.c (d_lite_cmp, d_lite_equal): simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:09 PM Revision 551bcc63 (git): * ext/date/date_core.c: fixed a bug [ruby-core:55295]. reported
by Riley Lynch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
09:54 PM Revision 091c24d5 (git): * lib/rubygems: Update to RubyGems 2.0.3
* test/rubygems: Tests for the above.
* NEWS: Added RubyGems 2.0.3 note.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:35 PM Revision 0454c0a2 (git): * doc/marshal.rdoc: Add description of Marshal format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
09:32 PM Feature #8461: Easy way to disable certificate checking in XMLRPC::Client
Thanks for accepting it.
I'll check this and other XMLRPC related tickets. (I go traveling in this week.)
kou (Kouhei Sutou)
02:06 AM Feature #8461: Easy way to disable certificate checking in XMLRPC::Client
The new maintainer accepted.
Matz.
matz (Yukihiro Matsumoto)
04:16 PM Revision ed318080 (git): * array.c (Array#+): fix documentation example.
Patch by Logan Serman. [Fixes GH-324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
03:56 PM Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
duerst (Martin Dürst) wrote:
> I don't think I agree with the proposer. The example looks good, but what about something like:
> ...
I certainly didn't intend for the default value to have some idea of the type of comparison done by th...
phiggins (Pete Higgins)
03:51 PM Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
marcandre (Marc-Andre Lafortune) wrote:

> First of, it's a really bad idea to set the default of a hash to a mutable object:
Yes, I didn't consider the problem of returning the same array for every key, and that would have to be c...
phiggins (Pete Higgins)
03:52 PM Bug #8485 (Closed): Incorrect period index for Gregorian Dates at beginning of each CM_PERIOD
=begin
In Ruby 1.9-2.0 date_core, the year and chronological Julian day of a Date are stored as offsets from an indexed period relative to 0j, -4712-01-01 in the Julian calendar. Each period consists of exactly 194,796 Julian years, i.e...
teleological (Riley Lynch)
03:44 PM Revision cc94db60 (git): merge revision(s) 41014: [Backport #8467]
* ext/zlib/zlib.c (gzfile_read, gzfile_read_all, gzfile_getc),
(gzreader_gets): check EOF. [ruby-core:55220] [Bug #8467]
* ext/zlib/zlib.c (gzfile_read, gzfile_read_all, gzfile_getc),
(gzreader_gets): check ...
nagachika (Tomoyuki Chikanaga)
03:34 PM Revision 21538b21 (git): merge revision(s) 39899:
* test/ruby/test_require.rb: Remove temporally files in the tests.
* test/ruby/test_rubyoptions.rb: Ditto.
* test/logger/test_logger.rb: Ditto.
* test/psych/test_psych.rb: Ditto.
* test/readline/test_r...
nagachika (Tomoyuki Chikanaga)
03:33 PM Revision ee9c279e (git): * lib/irb/lc/ja/help-message: update help messages.
following r41028. [ruby-dev:46707] [Feature #7510]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ayumin (Ayumu AIZAWA)
03:29 PM Feature #8469: ABI checker とか導入しませんか
>> CI って誰に相談すればいいんですかね。今のツールだと比較対象のバイナリまたは
>> ABI情報をぶっこぬいたXMLファイル群をtarアーカイブしたものを比較対象として
>> どこかにおいておかないといけなくて、1.9.3だとp0からはもう差異があるのはわかってるので
>> 最新のパッチリリースをCIに置きたいところなんですけど。
>
> 誰に、といわれると chkbuild に関しては私でしょうが、
> 後でちょっと見てみます。
>...
kosaki (Motohiro KOSAKI)
02:29 PM Feature #8469: ABI checker とか導入しませんか
2013年6月4日 14:23 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:
>
> CI って誰に相談すればいいんですかね。今のツールだと比較対象のバイナリまたは
> ABI情報をぶっこぬいたXMLファイル群をtarアーカイブしたものを比較対象として
> どこかにおいておかないといけなくて、1.9.3だとp0からはもう差異があるのはわかってるので
> 最新のパッチリリースをCIに置きたいところなんですけ...
akr (Akira Tanaka)
02:29 PM Feature #8469: ABI checker とか導入しませんか
> CIに組み込んでもらえるとちょー助かる感じですぅ

CI って誰に相談すればいいんですかね。今のツールだと比較対象のバイナリまたは
ABI情報をぶっこぬいたXMLファイル群をtarアーカイブしたものを比較対象として
どこかにおいておかないといけなくて、1.9.3だとp0からはもう差異があるのはわかってるので
最新のパッチリリースをCIに置きたいところなんですけど。
kosaki (Motohiro KOSAKI)
02:00 PM Feature #8469: ABI checker とか導入しませんか
CIに組み込んでもらえるとちょー助かる感じですぅ usa (Usaku NAKAMURA)
03:10 PM Revision a76f5eb0 (git): * 2013-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision 5eab13c3 (git): * marshal.c (r_object0): Generalize a round up expression.
Use BDIGIT instead of int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:09 PM Revision 0c91b249 (git): merge revision(s) 40925: [Backport #8451]
* dir.c (bracket): fix copy-paste error. When the first and last
characters of fnmatch range have different length, fnmatch may
have wrongly matched a path that does not really match.
Coverity Scan found th...
nagachika (Tomoyuki Chikanaga)
03:05 PM Revision 28b78663 (git): merge revision(s) 40920: [Backport #8450]
* string.c (rb_str_quote_unprintable): check if argument is a string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:47 PM Revision aff64b94 (git): * object.c (rb_Hash): fix docs. patched by Stefan Schüßler.
[ruby-core:55299] [Bug #8487]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ayumin (Ayumu AIZAWA)
02:47 PM Revision 90490d67 (git): merge revision(s) 39637,40900: [Backport #8440]
load.c: reorder conditions
* load.c (loaded_feature_path): reorder conditions so simple
comparision comes first.
* load.c (loaded_feature_path): fix invalid read by index underflow.
the beginning of name is a...
nagachika (Tomoyuki Chikanaga)
02:34 PM Revision 205b5c9c (git): merge revision(s) 40915: [Backport #8448]
* variable.c (set_const_visibility): use rb_frame_this_func() instead
of rb_frame_callee() for getting the name of the called method
* test/ruby/test_module.rb: add test for private_constant with no args
git-svn-id: ...
nagachika (Tomoyuki Chikanaga)
02:30 PM Revision 2392c12b (git): merge revision(s) 40992: [Backport #8040]
* vm_insnhelper.c (vm_callee_setup_keyword_arg,
vm_callee_setup_arg_complex): consider a hash argument for keyword
only when the number of arguments is more than the expected
mandatory parameters. [ruby-cor...
nagachika (Tomoyuki Chikanaga)
02:17 PM Revision 5f55e23f (git): * lib/irb/completion.rb: Use %w literal construction for long lists.
Patch by Dave Goodchild. [Fixes GH-299]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
02:09 PM Revision 71b6077a (git): * ext/objspace/objspace.c: improve wording and remove duplicated comment.
Based on a patch by Dave Goodchild. [Fixes GH-299]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
12:33 PM Bug #8484 (Closed): Restoring conditions through the ruby method call during VM processing
r41041 で、ブロック呼び出し前の VM 内の処理中に Ruby のメソッドが何らかの理由で呼ばれると argv が壊れるという問題を直しました。
具体的には、
~~~ruby
y = Object.new
def y.s(a)
yield(a)
end
m = Object.new
def m.method_missing(*a)
super
end
assert_equal [m, nil], y.s(m){|a,b|[a,b]...
naruse (Yui NARUSE)
11:27 AM Bug #5774: [PATCH] xmlrpc client handling cookies
This was lib/xmlrpc/client.rb, please check it zzak (zzak _)
10:12 AM Feature #8481: Module#using
boris_stitnicky (Boris Stitnicky) wrote:
> Then, if it works lexically, it is not a function of Module, but of ... of ... Kernel? If it modified the module logically, it would be Module's concern. But like this, it is a concern of the i...
shugo (Shugo Maeda)
08:23 AM Feature #8481: Module#using
As I already told you, I can accept (or even encourage) this change.
I am interested in how implementers of other Ruby.
Matz.
matz (Yukihiro Matsumoto)
12:05 AM Feature #8481: Module#using
Then, if it works lexically, it is not a function of Module, but of ... of ... Kernel? If it modified the module logically, it would be Module's concern. But like this, it is a concern of the interpreter, imao. Something like "private". ... Anonymous
09:42 AM Revision d8930828 (git): * bignum.c (bitlength_bdigit): Fix an off-by-one error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:23 AM Revision 5c113844 (git): adjust style
* process.c (rb_execarg_get): adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:01 AM Bug #8483 (Closed): SEGV under high concurrency
Follow a few segfaults from /var/log/messages https://gist.github.com/plentz/5701752
I'm using sidekiq at my production servers and the ruby process dies with a segfault constantly(it's dying constantly since the last 2 weeks). I'm us...
diego.plentz (Diego Plentz)
06:37 AM Revision 1699396f (git): * ext/bigdecimal/lib/bigdecimal/util.rb (Float#to_d): fix the number
of figures. Patch by Vipul A M <vipulnsward@gmail.com>.
https://github.com/ruby/ruby/pull/323 fix GH-323
* test/bigdecimal/test_bigdecimal_util.rb: fix for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41058 b...
Kenta Murata
04:55 AM Bug #8482 (Closed): native rake gem has broken path
`which rake` has the result /usr/bin/rake but when I try
rake
it fails with the following error
/usr/bin/rake:23:in `load': cannot load such file -- /usr/lib/ruby/gems/2.0.0/gems/rake-0.9.6/bin/rake (LoadError)
from /us...
dknight (Amitav Mohanty)
03:47 AM Revision dd87e463 (git): Add more comment about r41041
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:49 AM Feature #8462: Module.remove_const inconsistant naming
(Sorry for the duplicate post, this one can be deleted)
kyledecot (Kyle Decot) wrote:
> I understand that it's a dangerous operation but how does naming it inconsistently make any less so other than making it difficult to find in the do...
kyledecot (Kyle Decot)
02:42 AM Feature #8462: Module.remove_const inconsistant naming
I understand that it's a dangerous operation but how does naming it inconsistently make any less so other than making it difficult to find in the documentation? The fact that it's a private method I would think should be protection enoug... kyledecot (Kyle Decot)
12:12 AM Feature #8053: Make coercion if #=== operator doesn't know what to do
Sorry, Ilya, I already did some thinking, but didn't finish that flex-coerce yet. Anonymous

06/03/2013

10:58 PM Feature #8481 (Closed): Module#using
As I said at RubyKaigi2013, refinements in Ruby 2.0 have a problem that it's impossible to use incompatible refinements in the same file.
And at RubyKaigi, I've proposed the new option using: of instance_eval, by which you can activate ...
shugo (Shugo Maeda)
06:29 PM Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
There are always different ways to work with hash:
counters = Hash.new{|h,k| 0}
list.each{|e| counters[e]+=1}
some_thing_count = counters[some_thing]
compared to
counters = {}
list.each{|e| counters[e] = (...
funny_falcon (Yura Sokolov)
03:57 PM Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
I don't think I agree with the proposer. The example looks good, but what about something like:
a = [1, 2, 3, "a", "b"]
g = a.group_by {|o| o.class }
puts "Fixnums: #{g[Fixnum].size}"
puts "Strings: #{g[String].size}"
puts "Zero...
duerst (Martin Dürst)
01:40 PM Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
Right, that the behavior is changing and that this could break existing code. It might have been an interesting idea at the time `group_by` was introduced, but I doubt that Matz will feel the change is compelling enough to break compatib... marcandre (Marc-Andre Lafortune)
12:18 PM Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
@marcandre: What do you mean by incompatibility? That the behavior is not the same as before, or something deeper? Anonymous
05:08 AM Feature #8478: The hash returned by Enumerable#group_by should have an empty array for its default value
I understand the idea, but there are problems with this.
First of, it's a really bad idea to set the default of a hash to a mutable object:
a = [1, 2, 3, "a", "b"]
g = a.group_by {|o| o.class }
g[Array] << [:foo]
...
marcandre (Marc-Andre Lafortune)
04:37 AM Feature #8478 (Assigned): The hash returned by Enumerable#group_by should have an empty array for its default value
Without this patch, nil checks might need to be done on the return value of Enumerable#group_by:
$ cat test_group_by.rb
a = [1, 2, 3, "a", "b"]
g = a.group_by {|o| o.class }
puts "Fixnums: #{g[Fixnum].size}"
puts "Strings: #{g[...
phiggins (Pete Higgins)
06:15 PM Feature #8053 (Rejected): Make coercion if #=== operator doesn't know what to do
Objects except for numbers does not have coerce protocol. I am not sure how far OP wants to dig in.
Design and implement coerce protocol? Or special kind of coercion for case statement?
In that sense, this proposal is half-baked.
...
matz (Yukihiro Matsumoto)
05:24 PM Feature #8468: Remove $SAFE
I agree with charliesome that sandboxing is best handled by the running system, and not as a language feature. Still, I think we can include support for such facilities (where they are available) in a standardized way. Might I suggest so... jballanc (Joshua Ballanco)
03:49 PM Revision e377d3bb (git): merge revision(s) 40887,40888,40894,40896: [Backport #8431]
* win32/win32.c (setup_overlapped, finish_overlapped): extract from
rb_w32_read() and rb_w32_write().
* win32/win32.c (setup_overlapped): check the error code in addition
to the result of SetFilePointer() to ...
nagachika (Tomoyuki Chikanaga)
03:46 PM Revision 5be46423 (git): add EEXIST for Linux
* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
EEXIST for Linux. (suggested by nurse)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:27 PM Revision e6ae0db3 (git): merge revision(s) 40791,40806: [Backport #8424]
* eval_intern.h (TH_PUSH_TAG): ensure jmpbuf to be accessible before
pushing tag to get rid of unaccessible tag by stack overflow.
* vm_core.h (rb_vm_tag): move jmpbuf between tag and prev so ensure to
be acc...
nagachika (Tomoyuki Chikanaga)
03:01 PM Revision 44187374 (git): * 2013-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision 1739ecda (git): FileUtils.rmdir use remove_tailing_slash
* lib/fileutils.rb (FileUtils.rmdir): use remove_tailing_slash.
* test/fileutils/test_fileutils.rb: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
02:57 PM Revision 44658707 (git): merge revision(s) 40807: [Backport #8416]
* compile.c (iseq_compile_each): forward anonymous and first keyword
rest argument one. [ruby-core:55033] [Bug #8416].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:49 PM Revision 935d39a5 (git): * bignum.c (bitlength_bdigit): New function.
(rb_big_pow): Use bitlength_bdigit instead of ffs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:46 PM Revision bf386e58 (git): Don't run test-all because it often happens false positive
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:22 PM Revision 2b463226 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:20 PM Revision cef3f2eb (git): * lib/fileutils.rb: fix behavior when mkdir/mkdir_p accepted "/".
* test/fileutils/test_fileutils.rb: add test for above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ayumin (Ayumu AIZAWA)
11:23 AM Feature #8461: Easy way to disable certificate checking in XMLRPC::Client
(2013/06/03 10:13), kou (Kouhei Sutou) wrote:
> By the way, I can become a maintainer of lib/xmlrpc/ If nobody objects it, I will handle this ticket.

Great!

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
11:23 AM Feature #8461: Easy way to disable certificate checking in XMLRPC::Client
Whoops! :+1:

On Mon, Jun 3, 2013 at 10:13 AM, kou (Kouhei Sutou) <kou@cozmixng.org> wrote:
>
> Issue #8461 has been updated by kou (Kouhei Sutou).
>
>
> It seems that lib/xmlrpc/ doesn't have maintainer. (cf. https://bugs...
zzak (zzak _)
10:13 AM Feature #8461: Easy way to disable certificate checking in XMLRPC::Client
It seems that lib/xmlrpc/ doesn't have maintainer. (cf. https://bugs.ruby-lang.org/projects/ruby/wiki/Maintainers )
So I'm not a maintainer of lib/xmlrpc/. I don't know why I was assigned this ticket. (I think zzak mistook. :-)
By th...
kou (Kouhei Sutou)
10:02 AM Revision 482f0e6b (git): dir.c: use fd to fstatfs
* dir.c (is_hfs): use the file descriptor instead of a path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:16 AM Revision c120db45 (git): * vm_insnhelper.c (vm_yield_setup_block_args): add comment for r41041.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:24 AM Bug #8479 (Assigned): make for ruby-1.9.3-p392 fails on rdoc, error 134 (Ubuntu 12.04.2 LTS)
luislavena (Luis Lavena)
07:22 AM Bug #8479 (Closed): make for ruby-1.9.3-p392 fails on rdoc, error 134 (Ubuntu 12.04.2 LTS)
Attempt to build progressed fin up to RDoc, then make choked. Make log:
--------------------------------------------
Parsing sources...
lib/mkmf.rb:1117:29: Couldn't find STRING_OR_FAILED_FORMAT. Assuming it's a module
lib/irb/in...
greysondn (Dorian Greyson)
04:20 AM Feature #6183: Enumerator::Lazy performance issue
Indeed append_method was exctracted by nobu 2 weeks ago as a refactoring of enumerator_inspect. But that's it, nothing was merged yet. I'm not sure I'll be able to rebase patch in next few weeks - got only android tablet with me. I'll le... gregolsen (Innokenty Mikhailov)
02:38 AM Revision 7a8a7864 (git): * lib/cgi/cookie.rb (inspect): add inspect for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Takeyuki FUJIOKA
02:37 AM Revision 94b120fe (git): add some rdoc
* add reference to spawn to fork
* add an example which runs ruby
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

06/02/2013

10:47 PM Feature #8468: Remove $SAFE
A path forward to defining a more fine-grained security model...
* Define in clear terms what we want to restrict. The existing safe levels would be a quick way to start doing this, since we already have a list of things that are (dis...
headius (Charles Nutter)
10:42 PM Feature #8468: Remove $SAFE
Student (Nathan Zook) wrote:
> headius (Charles Nutter) wrote:
> ...
I'm not arguing that there shouldn't be any security system at all...I'm just arguing that the current coarse-grained, blacklisting system is too flawed to be the mod...
headius (Charles Nutter)
10:30 PM Feature #8468: Remove $SAFE
Personally, I don't think Ruby should have *any* security features like $SAFE or granular sandboxing at all.
Trying to build a sandboxed environment for running untrusted code at the same level as the code being run is a fundamentally...
Anonymous
09:15 PM Feature #8468: Remove $SAFE

spatulasnout (B Kelly) wrote:
>
> ...
To clarify:
I'd say our application treats the difference between
$SAFE == 4 and $SAFE <= 1 as somewhat similar to the
boundary between to 'privileged mode' and 'user mode'
on a CPU.
The...
spatulasnout (B Kelly)
04:47 PM Feature #8468: Remove $SAFE
headius (Charles Nutter) wrote:
> $SAFE is not a good security option for at least a few reasons:
> ...
Part of the issue here is the balance of pain. You have the pain of the core team verses the pain of platform providers verses the...
Student (Nathan Zook)
03:57 PM Feature #8468: Remove $SAFE
boris_stitnicky (Boris Stitnicky) wrote:
> @Nathan: Do you mean that Perl has $SAFE = 1 by default?
No, I'm saying that perl has a taint property very much like ruby's, and that perl has a safe mode very similar to ruby's $SAFE = 1, ...
Student (Nathan Zook)
12:09 PM Feature #8468: Remove $SAFE
shugo (Shugo Maeda) wrote:
>
> ...
For the record, our C++ application embeds ruby
(currently both 1.8.4 and 1.9.3 interpreters),
and we've been using $SAFE == 4 since 2006 or so.
As I'd described in [ruby-core:36950] --
We use...
spatulasnout (B Kelly)
06:26 AM Feature #8468: Remove $SAFE
@Nathan: Do you mean that Perl has $SAFE = 1 by default? Anonymous
10:38 PM Revision 523bd673 (git): * configure.in: removes AC_CHECK_FUNCS(readdir_r). readdir_r()
is only used from dir.c and it doesn't need readdir_r().
* configure.in (SIZEOF_STRUCT_DIRENT_TOO_SMALL): remvoed. It is
only used for readdir_r.
* dir.c: removes NAME_MAX_FOR_STRUCT_DIRENT. It is not right way
to detect maximum leng...
kosaki (Motohiro KOSAKI)
10:34 PM Feature #8462: Module.remove_const inconsistant naming
remove is a dangerous operation, thus named inconsistent, as remove_instance_variable etc.
Matz.
matz (Yukihiro Matsumoto)
10:29 PM Feature #8462: Module.remove_const inconsistant naming
I may have overlooked this feature without a patch it's unclear what they
want so please reopen when you have a patch

On Sunday, June 2, 2013, charliesome (Charlie Somerville) wrote:

>
> Issue #8462 has been updated by cha...
zzak (zzak _)
09:02 PM Feature #8462: Module.remove_const inconsistant naming
zzak, I don't see how this is a duplicate of #7414. Did you accidentally post the wrong issue number? Anonymous
04:52 PM Feature #8462 (Rejected): Module.remove_const inconsistant naming
duplicate of #7414 zzak (zzak _)
06:44 PM Revision 284d7463 (git): * vm_insnhelper.c (vm_yield_setup_block_args): partially revert r41019.
The code is not useless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:53 PM Feature #8396 (Feedback): Allow easier destructuring of MatchData
zzak (zzak _)
04:51 PM Feature #8461 (Assigned): Easy way to disable certificate checking in XMLRPC::Client
zzak (zzak _)
04:48 PM Feature #8460 (Assigned): PATCH: optparse: add `keep_unknown` option
zzak (zzak _)
04:37 PM Revision 233f7d09 (git): * test/socket/test_sockopt.rb: change test name. follow r41037.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
04:23 PM Feature #8449: Array#ary_plus always returns an array
For what it's worth this happens with String too:
>> class Substring < String; end
=> nil
> ...
=> ""
>> b = Substring.new
=> ""
> ...
=> ""
>> result.class
=> String
Maybe nobu can tell us
zzak (zzak _)
04:18 PM Feature #8429 (Assigned): Options requests in net/http should be able to accept a response body
zzak (zzak _)
04:15 PM Revision 260f6bed (git): * test/rinda/test_rinda.rb: rename functions introduced in r41009.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
04:12 PM Feature #8377: Deprecate :: for method calls in 2.1
See [ruby-core:54883] zzak (zzak _)
04:11 PM Feature #8371 (Feedback): Make some enumerators mimic arrays
There is a discussion on this on #1666 zzak (zzak _)
04:02 PM Feature #8361 (Closed): Alternative syntax for block parameter
See [ruby-core:55094] zzak (zzak _)
03:59 PM Revision aa32168b (git): * 2013-06-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:59 PM Revision aa26e9d9 (git): follow r41034
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:53 PM Feature #8269 (Feedback): stdlib: Add Find.each_file to accompany Find.find
I think this is out of the scope of find.rb, see "find.rb: the Find module for processing all files under a given directory."
If you want this feature, I think you should write a gem.
zzak (zzak _)
03:45 PM Feature #8215 (Assigned): Support accessing Fiber-locals and backtraces for a Fiber
zzak (zzak _)
03:33 PM Feature #8075 (Assigned): Add socket interface class to list interfaces
zzak (zzak _)
03:32 PM Feature #8042 (Assigned): Add Addrinfo#socket to create a socket that is not connected or bound
zzak (zzak _)
03:30 PM Feature #8062 (Feedback): Argument error stack trace to specify the 'called' method
Can you provide a plain ruby example? And include the output you'd expect? zzak (zzak _)
03:27 PM Feature #8053 (Assigned): Make coercion if #=== operator doesn't know what to do
zzak (zzak _)
03:24 PM Feature #8047 (Assigned): IPAddr makes host address with netmask
zzak (zzak _)
03:22 PM Feature #8027 (Feedback): add the possibility to raise an exception in #included, #extended, #prepended, #inherited and break the calling feature
zzak (zzak _)
03:06 PM Feature #8394 (Closed): use String#b instead of dup.force_encoding("ASCII-8BIT")
This issue was solved with changeset r41030.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi/util.rb, lib/erb.rb: Use String#b [Feature #8394] b...
zzak (zzak _)
02:50 PM Bug #7877: E::Lazy#with_index should be lazy
@duerst You're probably right, since this feature was introduced in 2.0.0
If yhara-san wants to implement #with_index with a block then I see no problem with introducing this in 2.1.0
zzak (zzak _)
02:46 PM Revision dffcadb4 (git): Suppress warnings: setting Encoding.default_internal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:36 PM Revision 166d8dc2 (git): * enc/trans/japanese_euc.trans, test/ruby/test_transcode.rb,
tool/transcode-tblgen.rb: change EUC-JP-2004 to EUC-JIS-2004.
This is follow up to changes in r41024.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
02:24 PM Revision e2582ca2 (git): * ext/socket/option.c: rename functions introduced in r41009
s/ip/ipv4/g because they are ipv4 functions.
(there's a policy that the name "ip" is for methods which supports
both ipv4 and ipv6)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:12 PM Feature #7510: irb --help が古い
I've committed the english patch, and asked Tarui-san to review and commit the japanese patch.
Thank you!
zzak (zzak _)
01:39 PM Revision 6f617028 (git): merge revision(s) 41026: [Backport #8242]
* range.c: Fix rdoc on Range#bsearch [Bug #8242] [ruby-core:54143]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
12:28 PM Bug #8157 (Closed): How to write document for __LINE__, __FILE__, __END__
I've moved this to the RDoc tracker on github: https://github.com/rdoc/rdoc/issues/230 zzak (zzak _)
12:05 PM Bug #8242 (Closed): Fix rdoc of Range#bsearch
This issue was solved with changeset r41026.
Yutaka, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* range.c: Fix rdoc on Range#bsearch [Bug #8242] [ruby-core:54143]
zzak (zzak _)
11:57 AM Bug #8344 (Closed): Status of Psych and Syck
Most of the documentation has been updated, and appropriate backports have been made, so I'm going to close this.
When rubygems drops support for 1.8, we can think about removing the syck shim.
zzak (zzak _)
07:15 AM Revision 5615bf5f (git): dln_find.c: deprecated functions
* dln_find.c (dln_find_exe, dln_find_file): remove deprecated
non-reentrant functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:15 AM Revision d8069572 (git): dln_find.c: unused macros
* dln_find.c: remove unused macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:06 AM Revision 012dc9d0 (git): * lib/cgi/util.rb, lib/erb.rb: Use String#b [Feature #8394] by znz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:59 AM Revision 021c2102 (git): math.c: ASCII minus
* math.c: use ASCII minus (-) instead of U+2212.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:11 AM Revision 78c04602 (git): * lib/irb/lc/help-message: Apply english updates for irb --help #7510
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:12 AM Revision 6db56c86 (git): fill rdocs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:05 AM Revision eb5f3619 (git): * range.c: Fix rdoc on Range#bsearch [Bug #8242] [ruby-core:54143]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:25 AM Bug #8471 (Rejected): パーセント記法とString #メソッドの組み合わせの戻り値が異常
正常な動作ということなので rejected にしますね。 okkez (okkez _)

06/01/2013

09:42 PM Bug #8471: パーセント記法とString #メソッドの組み合わせの戻り値が異常
no6v (Nobuhiro IMAI) wrote:
> > 2番めと3番め、6番めと7番めをいろんな記号に置き換えてみると雰囲気がつかめるんじゃないでしょうか。
> ...
ご回答ありがとうございます。
すみませんおっしゃるとおりでした。
正常な動作です。
taka-yoshi (taka-yoshi taka)
09:30 PM Bug #8471: パーセント記法とString #メソッドの組み合わせの戻り値が異常
> 2番めと3番め、6番めと7番めをいろんな記号に置き換えてみると雰囲気がつかめるんじゃないでしょうか。
「2番めと3番め、6番めと7番めの % を」という意味でした。
$ ruby -rripper -rpp -ve 'pp Ripper.lex("%()%%!!.class")'
ruby 2.1.0dev (2013-06-01 trunk 41011) [x86_64-linux]
[[[1, 0], :on_tstring_beg, "%("]...
no6v (Nobuhiro IMAI)
09:26 PM Bug #8471: パーセント記法とString #メソッドの組み合わせの戻り値が異常
> 下記のコードを実行すると。''が戻ってきます。
> ...
これは false が返るんじゃないでしょうか?
> この戻ってきたものに対して各種メソッドを呼んでも''が返ってきます。
> ...
これは、%%% % %%%.class と解釈されて、%%% は %() などと同じく(空)文字列のリテラルで、
"" % xxx だと、xxx が(多分)何であろうと空文字列が返るので、特におかしなところはないと思います。
$ ruby -rripper...
no6v (Nobuhiro IMAI)
08:32 PM Bug #8471 (Rejected): パーセント記法とString #メソッドの組み合わせの戻り値が異常
***再現手順
下記のコードを実行すると。''が戻ってきます。
(%%%%%%%).nil? => ''
上記ではnil?を取り上げましたが、
実際は全メソッドで''が戻ってきます。
この戻ってきたものに対して各種メソッドを呼んでも''が返ってきます。
%%%%%%%.class.class.class.class => ''
下記の環境で確認しています。
ruby 2.0.0p0 (2013-02-24 revision 39474)...
taka-yoshi (taka-yoshi taka)
07:04 PM Feature #8468: Remove $SAFE
$SAFE is not a good security option for at least a few reasons:
* It requires maintaining checks for both tainting and safe levels in nearly *every* piece of C code attached to Ruby, including extensions. This is both a maintenance an...
headius (Charles Nutter)
12:38 PM Feature #8468: Remove $SAFE
One wonders where everyone has been for the last five months. The entire Rails security fiasco would have been avoided if DHH had seen fit to write Rails with $SAFE = 1. This is one thing that the Perl community got right almost immedi... Student (Nathan Zook)
10:36 AM Feature #8468: Remove $SAFE
JRuby has not supported $SAFE for a long time, and the only complaints we've heard are from people that thought they needed $SAFE (and did not) or people who just happened to notice it was missing.
We strongly support removing $SAFE, ...
headius (Charles Nutter)
10:05 AM Feature #8468 (Closed): Remove $SAFE
Yesterday, at GitHub Tokyo drinkup (thanks, GitHub!), Matz agreed to remove the $SAFE == 4 feature from Ruby 2.1.
Shibata-san, a developer of tDiary, which is the only application using $SAFE == 4, also agreed to remove it, so today is ...
shugo (Shugo Maeda)
05:11 PM Revision bc7a6dbb (git): * 2013-06-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:11 PM Revision b285af64 (git): * enc/euc_jp.c: fix typo: the name of EUC-JIS-2004.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:43 PM Feature #8469 (Closed): ABI checker とか導入しませんか
最近 Vit が報告してきたように、193にもたまにABI非互換が入っているようです。
見たところ実害はなさそうなのですが、非互換が報告されてから実害の有無を検討するのは不毛なのでパッチリリース前に
機械的にチェックしたいですよね。ほとんどのケースは意図的な非互換だからOKという結論になるのだろうとは思いますが、
精神衛生上、枕を高くして寝れる度がちょっとだけ上がります。
で、ちょっと時間をとってみたところ、意外と簡単そう。
http://ispras...
kosaki (Motohiro KOSAKI)
02:17 PM Revision 8b1b2638 (git): * vm_eval.c (rb_mod_module_eval): mention in docs that arguments passed
to the method are passed to the block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
09:01 AM Revision 6bdfe415 (git): * lib/set.rb (Set#freeze, taint, untaint): Save a "self" by
utilizing super returning self, and add tests while at it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:25 AM Revision 4a223fb6 (git): compile.c: not simple if keyword args
* compile.c (iseq_set_arguments): not a simple single argument if any
keyword arguments exist. [ruby-core:55203] [Bug #8463]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:21 AM Revision 06c7ede2 (git): vm_insnhelper.c: extract keyword arguments after splat
* vm_insnhelper.c (vm_yield_setup_block_args): split single parameter
if any keyword arguments exist, and then extract keyword arguments.
[ruby-core:55203] [Bug #8463]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41020 b2dd03c8...
nobu (Nobuyoshi Nakada)
08:21 AM Revision 767c5022 (git): vm_insnhelper.c: add comments
* vm_insnhelper.c (vm_yield_setup_block_args): break a long line and
add comments. remove useless code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:25 AM Revision a10ea5b9 (git): remove duplicated entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:16 AM Revision e71d501e (git): error.c: better names for rb_exc_new family
* error.c (rb_exc_new_cstr): rename from rb_exc_new2.
* error.c (rb_exc_new_str): rename from rb_exc_new3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:13 AM Revision d956526a (git): string.c: remove old interfaces
* string.c (rb_str_new[2-5], rb_{tainted,usascii}_str_new2),
(rb_str_buf_new2): remove old interfaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:00 AM Revision 8663df2f (git): Restore the removed change-log entries
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
 

Also available in: Atom