Project

General

Profile

Activity

From 09/19/2013 to 09/25/2013

09/25/2013

11:46 PM Feature #8948: Frozen regex
besides regexps being frozen, there might still be a use case for regexp literals that would only be allocated once:
~~~ruby
def r1; /ab/; end; r1.object_id #=> 70043421664620
def r2; /ab/; end; r2.object_id #=> 70043421398060
...
jwille (Jens Wille)
09:46 PM Feature #8948 (Feedback): Frozen regex
sawa: do you want to request `Regexp` to always be `#frozen?` or should the issue be closed? Eregon (Benoit Daloze)
08:42 AM Feature #8948: Frozen regex
Eregon, thank you for the information. sawa (Tsuyoshi Sawada)
06:00 AM Feature #8948: Frozen regex
We already have immutable (created only once) regexps: it is always the case for literal regexps and for dynamic regexps you need the 'o' flag: `/a#{2}b/o`.
So there are in practice immutable, but currently not `#frozen?`. Do you want...
Eregon (Benoit Daloze)
04:08 AM Feature #8948: Frozen regex
Sorry, there was a mistake in the above. The three regexes with the same content `/pattern1/` (or `/pattern1/f`) in the respective examples are supposed to represent different patterns. sawa (Tsuyoshi Sawada)
04:02 AM Feature #8948 (Assigned): Frozen regex
=begin
I see that frozen string was accepted for Ruby 2.1, and frozen array and hash are proposed in https://bugs.ruby-lang.org/issues/8909. I feel there is even more use case for a frozen regex, i.e., a regex literal that generates a r...
sawa (Tsuyoshi Sawada)
10:27 PM Bug #8680: ruby crashes when built with AddressSanitizer
Attaching latest patch against tip. Feedback is welcome. halfie (Ruby Guy)
05:44 PM Bug #8399 (Closed): Remove usage of RARRAY_PTR in C extensions when not needed
This issue was solved with changeset r43044.
Dirkjan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* README.EXT, README.EXT.ja: remove description of RARRAY_PTR(...
ko1 (Koichi Sasada)
12:53 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
(2013/09/25 6:00), Eric Wong wrote:
> Hi, it looks like the API is mostly fleshed out now since 2.1.0preview1
> is released.
>
> Can you please update README.EXT with advice for using (or avoiding)
> RARRAY_* family of macros...
ko1 (Koichi Sasada)
06:23 AM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
SASADA Koichi <ko1@atdot.net> wrote:
> (2013/05/15 14:38), dbussink (Dirkjan Bussink) wrote:
> > If we're changing something anyway, it makes far more sense to change to either RARRAY_AREF or rb_ary_entry in extensions. I also discu...
normalperson (Eric Wong)
02:23 PM Feature #8951: Please add a hash-to-hash alternative of the map method to Hash
#rehash is taken: http://www.ruby-doc.org/core-2.0.0/Hash.html#method-i-rehash

I was thinking about 'projection' or something, but everything feels just like an alternative to 'map' (#map, in my opinion, should return a hash).
...
fuadksd (Fuad Saud)
01:36 PM Feature #8951: Please add a hash-to-hash alternative of the map method to Hash
How about:
`Hash#graph`
or
`Hash#rehash`
jamonholmgren (Jamon Holmgren)
01:23 PM Feature #8951: Please add a hash-to-hash alternative of the map method to Hash
Wow, I missed this a couple of days ago. Totally supported.

--
Fuad Saud
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Wednesday, September 25, 2013 at 1:05 AM, behrangsa (Behrang Saeedzadeh) wrote:

> ...
fuadksd (Fuad Saud)
01:05 PM Feature #8951 (Closed): Please add a hash-to-hash alternative of the map method to Hash
Please see this thread: https://twitter.com/behrangsa/status/382670159086776323
behrangsa (Behrang Saeedzadeh)
01:00 PM Bug #8616: Process.daemon messes up threads
FWIW, it looks like the relevant change that fixed it for 2.1.0-preview1 was https://github.com/ruby/ruby/commit/300b7c80e benweint (Ben Weintraub)
12:56 PM Bug #8616: Process.daemon messes up threads
Actually, it looks like this is fixed in Ruby 2.1.0-preview1 (Thread#alive? returns false for background threads spawned before a call to Process.daemon), but still broken in 2.0.0-p247. Any chance of a backport? benweint (Ben Weintraub)
08:06 AM Bug #8616: Process.daemon messes up threads
I agree with Evan. The behavior he describes would be consistent with how threads are handled when a process forks via Process.fork in Ruby.
See this example for a demonstration: https://gist.github.com/benweint/6692546
benweint (Ben Weintraub)
12:25 PM Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
Any progress? jiayp@glodon.com (贾 延平)
12:12 PM Bug #8677: $LOAD_PATH did not encoded into the "internal encoding"
Hope fix in Ruby 2.1 jiayp@glodon.com (贾 延平)
10:16 AM Bug #8940 (Assigned): printing UTF-32 crashs ruby
r43033, r43034, and r43035 also looks related.
Note that though Unicode spec says non endian encoding should be Big Endian, actual world is often Little Endian.
Therefore don't guess its encoding if it doesn't have BOM.
naruse (Yui NARUSE)
08:44 AM Revision 9215982a (git): * README.EXT, README.EXT.ja: remove description of RARRAY_PTR()
and add a caution of accessing internal data structure directly.
Also add a description of rb_ary_store().
[Bug #8399]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:24 AM Revision dc626dba (git): * include/ruby/ruby.h: rename RARRAY_RAWPTR() to RARRAY_CONST_PTR().
RARRAY_RAWPTR(ary) returns (const VALUE *) type pointer and
usecase of this macro is not acquire raw pointer, but acquire
read-only pointer. So we rename to better name.
RSTRUCT_RAWPTR() is also renamed to RSTRUCT_CONST_PTR()
(I ...
ko1 (Koichi Sasada)
07:58 AM Revision d700d340 (git): internal.h: move inline functions
* internal.h (rb_float_value, rb_float_new): move inline functions
from ruby/ruby.h.
* numeric.c (rb_float_value, rb_float_new): define external functions
for extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43...
nobu (Nobuyoshi Nakada)
07:46 AM Revision b328a43f (git): test_command_processor.rb: fix for mswin/mingw and test for directory
* test/shell/test_command_processor.rb (test_system_external): fix for
mswin and mingw. one of EXECUTABLE_EXTS is needed but shell.rb does
not support it.
* test/shell/test_command_processor.rb (test_system_directory): test
not t...
nobu (Nobuyoshi Nakada)
06:37 AM Revision d12d47c4 (git): * test/rdoc/test_rdoc_generator_darkfish.rb: add a guard for windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:27 AM Bug #8941 (Rejected): strptime %Y parsing
we don't need any bug reports for python.
ruby's one isn't wrong.
tadf (tadayoshi funaba)
03:29 AM Feature #4830: Provide Default Variables for Array#each and other iterators
I don't like this. The only thing that doesn't hurt so much would be
something like scala's underscores for one parameter blocks, but I'm not
really sure about those either.

--
Fuad Saud

twitter <http://twitter.com/fuad...
fuadksd (Fuad Saud)
02:59 AM Feature #4830: Provide Default Variables for Array#each and other iterators
How should nested blocks behave?
[[1, 2], [3, 4]].map { item.map { item + 1 } }
alexeymuranov (Alexey Muranov)
12:53 AM Revision 8eb39185 (git): * lib/rubygems: Fix CVE-2013-4363. Miscellaneous minor improvements.
* test/rubygems: Tests for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:29 AM Revision 61f3a787 (git): * 2013-09-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:29 AM Revision e1c4d844 (git): NEWS: required keyword arguments
* NEWS (Language changes): mention about required keyword arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/24/2013

09:40 PM Bug #7940: Mistaken use of inline rescues in stdlib
Bump.
Should dblack be discharged under the 3 month rule? He has not been active for quite some time.
Anonymous
09:34 PM Feature #8947 (Open): make alias, alias_method, attr_* return name of the alias
Now that def returns the method name, it would be handy to have alias/alias_method return the name of the alias:
class Foo
private def foo() end
protected alias_method :bar, :foo
end
Same goes for the attr_* methods:
clas...
rkh (Konstantin Haase)
04:29 PM Bug #8946 (Closed): Segmentation fault while NoMemoryError expected

I was trying to watch gc behavior by generating NoMemoryError intentionally, a segmentation fault occurred without any exception raised.
the simple ruby code goes here:
```rb
arr= []
begin
while true
arr << 1
end
...
tmqhliu (Xiaoding Liu)
02:14 PM Bug #8161 (Closed): String#+ should inherit untrustedness
Untrustedness is now deprecated and behaves the same as tainting.
Taintedness is properly propagated in your examples, so I'm closing this.
Anonymous
02:02 PM Bug #8930 (Closed): some benchmark programs are slow since r42822
This issue was solved with changeset r43027.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* class.c (class_alloc): remove mc_tbl
* gc.c (obj_free): di...
Anonymous
01:07 PM Bug #8945 (Closed): Unmarshaling an Array containing a Bignum from a tainted String returns a frozen, tainted Bignum
In 2.1, Symbol, Fixnum, Bignum, and Float (at least) have been changed to frozen by default. Consequently, calling #taint on an instance of those classes raises a RuntimeError because a frozen object cannot be modified to be tainted. How... brixen (Brian Shirai)
12:18 PM Bug #8944 (Closed): Error in example code of DL::CFunc
I found an error in the example code of DL::CFunc.
libc,['strcpy'] should be libc['strcpy']
phasis68 (Heesob Park)
09:56 AM Bug #8493: Random Segmentation fault in sass
We've encountered the same problem with 1.9.3p488. We have deployed to our Ubuntu 12.04 servers several times without any issue. This is the first time we've encountered a segmentation fault.
/apps/app_name/shared/bundle/ruby/1.9.1/ge...
gchan (Gordon Chan)
09:40 AM Revision b9c316da (git): tabify indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:39 AM Revision 3788742b (git): string.c: fix for UTF-16/32
* string.c (rb_str_inspect): get rid of out-of-bound access.
* string.c (rb_str_inspect): when a UTF-16/32 string doesn't have a
BOM, inspect as a dummy encoding string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43035 b2dd03c8...
nobu (Nobuyoshi Nakada)
08:15 AM Revision d8441fcc (git): encdb.c, encoding.c: make BOM-encodings dummy
* enc/encdb.c (ENC_DUMMY_UNICODE): make BOM-encodings dummy.
* encoding.c (enc_autoload): keep dummy encodings dummy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:48 AM Revision 84a56226 (git): test_encodings.rb: remove BOM encodings
* test/csv/test_encodings.rb (TestCSV#each_encoding): encodings with
BOM are external use only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:42 AM Revision f894022b (git): string/test_ellipsize.rb: remove non-sense tests
* test/-ext-/string/test_ellipsize.rb (Test_StringEllipsize#test_nonascii):
rb_str_ellipsize() does not support BOM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Revision 360c6673 (git): win32/registry.rb: size in bytes
* ext/win32/lib/win32/registry.rb (Win32::Registry#write): data size
is in bytes, not chars. terminators should be placed automatically.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:39 AM Revision 79e880c9 (git): win32/registry.rb: encode name
* ext/win32/lib/win32/registry.rb (Win32::Registry#each_value): encode
name.
* ext/win32/lib/win32/registry.rb (Win32::Registry#each_key): ditto.
* ext/win32/lib/win32/registry.rb (Win32::Registry#export_string):
encode to locale enc...
nobu (Nobuyoshi Nakada)
07:35 AM Revision 14695c4c (git): win32/registry.rb: fix runtime errors
* ext/win32/lib/win32/registry.rb (Win32::Registry::API#EnumKey):
size of the name is in WCHARs, not in bytes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:23 AM Feature #8700: Integer#bitsize (actually Fixnum#bitsize and Bignum#bitsize)
I like it. Pretty neat for low level bit brushing stuff.

--
Fuad Saud
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Saturday, August 31, 2013 at 3:47 AM, matz (Yukihiro Matsumoto) wrote:

>
> Issue #...
fuadksd (Fuad Saud)
05:09 AM Revision 4cf9b669 (git): * gc.c (free_method_cache_entry_i): unused function
* gc.c (rb_free_mc_table): ditto
* internal.h (method_cache_entry_t): unused struct
* vm_method.c (verify_method_cache): remove unused variable
* vm_method.c (rb_method_entry): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
Charlie Somerville
05:06 AM Feature #8691 (Closed): Add warning for variable that is re-assigned but not re-used
closing, see ruby-core:57091 zzak (zzak _)
05:02 AM Revision f0888281 (git): * class.c (class_alloc): remove mc_tbl
* gc.c (obj_free): ditto
* internal.h (struct rb_classext_struct): ditto
* method.h (rb_method_entry): remove ent param
* vm_method.c: restore the global method cache. Per class cache tables
turned out to be far too slow.
[ruby-c...
Charlie Somerville
03:51 AM Revision aaccbfed (git): win32/registry.rb: fix runtime errors
* ext/win32/lib/win32/registry.rb (Win32::Registry::API): need
Constants.
* ext/win32/lib/win32/registry.rb (Win32::Registry::API#EnumValue):
size of the name is in WCHARs, not in bytes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
nobu (Nobuyoshi Nakada)
03:27 AM Feature #8938 (Closed): it keyword
I'm not familiar with bug process here so let me know if I'm overstepping here. Since there's at least one other bug asking for exactly the same thing, I'm closing this as a duplicate. headius (Charles Nutter)
01:41 AM Feature #8938: it keyword
i think the main problem is that some iterators react differently when the block has different block parameters ... with this it does not work so nice Hanmac (Hans Mackowiak)
01:33 AM Feature #8938: it keyword
There are two others.
The oldest is here: https://bugs.ruby-lang.org/issues/4475
The most active is here: https://bugs.ruby-lang.org/issues/4830
I believe the primary objections are that it would require "it" to be a keyword (or...
headius (Charles Nutter)

09/23/2013

10:45 PM Bug #8941 (Assigned): strptime %Y parsing
nobu (Nobuyoshi Nakada)
09:39 PM Bug #8941 (Rejected): strptime %Y parsing
Time.strptime("1", "%Y")
=> 0001-01-01 00:00:00 +0642
Is it expected behavior?
strftime docs say this:
# %Y - Year with century (can be negative, 4 digits at least)
# -0001, 0000, 1995, 2009, 14292, ...
exoth (Yury Trofimenko)
10:16 PM Bug #8940 (Closed): printing UTF-32 crashs ruby
This issue was solved with changeset r43023.
Hans, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
encdb.c, utf_16_32.h: Unicode with BOM
* enc/encdb.c, enc/utf_16...
nobu (Nobuyoshi Nakada)
08:57 PM Bug #8940: printing UTF-32 crashs ruby
hm it maybe is ...
funny thing:
this works:
"äöü".encode("UTF-32BE") #=> "\u00E4\u00F6\u00FC"
"äöü".encode("UTF-32") #=> "\uFEFF\u00E4\u00F6\u00FC"
"äöü".encode("UTF-32LE") #=> "\u00E4\u00F6\u00FC" # << imo this should be wr...
Hanmac (Hans Mackowiak)
08:39 PM Bug #8940: printing UTF-32 crashs ruby
It'd be related to that UTF-32 is a pseudo encoding, probably. nobu (Nobuyoshi Nakada)
06:24 PM Bug #8940 (Closed): printing UTF-32 crashs ruby
using
p "äöü".encode("UTF-32")
does cause a SEGFAULT
-- C level backtrace information -------------------------------------------
0 libruby.2.1.0.dylib 0x00000001023f6679 rb_vm_bugreport + 137
1 libruby.2.1...
Hanmac (Hans Mackowiak)
08:39 PM Feature #8077: Returning Dir objects from C extensions
Any chance of this going ahead? andrenth (Andre Nathan)
08:30 PM Feature #8938: it keyword
I'm sure that this is a duplicate, but it is hard to search. nobu (Nobuyoshi Nakada)
04:49 PM Feature #8938 (Closed): it keyword
automatic 'it' keyword for block variable:
items.each{|x| puts x.name }
=>
items.each{puts it.name}
Sing9898 (Sing Lou)
07:43 PM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
@Sing9898 no you cant do that because it could break existing ruby code
{a:"b"} is the short form for {:a => "b"}, you can not easily change it to {"a"=>"b"} without breaking multiple ruby programs
i think you still does not unders...
Hanmac (Hans Mackowiak)
07:35 PM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
the confusing became probably more immediate after the introduction of the new {a:"b"} syntax.
because for novices it might not be clear whether {a:"b"} means {"a"=>"b"} or {:a =>"b"}
Sing9898 (Sing Lou)
07:27 PM Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
I am so glad this ticket wasn't rejected because it is a constructive solution to one of the biggest Ruby frustrations. (Even if you understand the difference between strings and symbol it still causes many hidden bugs). Sing9898 (Sing Lou)
07:42 PM Feature #8939: symbol / string invariance (for hashes)
yes,duplicate, thanks Sing9898 (Sing Lou)
07:07 PM Feature #8939: symbol / string invariance (for hashes)

Duplicate of Feature #7797 "Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess"
others like
Feature #7792 "Make symbols and strings the same thing"
are rejected
you...
Hanmac (Hans Mackowiak)
06:36 PM Feature #8939: symbol / string invariance (for hashes)
Update: then let's make HashWithIndifferentAccess the standard hash somehow Sing9898 (Sing Lou)
05:38 PM Feature #8939: symbol / string invariance (for hashes)
no it should not because Symbol and String are two different Classes,
if you want that are the same use ActiveSupport::HashWithIndifferentAccess
Hanmac (Hans Mackowiak)
04:51 PM Feature #8939 (Closed): symbol / string invariance (for hashes)
hash={key:"value"}
hash["key"] should return "value"
hash={"key"=>"value"}
hash[:key] should return "value"
Sing9898 (Sing Lou)
07:05 PM Bug #8935: Zlib::GzipWriter.new with block truncates output to 20 corrupted bytes
Whoa. Has that always been the case? Cause I'm pretty sure I saw this code used somewhere else too.
The problem with .open, which definitely takes a block, is that it only works with file names, not IO objects and thus not StringIO. B...
bugmenot123 (DoNot BugMe)
03:00 PM Bug #8935: Zlib::GzipWriter.new with block truncates output to 20 corrupted bytes
Every ruby method can be accept a block.
Zlib::GzipWriter.new just return a object, not callback the block,
Zlib::GzipWriter.new(StringIO.new){ |gz| gz.write input }.close.string
is equal
Zlib::GzipWriter.new(StringIO.new).clos...
windwiny (wind winy)
03:03 PM Revision e16d9c42 (git): * 2013-09-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision e29c3bfb (git): test_transcode.rb: base encoding
* test/ruby/test_transcode.rb (TestTranscode#test_pseudo_encoding_inspect):
test for proper base encoding. [ruby-core:57318] [Bug #8940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:16 PM Revision 3a2aca50 (git): encdb.c, utf_16_32.h: Unicode with BOM
* enc/encdb.c, enc/utf_16_32.h (ENC_DUMMY_UNICODE): Unicode with BOM
must be based on big endian variants, so that actual encodings would
work. [ruby-core:57318] [Bug #8940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43023 b...
nobu (Nobuyoshi Nakada)
12:52 PM Revision e6fe59e9 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:47 AM Revision 64525726 (git): tracepoint.c: no empty initializer list
* ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events):
C89 disallows empty initializer lists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:17 AM Revision 7eaee5b5 (git): * hash.c (env_each_pair): do not call rb_assoc_new() if
it isn't needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
01:42 AM Revision d190241a (git): test_module.rb: toplevel include
* test/ruby/test_module.rb (TestModule#test_include_toplevel): test
for top level main.include. based on a part of the patch by
kyrylo at [GH-395].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43019 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)
01:34 AM Revision c10b7435 (git): test_module.rb: use assertions for messages
* test/ruby/test_module.rb (TestModule#assert_top_method_is_private):
use assert_separately and assert_raise_with_message for better
messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/22/2013

08:11 PM Bug #8888: Fix grammar for documentation of #bm of Benchmark module
zzak (Zachary Scott) wrote:
> This issue was solved with changeset r43002.
> ...
Thanks @zzak
cha1tanya (Prathamesh Sonpatki)
08:10 PM Revision f856c123 (git): tracepoint.c: wrap data in a struct
* ext/-test-/tracepoint/tracepoint.c (struct tracepoint_track): wrap
tracepoint tracking data in a struct to be placed on the stack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:07 PM Revision 3f3bec49 (git): * 2013-09-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:07 PM Revision f5f0b869 (git): intern.h: move rb_ary_cat from internal.h
* include/ruby/intern.h (rb_ary_cat): move from internal.h, since it
is described in README.EXT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:05 PM Bug #8936 (Closed): Improve explanation about passing more number of params to instance of Struct
cha1tanya (Prathamesh Sonpatki)
11:57 AM Revision 0b39c8a0 (git): * vm_insnhelper.c (vm_make_proc_with_iseq): fix bug message.
This is follow up to changes in r42637.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
11:37 AM Revision d2f4e701 (git): * ext/-test-/tracepoint/tracepoint.c (Init_tracepoint): prevent from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
10:01 AM Revision 3557a5f8 (git): * benchmark/bm_app_answer.rb: revert r42990, benchmark scripts should
be self-contained and avoid dependencies, especially such small one.
See https://github.com/ruby/ruby/pull/393#issuecomment-24861301.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
07:26 AM Bug #8935: Zlib::GzipWriter.new with block truncates output to 20 corrupted bytes
Come to think of it, 20 bytes seems like what the gzip header + footer would take up... bugmenot123 (DoNot BugMe)
12:33 AM Bug #8935: Zlib::GzipWriter.new with block truncates output to 20 corrupted bytes
Sorry, another try without any formatting:
#!/usr/bin/ruby -w
require "zlib"
require "stringio"
input = File.read "/dev/urandom", 200
# corrupted and only 20 bytes long:
out1 = Zlib::GzipWriter.new(StringIO.new){ |gz| g...
bugmenot123 (DoNot BugMe)
12:31 AM Bug #8935 (Closed): Zlib::GzipWriter.new with block truncates output to 20 corrupted bytes
=begin
(({Zlib::GzipWriter.new})) with block truncates output to 20 corrupted bytes.
#!/usr/bin/ruby -w
require "zlib"
require "stringio"
input = File.read "/dev/urandom", 200
corrupted and only 20 bytes long:
out...
bugmenot123 (DoNot BugMe)
03:43 AM Revision 011bd850 (git): * 2013-09-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:43 AM Revision 6876f79b (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)

09/21/2013

08:11 PM Bug #8769 (Closed): [PATCH] process.c (rb_fork_internal): remove cloexec setting
This issue was solved with changeset r43008.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
process.c: remove cloexec setting
* process.c (rb_fork_internal)...
nobu (Nobuyoshi Nakada)
06:23 PM Bug #8769: [PATCH] process.c (rb_fork_internal): remove cloexec setting
"nobu (Nobuyoshi Nakada)" <nobu@ruby-lang.org> wrote:
> Eric can't?

I never accepted commit bit to any project in years. I'm not
trustworthy/sane enough nor do I want to feel obligated to Ruby.

It should be easier to acce...
normalperson (Eric Wong)
12:08 PM Bug #8934 (Third Party's Issue): Shut down my Thin server, then the terminal spit out 1182 lines and told me to report it to you.
Seems it happens in ruby_debug hook. nobu (Nobuyoshi Nakada)
10:34 AM Bug #8934 (Third Party's Issue): Shut down my Thin server, then the terminal spit out 1182 lines and told me to report it to you.
I was debugging my app using rails 4, ruby 2.0 and the Thin gem using OS 10.7.5. Then I stopped doing anything with it for a few hours and realized I hadn't stopped the server and when I closed the server then this happened:
^C>> Stop...
mcodyb (Cody Bertolino)
11:11 AM Revision ddef263a (git): process.c: remove cloexec setting
* process.c (rb_fork_internal): remove cloexec setting on pipes
created by rb_cloexec_pipe. patch by normalperson (Eric Wong) at
[ruby-core:56523]. [Bug #8769]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43008 b2dd03c8-39d4-...
nobu (Nobuyoshi Nakada)
08:07 AM Bug #8870: Method-Missing breaking irb
I know nothing about what your script does. nobu (Nobuyoshi Nakada)
05:42 AM Bug #8870: Method-Missing breaking irb
I do understand that its bad to use method_missing in the global space, but the behavior should be same irrespective of scope
This works:
2.0.0-p247 :002 > m "2","a","b"
=> ["2", "a", "b"]
2.0.0-p247 :003 > (m "2","a","b").class
=> Ar...
bjhaid (Ayodele Abejide)
07:52 AM Revision 42cc5964 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:43 AM Bug #8933 (Closed): ruby-2.0.0-p247/gems/rubyzip-0.9.9/lib/zip/inflater.rb:42: [BUG] Segmentation fault
Hello,
My program is working on Linux and Windows but not on my mac OSX, I have the error segmentation fault
Program example:
require 'rubygems'
require 'nokogiri'
require 'zip/zip' #rubyzip 0.9.9
require 'lib/semboxlib'
@zip = Z...
robino (vincent moreno)
07:41 AM Bug #8932 (Closed): ruby-2.0.0-p247/gems/rubyzip-0.9.9/lib/zip/inflater.rb:42: [BUG] Segmentation fault
Hello,
My program is working on Linux and Windows but not on my mac OSX, I have the error segmentation fault
Program example:
require 'rubygems'
require 'nokogiri'
require 'zip/zip' #rubyzip 0.9.9
require 'lib/semboxlib'
@zip = Z...
robino (vincent moreno)
05:15 AM Revision 50ffa683 (git): rdoc/constant.rb: workaround of NoMethodError
* lib/rdoc/constant.rb (RDoc::Constant#documented?): workaround for
NoMethodError when the original of alias is not found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:42 AM Revision 7fff518d (git): io.c: [DOC]
* io.c (rb_io_advise): [DOC] adjust indent and fix lists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:42 AM Revision 28e50d05 (git): io.c: [DOC]
* io.c (rb_f_select): [DOC] adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Revision fa24a0c5 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:05 AM Bug #8888 (Closed): Fix grammar for documentation of #bm of Benchmark module
This issue was solved with changeset r43002.
Prathamesh, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/benchmark.rb: [DOC] grammar of Benchmark#bm [Bug #888...
zzak (zzak _)
12:26 AM Bug #8758 (Closed): Add initial documentation for SSLServer
I have committed the changes in r42995 but missed the bug number on the commit :( zzak (zzak _)
12:12 AM Bug #8758: Add initial documentation for SSLServer
I'm going to skip the generator part, its a little verbose for my liking. Thank you for the patch, I will commit the other changes! zzak (zzak _)
12:25 AM Bug #7348: marshaling an object by a float does not work
commit miss orz zzak (zzak _)

09/20/2013

11:54 PM Bug #8913 (Closed): Unclear licensing terms on lib/gserver.rb
This issue was solved with changeset r42994.
Antonio, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/gserver.rb: [DOC] correct gserver.rb license [Bug #8913]
zzak (zzak _)
11:28 PM Bug #8854: Update URL for bug reports
I would like to discuss this as a feature: #8931 zzak (zzak _)
11:27 PM Feature #8931 (Rejected): Update URL in REPORTBUG_MSG
cc #8854 zzak (zzak _)
11:16 PM Feature #8929 (Feedback): CSV.foreach(filename) without block returns failing Enumerator
zzak (zzak _)
05:48 PM Feature #8929: CSV.foreach(filename) without block returns failing Enumerator
=begin
why not simply return an Enumerator from `foreach`?
class CSV
def self.foreach(path, options = Hash.new, &block)
if block_given?
open(path, options) do |csv|
csv.each(&block)
end
...
jwille (Jens Wille)
07:28 AM Feature #8929: CSV.foreach(filename) without block returns failing Enumerator
I can see that it is tricky, because a normal enumerator created by calling CSV#each shouldn't necessarily close the file (as the user may want to call #rewind), but when you use CSV.foreach you have no reference to the CSV object, and y... martinjos (Martin Sidaway)
07:04 AM Feature #8929: CSV.foreach(filename) without block returns failing Enumerator
<snip>
(I thought it had failed to send this message...)
martinjos (Martin Sidaway)
06:24 AM Feature #8929 (Closed): CSV.foreach(filename) without block returns failing Enumerator
CSV.foreach(filename) {|entry| p entry } => works
CSV.foreach(filename).to_a => fails
It gives the following error:
IOError: closed stream
from /home/martin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/csv.rb:1776:...
martinjos (Martin Sidaway)
09:35 PM Feature #8895: Destructuring Assignment for Hash
How about this:
~~~ruby
(x, y, *rest, :a => v1, :b => v2, **options) = 1, 2, 3, 4, :a => :foo, :b => :bar, :c => false, :d => true
x # => 1
y # => 2
rest # => [3, 4]
v1 # => :foo
v2 # => :bar
options # ...
alexeymuranov (Alexey Muranov)
07:04 PM Bug #8930 (Closed): some benchmark programs are slow since r42822
Hi.
I find some benchmark programs are slow since r42822.
% time ./miniruby -v benchmark/bm_vm3_clearmethodcache.rb
ruby 2.1.0dev (2013-09-04 trunk 42910) [x86_64-linux]
./miniruby -v benchmark/bm_vm3_clearmethodcache.rb 0.42s u...
authorNari (Narihiro Nakamura)
04:05 PM Revision a5314c64 (git): * lib/benchmark.rb: [DOC] grammar of Benchmark#bm [Bug #8888]
Patch by Prathamesh Sonpatki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:05 PM Revision 53dfd965 (git): * append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:51 PM Bug #8886 (Assigned): TracePoint API inconsistence when raise used
drbrain (Eric Hodel)
03:42 PM Bug #8886: TracePoint API inconsistence when raise used
Ping. Could @ko1 or someone review this and (hopefully) merge it? I've been using it for the last week without any issues.
Thanks!
deivid (David Rodríguez)
03:51 PM Revision df3e4b83 (git): * enumerator.c: [DOC] Enumerator#each arguments documentation [GH-388]
Patch by @kachick https://github.com/ruby/ruby/pull/388
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
03:49 PM Revision b8d05303 (git): * enum.c: [DOC] Enumerable#to_a accepts arguments [GH-388]
Patch by @kachick https://github.com/ruby/ruby/pull/388
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
03:47 PM Revision 1b3adaef (git): string.c: scan coderange
* string.c (rb_str_conv_enc_opts): make sure to scan coderange to get
rid of unnecessary conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:26 PM Revision 4c0eeec0 (git): commit miss on issue number from r42995
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:24 PM Revision 1d2ddb2e (git): * 2013-09-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:24 PM Revision 0f448061 (git): * ext/openssl/lib/openssl/ssl.rb: [DOC] Document OpenSSL::SSLServer
Based on a patch by Rafal Lisowski [Bug #7348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:54 PM Revision 6f553027 (git): * lib/gserver.rb: [DOC] correct gserver.rb license [Bug #8913]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
02:51 PM Revision 40424c26 (git): * ext/psych/yaml/yaml.h: [DOC] merge upstream typo fix by @GreenGeorge
https://github.com/tenderlove/psych/pull/161
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:41 PM Revision 8acb7800 (git): Add author from r42990
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
02:40 PM Revision 9408bba5 (git): * lib/securerandom.rb: [DOC] SecureRandom.hex length argument
[Fixes GH-394] Patch by @avdi https://github.com/ruby/ruby/pull/394
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:35 PM Revision 000f39b4 (git): * benchmark/bm_app_answer.rb: removed duplicate code [Fixes GH-393]
https://github.com/ruby/ruby/pull/393
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:24 PM Revision 8be7ad2b (git): common.mk: RUN_OPTS to tests
* common.mk (btest, btest-ruby, test-knownbug): add $(RUN_OPTS) to
ruby to be run, so that tests are runnable before making exts.
* common.mk (test-sample): ditto, and use $(MINIRUBY) as rubytest.rb
does not need extension libraries....
nobu (Nobuyoshi Nakada)
06:01 AM Revision aba824fe (git): parse.y: junk sigil only names
* parse.y (intern_str): sigil only names are junk, at least one
identifier character is needed. [ruby-dev:47723] [Bug #8928]
* parse.y (rb_enc_symname_type): fix out of bound access.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
nobu (Nobuyoshi Nakada)
05:16 AM Revision 035917ad (git): * ext/-test-/printf/printf.c (printf_test_call): Fix an end of buffer
argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
04:53 AM Revision 831fe26d (git): ext/-test-/symbol: move upward
* ext/-test-/symbol/extconf.rb: move the extension object file upward.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:53 AM Revision aee98a1c (git): .gdbinit: show ID type
* .gdbinit (rp_id): show ID type.
* template/id.h.tmpl (ruby_id_types): make enum for debugger.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:53 AM Revision a9534d1b (git): .gdbinit: rp_string
* .gdbinit (rp_string): extract from rp.
* .gdbinit (rp_id): use rp_string to show the content.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:53 AM Revision 1bf8b67c (git): .gdbinit: rp_id
* .gdbinit (rp_id): extract from rp and rb_id2name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/19/2013

11:34 PM Bug #8924: mathn/rational causes segmentation fault when calling :round on a Rational
david_macmahon (David MacMahon) wrote:
> There was another issue recently where requiring "mathn/rational" by itself caused problems that did not occur when requiring "mathn" in its entirety.
> ...
Yes.
Thanks @nobu for pointing me to...
bf4 (Benjamin Fleischer)
02:38 PM Bug #8924 (Closed): mathn/rational causes segmentation fault when calling :round on a Rational
nobu (Nobuyoshi Nakada)
02:23 PM Bug #8924: mathn/rational causes segmentation fault when calling :round on a Rational
There was another issue recently where requiring "mathn/rational" by itself caused problems that did not occur when requiring "mathn" in its entirety.

Does the problem still occur if you "require 'mathn'" instead of "require 'mathn...
david_macmahon (David MacMahon)
01:45 PM Bug #8924 (Closed): mathn/rational causes segmentation fault when calling :round on a Rational
Summary: Confirmed for MRI 1.9/2.0 various patchlevels, on OS X Snow Leopard.
To reproduce:
covered_percent = Marshal.load("\x04\bU:\rRational[\ai\x01\xC8i\x0F")
# or require 'yaml'; covered_percent = YAML.load("--- !ruby/object:R...
bf4 (Benjamin Fleischer)
11:04 PM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
nobu (Nobuyoshi Nakada) wrote:
> (13/09/16 3:29), headius (Charles Nutter) wrote:
> ...
https://bugs.ruby-lang.org/issues/8923
headius (Charles Nutter)
11:00 PM Feature #8923: Frozen nil/true/false
I obviously support this :-) headius (Charles Nutter)
03:43 PM Feature #8923: Frozen nil/true/false
they are a bit different with methods, because defining singleton methods on them redirects to the curresponding Class
but yes, instance variables on them doesnt make much sense
Hanmac (Hans Mackowiak)
11:21 AM Feature #8923 (Closed): Frozen nil/true/false
Related to [Feature #8906]
We already froze `Integer`, `Float`. `Symbol`s soon (now working).
How about to freeze `nil`, `true` and `false`, too?
# frozen ruby? "Ruby"f?
ko1 (Koichi Sasada)
08:17 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
Instance methods of modules can be bound on any objects, already.
It's a part of method transplanting.
nobu (Nobuyoshi Nakada)
08:02 PM Revision 52daf76e (git): * 2013-09-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:02 PM Revision 2a57b719 (git): test_lambda.rb: fix messages
* test/ruby/test_lambda.rb (test_{do,brace}_lambda_source_location):
fix messages, missed to commit at r42980.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:01 PM Bug #8925 (Closed): Traversing a tree of files/catalogues produces a segmentation fault in find.rb
Traversing a tree of files/catalogues produces a segmentation fault:
SvnPropertyStripper.rb:18: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
-- Control frame information -------------------------------------...
LarsDk (Lars Aurbakken)
02:30 PM Feature #8906 (Closed): Freeze Symbols
This issue was solved with changeset r42974.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* include/ruby/ruby.h: make Symbol objects frozen.
[Feature #...
ko1 (Koichi Sasada)
10:45 AM Feature #8921: Allow select, reject, etc to accept a regex
Again, I understand that `grep` can do this but I feel that (especially in my reject example) that the intent is much clearer w/ my proposed addition. What would be the downside to adding something like this to select/reject (or Enumbera... kyledecot (Kyle Decot)
08:21 AM Feature #8921: Allow select, reject, etc to accept a regex
That is grep. nobu (Nobuyoshi Nakada)
03:37 AM Feature #8921: Allow select, reject, etc to accept a regex
@Hanmac: That's it, thanks! Anonymous
02:53 AM Feature #8921: Allow select, reject, etc to accept a regex
On 09/18/2013 09:17 AM, Fuad Saud wrote:
> I mean, couldn't select, reject and friends take one parameter in case
> no block is passed and compare elements using the threequals operator.
> This would enable one to do things like:
...
Anonymous
01:23 AM Feature #8921: Allow select, reject, etc to accept a regex
I mean, couldn't select, reject and friends take one parameter in case no
block is passed and compare elements using the threequals operator. This
would enable one to do things like:

[1, 56, 12, 7, 39].select 0..20 #=> [1, 12]
...
fuadksd (Fuad Saud)
12:53 AM Feature #8921: Allow select, reject, etc to accept a regex
Shouldn't select/reject use threequals?
On Sep 18, 2013 12:25 PM, "kyledecot (Kyle Decot)" <kyle.decot@icloud.com>
wrote:

>
> Issue #8921 has been updated by kyledecot (Kyle Decot).
>
>
> =begin
> Yes, grep would be a...
fuadksd (Fuad Saud)
12:24 AM Feature #8921: Allow select, reject, etc to accept a regex
=begin
Yes, grep would be a suitable alternative for `select` w/ a regex in this instance. What about for `reject` though? I feel that
%w[foo bar baz].reject /^ba/ # ["foo"]
Is more readable than
%w[foo bar baz].grep /^...
kyledecot (Kyle Decot)
07:59 AM Revision 5cda4e90 (git): parse.y: adjust position of lambda
* parse.y (lambda): adjust position to the beginning of the block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:59 AM Revision eb568bde (git): parse.y: duplicate code
* parse.y (f_larglist): remove duplicate code in ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:33 AM Revision 55e73bdf (git): revert font files
* lib/rdoc/generator/template/darkfish/fonts/*.ttf: revert font files
to r42971.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:25 AM Revision 170344b2 (git): vsnprintf.c: initialize cp
* vsnprintf.c (BSD_vfprintf): initialize cp so that size is 0 in the
commented case. fix an accidental bug at r16716.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:22 AM Revision 31456832 (git): * remove trailing spaces, append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:33 AM Revision b23bbb12 (git): * NEWS: add a news for r42974.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
05:30 AM Revision 1e27eda2 (git): * include/ruby/ruby.h: make Symbol objects frozen.
[Feature #8906]
I want to freeze this good day, too.
* test/ruby/test_eval.rb: catch up this change.
* test/ruby/test_symbol.rb: add a test to check frozen symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42974 b2dd03c8-39...
ko1 (Koichi Sasada)
04:38 AM Bug #8922 (Closed): Crash when calling Coverage.result
In one of my test suites I'm getting consistent crashes but at different points in the test suite every time. It always appears to be related to malloc/GC issues and it goes away by simply disabling coverage collection. Here are some dum... chetan (Chetan Sarva)
12:11 AM Revision 92cd8313 (git): * NEWS: Update for RDoc 4.1.0.preview.1 and RubyGems 2.2.0.preview.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
12:00 AM Revision e0030bd9 (git): * lib/rdoc/markdown/literals_1_9.rb: Fix trailing whitespace.
Previously kpeg (which generates this file) added trailing
whitespace, but this bug is now fixed.
* lib/rdoc/markdown.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
 

Also available in: Atom