Project

General

Profile

Activity

From 03/11/2013 to 03/17/2013

03/17/2013

06:19 PM Revision d883d756 (git): * array.c: Typo in Array#delete by Timo Sand [GH fixes #258]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:25 PM Revision ade879ec (git): * 2013-03-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:25 PM Revision a9cbf641 (git): * io.c (io_fillbuf): show fd number on failure to debug.
http://c5632.rubyci.org/~chkbuild/ruby-trunk/log/20130316T050302Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:13 PM Revision d32d8b33 (git): merge revision(s) 39731: [Backport #7991]
* lib/rubygems/commands/setup_command.rb: Don't delete non-rubygems
files when installing RubyGems.
* test/rubygems/test_gem_commands_setup_command.rb: Test for the
above.
* lib/rubygems/ext/ext_co...
nagachika (Tomoyuki Chikanaga)
03:11 PM Revision cd1d3422 (git): merge revision(s) 39696: [Backport #7991]
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
it is impossible to predict which file will be installed to where,
by the arguments, so use intermediate destination directory always.
...
nagachika (Tomoyuki Chikanaga)
03:07 PM Revision cae2f1eb (git): merge revision(s) 39621,39622: [Backport #7991]
* lib/rubygems/commands/setup_command.rb: Install .pem files.
* test/rubygems/test_gem_commands_setup_command.rb: Test for the
above.
* lib/rubygems/spec_fetcher.rb: Test HTTPS upgrade with URI::HTTPS,
...
nagachika (Tomoyuki Chikanaga)
03:03 PM Revision c071b47a (git): merge revision(s) 39608: [Backport #7749]
* test/rubygems/test_require.rb: Fix tests when 'a.rb' exists.
[ruby-trunk - Bug #7749]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:02 PM Revision 86ae4bc2 (git): merge revision(s) 39607: [Backport #7713]
* lib/rubygems.rb: Allow specification of directory permissions.
[ruby-trunk - Bug #7713]
* test/rubygems/test_gem.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39798 b2dd0...
nagachika (Tomoyuki Chikanaga)
03:01 PM Revision 3e3f0346 (git): merge revision(s) 39606,39609: [Backport #8019]
* lib/rubygems/commands/query_command.rb: Only fetch remote specs when
showing details. [ruby-trunk - Bug #8019] RubyGems bug #487
* lib/rubygems/remote_fetcher.rb: ditto.
* lib/rubygems/security/policy.rb...
nagachika (Tomoyuki Chikanaga)
02:57 PM Revision d1ce1051 (git): merge revision(s) 39603: [Backport #7991]
for [Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:53 PM Revision 9a756111 (git): merge revision(s) 39597: [Backport #7991]
* lib/rubygems.rb: Bump version to 2.0.1 for upcoming bugfix release
* lib/rubygems/ext/ext_conf_builder.rb: Restore ruby 1.8 compatibility
for [Bug #9698]
* test/rubygems/test_gem_installer.rb: Ditto.
...
nagachika (Tomoyuki Chikanaga)
02:52 PM Revision 64766e9d (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:51 PM Revision b2a8d8a8 (git): merge revision(s) 39533: [Backport #7991]
* lib/rubygems/available_set.rb: Undent for style
* lib/rubygems/dependency_installer.rb: Pick latest prerelease gem to
install. Fixes RubyGems bug #468.
* test/rubygems/test_gem_dependency_installer.rb: T...
nagachika (Tomoyuki Chikanaga)
02:28 PM Revision a4e52a1a (git): merge revision(s) 39590,39592: [Backport #7991]
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
clear DESTDIR so RUBYARCHDIR and RUBYLIBDIR are not be overrdden.
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@...
nagachika (Tomoyuki Chikanaga)
02:27 PM Revision b28cb4fa (git): merge revision(s) 39579: [Backport #7991]
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
fix for unusal cases again. install to a temporary directory once
and move instaled files to the destination directory, if it is same
...
nagachika (Tomoyuki Chikanaga)
02:22 PM Revision 8ff247ae (git): merge revision(s) 39560,39562,39572: [Backport #7991]
* lib/rubygems/ext/ext_conf_builder.rb
(Gem::Ext::ExtConfBuilder.hack_for_obsolete_sytle_gems): remove
circular dependencies for old style gems which locate extconf.rb on
the toplevel. [ruby-core:53059] [ru...
nagachika (Tomoyuki Chikanaga)
02:20 PM Revision bbe80008 (git): merge revision(s) 39559: [Backport #7991]
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
use RUBYOPT instead of -r option, and revert some tests. [Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39789 b2dd03c8-39d...
nagachika (Tomoyuki Chikanaga)
02:20 PM Revision 5d6aa9ba (git): merge revision(s) 39558: [Backport #7991]
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
revert use of temporary directory for build, to work some buggy
extconf.rb which cannot build outside the source directory.
[ruby-core...
nagachika (Tomoyuki Chikanaga)
02:19 PM Revision 937cf089 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:18 PM Revision 1ec03bfc (git): merge revision(s) 39542,39545: [Backport #7991]
* lib/rubygems/ext/builder.rb: Fix incompatibilities when installing
extensions. Patch by Nobu.
[ruby-trunk - Bug #7968] [ruby-trunk - Bug #7971]
* lib/rubygems/ext/ext_conf_builder.rb: ditto.
* l...
nagachika (Tomoyuki Chikanaga)
05:53 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
On Sat, Mar 16, 2013 at 02:12:03AM +0900, headius (Charles Nutter) wrote:
>
> Issue #7895 has been updated by headius (Charles Nutter).
>
>
> kallistec (Daniel DeLeo) wrote:
> > Hi, I work on Opscode's Chef, a server conf...
Anonymous
03:58 AM Feature #8107: [patch] runtime flag to track object allocation metadata
No objections to adding this feature to MRI, but anything that goes on the standard core classes needs to involve other implementers. If this is not intended to be a standard Ruby (not MRI) feature, it would probably be best to have the ... headius (Charles Nutter)
01:34 AM Revision e4811dc6 (git): * array.c: fix rdoc. [ruby-core:53485] [ruby-trunk - Bug #8108]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)

03/16/2013

08:01 PM Feature #8107: [patch] runtime flag to track object allocation metadata
> + rb_gc_set_params();
> ...
This is a hack. I wanted to set track_metadata=1 as early as possible, before require('rubygems') especially.
Maybe it makes more sense to add an option instead of ENV flag, ruby --debug-objects ?
tmm1 (Aman Karmani)
05:47 PM Feature #8107 (Closed): [patch] runtime flag to track object allocation metadata
When a ruby program contains a reference leak, debugging is a lot easier if you know where each object was allocated. Tools like bleakhouse and memprof have provided this functionality in the past, but were brittle and required source/ru... tmm1 (Aman Karmani)
05:40 PM Revision 326dd6e0 (git): * ext/date/date_core.c: include sys/time.h for avoiding implicit
declaration of gettimeofday().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:58 PM Revision 28d3acb0 (git): * include/ruby/missing.h: removed __linux__. it's unnecessary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
03:16 PM Revision 6b83f5e6 (git): * 2013-03-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:16 PM Revision 7c14f03c (git): missing.h: build fix
* include/ruby/missing.h: include time.h and sys/time.h iff needed,
but excepct for sys/time.h on linux to get rid of glibc bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:48 PM Revision 090a6ca4 (git): test_bignum.rb: refine test
* test/ruby/test_bignum.rb (test_interrupt_during_to_s): rename and
merge with assert_interrupt, separate Bignum power from to_s, get
rid of busy loop, and skip if the conversion is too fast.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
nobu (Nobuyoshi Nakada)
02:48 PM Revision de9911f5 (git): Makefile.sub: fix mswin build
* win32/Makefile.sub (config.h): fix mswin build, also VC has time.h
and struct timeval.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:20 AM Bug #8103 (Closed): Fix for URI.decode_www_form ArgumentError
URI.decode_www_form pukes out an ArgumentError if passed any parameter names that aren't followed by an equals sign. Because of this it can't decode some of the strings that were encoded with URI.encode_www_form:
irb> require 'uri'
=...
misfo (Trent Ogren)
10:05 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
Since a committer nominee was given permission to commit I think you should commit it drbrain (Eric Hodel)
02:24 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
mame or matz: Is this change approved? If so, I can proceed with a patch that includes what I've already posted plus OpenSSL changes. headius (Charles Nutter)
10:00 AM Bug #8091: Class.new is not called when class is created using class keyword
alexeymuranov (Alexey Muranov) wrote:
> I think partial overloading can be done by defining the `initialize` private method.
no initilize is called on `class X` that is why it is a bug
anuraguniyal (anurag uniyal)
10:00 AM Bug #8091: Class.new is not called when class is created using class keyword
Initialize is also not called on `class X` but it is called on `Class.new`
class Class
alias old_initialize initialize
def initialize(*args)
obj = old_initialize *args
print "initialize",obj,"\n"
...
anuraguniyal (anurag uniyal)
09:37 AM Feature #8096: introduce Time.current_timestamp
Both Postgres and MySQL store timestamps with microsecond precision:
http://www.postgresql.org/docs/9.2/static/datatype-datetime.html
http://dev.mysql.com/doc/refman/5.6/en/datetime.html
drbrain (Eric Hodel)
06:53 AM Feature #8096: introduce Time.current_timestamp
MySQL stores/transmits TIMESTAMP fields as integer seconds.

Sent from my phone, so excuse the typos.
On Mar 16, 2013 7:13 AM, "KOSAKI Motohiro" <kosaki.motohiro@gmail.com>
wrote:

> (3/15/13 4:36 PM), vipulnsward (Vipul Aml...
phluid61 (Matthew Kerwin)
06:23 AM Feature #8096: introduce Time.current_timestamp
(3/15/13 4:36 PM), vipulnsward (Vipul Amler) wrote:
>
> Issue #8096 has been updated by vipulnsward (Vipul Amler).
>
>
> =begin
> It could be any number of purposes. On top of my head I could think of remote systems, time...
kosaki (Motohiro KOSAKI)
05:36 AM Feature #8096: introduce Time.current_timestamp
=begin
It could be any number of purposes. On top of my head I could think of remote systems, timestamps persisted to Databases, Event marking, Security Systems, Time conversions, etc (Although these are very bad examples)
Maybe http...
vipulnsward (Vipul Amler)
08:55 AM Feature #7791: Let symbols be garbage collected
marcandre (Marc-Andre Lafortune) wrote:
> So it's probably only MRI that does stuff like `rb_funcall(obj, '>', 1, INT2FIX(0))`
That can be changed to:
#define CHAR2SYM(X) _rb_char_symbol_table[X]
rb_funcall(obj, CHAR2SYM('>...
kstephens (Kurt Stephens)
07:10 AM Feature #7791: Let symbols be garbage collected
Student (Nathan Zook) wrote:
> I'm sorry, but this example just gets more strange the more you explain it. Are you saying that there is one table with one two columns (id & value) for all of the text fields?
Basically, yes.
> .....
rosenfeld (Rodrigo Rosenfeld Rosas)
06:49 AM Feature #7791: Let symbols be garbage collected
I'm sorry, but this example just gets more strange the more you explain it. Are you saying that there is one table with one two columns (id & value) for all of the text fields? That would certainly parallel your previous statement.
...
Student (Nathan Zook)
06:05 AM Feature #7791: Let symbols be garbage collected
kstephens (Kurt Stephens) wrote:
> Student (Nathan Zook) wrote:
> ...
The existing test cases all assume that symbol behaves the way that it currently does. There are tests to check a against certain deviations, but not all possible ...
Student (Nathan Zook)
03:54 AM Feature #7791: Let symbols be garbage collected
kstephens (Kurt Stephens) wrote:
> Unless we have a class of VALUES < 127 that are immediate single-ASCII character Symbols, and we cant do that because it will collide with other immediates.
Wouldn't it be safe to do this in ID2SY...
marcandre (Marc-Andre Lafortune)
03:33 AM Feature #7791: Let symbols be garbage collected
I was thinking about how to implement this in JRuby. Couldn't you just have *all* Symbols be weakly-referenced in the symbol table, and just root the ones that are created from C?
I'll try to prototype something in JRuby.
headius (Charles Nutter)
02:06 AM Feature #7791: Let symbols be garbage collected
marcandre (Marc-Andre Lafortune) wrote:
> kstephens (Kurt Stephens) wrote:
> ...
Yup. That's an assumption I can't fix. Unless we have a class of VALUES < 127 that are immediate single-ASCII character Symbols, and we cant do that be...
kstephens (Kurt Stephens)
01:47 AM Feature #7791: Let symbols be garbage collected
kstephens (Kurt Stephens) wrote:
> I'm considering creating a first-class struct RSymbol and making ID synonymous with VALUE
I might be mistaken, but wouldn't that be a problem because many external libraries assume, like MRI does, ...
marcandre (Marc-Andre Lafortune)
01:32 AM Feature #7791: Let symbols be garbage collected
Student (Nathan Zook) wrote:
> Questions:
> ...
With the unit and functional tests that already exist. What cases do you have in mind?
> 2) In order to actually recover the memory, the symbol table has to be walked each time a sym...
kstephens (Kurt Stephens)
08:05 AM Revision 4002be60 (git): console.c: supppress warnings
* ext/io/console/console.c (console_iflush, console_oflush): supppress
unused-but-set-variable warnings on no tcflush.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:28 AM Revision cab12477 (git): mingw build fix
* configure.in: struct timeval is defined in winsock2.h on mingw.
* include/ruby/missing.h: include time.h for time_t, and sys/time.h
for timeval and timespec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39777 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
07:28 AM Revision af24f5ff (git): io.c: max_file_descriptor
* io.c (max_file_descriptor): rb_atomic_t for ATOMIC_CAS().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:07 AM Revision 92b367e0 (git): * thread.c: disabled _FORTIFY_SOURCE for avoid to hit glibc bug.
[Bug #8080] [ruby-core:53349]
* test/ruby/test_io.rb (TestIO#test_io_select_with_many_files):
test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:07 AM Revision c824d47e (git): * include/ruby/missing.h (__syscall): moved to...
* io.c: here. because __syscall() is only used from io.c.
* include/ruby/missing.h: move "#include <sys/type.h>" to ....
* include/ruby/intern.h: here. because it was introduced for
fixing NFDBITS issue. [ruby-core:05179].
git-svn-id...
kosaki (Motohiro KOSAKI)
05:07 AM Revision 03a6ce80 (git): * include/ruby/missing.h (struct timespec): include <sys/time.h>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:06 AM Revision 798ff850 (git): * configure.in: check struct timeval exist or not.
* include/ruby/missing.h (struct timeval): check HAVE_STRUCT_TIMEVAL
properly. and don't include sys/time.h if struct timeval exist.
* file.c: include sys/time.h explicitly.
* random.c: ditto.
* thread_pthread.c: ditto.
* time.c: ditt...
kosaki (Motohiro KOSAKI)
05:06 AM Revision 2e544471 (git): * configure.in (_FORTIFY_SOURCE): added a few comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
03:17 AM Bug #7037 (Closed): float formatting inconsistently rounds half to even
>7037: float formatting inconsistently rounds half to even
> ...
>impl-specific, so this could be closed.
kosaki (Motohiro KOSAKI)
02:27 AM Feature #6309: Add a reference queue for weak references
I request a ruling by matz about adding a ReferenceQueue to weakref.rb. headius (Charles Nutter)
02:26 AM Feature #6308: Eliminate delegation from WeakRef
I request a ruling by matz for making the backward-incompatible change of having Weakref no longer be a Delegate. Alternatively, make it a Delegate where all delegated methods warn that you shouldn't use it as a Delegate.
If necessary...
headius (Charles Nutter)
02:12 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
kallistec (Daniel DeLeo) wrote:
> Hi, I work on Opscode's Chef, a server configuration framework. I have an interest in both parts of this topic. In Chef, we use set_backtrace but we also parse backtrace lines to find relevant code in o...
headius (Charles Nutter)
02:01 AM Feature #8090: resolv.rb checks platform based on RUBY_PLATFORM, which is insufficient for JRuby
I thought host_os is the OS that we're *actually* running on, and target_os was the OS name Ruby was built for. Was I mistaken?
I like checking RbConfig::CONFIG alone, if we can decide which key to use.
headius (Charles Nutter)

03/15/2013

11:11 PM Feature #8096 (Feedback): introduce Time.current_timestamp
vipulnsward (Vipul Amler) wrote:
> A lot of scenarios and applications require the use of Time.now.to_i which is used as current_timestamp in systems.
For what purpose is it needed?
nobu (Nobuyoshi Nakada)
06:23 PM Feature #8096: introduce Time.current_timestamp
Tanaka Akira <akr@fsij.org> wrote:
> 2013/3/15 vipulnsward (Vipul Amler) <vipulnsward@gmail.com>:
>
> > A lot of scenarios and applications require the use of Time.now.to_i which is used as current_timestamp in systems.
>
> ...
normalperson (Eric Wong)
03:53 PM Feature #8096: introduce Time.current_timestamp
2013/3/15 vipulnsward (Vipul Amler) <vipulnsward@gmail.com>:

> A lot of scenarios and applications require the use of Time.now.to_i which is used as current_timestamp in systems.

I don't recommend the value to send to another ...
akr (Akira Tanaka)
03:07 PM Feature #8096: introduce Time.current_timestamp
This is an *excellent* idea. Being able to get timestamps without creating an entire Time object would be really nice for code that does fine-grained timing.
Here's a benchmark of Time.now.to_i compared to the Java method System.nanoT...
headius (Charles Nutter)
02:17 AM Feature #8096: introduce Time.current_timestamp
More like nanosecond. Atleast thats what currently happens, if I am not wrong. vipulnsward (Vipul Amler)
01:47 AM Feature #8096: introduce Time.current_timestamp
Is one second precision sufficient? drbrain (Eric Hodel)
12:28 AM Feature #8096 (Feedback): introduce Time.current_timestamp
=begin
A lot of scenarios and applications require the use of (({Time.now.to_i})) which is used as current_timestamp in systems.
The introduction of (({Time.current_timestamp})) {or something with similar with different name} would p...
vipulnsward (Vipul Amler)
11:06 PM Bug #8099 (Closed): Time can be mutated by send :initialize
This issue was solved with changeset r39766.
Charles, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
time.c: check re-initialize
* time.c (GetTimeval): check if a...
nobu (Nobuyoshi Nakada)
03:39 PM Bug #8099 (Closed): Time can be mutated by send :initialize
It is possible to alter the value of a given Time object by re-sending :initialize. No other methods can cause the time to be mutated, and I believe no method should modify the value of an already-initialized Time object.
Some example...
headius (Charles Nutter)
09:57 PM Feature #7791: Let symbols be garbage collected
Student (Nathan Zook) wrote:
> ...Second, I really don't understand your example. How do particular values for a particular role become part of the alias for an entire column?
I think you won't understand until I give you an overvie...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:22 AM Feature #7791: Let symbols be garbage collected
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> Of course the params are verified and there is no risk of SQL injection in my case either. I'm joining the same table multiple times at least once for each condition in the search query reque...
Student (Nathan Zook)
10:09 AM Feature #7791: Let symbols be garbage collected
kstephens (Kurt Stephens) wrote:
> Mark and sweep the symbol table like any other GC heap.
> ...
Questions:
1) How certain are you that this covers all of the cases?
2) In order to actually recover the memory, the symbol table has ...
Student (Nathan Zook)
03:00 AM Feature #7791: Let symbols be garbage collected
kstephens (Kurt Stephens) wrote:
> Mark and sweep the symbol table like any other GC heap.
> ...
+1, exactly what I was thinking.
> My employer will sponsor me to do this work.
Awesome news!
My personal thanks to your employe...
marcandre (Marc-Andre Lafortune)
02:34 AM Feature #7791: Let symbols be garbage collected
Mark and sweep the symbol table like any other GC heap.
However there are some issues in the C API.
IDs in the C API are distinct from other values and Ruby extensions expected them to be pinned (never GCd).
Therefore, the C API must s...
kstephens (Kurt Stephens)
09:26 PM Revision e1807e59 (git): * thread_pthread.c (numberof): renamed from ARRAY_SIZE() because
other all files use numberof().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:58 PM Bug #8100 (Closed): Segfault in trunk
=begin
Full backtrace (both VM, C and Ruby) is both attached and available at https://travis-ci.org/rtomayko/tilt/jobs/5479138
I haven't been able to reproduce it (and thus I can't create a reduced test case).
This is the test tha...
judofyr (Magnus Holm)
05:50 PM Revision 4bfea99d (git): r39766 denied to initialized already initialized time object
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:55 PM Revision 00d9f130 (git): * 2013-03-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:55 PM Revision a4010f4f (git): * test/ruby/test_lazy_enumerator.rb (TestLazyEnumerator#test_drop_while):
Modify while condition to show dropping remains off after first false
value. This change was made in 39711.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
headius (Charles Nutter)
04:41 PM Bug #8091: Class.new is not called when class is created using class keyword
anuraguniyal (anurag uniyal) wrote:
> I don't want to detect class creation I wan to overload new, which should be possible, at-least it would be elegant if `class X` and 'Class.new` behave similarly
I think partial overloading can...
alexeymuranov (Alexey Muranov)
09:11 AM Bug #8091: Class.new is not called when class is created using class keyword
`new' is one of the ways to create an object, and most obvious probably, but not the only way.
For examples, string interpolation, File#open, Thread#start, and many.
`class' statement is just one of them.
nobu (Nobuyoshi Nakada)
03:15 AM Bug #8091: Class.new is not called when class is created using class keyword
nobu (Nobuyoshi Nakada) wrote:
> Correct, not a bug.
Why this is not a bug if classes created differently have different creation mechanism, question is why Class.new is not called when class is created?
anuraguniyal (anurag uniyal)
03:13 AM Bug #8091: Class.new is not called when class is created using class keyword
marcandre (Marc-Andre Lafortune) wrote:
> Note that if you need to detect class creation, that can be done using the `inherited` callback.
I don't want to detect class creation I wan to overload new, which should be possible, at-leas...
anuraguniyal (anurag uniyal)
02:06 PM Revision 84085167 (git): time.c: check re-initialize
* time.c (GetTimeval): check if already initialized instance.
* time.c (GetNewTimeval): check if newly created instance.
* time.c (time_init_0, time_init_1, time_init_copy, time_mload): must
be newly created instance. [ruby-core:53436...
nobu (Nobuyoshi Nakada)
11:36 AM Revision 55549b85 (git): * test/rubygems/test_gem_package.rb (test_verify_nonexistent): fix
syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:20 AM Revision d4c1418a (git): * test/rubygems/test_gem_package.rb (test_verify_nonexistent): should
make no assumptions on system error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:19 AM Revision c7c3a275 (git): error.c: rb_sys_fail_path_in
* error.c (syserr_initialize): add optional function name.
* error.c (rb_sys_fail_path_in): rename and move from file.c, and pass
func_name to SystemCallError#initialize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39763 b2dd03...
nobu (Nobuyoshi Nakada)
09:07 AM Bug #8085 (Third Party's Issue): Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32
nobu (Nobuyoshi Nakada)
03:06 AM Bug #8085 (Rejected): Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32
> Oops! Turns out this is a bug in ruby-build:
Then, closed.
kosaki (Motohiro KOSAKI)
02:27 AM Bug #8085: Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32
Oops! Turns out this is a bug in ruby-build:
https://github.com/sstephenson/ruby-build/issues/325
Sorry.
meta (mathew murphy)
08:57 AM Feature #8098 (Rejected): Add __DIR__ to compliment __FILE__
See #3346, in particular https://bugs.ruby-lang.org/issues/3346#note-17 drbrain (Eric Hodel)
08:27 AM Feature #8098: Add __DIR__ to compliment __FILE__
=begin
IIRC (({__DIR__})) has already been shot down because of concerns that introducing a new keyword might break things.
However I would like to see a (({__file__})) method to complement (({__dir__})), (({__method__})), etc.
=end
Anonymous
08:24 AM Feature #8098 (Rejected): Add __DIR__ to compliment __FILE__
There should be a __DIR__ constant to compliment __FILE__. postmodern (Hal Brodigan)
08:29 AM Revision b5a9cd8f (git): fix filename
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:15 AM Feature #8088: Method#parameters (and friends) should provide useful information about core methods
marcandre (Marc-Andre Lafortune) wrote:
> headius (Charles Nutter) wrote:
> ...
I'm game to toss some ideas around. I don't know MRI internals well enough to implement much of it myself :-)
> My goals would be to be able to, at leas...
headius (Charles Nutter)
06:14 AM Feature #8088: Method#parameters (and friends) should provide useful information about core methods
headius (Charles Nutter) wrote:
> I was contemplating hacking something together myself, in fact. Would like to see what you're proposing...can you add an issue to CommonRuby?
I could, or maybe you and I can work on something togethe...
marcandre (Marc-Andre Lafortune)
03:40 AM Feature #8088: Method#parameters (and friends) should provide useful information about core methods
marcandre (Marc-Andre Lafortune) wrote:
> +1.
> ...
I was contemplating hacking something together myself, in fact. Would like to see what you're proposing...can you add an issue to CommonRuby?
For some background, JRuby's method-re...
headius (Charles Nutter)
06:08 AM Revision a7e5f0b5 (git): internal.h: export rb_sys_fail_path_with_func
* internal.h (rb_sys_fail_path_with_func): export for
socket/basicsocket.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:51 AM Revision 0d3d9eff (git): file.c: rb_sys_fail_path_with_func
* file.c (rb_sys_fail_path_with_func): share same function, and path
may be nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:09 AM Bug #8094 (Closed): Docs bug for Proc#arity
This issue was solved with changeset r39758.
Jack, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]
zzak (zzak _)
01:07 AM Bug #8034: File.expand_path('something', '~') do not include home path
h.shirosaki (Hiroshi Shirosaki) wrote:
> Luis, thank you for your work.
> ...
Hiroshi,
I've pushed the refactored code as r39751 and corrected the style issue you mentioned. Thank you.
I noticed getting the user home directory wh...
luislavena (Luis Lavena)

03/14/2013

11:25 PM Revision bfd52c98 (git): * file.c (rb_sys_fail_path): define & use rb_sys_fail_path0 like r39752
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:23 PM Feature #8088: Method#parameters (and friends) should provide useful information about core methods
I would love to see this change as well. Quite a few times already I've
had to retrieve the arguments of a method (and the names in particular)
but with the output being not very trust worthy this has always been a
hit-and-miss.
...
yorickpeterse (Yorick Peterse)
10:59 PM Feature #8088: Method#parameters (and friends) should provide useful information about core methods
+1.
I plan on proposing a new C API for registering methods, so allow for complete information, including keyword parameters.
marcandre (Marc-Andre Lafortune)
07:56 AM Feature #8088 (Open): Method#parameters (and friends) should provide useful information about core methods
I was wiring up #parameters to work for native methods today when I realized MRI doesn't give very good information about variable-arity native methods:
```
$ ruby2.0.0 -e "p ''.method(:gsub).to_proc.parameters"
[[:rest]]
$ jruby...
headius (Charles Nutter)
11:02 PM Bug #8091: Class.new is not called when class is created using class keyword
Note that if you need to detect class creation, that can be done using the `inherited` callback. marcandre (Marc-Andre Lafortune)
02:54 PM Bug #8091 (Rejected): Class.new is not called when class is created using class keyword
Correct, not a bug. nobu (Nobuyoshi Nakada)
10:30 AM Bug #8091 (Rejected): Class.new is not called when class is created using class keyword
=begin
When a class is created using ((|class|)) keyword, Class.new is not called but if class is created using ((|Class.new|)) it is obviously called, there seems to be a dyssymmetry between ((|class X|)) and ((|Class.new|)) e.g.
...
anuraguniyal (anurag uniyal)
08:26 PM Feature #8083: Exit status is limited to one-byte values which is invalid for Windows
=begin
I cannot find exact definition of possible exit codes on Windows, but here is ExitProcess function declaration [1]:
VOID WINAPI ExitProcess(
_In_ UINT uExitCode
);
UINT type definition [2]:
An unsigned INT. The ...
rutsky (Vladimir Rutsky)
03:53 PM Feature #8083 (Assigned): Exit status is limited to one-byte values which is invalid for Windows
This may be not a bug but a feature. usa (Usaku NAKAMURA)
02:44 PM Feature #8083: Exit status is limited to one-byte values which is invalid for Windows
According to the document http://en.wikipedia.org/wiki/Exit_status#Windows,
"Windows uses 32-bit signed integers as exit codes. If a process fails initialization, a Windows system error code may be returned. Windows system error codes a...
phasis68 (Heesob Park)
05:17 AM Feature #8083 (Feedback): Exit status is limited to one-byte values which is invalid for Windows
Can you provide links to MSDN article that states this? (32-bits exit codes)
Thank you.
luislavena (Luis Lavena)
07:08 PM Revision 1b179216 (git): * proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:46 PM Bug #8095 (Closed): [patch] gc: fix unlimited memory growth with large values of RUBY_FREE_MIN
Normally, do_heap_free is set to 65% of total slots available.
But if you specify a very large RUBY_FREE_MIN, then do_heap_free is always set to 100%. This results in a memory leak over time.
Instead of forcing do_heap_free = 100%, t...
tmm1 (Aman Karmani)
04:59 PM Feature #7978: boolean to_i
I mean, my suggestion can cause problems if one uses `true`, `false`, `nil` for ternary logic, because `nil.to_i` and `false.to_i` would be both `0`. According to Wikipedia, in ternary logic context, it is common to represent `false` by... alexeymuranov (Alexey Muranov)
04:55 PM Feature #7978: boolean to_i
What kind of problem do you imagine? I cannot think of any.
Matz.
matz (Yukihiro Matsumoto)
04:49 PM Feature #7978: boolean to_i
I understand however that there can be a problem if one wants, for example, to use `true`, `false`, `nil` for ternary logic http://en.wikipedia.org/wiki/Three-valued_logic . alexeymuranov (Alexey Muranov)
04:58 PM Bug #8094 (Closed): Docs bug for Proc#arity
The docs for Proc#arity in proc.c claim that

proc { |x=0, y| }.arity # => 0
the result is really "1".
Anonymous
04:21 PM Revision 3a3581d5 (git): * 2013-03-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:21 PM Revision 2642e020 (git): Makefile.sub: __FUNCTION__
* win32/Makefile.sub (config.h): __FUNCTION__ is available at least
VC9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:21 PM Revision d24540f5 (git): file.c: insert separator
* file.c (rb_sys_fail_path0): insert separator between function name
and path name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:31 PM Feature #8090: resolv.rb checks platform based on RUBY_PLATFORM, which is insufficient for JRuby
=begin
Because we haven't considered the case (({RUBY_PLATFORM})) means somethings different from CPU and OS.
If you check by (({RbConfig})), (({RUBY_PLATFORM})) is useless, so it should be:
require 'rbconfig' # loaded by rubygems...
nobu (Nobuyoshi Nakada)
10:55 AM Feature #8090: resolv.rb checks platform based on RUBY_PLATFORM, which is insufficient for JRuby
nobu (Nobuyoshi Nakada) wrote:
> Why not try to require 'win32/resolv' and rescue?
Yep, that works too. The original logic does not do that, so I just expanded on the original condition. I don't have a strong preference for one way v...
headius (Charles Nutter)
09:22 AM Feature #8090: resolv.rb checks platform based on RUBY_PLATFORM, which is insufficient for JRuby
Why not try to require 'win32/resolv' and rescue? nobu (Nobuyoshi Nakada)
09:06 AM Feature #8090 (Closed): resolv.rb checks platform based on RUBY_PLATFORM, which is insufficient for JRuby
JRuby shares stdlib with MRI, and as a result we've had to patch a number of things. We'd like to get some of these changes back into MRI's copy.
This issue refers to the following check in resolv.rb:
if /mswin|mingw|bccwin/ =~...
headius (Charles Nutter)
12:56 PM Bug #8034 (Closed): File.expand_path('something', '~') do not include home path
This issue was solved with changeset r39751.
Pavel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Refactor rb_file_expand_path_internal for dir_string corner case...
luislavena (Luis Lavena)
12:26 PM Bug #8093 (Closed): [patch] gc: avoid unnecessary heap growth
In r37970, the following change was made:
> @@ -2063,7 +2070,7 @@ gc_prepare_free_objects(rb_objspace_t *objspace)
> ...
Here heap.live_num and objspace_live_num() are not equivalent.
heap.live_num is the number of objects marked ...
tmm1 (Aman Karmani)
12:10 PM Bug #8092 (Closed): [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
Test with large rails app:
ruby -e'
require "./config/environment"
stat, count = {}, {}
GC.start
GC.stat(stat)
ObjectSpace.count_objects(count)
printf "%d == %d\n", stat[:heap_live_num], count[:TOTA...
tmm1 (Aman Karmani)
08:41 AM Feature #8089 (Closed): Add one-shot multicast DNS support to Resolv
The attached patch adds one-shot multicast DNS (mDNS) support to Resolv per RFC 6762 section 5.1.
This is the easiest type of mDNS support to add as it requires no knowledge of multicast sockets in Resolv, just removal of the restrict...
drbrain (Eric Hodel)
07:59 AM Revision 844c04f4 (git): configure.in, file.c: RUBY_FUNCTION_NAME_STRING
* configure.in (rb_cv_function_name_string): macro for function name
string predefined identifier, __func__ in C99, or __FUNCTION__ in
gcc.
* file.c (rb_sys_fail_path): use RUBY_FUNCTION_NAME_STRING.
git-svn-id: svn+ssh://ci.ruby-la...
nobu (Nobuyoshi Nakada)
06:23 AM Bug #8085 (Third Party's Issue): Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32
Trying to build Ruby 2.0.0 on Debian Stable:
ruby-2.0.0-p0/golf_prelude.c
/tmp/ruby-build.20130313161606.17854/ruby-2.0.0-p0 /tmp/ruby-build.20130313161606.17854 ~
checking build system type... x86_64-unknown-linux-gnu
checking hos...
meta (mathew murphy)
05:59 AM Revision fb34a260 (git): * file.c (rb_sys_fail_path): use rb_sys_fail_path0 only on GCC.
__func__ is C99 feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:55 AM Feature #7701: Non-optional (required) keyword args
trans (Thomas Sawyer) wrote:
> Wait. You are the one who brought it up in #16. I was just responding to that.
mame brought it up in #9.
> ...
Because they should have been there to begin with?
> Really? That's what you got from...
headius (Charles Nutter)
01:24 AM Feature #7701: Non-optional (required) keyword args
trans (Thomas Sawyer) wrote:
> So, in ((*real code*)), you ((*will*)) be looking at some file hidden far in a thirdparty gem, trying to understand what required keyword arguments you need to use. Thus the above use of required keywords ...
prijutme4ty (Ilya Vorontsov)
04:01 AM Revision 3bda122a (git): * file.c (rb_sys_fail_path0): add to append the name of called function
to ease debugging for example blow umask_spec failure.
http://fbsd.rubyci.org/~chkbuild/ruby-trunk/log/20130309T010202Z.diff.html.gz
* file.c (rb_sys_fail_path): use rb_sys_fail_path0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
naruse (Yui NARUSE)
03:56 AM Revision 2caf0bc8 (git): Refactor rb_file_expand_path_internal for dir_string corner cases
* win32/file.c (get_user_from_path): add internal function that retrieves
username from supplied path (refactored).
* win32/file.c (rb_file_expand_path_internal): refactor expansion of user
home to use get_user_from_path and cover ...
luislavena (Luis Lavena)
03:55 AM Bug #7958: include FileUtils::Verbose gives NoMethodError when installing files with a different mode
It is not a band-aid. You are not even aware of the code enough to know it is not #extend, but #include. And it's fits precisely to the design of FileUtils. FileUtils is included into FileUtils::Verbose, FileUtils::NoWrite and FileUtils:... trans (Thomas Sawyer)
02:36 AM Bug #7958: include FileUtils::Verbose gives NoMethodError when installing files with a different mode
Your patch is a band-aid, overriding Module#extend is not a good practice, so I can't apply it. The ruby standard libraries are a place to work with ruby, not around it.
This issue is closed.
Please create a new issue with a comple...
drbrain (Eric Hodel)
03:49 AM Revision ca4397ad (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:54 AM Revision 8283be28 (git): * NEWS: describe RUBY_HEAP_SLOTS_GROWTH_FACTOR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
02:23 AM Feature #7292: Enumerable#to_h
drbrain (Eric Hodel) wrote:
> There is a potential for a security exploit with Enumerable#to_h:
> ...
I think you are confusing `to_h` (explicit conversion) with `to_hash` (implicit conversion). `system` calls rb_check_hash_type which ...
marcandre (Marc-Andre Lafortune)
02:12 AM Feature #7292: Enumerable#to_h
=begin
There is a potential for a security exploit with Enumerable#to_h:
user_input = %w[rm -rf /]
system ['ls', '-l'], *user_input
With system, the first argument is used as the environment if it can be converted to a Hash....
drbrain (Eric Hodel)
01:01 AM Revision 5f92934e (git): * 2013-03-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:01 AM Revision 2e3b394d (git): * doc/globals.rdoc: $? is thread-local
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
12:19 AM Bug #8084 (Closed): ext/tk/MANUAL_tcltklib.eucj is utf-8
ext/tk/MANUAL_tcltklib.eucj は中身が UTF-8 に変更されているので、ファイル名も変更した方が良いのではないでしょうか? znz (Kazuhiro NISHIYAMA)
12:11 AM Feature #7845 (Open): Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1)
Let's reopen this issue.
Yui: could you explain why strip wouldn't remove leading and trailing /\p{space}/ ? I can only see upside to this, but maybe you can point out downside?
marcandre (Marc-Andre Lafortune)

03/13/2013

11:56 PM Feature #7845: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1)
It's true that whitespace *can* be locale-dependent, at least insofar as Unix locales can specify which codepoints are to be considered as whitespace (in addition to space, tab, etc.).
The linked conversation about capitalisation does...
threedaymonk (Paul Battley)
11:52 PM Feature #8015 (Closed): [patch] tuneable HEAP_GROWTH_FACTOR
This issue was solved with changeset r39746.
Aman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: allow to tune growth of heap by environment variable
RU...
authorNari (Narihiro Nakamura)
10:45 PM Bug #8034: File.expand_path('something', '~') do not include home path
luislavena (Luis Lavena) wrote:
> I've refactored the code, would you mind take a look?
> ...
Coding style is inconsistent at if/else. Otherwise, looks good to me. Thank you.
diff --git a/win32/file.c b/win32/file.c
index 53cf085...
h.shirosaki (Hiroshi Shirosaki)
12:55 PM Bug #8034: File.expand_path('something', '~') do not include home path
luislavena (Luis Lavena) wrote:
> After applying the patch, it fixes the original issue, however now nobu-san added another test:
> ...
Sorry, fixed the test, it should raise an exception on Windows, but the
latest test should not.
nobu (Nobuyoshi Nakada)
10:23 AM Bug #8034: File.expand_path('something', '~') do not include home path
=begin
Shirosaki-san,
I've refactored the code, would you mind take a look?
https://gist.github.com/luislavena/5148562
After applying the patch, it fixes the original issue, however now nobu-san added another test:
assert_n...
luislavena (Luis Lavena)
10:31 PM Feature #7701: Non-optional (required) keyword args
> Because the format of #parameters has very little to do with providing a required keyword argument feature. It does not move the discussion about required keyword arguments forward when we discuss new data formats for #parameters. Plea... trans (Thomas Sawyer)
06:50 AM Feature #7701: Non-optional (required) keyword args
trans (Thomas Sawyer) wrote:
> > trans: Modifying what #parameters returns is out of scope for this discussion. It already returns arrays of arrays of symbols, and changing it now would break backward compatibility.
> ...
Because the f...
headius (Charles Nutter)
02:56 AM Feature #7701: Non-optional (required) keyword args
> trans: Modifying what #parameters returns is out of scope for this discussion. It already returns arrays of arrays of symbols, and changing it now would break backward compatibility.
Why should be out of scope? If you design to the ...
trans (Thomas Sawyer)
12:49 AM Feature #7701: Non-optional (required) keyword args
trans: Modifying what #parameters returns is out of scope for this discussion. It already returns arrays of arrays of symbols, and changing it now would break backward compatibility.
WRT whether required keyword arguments gains us any...
headius (Charles Nutter)
12:34 AM Feature #7701: Non-optional (required) keyword args
=begin
Wouldn't it be better if parameters returned something more "OOPL".
def foo(a, b: 2)
end
params = method(:foo).parameters
#=> [#<Param a>, #<Param b>]
params.first.name #=> :a
params.first.req...
trans (Thomas Sawyer)
12:23 AM Feature #7701: Non-optional (required) keyword args
On 12 March 2013 14:19, headius (Charles Nutter) <headius@headius.com> wrote:
>
> Issue #7701 has been updated by headius (Charles Nutter).
>
>
> Eregon: In addition to not being able to get the keyword argument name for that ...
Eregon (Benoit Daloze)
08:05 PM Feature #7292: Enumerable#to_h
I think this is very cool feature, because I'm tired of writing something like this:
some_hash = Hash[some_hash.map { |k, v| [k, (v * scale).to_i] }]
)=
P.S.
In actual fact is not very tired. :)
And it may have a more elegant way that...
newmen (Gleb Averchuk)
08:02 PM Feature #7604: Make === comparison operator ability to delegate comparison to an argument
@Ilya: I have noticed your post, I'll pay closer attention after next week. Anonymous
07:00 PM Feature #8083 (Assigned): Exit status is limited to one-byte values which is invalid for Windows
=begin
Windows uses 32-bit process exit codes so Ruby incorrectly truncates them to one byte:
C:\Ruby193\bin>ruby -e "system('C:\windows\system32\cmd.exe /c exit 255'); puts $?.exitstatus"
255
C:\Ruby193\bin>ruby -e "system('C...
rutsky (Vladimir Rutsky)
04:43 PM Bug #6653 (Closed): 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections
closed. because it is duplicated. kosaki (Motohiro KOSAKI)
04:39 PM Bug #7521: test_thr_kill(TestQueue) fails
I suspect this is the same with #8065. kosaki (Motohiro KOSAKI)
04:38 PM Bug #7917 (Rejected): Can't write to a Logger in a signal handler
Closed. because it's not a bug. kosaki (Motohiro KOSAKI)
04:38 PM Bug #8082 (Rejected): Ruby i686-nacl builds but doesn't run correctly
I am able to build an i686-nacl build with the following steps:
./configure --prefix=/tmp/nacl-ruby --host=i686-nacl --with-arch=i386 --with-baseruby=/usr/local/Cellar/ruby/2.0.0-p0/bin/ruby
make
make package
I then host the result...
astromme (Andrew Stromme)
03:16 PM Bug #8045 (Closed): Object#singleton_methods incompatible with prepend
nobu (Nobuyoshi Nakada)
03:13 PM Bug #8044 (Closed): Object#methods incompatible with prepend
This issue was solved with changeset r39744.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
class.c: from the origin class
* class.c (rb_obj_singleton...
nobu (Nobuyoshi Nakada)
02:52 PM Revision 2f7ca893 (git): * gc.c: allow to tune growth of heap by environment variable
RUBY_HEAP_SLOTS_GROWTH_FACTOR. patched by tmm1(Aman Gupta).
[Feature #8015] [ruby-core:53131]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
11:43 AM Bug #7916 (Closed): Callback Module.used is not used...
This issue was solved with changeset r39739.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c (Init_Object): remove Module#used, which has bee...
shugo (Shugo Maeda)
11:24 AM Feature #6669: A method like Hash#map but returns hash
phluid61 (Matthew Kerwin) wrote:
> I might also suggest the name `map_pairs`, derived from `each_pair`. I
> ...
This is related to #7793. I just released a gem that implements Hash#map_pairs, #map_keys, and #map_values. https://ruby...
phluid61 (Matthew Kerwin)
11:16 AM Bug #7282 (Closed): Invalid UTF-8 from emoji allowed through silently
naruse (Yui NARUSE)
11:13 AM Feature #7793: New methods on Hash
nobu (Nobuyoshi Nakada) wrote:
> Anyway, why don't you make it a gem first?
That's a good idea. Let's see what the uptake is, if any: https://rubygems.org/gems/hashmap
Note: I used #map_keys, #map_values and #map_pairs as my meth...
phluid61 (Matthew Kerwin)
10:50 AM Revision b1f2460f (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:50 AM Bug #3295: make test aborted
あれ、この議論って結論どうなったんでしたっけ?
いまのtrunkだとささださんが遅いと反対していた、swapcontext()のコードが生き残っているように見えるんですけど
kosaki (Motohiro KOSAKI)
08:32 AM Feature #7998: "def" should return a value (the symbol of the method name) instead of nil
=begin
I have a problem with this feature.
module Frog
private def self.sound
"Ribbit!"
end
end
With this feature, def..end would return :sound, then private :sound would set Frog#sound to private. This is wrong....
kernigh (George Koehler)
06:28 AM Bug #8078: Once nil is frozen, an unfrozen instance cannot be reached
kosaki (Motohiro KOSAKI) wrote:
> I don't think nil is mutable logically. Why can't we make nil is frozen at beginning?
I can't see a really good use for it, but `nil` can have attributes and is mutable.
Up to Ruby 2.0, the same ...
marcandre (Marc-Andre Lafortune)
06:23 AM Bug #8078: Once nil is frozen, an unfrozen instance cannot be reached
> This is a rather peculiar bug I stumbled across. The basic issue is that once `nil` has been frozen, there is no way to access an unfrozen instance of nil.
>
> nil.frozen? => false
> nil.freeze
> nil.frozen? => true...
kosaki (Motohiro KOSAKI)
06:12 AM Bug #8078 (Rejected): Once nil is frozen, an unfrozen instance cannot be reached
nil is an immediate. There are no multiple nils; nil.object_id is a constant. Same as true & false.
Any code that checks for `frozen?` and then does a dup might have problems with any Ruby immediate. Note that fixnums & floats are fro...
marcandre (Marc-Andre Lafortune)
05:55 AM Bug #8078 (Rejected): Once nil is frozen, an unfrozen instance cannot be reached
=begin
This is a rather peculiar bug I stumbled across. The basic issue is that once `nil` has been frozen, there is no way to access an unfrozen instance of nil.
nil.frozen? => false
nil.freeze
nil.frozen? => true
I s...
mhuggins (Matt Huggins)
06:19 AM Feature #8073: Add multicast support to Rinda::Ring*
Updated patch with feedback from http://twitter.com/m_seki/status/311434078060695552 drbrain (Eric Hodel)
06:13 AM Revision 99126a4c (git): class.c: from the origin class
* class.c (rb_obj_singleton_methods): collect methods from the origin
class. [ruby-core:53207] [Bug #8044]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:51 AM Revision be909b5e (git): vm_method.c: overrid flag of prepending method
* vm_method.c (rb_export_method): directly override the flag of method
defined in prepending class too, not adding zsuper entry.
[ruby-core:53106] [Bug #8005]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39743 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
05:51 AM Revision 49a22e17 (git): assertions.rb: private flag
* lib/test/unit/assertions.rb (assert_respond_to): accept optional
include-private flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:06 AM Revision 120e2219 (git): configure.in: fix for old shells
* configure.in (rm, shvar_to_cpp, unexpand_shvar): local is not
available on old shells.
* configure.in (shvar_to_cpp): escape quotes for old shells.
[Bug #7959] [Bug #8071]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39741 b2...
nobu (Nobuyoshi Nakada)
03:06 AM Feature #8077: Returning Dir objects from C extensions
The code I'm working with is wrapping the fdopendir(3) function (return a DIR* from a file descriptor). This is currently not possible except in ruby 1.8. andrenth (Andre Nathan)
02:58 AM Revision fc82b5f4 (git): test_file_exhaustive.rb: fix abolute root
* test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string):
fix abolute root path for dosish platforms. [ruby-core:53354]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:43 AM Revision c851bd00 (git): * object.c (Init_Object): remove Module#used, which has been
introduced in Ruby 2.0 by mistake. [Bug #7916] [ruby-core:52719]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:09 AM Revision ee2884ff (git): rbuninstall.rb: fix for symlink to directory
* tool/rbuninstall.rb: fix for symlink to directory by removing
trailing slash which let File.symlink? return false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:57 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
Hi, I work on Opscode's Chef, a server configuration framework. I have an interest in both parts of this topic. In Chef, we use set_backtrace but we also parse backtrace lines to find relevant code in our error messages.
When we use ...
kallistec (Daniel DeLeo)

03/12/2013

10:51 PM Feature #7701: Non-optional (required) keyword args
=begin
@prijutme4ty I think using #send as an example is a bit deceiving b/c it's one of the most well recognized predicate-to-preposition relations in the English language. Take it out of typical "mail" context and we are no better off...
trans (Thomas Sawyer)
10:19 PM Feature #7701: Non-optional (required) keyword args
Eregon: In addition to not being able to get the keyword argument name for that "required" error, we also couldn't really introspect via Method#parameters to know that there's a required kwarg.
trans: prijutme4ty makes probably the be...
headius (Charles Nutter)
09:35 PM Feature #7701: Non-optional (required) keyword args
trans (Thomas Sawyer) wrote:
> =begin
> ...
If one use several required keyword arguments like in def foo(a:, b:) the developer needn't remember order of arguments, he can use args in any order with names clearing his intentions. For e...
prijutme4ty (Ilya Vorontsov)
09:19 PM Feature #7701: Non-optional (required) keyword args
=begin
Is it really a good idea to support required keyword arguments? If it is ((*required*)) shouldn't it really be a regular argument? I worry it would encourage API designers to put extraneous labels on things that arn't necessary, c...
trans (Thomas Sawyer)
04:53 PM Feature #7701: Non-optional (required) keyword args
I am thinking
def meth(a, b: 0, c: required)
or so would be nice to read, and it could simply be required defined
as a method raising an exception (it would be tricky to get the
missing keyword argument name though),
but of ...
Eregon (Benoit Daloze)
01:08 PM Feature #7701: Non-optional (required) keyword args
On arity: I already feel like the numeric arity has been stretched too far. There's not really a good way to introduce another dimension of required args into that single value. Arity should reflect how many arguments are required, so I ... headius (Charles Nutter)
08:49 PM Revision 4c1a39e5 (git): * 2013-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:49 PM Revision 0fb6a44d (git): * lib/irb.rb: Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
03:34 PM Feature #8077 (Feedback): Returning Dir objects from C extensions
For what purpose? nobu (Nobuyoshi Nakada)
03:11 AM Feature #8077 (Feedback): Returning Dir objects from C extensions
In 1.8 it was possible to return Dir objects from C extensions by mimicking the code in dir.c and using Data_Wrap_Struct(rb_cDir, dir_mark, dir_free, dirp). This doesn't work in 1.9+, so it would be nice to have the Dir methods exposed t... andrenth (Andre Nathan)
03:10 PM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
GCC 4.6 and clang (2.8?) supports pragma diagnostic, but its syntax is different from current UNINITIALIZED_VAR().
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
blah blah
#pragma GCC diagnostic pop
...
naruse (Yui NARUSE)
09:23 AM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
=begin
Unfortunately, it doesn't shut up gcc-4.7.
thread.c: In function 'do_select':
thread.c:3155:26: warning: 'orig_except.fdset' may be used uninitialized in this function [-Wmaybe-uninitialized]
thread.c:3352:16: note: 'orig_e...
nobu (Nobuyoshi Nakada)
01:20 PM Revision 34a95669 (git): required keyword arguments
* compile.c (iseq_set_arguments, iseq_compile_each): support required
keyword arguments. [ruby-core:51454] [Feature #7701]
* iseq.c (rb_iseq_parameters): ditto.
* parse.y (f_kw, f_block_kw): ditto. this syntax is still
experimenta...
nobu (Nobuyoshi Nakada)
10:56 AM Feature #6321: Find and repair bad bytes in encodings, without transcoding
Turns out this is already built into stdlib, and has been in 1.9.3 too!
It took me nearly a year to realize it was, and hardly anyone seems aware of this! But it is.
# create a bad string, but in real life this would come in a...
jrochkind (jonathan rochkind)
08:53 AM Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
2013/3/12 drbrain (Eric Hodel) <drbrain@segment7.net>:

> PS: ext/socket has no listed maintainer, should it be you, Akira-san?

When I want to change API, I tried to obtain approval by matz.
--
Tanaka Akira
akr (Akira Tanaka)
02:18 AM Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
Here is an updated patch using #unbound_socket, may I commit?
PS: ext/socket has no listed maintainer, should it be you, Akira-san?
drbrain (Eric Hodel)
08:05 AM Revision 976a3041 (git): * date_core.c: clearly specify operator precedence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e takano32 (Mitsuhiro TAKANO)
08:02 AM Revision 8f73480c (git): * insns.def: fix condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e takano32 (Mitsuhiro TAKANO)
08:00 AM Revision 5e04bb66 (git): * rational.c: fix dangling if, else-if and else.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e takano32 (Mitsuhiro TAKANO)
05:03 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
For now I have implemented it in JRuby.
Here's the commit: https://github.com/jruby/jruby/commit/281ead709e1e855b552a42e86e48f8f91ca8ebb5
It works simply enough; Exception#backtrace_locations always reflects the original exception ...
headius (Charles Nutter)
02:36 AM Feature #8075: Add socket interface class to list interfaces
=begin
The one method I am concerned about is (({Socket::Interface.list})), should this be (({Socket.interface_list})) like (({Socket.ip_address_list}))?
If the patch is fine as-is, shall I commit it?
=end
drbrain (Eric Hodel)
02:27 AM Feature #5373 (Closed): SMTP - new method
This issue was solved with changeset r39729.
art , thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/smtp.rb: Added Net::SMTP#rset method to implement the ...
drbrain (Eric Hodel)
02:16 AM Feature #8050: struct stat to VALUE should be accessable from the C-API
Please open separate feature request for DIR * -> Dir drbrain (Eric Hodel)
02:09 AM Feature #8073: Add multicast support to Rinda::Ring*
Updated patch with feedback from https://gist.github.com/seki/5133692 drbrain (Eric Hodel)

03/11/2013

10:21 PM Feature #8050: struct stat to VALUE should be accessable from the C-API
Can we also have a way to create a Dir object from a DIR pointer? Something like rb_dir_new(DIR *dir). andrenth (Andre Nathan)
02:18 PM Feature #8050: struct stat to VALUE should be accessable from the C-API
vote for ruby/io.h. nobu (Nobuyoshi Nakada)
12:31 PM Feature #8050 (Assigned): struct stat to VALUE should be accessable from the C-API
This patch seems to implement the feature. drbrain (Eric Hodel)
09:29 PM Revision 10c5d6ee (git): * lib/rubygems/commands/setup_command.rb: Don't delete non-rubygems
files when installing RubyGems.
* test/rubygems/test_gem_commands_setup_command.rb: Test for the
above.
* lib/rubygems/ext/ext_conf_builder.rb: Use full path to siteconf.rb
in case the extconf.rb changes directories (like memcache...
drbrain (Eric Hodel)
07:53 PM Feature #8075: Add socket interface class to list interfaces
2013/3/11 drbrain (Eric Hodel) <drbrain@segment7.net>:

> Feature #8075: Add socket interface class to list interfaces
> https://bugs.ruby-lang.org/issues/8075

> For IPv6 multicast an interface may be set to indicate which in...
akr (Akira Tanaka)
12:20 PM Feature #8075 (Closed): Add socket interface class to list interfaces
For IPv6 multicast an interface may be set to indicate which interface IPv6 packets should be sent on.
The attached patch allows interfaces to be looked up by name (or index) for use in setting this socket option.
drbrain (Eric Hodel)
05:27 PM Revision 21c1e2da (git): * 2013-03-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:27 PM Revision f2a13e60 (git): * lib/net/smtp.rb: Added Net::SMTP#rset method to implement the SMTP
RSET command. [ruby-trunk - Feature #5373]
* NEWS: ditto.
* test/net/smtp/test_smtp.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:07 PM Bug #8066: Inconsistency in ancestors chain
Isn't it just a conseqency of the fact that module can't be included twice and because of that including a module in parent class prevents including module into a child class.
This behavior disallows for example creating decorators by p...
prijutme4ty (Ilya Vorontsov)
02:08 AM Bug #8066: Inconsistency in ancestors chain
This is the behaviour I would expect in all versions of Ruby. The ancestor chain is set at the time that a class is created, and is updated at the time that a module is included in that class. What does not happen is that the chain for... Student (Nathan Zook)
03:57 PM Revision 91e37180 (git): merge revision(s) 39688: [Backport #8065]
* test/thread/test_queue.rb (TestQueue#test_thr_kill): reduce
iterations from 2000 to 250. When running on uniprocessor
systems, every th.kill needs TIME_QUANTUM_USEC time (i.e.
100msec on posix systems). Be...
nagachika (Tomoyuki Chikanaga)
03:54 PM Revision 6901ebcb (git): merge revision(s) 39679,39682,39683,39685,39686,39694: [Backport #7999]
* thread_pthread.c (set_nonblock): new helper function for set
O_NONBLOCK.
* thread_pthread.c (rb_thread_create_timer_thread): set O_NONBLOCK
to timer_thread_pipe[0] too.
* thread_pthread.c (consume_...
nagachika (Tomoyuki Chikanaga)
03:51 PM Revision c98f39af (git): merge revision(s) 39680,39681: [Backport #8063]
* thread_pthread.c (USE_SLEEPY_TIMER_THREAD): use more accurate
ifdef condtions.
* thread_pthread.c (timer_thread_sleep): use poll() instead of
select(). select doesn't work if timer_thread_pipe[0] is
...
nagachika (Tomoyuki Chikanaga)
01:47 PM Revision b1f2effd (git): * lib/resolv-replace.rb (TCPSocket#initialize): resolve the 3rd
argument only if non-nil value is given.
[ruby-dev:47150] [ruby-trunk - Bug #8054] reported and analyzed by
mrkn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:43 PM Bug #8039: DRB/dRuby server throws an exception when probed on its port
This patch fixes the bug. drbrain (Eric Hodel)
12:34 PM Feature #8015 (Assigned): [patch] tuneable HEAP_GROWTH_FACTOR
drbrain (Eric Hodel)
12:12 PM Revision 79ea4d62 (git): * test/mkmf/test_config.rb (TestMkmf): fix superclass mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:53 AM Bug #8074 (Closed): Call init_mkmf for main
This issue was solved with changeset r39717.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
mkmf.rb: defer use of instance variable
* lib/mkmf.rb (Make...
nobu (Nobuyoshi Nakada)
11:43 AM Bug #8074 (Closed): Call init_mkmf for main
=begin
((<URL:https://github.com/ruby/ruby/pull/257>))
When (({MakeMakefile})) is extended on itself there is a call to (({init_mkmf})).
This method mainly setups various global variables, but it also sets ((|@libdir_basename|)) to ...
nobu (Nobuyoshi Nakada)
11:23 AM Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
2013/3/11 drbrain (Eric Hodel) <drbrain@segment7.net>:
>
> How about unbound_socket?

I like unbound_socket.

> Perhaps #connect_to or #bind could take a block that would yield the socket for setsockopt before bind/connect?
...
akr (Akira Tanaka)
10:32 AM Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
How about unbound_socket?
I would like to use a feature like this one in rinda/ring.rb for multicast support since options need to be set before connect/bind (see #8073)
Perhaps #connect_to or #bind could take a block that would yi...
drbrain (Eric Hodel)
10:53 AM Feature #7701: Non-optional (required) keyword args
(2013/03/09 17:12), headius (Charles Nutter) wrote:
> There's also probably no code out there that relies on the behavior ko1 pointed out. I think it's safe.

It is *my preference*, I don't like empty value (foo:).
But no idea w...
ko1 (Koichi Sasada)
10:21 AM Feature #7701: Non-optional (required) keyword args
Method#parameter should return a different symbol for those, say :keyreq.
For arity, I opened #8072 regarding what I believe is a problem with the current behavior.
I would expect the arity of the following two methods to be equiva...
marcandre (Marc-Andre Lafortune)
10:53 AM Feature #7895: Exception#backtrace_locations to go with Thread#backtrace_locations and Kernel#caller_locations
(2013/03/09 17:08), headius (Charles Nutter) wrote:
> What's next here? I'm about to implement caller_locations in JRuby, so I'm close to being able to prototype this feature request too.

Now, only two attendees (you and I).
I ...
ko1 (Koichi Sasada)
10:28 AM Feature #6693: Don't warn for unused variables starting with _
Since 2.0.0p0 has been released with this feature (which I still believe to be good), should we close this? marcandre (Marc-Andre Lafortune)
10:25 AM Feature #8073 (Closed): Add multicast support to Rinda::Ring*
This patch adds multicast support to Rinda::Ring.
If the addresses list for Rinda::RingServer or Rinda::RingFinger contain a multicast address then a multicast socket will automatically be created and used.
Rinda::RingServer#initia...
drbrain (Eric Hodel)
10:23 AM Revision 2f20defa (git): * test/mkmf/base.rb: class name conflict.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
09:47 AM Revision 5f257cf4 (git): * enumerator.c (enumerator_with_index): try to convert given offset to
integer. fix bug introduced in r39594.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:29 AM Revision 7590de68 (git): * test/ruby/envutil.rb (EnvUtil.with_default_external): add for
changing Encoding.default_external without warnings.
* test/ruby/envutil.rb (EnvUtil.with_default_internal): ditto.
* test/ruby/test_io_m17n.rb: use above with_default_external.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39721 ...
naruse (Yui NARUSE)
08:02 AM Revision 756cd285 (git): * io.c (extract_binmode): raise error even if binmode and textmode
don't conflict. [Bug #5918] [ruby-core:42199]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:01 AM Bug #8034: File.expand_path('something', '~') do not include home path
Luis, thank you for your work.
`xfree(wpath);` would be needed before rb_raise(rb_eArgError, "can't find user %s"...
Indeed refactoring is better if possible.
h.shirosaki (Hiroshi Shirosaki)
04:41 AM Bug #8034: File.expand_path('something', '~') do not include home path
Following patch solves the issue:
https://gist.github.com/luislavena/5130078
However there is lot of duplication between wpath and wdir checks, which is crying for a refactoring.
Shirosaki-san, what do you think?
luislavena (Luis Lavena)
01:10 AM Bug #8034 (Assigned): File.expand_path('something', '~') do not include home path
=begin
Nobu,
I'll add test for (({File.expand_path('something', '~whoever')})) and add support for it in ((|dir_string|)).
=end
luislavena (Luis Lavena)
01:02 AM Bug #8034: File.expand_path('something', '~') do not include home path
=begin
nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
There is no test for that, I didn't see a test that verifies that behavior so I didn't add code for it.
Also, (({~user})) doesn't work as you expect on Windows.
=end
=end
luislavena (Luis Lavena)
12:33 AM Bug #8034: File.expand_path('something', '~') do not include home path
=begin
Why is (({File.expand_path('something', '~whoever')})) ignored?
=end
nobu (Nobuyoshi Nakada)
05:25 AM Revision a82d24aa (git): gen_dummy_probes.rb
* tool/gen_dummy_probes.rb: remove empty lines and compact.
* tool/gen_dummy_probes.rb: allow arbitrary number of arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:46 AM Revision 407bcb4b (git): * Merge Onigmo d4bad41e16e3eccd97ccce6f1f96712e557c4518.
fix lookbehind assertion fails with /m mode enabled. [Bug #8023]
fix \Z matches where it shouldn't. [Bug #8001]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:53 AM Revision 76d8cc33 (git): mkmf.rb: defer use of instance variable
* lib/mkmf.rb (MakeMakefile#dir_config, MakeMakefile#_libdir_basename):
defer use of instance variable until needed. [Bug #8074]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:50 AM Revision c0035ed3 (git): test_file_exhaustive.rb: others home
* test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string):
add assertions for other user's home directory path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:29 AM Revision 3176b04d (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
 

Also available in: Atom