Activity
From 03/14/2013 to 03/20/2013
03/20/2013
-
11:53 PM Feature #8096: introduce Time.current_timestamp
- On 19 March 2013 17:56, headius (Charles Nutter) <[email protected]> wrote:
>
> Issue #8096 has been updated by headius (Charles Nutter).
>
>
> A few more thoughts to keep this alive...
>
> Implementation in JRuby:
>
> def Ti... -
08:46 PM Feature #8096: introduce Time.current_timestamp
- kosaki (Motohiro KOSAKI) wrote:
> (3/19/13 9:31 PM), headius (Charles Nutter) wrote:
> ...
At the allocation view, there are 3 types:
1. embeded in VALUE itself
2. embeded in struct RVALUE
3. VALUE and extra data
Fixnum and small... -
11:53 AM Feature #8096: introduce Time.current_timestamp
- (3/19/13 9:31 PM), headius (Charles Nutter) wrote:
>
> Issue #8096 has been updated by headius (Charles Nutter).
>
>
> naruse (Yui NARUSE) wrote:
>> What class is it?
>> If Float, it introduces extra error.
>> If Rati... -
10:31 AM Feature #8096: introduce Time.current_timestamp
- naruse (Yui NARUSE) wrote:
> What class is it?
> ...
It is a Fixnum:
ext-jruby-local ~/projects/jruby $ jruby -e "def Time.timestamp; java.lang.System.nano_time / 1000; end; loop { p Time.timestamp; sleep 1.5 }"
1363742953730794
1... -
07:24 AM Feature #8096: introduce Time.current_timestamp
- headius (Charles Nutter) wrote:
> A few more thoughts to keep this alive...
> ...
What class is it?
If Float, it introduces extra error.
If Rational, I feel Time is better. -
01:56 AM Feature #8096: introduce Time.current_timestamp
- A few more thoughts to keep this alive...
Implementation in JRuby:
def Time.timestamp
java.lang.System.nano_time / 1000
end
There's also currentTimeMillis, but I think providing sub-ms precision is a good idea. µs seems suff... -
10:52 PM Bug #8115 (Closed): make install DESTDIR=/my/install/path fails
- This issue was solved with changeset r39841.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
mkmf.rb: prefix install_dirs only with DESTDIR
* lib/mkmf.rb (ins... - 10:35 PM Revision 91194dfd (git): * 2013-03-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:35 PM Revision 5d402803 (git): * ext/date/date_core.c: Typo in Date::MONTHNAMES by Matt Gauger
- [GH fixes #261]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:01 PM Bug #8124: gem fails to install valid gems
- For handle this issue, it need to know occasion of that "many people".
If you are not "many people" and you could not reproduce such problem, we can not fix it as same as you. -
04:37 PM
Bug #8124: gem fails to install valid gems
- $ gem sources
*** CURRENT SOURCES ***
http://rubygems.org/
Like I said, I'm not able to reproduce the issue, even after a `gem sources -c`. The issue I'm pointing out here is that the error reported on the original is... -
02:21 PM Revision 63b66167 (git): merge revision(s) 39835: [Backport #8058]
- * test/rubygems/test_gem_installer.rb (test_install_extension_flat):
use ruby in build directory in case ruby is not installed.
[ruby-core:53265] [Bug #8058]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby... -
02:17 PM Revision 2aaa9ab9 (git): merge revision(s) 39809,39834,39837: [Backport #8132]
- * test/win32ole/test_err_in_callback.rb
(TestErrInCallBack#test_err_in_callback): shouldn't create a file in
source directory.
* test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup): use
... -
02:10 PM Revision 7631f28c (git): merge revision(s) 39781,39783: [Backport #8080]
- 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.
* include/ruby/missing.h: removed __linux__. it's unnecessary.
git... -
02:07 PM Revision 4346f5d6 (git): merge revision(s) 39779: [Backport #8080]
- 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/branches/ruby_2_0_0@39849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:06 PM Revision 68a2dd54 (git): merge revision(s) 39777: [Backport #8080]
- 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/r... -
02:03 PM Revision 9b0861fb (git): merge revision(s) 39200: [Backport #8080]
- * configure.in: move OS specific header/function knowledge before
automatic header tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:01 PM Revision c8755ba6 (git): merge revision(s) 39174: [Backport #8080]
- * configure.in: move header files check to the beginning of
"header and library section".
test rlim_t with sys/types.h and sys/time.h for MirOS BSD.
sys/types.h and sys/time.h is gurded by #ifdef and the abo... -
01:57 PM Revision 7d772fbd (git): merge revision(s) 39198: [Backport #8080]
- * configure.in: move the test for -march=i486 just after
RUBY_UNIVERSAL_ARCH/RUBY_DEFAULT_ARCH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:56 PM Revision 78a2c1a9 (git): merge revision(s) 39162,39163: [Backport #8080]
- * configure.in: change CFLAGS temporally to test
ARCH_FLAG="-march=i486".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:54 PM Revision d4e03967 (git): merge revision(s) 39160: [Backport #8080]
- * configure.in: don't define ARCH_FLAG="-march=i486" if it causes
compilation problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:53 PM Revision 9cbd4ac3 (git): mkmf.rb: format message
- * lib/mkmf.rb (find_library): fix to format message.
[ruby-core:53568] [Bug #8130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:52 PM Revision 7e1d5045 (git): mkmf.rb: prefix install_dirs only with DESTDIR
- * lib/mkmf.rb (install_dirs, with_destdir): prefix with DESTDIR
directories to install only unless bundled extension libraries.
[ruby-core:53502] [Bug #8115]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39841 b2dd03c8-39d4-4d8... -
01:37 PM Revision 7ff076d5 (git): merge revision(s) 39775: [Backport #8080]
- * 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.ru... -
01:36 PM Revision 552817e5 (git): merge revision(s) 39774: [Backport #8080]
- * 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 ... -
01:34 PM Revision ccb9fb0b (git): merge revision(s) 39772,39773: [Backport #8080]
- * 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/tim... -
12:19 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- I implemented a basic task api: https://github.com/tmm1/ruby/compare/tmm1;task-api
But API is too simple, maybe.
- what if task job is holding onto VALUE, it will never be gc_mark()ed
- what if there is an exception during t... -
09:00 AM Bug #8129: String#index has drastically different performance when a single unicode character is included
- Thanks for the feedback Charlie and Nobuyoshi. This came up from https://github.com/kschiess/parslet/issues/73 which heavily uses String#index (http://www.ruby-doc.org/core-2.0/String.html#method-i-index) by passing a position to search ...
-
08:52 AM Bug #8129: String#index has drastically different performance when a single unicode character is included
- =begin
You may want to:
* use regexp, e.g. (({scan})).
* convert to fix width wide char encoding, i.e., ((|UTF-32LE|)) or ((|UTF-32BE|)).
=end
-
08:40 AM
Bug #8129 (Rejected): String#index has drastically different performance when a single unicode character is included
- When all the characters in a string are ASCII characters (single bytes), the byte index for any given character can be calculated in constant time.
When the string contains multibyte characters, finding the byte index given a characte... -
08:23 AM Bug #8129 (Rejected): String#index has drastically different performance when a single unicode character is included
- =begin
I created a simple ruby script:
#! /usr/bin/env ruby
raise "need a file name" unless ARGV[0]
contents = File.read(ARGV[0])
326_000.times do |i|
contents[(i + 23) % contents.size]
end
And I uploaded two file... - 08:52 AM Revision dd210d8f (git): * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup):
- allow using different drive for source and build directories.
this may fixes a minor problem of r39834.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:30 AM Bug #8127 (Closed): NoMethodError for private / protected methods with Module#prepend
-
07:49 AM Bug #8127 (Closed): NoMethodError for private / protected methods with Module#prepend
- =begin
Calling protected / private methods after using Module#prepend raises NoMethodError exception.
module Foo
end
class Record
prepend Foo
def protected_method
end
protected :protected_method
end
... -
08:00 AM Feature #8128 (Rejected): New primitives for Rinda::TupleSpace
- =begin
= New primitives for Rinda::TupleSpace
This issue proposes adding two new primitives to TupleSpace for atomic bulk operations:
== 1. TupleSpace#replace_all
=== What it does
Calling
replace_all(tuple, new_tuple,... -
07:49 AM Revision f4274129 (git): * test/ruby/test_signal.rb (test_hup_me): skip if HUP isn't supported.
- On Windows this test causes ArgumentError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:49 AM Revision 7f2a13ea (git): * test/rubygems/test_gem_installer.rb (test_install_extension_flat):
- use ruby in build directory in case ruby is not installed.
[ruby-core:53265] [Bug #8058]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:38 AM Feature #8126 (Assigned): OpenSSL::SSL::SSLSocket does not define #recv and #send messages
- OpenSSL::SSL::SSLSocket does not define #recv/#send methods and is not compatible with TCPSocket.
- 06:24 AM Revision 46048d6d (git): * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup): use
- relative path to get rid of "too long commandline" error.
* ChangeLog: fixed wrong description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 06:21 AM Revision 119aa9d2 (git): * test/win32ole/test_err_in_callback.rb: revert r39823 (debug code).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:48 AM Feature #7510: irb --help が古い
- add patche.(incl. ja)
-
02:21 AM Bug #8125 (Closed): lost-tuple bug and fix for Rinda::TupleSpaceProxy.take
- =begin
Rinda::TupleSpaceProxy prevents tuple loss during #take by exposing a "port" object on the client that the remote side (the tuplespace server) pushes to, instead of relying on the method return value. Pushing to the port fails ... -
02:11 AM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
- A macro can be following, but it still changes syntax from current UNINITIALIZED_VAR.
#if GCC_VERSION_SINCE(4,6,0) || defined(__clang__)
# define SUPPRESS_DIAGNOSTIC(arg,rest) \
_Pragma("GCC diagnostic push") \
_Pra... -
01:53 AM Bug #8120 (Rejected): OptionParser is not handling lists of arguments correctly
- You must use commas and no whitespace when entering a list as in your second arguments to opts.on
03/19/2013
-
09:02 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- This was my first time using the new TracePoint apis. I like the C API a lot- much more flexible than the old event hook api.
> GC related events are special. So I was thinking to separate ordinal
> ...
I agree, but I am not sure ho... -
08:53 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- (2013/03/19 19:26), tmm1 (Aman Gupta) wrote:
>> > Ah, it is my mistake. I want to say *newobj hook*, instead of Mark hook.
> Oh, OK. This makes much more sense now. I implemented these basic GC hooks in c-only tracepoint API.
>
... -
07:26 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- > Ah, it is my mistake. I want to say *newobj hook*, instead of Mark hook.
Oh, OK. This makes much more sense now. I implemented these basic GC hooks in c-only tracepoint API.
Is this what you have in mind? https://github.com/tmm1... -
06:23 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- (2013/03/19 18:02), tmm1 (Aman Gupta) wrote:
> I like your idea. A finalization task api provides an elegant solution for processing profiling data in a safe context.
Thanks.
>> * Introduce new GC related hooks (restricted ... -
06:02 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- I like your idea. A finalization task api provides an elegant solution for processing profiling data in a safe context.
> * Introduce new GC related hooks (restricted to C function)
> ...
What is the difference between Free and GC h... -
04:29 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- (2013/03/19 15:45), tmm1 (Aman Gupta) wrote:
> I agree this approach provides more flexibility. But GC hooks cannot allocate ruby objects or interact with GC, so it is tricky to use.
Yes exactly. This is why we need to be more ca... -
03:53 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- (2013/03/19 14:47), SASADA Koichi wrote:
> I believe this approach allows flexible statistics.
One flexibility example is to collect call-tree of object creation. Not
only collect method name, but collect call-tree.
"Memo... -
03:45 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- > Using this APIs, users can add your own statistics libraries.
I tried a similar approach in ruby 1.8 some while ago, emulating event hook api for GC events (newobj, free, gc start/end): https://github.com/tmm1/brew2deb/blob/master/... -
02:53 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- (2013/03/19 13:39), tmm1 (Aman Gupta) wrote:
> Maybe instead of file/line, this should be rb_iseq_t *iseq?
C methods doesn't have an iseq.
> ko1-san, do you have any opinion on this patch?
I'm considering another apprac... -
01:48 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- Here's an example using this feature in a rails app, to find files that are allocating many long lived objects:
% RUBYOPT=--debug-objects ruby -r config/environment -e'
GC.start
ObjectSpace.each_object.to_a.inject(Hash.new 0){ |... -
01:39 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- > +typedef struct rb_obj_metadata {
> ...
Maybe instead of file/line, this should be rb_iseq_t *iseq?
ko1-san, do you have any opinion on this patch? -
01:37 PM Feature #8107: [patch] runtime flag to track object allocation metadata
- > Something like RubyVM.allocated_position(obj) => [file, line].
I'll defer API decisions to core, but a method under RubyVM or in the new objspace.so would be fine. I slightly prefer two separate methods, to avoid an array allocation... -
07:41 PM Revision dcbc7b01 (git): * test/rinda/test_rinda.rb: remove unused variables.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:23 PM Revision 49636da4 (git): * ext/bigdecimal/bigdecimal.c: fixed typo. same as r39830
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:19 PM Revision 6f072a36 (git): * ext/bigdecimal/bigdecimal.c: fixed typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:07 PM Bug #8124: gem fails to install valid gems
- Please check results of "gem source" command.
-
06:02 PM
Bug #8124 (Closed): gem fails to install valid gems
- I'm not able to reproduce this, but many people have reported it on occasion.
$ gem install bundler
ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
ERROR: Possible alternatives: bundler
Can anyo... -
06:34 PM Revision 62565929 (git): * test/ruby/test_signal.rb (test_hup_me): added a few comments.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:26 PM Revision 8c52515e (git): * thread.c (ruby_kill): added a few comments.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:26 PM Revision df4fcd34 (git): * 2013-03-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:26 PM Revision c9073822 (git): * thread.c (ruby_kill): release GVL while waiting signal delivered.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:06 PM Bug #7267 (Closed): Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
- This issue was solved with changeset r39821.
Kenny, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
compose HFS file names
* dir.c (glob_helper): compose HFS file ... -
04:12 PM Revision 55f14b45 (git): merge revision(s) 39525: [Backport #8102]
- configure.in: escape double-quotes
* configure.in (unexpand_shvar): escape double-quotes in backquotes in
double-quotes for some shells. [Bug #7959]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39825 b2dd0... -
03:05 PM Bug #8100: Segfault in trunk
- I'm also getting segfaults on Ruby 2.0.0. It seems to be related to threading or forking. Can't quite put my figure on it. All I can say is that I don't get in when running my web app in WEBrick on my Mac, but if running it on my CentOS ...
-
01:11 AM Bug #8100: Segfault in trunk
- Forgot to add a link to the repo on github: https://github.com/zzak/segfault_spec.rb
-
03:04 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
- Attached is the gdb backtrace from running nagai's test script.
-
11:09 AM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
- That script,
----------------------------------------------------------
module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end
require 'tk'
Tk.mainloop
----------------------------------------------------------
gives the result:
ca... -
10:53 AM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
- Could you test the following script?
----------------------------------------------------------
module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end
require 'tk'
Tk.mainloop
-------------------------------------------------... -
02:53 PM Bug #8122: [patch] gc: GC.stat improvements and related cleanup
- (2013/03/19 11:58), authorNari (Narihiro Nakamura) wrote:
> ko1-san, what do you think?
(1) Performance
One concern is making it fat seems slow it down.
(2) Usage
How to use new statistics?
--
// SASADA Koi... -
11:58 AM Bug #8122: [patch] gc: GC.stat improvements and related cleanup
- ko1-san, what do you think?
-
11:29 AM Bug #8122 (Closed): [patch] gc: GC.stat improvements and related cleanup
- I propose 4 related patches below. The end result is more information from GC.stat about mark and sweep activity.
1) Rename heap.free_num to heap.swept_num
This is a purely cosmetic change, to make the purpose of the variable mor... -
01:52 PM Bug #8123 (Closed): Transcoding exception when using replace along with universal_newline
- The following can be reproduced on 1.9.3-p385, 1.9.3-p392, and 2.0.0-p0.
body, charset = "hey", "hey".encoding.to_s
body = body.encode('UTF-8', charset,
:invalid => :replace, :undef => :replace,
:replace => '', :univers... -
11:27 AM Feature #8024 (Rejected): Lazy sweep を on/off するための機能
- 特にみなさんから反論もなさそうなのでRejectしておきます。
-
11:05 AM Feature #8121 (Closed): updated Curses::Window example
- The example on http://ruby-doc.org/stdlib-2.0/libdoc/curses/rdoc/Curses/Window.html produces somewhat garbled output. Subwindow can be used to avoid that:
require 'curses'
Curses.init_screen()
my_str = "LOOK! PONIES!"
bwin = Cu... - 10:51 AM Revision d617690a (git): * ruby_kill (internal.h, thread.c): use rb_pid_t instead of pid_t.
- this fixes the build failure of mswin introduced at r39819.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:44 AM Bug #8120 (Rejected): OptionParser is not handling lists of arguments correctly
- Only the first element in a list of arguments is being processed by OptionParser. With the following program:
-----------------------------------------------------
require 'optparse'
options = {}
optparse = OptionParser.new do... - 08:40 AM Revision e0b74f8a (git): * test/win32ole/test_err_in_callback.rb: debug print. I'll remove this later.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:18 AM Bug #8051 (Third Party's Issue): linux_iocparm_len in io.c is ifdef __linux__, but uses glibc specifics
- _IOC_SIZE is not glibc feature. It's a Linux feature. Please use Linux aware libc.
-
08:09 AM Revision 10f5312d (git): convert with one converter
- * string.c (rb_str_conv_enc_opts): convert with one converter, instead
of re-creating converters for each buffer expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Revision 29dc980e (git): compose HFS file names
- * dir.c (glob_helper): compose HFS file names from UTF8-MAC.
[ruby-core:48745] [Bug #7267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:04 AM Revision 353cd01e (git): * dir.c (join_path): move length of path to an argument.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:23 AM Feature #8119 (Assigned): more efficient version of Rinda::TupleSpaceProxy.take
-
06:13 AM Feature #8119 (Closed): more efficient version of Rinda::TupleSpaceProxy.take
- =begin
The purpose of Rinda::TupleSpaceProxy is to avoid losing tuples when a client disconnects during a #take call. This is implemented by sending the result value ((*twice*)): first by pushing it to a client-side array, second by r... -
04:40 AM Revision 4ea96ece (git): * internal.h: added a declaration of ruby_kill().
- * thread.c (ruby_kill): helper function of kill().
* signal.c (rb_f_kill): use ruby_kill() instead of kill().
* signal.c (rb_f_kill): call rb_thread_execute_interrupts()
to ensure that make SignalException if sent a signal
to myself... -
03:17 AM Revision b945ad28 (git): * io.c (linux_iocparm_len): enable only exist _IOC_SIZE().
- Because musl libc doesn't have it. [Bug #8051] [ruby-core:53229]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:17 AM Bug #8113 (Closed): ArgumentError: cannot interpret as DNS name: nil
- This was fixed by r39725. There is a backport ticket #8054
-
12:53 AM Bug #8113: ArgumentError: cannot interpret as DNS name: nil
- I cannot reproduce this with: ruby 2.1.0dev (2013-03-18 trunk 39805)
[x86_64-linux]
$irb -ropen-uri
open("http://www.ruby-lang.org/") { |f| f.each_line { |line| p line } }
Could you try it without rails? -
01:09 AM Revision 3ee89c62 (git): * ext/objspace/objspace.c: Fix typo in doc. Patch by Sho Hashimoto.
- [Bug #8116] [ruby-dev:47177]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:30 AM Bug #8092 (Closed): [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
- This issue was solved with changeset r39812.
Aman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Improve accuracy of objspace_live_num() and
allocated/f... -
12:22 AM Bug #8092: [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
- Wow, thanks!! I'll commit it soon.
03/18/2013
-
11:16 PM Bug #8092: [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
- With this updated patch the test is passing both before and after r39811. Problem was in finalize_list. After r39811 removing heap is less common, so the failure did not appear.
diff --git a/gc.c b/gc.c
index 2afd311..e72b198 100644
... -
10:27 PM Bug #8092: [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
- This test is passing for me on trunk. Before r39811 it is failing.
[ 92/132] TestGc#test_stat
{:count=>357, :heap_used=>421, :heap_length=>811, :heap_increment=>283, :heap_live_num=>144... -
05:32 PM Bug #8092: [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
- Thank you for bug report.
But, the following test case is failure.
I think ko1-san is the implementer of GC.stat.
ko1-san, what do you think?
=== start ===
$ git diff test
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc... -
09:52 PM Bug #7537: OptionParser treats negative digits as options
- Sent a pull-request. https://github.com/ruby/ruby/pull/259
I've made changes the same way as python do -- http://docs.python.org/dev/library/argparse.html#arguments-containing
This patch introduces one possible (but not very serious and... -
09:52 PM Bug #8115 (Closed): make install DESTDIR=/my/install/path fails
- =begin
In Fedora packaging, we used to use (({make install DESTDIR=/my/install/path})) to install compiled extension into the folder, which RPM used to pick up the extension. However, since Ruby 2.0.0, this approach fails with message s... -
09:44 PM Bug #8093 (Closed): [patch] gc: avoid unnecessary heap growth
- This issue was solved with changeset r39811.
Aman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Avoid unnecessary heap growth. patched by tmm1(Aman Gupta... -
06:15 PM Bug #8093: [patch] gc: avoid unnecessary heap growth
- Thank you for the bug report.
I think this patch is acceptable.
ko1-san, what do you think?
# Because r37970 was committed by ko1-san. -
09:16 PM Bug #8114 (Closed): Issue in test coverage for CRL
- wrt: https://github.com/ruby/ruby/blob/trunk/test/openssl/test_x509crl.rb#L104
The crl variable seems to be unused, or not further processed. -
08:48 PM Bug #8113 (Closed): ArgumentError: cannot interpret as DNS name: nil
- Loading development environment (Rails 3.2.12)
irb(main):001:0> open("http://www.ruby-lang.org/") {|f|
irb(main):002:1* f.each_line {|line| p line}
irb(main):003:1> }
ArgumentError: cannot interpret as DNS name: nil
from /usr/loc... -
08:18 PM Feature #8111 (Closed): Redmine Manager?
- How/Who do you contact for Redmine management issues?
-
06:26 PM Feature #8110 (Closed): Regex methods not changing global variables
- It is useful to have methods allowing pattern matching without setting global variables. It can be very hard to understand where the problem is when you for example insert a string like `puts pat === my_str` and your program fails in a p...
-
06:03 PM Bug #8095 (Closed): [patch] gc: fix unlimited memory growth with large values of RUBY_FREE_MIN
- This issue was solved with changeset r39810.
Aman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Fix unlimited memory growth with large values of
RUBY_F... -
05:39 PM Revision ab31e97c (git): Add comments to r39808
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:15 PM Revision 357b8c06 (git): * configure.in: set ac_cv_prog_cxx if CXX is supplied.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:22 PM Revision 5ef1525b (git): * configure.in: Fix c++ compiler auto-selection not only for
- Darwin 11.x, but also the other versions of Darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:14 PM Bug #8100: Segfault in trunk
- I got a similar one too, see here: https://github.com/padrino/padrino-framework/issues/1131
-
10:51 AM Bug #8100: Segfault in trunk
- I've updated the description of this ticket, because I'm able to reproduce a similar bug. Only similar in that we're using a lot of the same dependencies.
I also went ahead and created (as small as possible) reproducible script. Here'... - 03:30 PM Revision 65a709ae (git): * 2013-03-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:30 PM Revision 80329d3a (git): * gc.c: Improve accuracy of objspace_live_num() and
- allocated/freed counters. patched by tmm1(Aman Gupta).
[Bug #8092] [ruby-core:53392]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:22 PM Bug #7267: Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
- Attaching my proof of concept code.
diff --git a/dir.c b/dir.c
index d4b3dd3..126c27e 100644
--- a/dir.c
+++ b/dir.c
@@ -81,6 +81,84 @@ char *strchr(char*,char);
#define rb_sys_fail_path(path) rb_sys_fail_str(path)
+#if d... -
12:44 PM Revision 1bc93a15 (git): * gc.c: Avoid unnecessary heap growth. patched by tmm1(Aman Gupta).
- [Bug #8093] [ruby-core:53393]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:04 PM Feature #2837 (Closed): Compile-time constant for HEAP_GROWTH_FACTOR (patch attached)
- I commited r39746.
We can change HEAP_GROWTH_FACTOR via an enviroment variable now.
So I close this ticket.
Thanks. -
09:03 AM Revision 03c7f0ca (git): * gc.c: Fix unlimited memory growth with large values of
- RUBY_FREE_MIN. patched by tmm1(Aman Gupta).
[Bug #8095] [ruby-core:53405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:42 AM Bug #8049 (Rejected): Compiling error on Ruby 2.0 with OpenSSL
- Was a problem on the client side. See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/405477 ff.
- 05:47 AM Revision ac454412 (git): * test/win32ole/test_err_in_callback.rb
- (TestErrInCallBack#test_err_in_callback): shouldn't create a file in
source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:31 AM Revision aa24857f (git): * vm_dump.c (backtrace): on darwin use custom backtrace() to trace
- beyond _sigtramp. darwin's backtrace can't trace beyond signal
trampoline with sigaltstack.
* configure.in: check execinfo.h on darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:06 AM Revision f8eaf3c6 (git): * vm_exec.h (END_INSN): revert r39517 because the segv seems fixed by
- r39806.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:45 AM Revision 9b113a0d (git): * vm_exec.c: Correct predefined macro name. This typo is introduced by
- r36534 and should be backported to ruby_2_0_0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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
- 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
-
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 -
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... -
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.
... -
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,
... -
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 -
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... -
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... -
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 -
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.
... -
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
-
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... -
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@... -
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
... -
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... -
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... -
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... -
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
-
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... -
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... -
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 ...
-
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
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 ? -
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...
-
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 -
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
- 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
-
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 -
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... -
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 -
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'
=... -
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
-
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.
-
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
-
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"
... -
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
-
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" <[email protected]>
wrote:
> (3/15/13 4:36 PM), vipulnsward (Vipul Aml... -
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... -
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... -
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('>... -
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.
> ..... -
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.
... -
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 ... -
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... -
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. -
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... -
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, ... -
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... -
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 -
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... -
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 -
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 -
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... -
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
-
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... -
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
-
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. -
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.
-
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... -
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... -
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.
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?
-
06:23 PM Feature #8096: introduce Time.current_timestamp
- Tanaka Akira <[email protected]> wrote:
> 2013/3/15 vipulnsward (Vipul Amler) <[email protected]>:
>
> > A lot of scenarios and applications require the use of Time.now.to_i which is used as current_timestamp in systems.
>
> ... -
03:53 PM Feature #8096: introduce Time.current_timestamp
- 2013/3/15 vipulnsward (Vipul Amler) <[email protected]>:
> 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 ... -
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... -
02:17 AM Feature #8096: introduce Time.current_timestamp
- More like nanosecond. Atleast thats what currently happens, if I am not wrong.
-
01:47 AM Feature #8096: introduce Time.current_timestamp
- Is one second precision sufficient?
-
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... -
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... -
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... -
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... -
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... -
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 ... -
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... -
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... -
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 -
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... -
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
- 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
-
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 -
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... -
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. -
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? -
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... -
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... -
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 -
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 -
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... -
09:07 AM Bug #8085 (Third Party's Issue): Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32
-
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. -
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. -
08:57 AM Feature #8098 (Rejected): Add __DIR__ to compliment __FILE__
- See #3346, in particular https://bugs.ruby-lang.org/issues/3346#note-17
-
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 -
08:24 AM Feature #8098 (Rejected): Add __DIR__ to compliment __FILE__
- There should be a __DIR__ constant to compliment __FILE__.
-
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
-
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... -
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... -
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... -
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 -
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 -
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] -
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...
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
-
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.
... -
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. -
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... -
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.
-
02:54 PM Bug #8091 (Rejected): Class.new is not called when class is created using class keyword
- Correct, not a bug.
-
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.
... -
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 ... -
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.
-
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... -
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. -
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
-
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... -
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...
-
04:55 PM Feature #7978: boolean to_i
- What kind of problem do you imagine? I cannot think of any.
Matz.
-
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 .
-
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".
- 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
-
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 -
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 -
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... -
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... -
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?
-
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/ =~... -
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... -
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 ... -
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... -
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... -
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... -
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... -
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 -
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... -
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 ... -
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... -
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 ... -
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:...
-
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... -
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
-
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
-
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 ... -
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.... - 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
-
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
-
12:19 AM Bug #8084 (Closed): ext/tk/MANUAL_tcltklib.eucj is utf-8
- ext/tk/MANUAL_tcltklib.eucj は中身が UTF-8 に変更されているので、ファイル名も変更した方が良いのではないでしょうか?
-
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?