Activity
From 02/25/2015 to 03/03/2015
03/03/2015
-
09:42 PM Bug #10916: What the Ruby? SegFault?
- I think redmine is also a blocker, as it has been notoriously
susceptible to spam.
If we can fix that, maybe we can remove registration requirement.
On Tue, Mar 3, 2015 at 12:24 PM, Eric Wong <normalperson@yhbt.net> wrote:
> "\"... -
08:41 PM Bug #10916: What the Ruby? SegFault?
- "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp> wrote:
> > * Author: why do i need this acct just to create a bug report
>
> The answer is simple: Requiring registration helps a lot for
> reducing spam. Many thanks for your help.
... -
07:53 PM Feature #10932 (Assigned): Enabling allocation tracing as early as possible
- Hi,
I'd like to be able to enable allocation tracing as early as possible. I've attached a patch that I use to do that when I'm debugging code that I don't know very well.
The way I use it is like this:
$ ruby -robjspace/trac... -
05:56 PM Bug #10647: fail install without zlib
- I'm reviewing our Gentoo patches for ruby 2.2.1 and noticed that there is a typo in this patch that causes installation to still fail without zlib:
begin
require "zlib"
rescue LoadErroe
end
This should obviously be "re... -
05:27 PM Bug #10906: Problem building on Solaris 10 - symbol rb_infinity not found
- Adding "-std=gnu99" to CFLAGS might solve the problem.
~~~
% CFLAGS="-std=gnu99" ./configure
~~~
- 05:14 PM Revision bca791ae (git): * tool/redmine-backporter.rb (backport_command_string): pick up only
- when the revision exists in trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:01 PM Revision f6ed283f (git): mkmf/base.rb: clean up tmpdir
- * test/mkmf/base.rb (TestMkmf#assert_separately): call teardown to
clean up temporary directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:27 PM Revision 36ba828d (git): rbinstall.rb: gems dir_mode
- * tool/rbinstall.rb (DirPackage#extract_files): set directories
permission of gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:45 PM Revision e6b06534 (git): thread.c: volatile inside EXEC_TAG
- * thread.c (rb_thread_io_blocking_region): assigned variables
inside EXEC_TAG() should be volatile.
* thread.c (rb_thread_s_handle_interrupt): ditto.
* thread.c (exec_recursive): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun... -
03:37 PM Revision f18951ab (git): .travis.yml: no diagnostic reports
- * .travis.yml (script): no diagnostic reports files should be
left.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:32 PM Revision 70e0a56c (git): * 2015-03-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:30 PM Revision 6aff861d (git): * tool/redmine-backporter.rb: now can specify shorten form of commands.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:18 PM Bug #10931 (Closed): [PERF]bm_app_mandelbrot.rb 20% slower.
- http://rubybench.org/ruby/ruby/commits?result_type=app_mandelbrot
Relevant Commits:
https://github.com/ruby/ruby/commit/909c4c0
https://github.com/ruby/ruby/commit/41b2f1a
Before: 0.786s
After Commit 909c4c0: 0.85... - 02:42 PM Revision d1d5264c (git): * tool/redmine-backporter.rb (Readline.readline): drop untreated control
- characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:41 PM Feature #10930 (Feedback): Allow splat operator to work for string interpolation
- Currently when you use the splat operator in a method it pulls the items out of the array for method parameters.
~~~ruby
def foo(a,b,c)
puts "#{a}, #{b}, #{c}"
end
bar = [1,2,3]
foo(*bar)
# => "1, 2, 3"
~~~
So I would ex... - 01:26 PM Revision f73aefc6 (git): * test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because
- Signal.signame may raise exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:34 PM Bug #10687: ArgumentError in certain cases of instance_exec (new bug in 2.2)
- Still broken in 2.2.1:
~~~
#=> ruby -v && ruby a.rb
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
a.rb:1:in `block in <main>': wrong number of arguments (4 for 0..1) (ArgumentError)
from a.rb:4:in `instance_exec'
fro... -
08:55 AM Revision dff21f05 (git): remove ruby_1_9_2 support
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:55 AM Revision 7968f885 (git): add teenyup
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:54 AM Revision fb72edce (git): bump version to 2.2.2
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:19 AM Revision 1e4550ac (git): test_rubyoptions.rb: use assert_in_out_err
- * test/ruby/test_rubyoptions.rb (assert_segv): assert_in_out_err
with the pattern list instead of invoke_ruby.
* test/-ext-/bug_reporter/test_bug_reporter.rb (test_bug_reporter_add):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru... -
08:19 AM Revision f73a92e4 (git): envutil.rb: improve by assert_pattern_list
- * test/lib/envutil.rb (assert_in_out_err): improve to match by
assert_pattern_list if expected result is other than Regexp or
String list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision e9ff9e79 (git): test_process.rb: use assert_in_out_err
- * test/ruby/test_process.rb (test_status_quit): use
assert_in_out_err to simplify and clean diagnostic reports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:10 AM Bug #10924: String#b
- Thomas Sawyer wrote:
> Well, I just learned about the String#b [method](http://ruby-doc.org/core-2.1.0/String.html#methodi-b) today. And of course it breaks the [Radix](https://github.com/rubyworks/radix) gem :-( Honestly, back when I ... -
07:58 AM Bug #10924: String#b
- Thomas Sawyer wrote:
> Benoit Daloze wrote:
> ...
irb(main):001:0> Encoding::BINARY
=> #<Encoding:ASCII-8BIT>
Encoding::BINARY is an alias for Encoding::ASCII-8BIT. Because pure ASCII works well with most other encodings anyway, St... -
07:52 AM Bug #10924: String#b
- Thomas Sawyer wrote:
> Refinements scoped at the gem level? I think I argued in favor of that once.
That turned out to be very difficult to implement.
> ...
It looks very good to me, and I think it could be implemented fairly ea... - 07:58 AM Revision 41eb94d4 (git): * tool/redmine-backporter.rb: use 'b' instead of 's' for showing
- Backport options for merger.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:55 AM Revision d57a8fa5 (git): * tool/redmine-backporter.rb: show selected ticket number at prompt.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:59 AM Feature #10909 (Closed): [PATCH 2/2] math.c: Direct casting from Rational to double.
- Applied in changeset r49818.
----------
* math.c (num2dbl_with_to_f): direct casting from Rational to double.
[Feature #10909] - 05:59 AM Revision b5f8aec5 (git): * test/ruby/test_math.rb: add tests for the above change.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:59 AM Revision 972713ce (git): * math.c (num2dbl_with_to_f): direct casting from Rational to double.
- [Feature #10909]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:20 AM Revision 5eea2af4 (git): test_rubyoptions.rb: use assert_segv
- * test/ruby/test_rubyoptions.rb (test_segv_loaded_features): use
assert_segv to simplify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:49 AM Bug #10914: Always reproducible crash on FreeBSD with unicorn and 2.2.0p0 (2.1.5p273 too)
- Hi!
It appears the problem is fixed with update FreeBSD to 10.1 version. Thanks!
Best regards,
Alexander -
03:16 AM Revision 37788267 (git): .travis.yml: CONFIG_FLAG
- * .travis.yml (before_install): merge options for extension
libraries to CONFIG_FLAG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:04 AM Feature #10927: [PATCH] Add default empty string to string replacements
- Robert A. Heiler wrote:
> I don't think this is likely to get in because it breaks backwards compatibility.
Not only that. The proposed change may be for a somewhat frequent use case, but it does not save too many characters in code ... -
02:55 AM Revision f7621185 (git): .travis.yml: install missing library
- * .travis.yml (before_install): install gdbm too.
* .travis.yml (script): test options should be in TESTOPTS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:54 AM Revision 71dfa492 (git): .travis.yml: suppress travis specific failure
- * .travis.yml (before_script): suppress the failure which happens
only in travis OSX for the time being.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/02/2015
-
11:57 PM Bug #10924: String#b
- Robert A. Heiler wrote:
> I think that, the name aside, this would be a wonderful example for different
> ...
Refinements scoped at the gem level? I think I argued in favor of that once.
I don't so much mind refinements even at the ... -
11:49 PM Bug #10924: String#b
- Benoit Daloze wrote:
> Note #b is more #binary than #ascii.
That at least make a little more sense out of the name #b, but that needs some explanation since every string is actually binary underneath regardless of encoding. (Note the... -
07:52 PM Bug #10924: String#b
- I think that, the name aside, this would be a wonderful example for different
namespaces and restoring to the old default afterwards.
That way, you could undefine String#b for the purpose of only your gem alone here
but leave it unt... -
12:56 PM Bug #10924: String#b
- Note #b is more #binary than #ascii.
-
01:27 AM Bug #10924 (Closed): String#b
- Well, I just learned about the String#b [method](http://ruby-doc.org/core-2.1.0/String.html#methodi-b) today. And of course it breaks the [Radix](https://github.com/rubyworks/radix) gem :-( Honestly, back when I create Radix in 2009 I c...
-
11:43 PM Bug #10929 (Rejected): NilClass#to_proc and & don't mix?
- This is sort of like a "who would ever care" kind of bug. Nonetheless technically it seems like it is one. So I thought it best that I report it just the same.
~~~
class NilClass
def to_proc
Proc.new{ |*x| nil }
en... - 10:53 PM Revision 12051857 (git): * test/ruby/test_symbol.rb: avoid a false positive in AIX
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:28 PM Bug #10906: Problem building on Solaris 10 - symbol rb_infinity not found
- I don't know what to tell you. For anyone reading this, to get around it I did this:
configure --disable-install-doc --disable-install-rdoc
make
make install
It failed when it tried to install bundle gems, but core Ru... -
02:42 PM Bug #10906: Problem building on Solaris 10 - symbol rb_infinity not found
- Thanks.
The output of the commands suggest that the macro INFINITY was defined when compiling numeric.c but was not defined when compiling ext/date/date_core.c.
I still couldn't find why.
INFINITY is C99 feature, and whether INFINIT... -
07:56 PM Feature #10927: [PATCH] Add default empty string to string replacements
- I don't think this is likely to get in because it breaks backwards compatibility.
The prior usage could well be a case for .delete when it comes to .gsub:
"foo".delete("o") #=> "f"
Perhaps .delete could allow to replace just n o... -
04:26 PM Feature #10927 (Open): [PATCH] Add default empty string to string replacements
- Hi ruby devs !
A common case for string substitution is to just remove the found items. This patch changes the `String#[g]sub[!]` methods to allow that.
Old usages:
"foo".sub("o", "") #=> "fo"
"foo".gsub("o", "") #=> "f... -
06:38 PM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- Don't see anything wrong...
~~~
~/Work/byebug $ cat backtrace.rb
begin
Int('hola')
rescue
local = 17
byebug
puts local
end
~/Work/byebug $ ruby -Ilib -rbyebug backtrace.rb
(byebug) bt
--> rescue in <main> at .../... -
05:44 PM Bug #10923: Bug in io/wait/wait.c
- Backported into `ruby_2_1` branch at r49812.
-
05:43 PM Bug #10923 (Closed): Bug in io/wait/wait.c
- Applied in changeset ruby-21:r49812.
----------
merge revision(s) r49797: [Backport #10923]
* ext/io/wait/wait.c (io_nread): wrap return value with INT2FIX
Thanks to Yura Sokolov <funny.falcon@gmail.com>
[ruby-core:68369] [Bug#1... -
05:43 PM Revision 3457be5f (git): merge revision(s) r49797: [Backport #10923]
- * ext/io/wait/wait.c (io_nread): wrap return value with INT2FIX
Thanks to Yura Sokolov <funny.falcon@gmail.com>
[ruby-core:68369] [Bug#10923]
* test/io/wait/test_io_wait.rb (test_nread_buffered):
fi... -
05:25 PM Bug #10928 (Closed): optparse Switch#summarize code doesn't reflect its documentation
- The documentation for `Switch#summarize` says "+sdone+:: Already summarized short style options keyed hash." for the `sdone` argument (similar problem with `ldone`). I.e. it mentions it should be a Hash.
However, the actual method de... -
04:06 PM Bug #10926 (Closed): r49760以降Solarisで--enable-sharedのビルドでsample/test.rb失敗
- Applied in changeset r49810.
----------
* configure.in: set PRELOADENV in Solaris to avoid "wrong ELF class" error.
[Bug #10926] [ruby-dev:48888]
* configure.in: set LIBPATHENV for 32-bit compile in Solaris in addition
to 64-bit. -
03:55 PM Bug #10926 (Closed): r49760以降Solarisで--enable-sharedのビルドでsample/test.rb失敗
- Solaris 10 にて、./configure --enable-shared (他オプション多数略) にて共有ライブラリ版をビルドしようとすると、r49760以降、下記のエラーが出てsample/test.rbの実行に失敗して次のステップに進めなくなります。
~~~
sample/test.rb:assignment ......................................................................... - 04:06 PM Revision ae048b1b (git): * 2015-03-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:06 PM Revision 2e522aec (git): * configure.in: set PRELOADENV in Solaris to avoid "wrong ELF class" error.
- [Bug #10926] [ruby-dev:48888]
* configure.in: set LIBPATHENV for 32-bit compile in Solaris in addition
to 64-bit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:26 PM Bug #10925 (Closed): Backport r49693
- Please backport r49693, this commit fixed failing spec on rubyspec.
https://github.com/ruby/ruby/commit/9759173cfc954f89a24dd96a42067161a34bd243 -
07:54 AM Revision 89333366 (git): envutil.rb: fix typo
- * test/lib/envutil.rb (invoke_ruby): fix typo again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:20 AM Revision 4a0e9c5c (git): envutil.rb: fix const name
- * test/lib/envutil.rb (invoke_ruby): fix an exception class name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:50 AM Revision b6cc839d (git): test_process.rb: remove intermediate child process
- * test/ruby/test_process.rb (test_deadlock_by_signal_at_forking):
spawn the target process directly with assert_separately and
remove intermediate child process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49807 b2dd03c8-39d4-... -
06:44 AM Revision 7be21a31 (git): envutil.rb: timeout_error argument to invoke_ruby
- * test/lib/envutil.rb (invoke_ruby): add `timeout_error` optional
keyword argument, the exception class to be raised if the target
process timed out. if it is nil, no exception will be raised at
timeout but the terminated output, ... -
06:44 AM Revision 876d6640 (git): envutil.rb: signal list to invoke_ruby
- * test/lib/envutil.rb (invoke_ruby): allow `signal` optional
keyword argument to be a list of signals to be sent to the
target process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:36 AM Revision 575d4a30 (git): configure.in: _setjmp only if _longjmp is found
- * configure.in: do not check _setjmp unless _longjmp is available,
so that configure results will not be changed by cache.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:44 AM Revision ad0e8beb (git): configure.in: remove extra unsigned
- * configure.in (RUBY_REPLACE_TYPE): restore unsigned type from
cached variable only if the target type is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:35 AM Revision b31c4762 (git): .travis.yml: do not ignore diff
- * .travis.yml (before_script): confured results with/without cache
must be same.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:04 AM Revision 76d1d526 (git): signal.c: nil for invalid signum
- * signal.c (sig_signame): return nil if the argument is a valid
signal number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:07 AM Bug #10915 (Closed): Error in FTPTest#test_abort and test_status on Solaris
- Applied in changeset r49800.
----------
* test/net/ftp/test_ftp.rb (create_ftp_server): set SO_OOBINLINE
for receiving OOB data which is sended with MSG_OOB flag in
portable way. [Bug #10915] [ruby-dev:48885]
* test/net/ftp/test_ftp... -
03:07 AM Revision ba536e41 (git): * test/net/ftp/test_ftp.rb (create_ftp_server): set SO_OOBINLINE
- for receiving OOB data which is sended with MSG_OOB flag in
portable way. [Bug #10915] [ruby-dev:48885]
* test/net/ftp/test_ftp.rb (test_abort, test_status): use gets
for receiving OOB data in portable way.
git-svn-id: svn+ssh://ci... -
02:43 AM Revision f2c8ac3f (git): configure.in: restore unsignedness
- * configure.in (RUBY_REPLACE_TYPE): restore unsigned type from
cached variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:08 AM Bug #10916: What the Ruby? SegFault?
- > * Author: why do i need this acct just to create a bug report
The answer is simple: Requiring registration helps a lot for reducing
spam. Many thanks for your help.
Regards, Martin.
On 2015/02/28 05:44, ruby@mailin...
03/01/2015
-
09:05 PM Bug #10923: Bug in io/wait/wait.c
- Fixed in r49797
-
02:24 PM Bug #10923 (Closed): Bug in io/wait/wait.c
- https://github.com/ruby/ruby/blob/28b9f11d5a4b878adb50a3e5472ceea8c462ed4a/ext/io/wait/wait.c#L64-L65
return value should be wrapped by INT2FIX - 09:03 PM Revision 07c87adf (git): * 2015-03-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 09:03 PM Revision 26e1ebdc (git): io/wait: fix return value for buffered read
- * ext/io/wait/wait.c (io_nread): wrap return value with INT2FIX
Thanks to Yura Sokolov <funny.falcon@gmail.com>
[ruby-core:68369] [Bug#10923]
* test/io/wait/test_io_wait.rb (test_nread_buffered):
fix broken test
git-svn-id: svn+ss... -
08:05 PM Bug #10538: Error when trying to update gem rake
- I got exactly the same error when trying also to updaet rake ge.
* Reproduced on Windows 7 Home edition
* Ruby version: **ruby 2.1.5p273** (2014-11-13 revision 48405) [i386-mingw32]
* rake version: **10.1.0**
No proxy, nothing 'unu... -
12:27 PM Revision 40564c1e (git): thread_pthread.c: use rb_pid_t
- * thread_pthread.c (timer_thread_pipe.owner_process): process ID
should be pid_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:21 AM Revision e961fcd5 (git): envutil.rb: signal argument
- * test/lib/envutil.rb (invoke_ruby): add optional keyword argument
of signal to be sent to hung-up process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:21 AM Revision ee4cb17b (git): configure.in: restore convertible type
- * configure.in (RUBY_REPLACE_TYPE): restore convertible type from
cached variable, so that configured results will be stable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:10 AM Revision ea2d631a (git): configure.in: check broken memmem before earlier
- * configure.in (rb_cv_broken_memmem): check before adding the
result HAVE_MEMMEM macro to confdefs.h, so that configured
results will be stable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49793 b2dd03c8-39d4-4d8f-98ff-823fe69... -
06:12 AM Feature #2080: Proc#to_source, Method#to_source
- any hope to finally see this?
-
06:03 AM Bug #10922 (Closed): TracePoint#binding may return nil in Ruby 2.2
- ~~~
$ miniruby -ve '
TracePoint.new(:c_return) do |tp|
p [tp.method_id, tp.binding]
end.enable
Thread.new {}.join
'
ruby 2.2.1p85 (2015-02-26 revision 49761) [x86_64-linux]
[:enable, #<Binding:0x00555555a6ed48>]
[:initialize... -
05:51 AM Bug #10921 (Rejected): gems/json-1.8.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault
- You mix 2.2.0 and 2.0.0.
-
03:36 AM Bug #10921 (Rejected): gems/json-1.8.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault
- ~~~
~/.rvm/gems/ruby-2.2.0/gems/json-1.8.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
~~~
-
05:45 AM Bug #10920: uninitialized constant LoadErroe
- r49017 fixed it.
-
03:28 AM Bug #10920 (Rejected): uninitialized constant LoadErroe
- I can see the following error during installation of stable snapshot
`./tool/rbinstall.rb:714:in `rescue in block in <main>': uninitialized constant LoadErroe (NameError)
from ./tool/rbinstall.rb:712:in `block in <main>'
... -
02:52 AM Feature #10548: remove callcc (Callcc is now going obsoleted. Please use Fiber.)
- I agree with Yusuke.
I'd be sorry to see it go - it does some neat tricks that are a lot harder to pull off with Fibers.
Here for instance is a PoC reversible debugger: https://gist.github.com/stephenprater/ca312d24578455f36550
... -
02:18 AM Bug #10918 (Closed): ObjectSpace._id2ref returns internal object
- Applied in changeset r49792.
----------
gc.c: hide internal objects
* gc.c (id2ref): prohibit from accessing internal objects.
[ruby-core:68348] [Bug #10918] -
02:18 AM Revision 9334597b (git): gc.c: hide internal objects
- * gc.c (id2ref): prohibit from accessing internal objects.
[ruby-core:68348] [Bug #10918]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:17 AM Revision cb0cfbb4 (git): mkconfig.rb: no build-time variables
- * tool/mkconfig.rb: exclude unnecessary build-time only variables,
various ruby commands, installation targets, and dtrace stuffs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:41 AM Misc #10809 (Closed): [PATCH 2/2] Add tests for math.c related to [Feature 10785], [Feature 10800]
-
12:37 AM Bug #10908 (Rejected): Addrinfo.new appears to ignore the afamily argument when using a String for sockaddr
- afamily returns the family in sockaddr.
2nd argument for Addrinfo.new doesn't affect afamily.
pfamily (and 2nd argument for Addrinfo.new) corresponds to ai_family field of struct addrinfo and will be used for 1st argument of socket()... -
12:33 AM Misc #10907 (Rejected): Documentation of Addrinfo.new suggests default family of PF_UNSPEC while in practise it appears to be AF_INET
- Use pfamily as you noticed.
pfamily (and 2nd argument for Addrinfo.new) corresponds to ai_family field of struct addrinfo and will be used for 1st argument of socket().
afamily (and first 1 or 2 bytes in 1st argument for Addrinfo.n... -
12:13 AM Bug #10904 (Closed): Time.strptime with %s.%N format should not ignore sec_fraction
- Applied in changeset r49788.
----------
* lib/time.rb (strptime): Support %s.%N.
[ruby-core:68301] [Bug #10904] Patch by Sadayuki Furuhashi. -
12:13 AM Revision a12a4531 (git): add tests for strptime("%s.%N").
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:13 AM Revision e3a4e121 (git): * 2015-03-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:12 AM Revision 9ee9812d (git): * lib/time.rb (strptime): Support %s.%N.
- [ruby-core:68301] [Bug #10904] Patch by Sadayuki Furuhashi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/28/2015
-
09:49 PM Bug #10902: require("enumerator") scans LOAD_PATH 2x on every invocation
- Having a hard time coming up with a clean patch here. The following works but it's pretty hacky.
~~~ diff
diff --git a/load.c b/load.c
index fa225fa..68d15e7 100644
--- a/load.c
+++ b/load.c
@@ -952,6 +952,9 @@ rb_require_safe(VA... -
06:18 PM Bug #10712: [PATCH] lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
- Isn't that what the -l switch is for?
-
04:16 PM Bug #10712: [PATCH] lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
- Backported into `ruby_2_1` at r49785.
-
06:14 PM Bug #10731: Segmentation fault when create alias to refined method
- Backported into `ruby_2_1` branch at r49787.
-
06:13 PM Revision f50f7025 (git): merge revision(s) r49221: [Backport #10731]
- * vm_method.c (rb_alias): raise a NameError when creating alias to
a refined method if the original method of the refined method is
not defined. [ruby-core:67523] [Bug #10731]
git-svn-id: svn+ssh://ci.ruby-lang.org... -
05:44 PM Bug #10919 (Third Party's Issue): [gem install] installs multipe platforms
- Natively build a gem - just an example mysql2 on windows x64-mingw32
I could only get the gem to compile with devkit when --platform=ruby is specified - so my understanding is that all devkit compiled gems are platform ruby, even if dev... -
05:29 PM Bug #10706: Segmentation fault when change visibility of refined new method
- Backported into `ruby_2_1` at r49786.
-
05:28 PM Revision c839def7 (git): merge revision(s) r49182,r49183: [Backport #10706]
- vm_method.c: fix change refined new method visibility
* vm_method.c (rb_export_method): bail out if the original method
is undefined when the method is refined.
[ruby-core:67387] [Bug #10706]
git-svn-id: svn... -
05:02 PM Bug #10878: require: cannot load such file
- this issue was resolved with #10876
ruby 2.2.1p85 (2015-02-26 revision 49761) [x64-mingw32] -
04:15 PM Revision 8e73157d (git): merge revision(s) r49175: [Backport #10712]
- * lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
[ruby-core:67411] [Bug #10712]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:03 PM Bug #10692: there is no response body with HEAD request (fixed at r49105)
- Backported into `ruby_2_1` at r49784.
-
04:03 PM Revision 4ad3a5c3 (git): merge revision(s) r49104,r49105: [Backport #10692]
- * test/net/http/test_http.rb (_test_send_request__HEAD): Added
failing test for send_request with HEAD method.
* lib/net/http.rb (Net::HTTP#send_request): there is no response body
with HEAD request. Patch by... -
04:00 PM Bug #10668: Fix description for Zlib.crc32
- Backported into `ruby_2_1` at r49783.
-
03:59 PM Revision 089dbf1e (git): merge revision(s) r49202: [Backport #10668]
- * ext/zlib/zlib.c: fix document of method signatures.
[Bug #10668][ruby-core:67186][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:51 PM Bug #10918 (Closed): ObjectSpace._id2ref returns internal object
- Since r43539 ObjectSpace._id2ref doesn't check if the object is internal or not.
The following code gives a segmentation fault:
~~~
(ObjectSpace.each_object.first.__id__..1.0/0).each do |i|
t = ObjectSpace._id2ref(i) rescue nex... -
09:09 AM Revision fe6cf485 (git): enum.c: Fixnum only
- * enum.c (limit_by_enum_size, enum_size_over_p): check only
against Fixnum size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:18 AM Revision 98273af3 (git): enum.c: limit size
- * enum.c (enum_each_slice, enum_each_cons): limit elements size by
the enumerator size. suggested by Hans Mackowiak <hanmac AT
gmx.de> at [ruby-core:68335]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49781 b2dd03c8-39d4-4d8f-... -
06:46 AM Bug #10906: Problem building on Solaris 10 - symbol rb_infinity not found
- I didn't send any options to configure.
>/usr/ccs/bin/nm numeric.o | grep infinity
> ...
[1620] | 0| 0|NOTY |GLOB |0 |UNDEF |rb_infinity
>env
LDFLAGS=-R/usr/local/lib -R/opt/csw/lib -R/opt/csw/gcc4/lib
MANPAT... -
06:44 AM Revision dbffdff1 (git): vm_dump.c: no new strings in signal context
- * vm_dump.c (rb_vm_bugreport): get rid of making new strings
inside signal context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:42 AM Revision badb4de7 (git): variable.c: rb_search_class_path
- * variable.c (rb_tmp_class_path): defer making temporary class
path string.
* variable.c (rb_search_class_path): search class path or return
Qnil or Qfalse if unnamed, not creating a temporary path.
git-svn-id: svn+ssh://ci.ruby-lan... -
06:02 AM Revision 1ef1a0c6 (git): variable.c: preserve name encoding of subclass
- * variable.c (rb_tmp_class_path): preserve name encoding of an
anonymous instance of module/class subclass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:14 AM Bug #10850: BigDecimal division incorrect
- Thanks for the answer Shugo,
however I am not sure if that is easily possible for me in that case. I use BigDecimal as a fiedl type in a Rails application and don't see how I can ues Rational here :-(
Any suggestions or tips or refe... -
12:47 AM Bug #10913 (Third Party's Issue): Enum#each_slice is crashing with Bignum as an argument
- It reproduces with just:
~~~ruby
Array.new(50000000000000000)
~~~
and
~~~ruby
"x"*50000000000000000
~~~
The failure itself is expected, but OSX's `malloc` complains.
Seems there is no hook to control it.
02/27/2015
-
11:33 PM Bug #9144 (Closed): ptys on AIX version 4 through 7 - Applied in changeset r49776.
----------
* ext/pty/pty.c: AIX supports autopush. Patch by Perry Smith [ruby-core:58539] [Bug #9144] - 11:32 PM Revision 0066608c (git): * 2015-02-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:32 PM Revision 87ac2159 (git): * ext/pty/pty.c: AIX supports autopush. Patch by Perry Smith [ruby-core:58539] [Bug #9144]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:19 PM Feature #10917 (Closed): Add GC.stat[:total_time] when GC profiling enabled
- This patch includes a `:total_time` value in `GC.stat` as a `Fixnum` of microseconds equivalent to `GC::Profiler.total_time`. A non-zero value is only provided if GC profiling is enabled.
This avoids problems with `GC::Profiler`'s API... -
08:44 PM Bug #10916 (Third Party's Issue): What the Ruby? SegFault?
- Been using WPScan for quite a while, but now this happens ... I've got no idea "what the ruby" this is.
/usr/local/rvm/gems/ruby-2.1.5@wpscan/gems/ffi-1.9.6/lib/ffi/types.rb:67: [BUG] Segmentation fault at 0x00000000000008
ruby 2.1.5... -
06:21 PM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- I'm not able to try this right now but I'm pretty sure that just works in byebug... I'll confirm as soon as possible.
-
05:58 PM Bug #10914: Always reproducible crash on FreeBSD with unicorn and 2.2.0p0 (2.1.5p273 too)
- avl@logvinov.com wrote:
> /usr/local/lib/libruby22.so.22(rb_print_backtrace+0x19) [0x8009fe5d7] vm_dump.c:693
> /usr/local/lib/libruby22.so.22(rb_vm_bugreport+0x9b) [0x8009feb49] vm_dump.c:971
> /usr/local/lib/libruby22.so.22(rb_bug_... -
03:04 PM Bug #10914 (Rejected): Always reproducible crash on FreeBSD with unicorn and 2.2.0p0 (2.1.5p273 too)
- I get this segmentation when unicorn sends QUIT signal for the old process. The crash is reproduced with FreeBSD 10.0 and gcc 4.8.5\clang.
~~~
E, [2015-02-27T22:48:23.320810 #60822] ERROR -- : reaped #<Process::Status: pid 60829 SIGA... -
05:22 PM Bug #10550: Resolv::DNS.getaddresses returns no IPs when nameserver returns in differing case than query
- Backported into `ruby_2_1` branch at r49775.
-
05:21 PM Revision 02dcfb78 (git): merge revision(s) r49071,r49072,r49073,r49078: [Backport #10550]
- * lib/resolv.rb (Resolv::DNS::Name): names with different dots
should be different.
* lib/resolv.rb (Resolv::DNS::Name#==): DNS is case-insensitive, so the
comparison should be case-insensitive as well.
... -
04:47 PM Bug #10915: Error in FTPTest#test_abort and test_status on Solaris
- Naohisa Goto wrote:
> Solaris, Linux にて動作を確認しました。
> ...
そこはまあ、入れてみればわかるのでいいんじゃないかと。
(ちなみにこの変更自体はWindowsでもたぶん問題はありません。) -
03:39 PM Bug #10915 (Closed): Error in FTPTest#test_abort and test_status on Solaris
- Solaris 10 にて、make test-all で以下のエラーが出ます。
(r49732にて確認)
~~~
1) Error:
FTPTest#test_abort:
Net::ReadTimeout: Net::ReadTimeout
/XXXXXXXXXX/lib/net/protocol.rb:158:in `rescue in rbuf_fill'
/XXXXXXXXXX/lib/net/protocol.rb:15... -
01:00 PM Revision d9c32d62 (git): * lib/rubygems: Update to RubyGems 2.4.6 and HEAD(800f2e6).
- Fixed #1159, #1171, #1173 on rubygems/rubygems
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:46 PM Bug #10913: Enum#each_slice is crashing with Bignum as an argument
- [shreyas@so (master)]$ rvm list
rvm rubies
=> ruby-2.0.0-p598 [ x86_64 ]
ruby-2.1.0 [ x86_64 ]
* ruby-2.1.2 [ x86_64 ]
ruby-2.1.4 [ x86_64 ]
ruby-2.1.5 [ x86_64 ]
ruby-2.2.0... -
08:36 AM Bug #10913: Enum#each_slice is crashing with Bignum as an argument
- i cant repoduce it with my ruby versions 2.1.2 and ruby 2.3.0dev
~~~
[1] pry(main)> [1,2,3].each_slice(500000000000000000).to_a
NoMemoryError: failed to allocate memory
from (pry):1:in `each_slice'
[2] pry(main)> [1,2,3].each_slic... -
08:08 AM Bug #10913 (Third Party's Issue): Enum#each_slice is crashing with Bignum as an argument
- ~~~
[shreyas@~ (master)]$ rvm use 2.1.2
Using /Users/shreyas/.rvm/gems/ruby-2.1.2
[shreyas@~ (master)]$ pry
`[1] pry(main)> [1,2,3].each_slice(50000000000000000).to_a
pry(948,0x7fff73abb180) malloc: *** mmap(size=400000000000000000)... -
11:55 AM Revision b89e8943 (git): * lib/rake: Update to rake (9237e74), typo fix and remove needless
- private syntax.
* test/rake: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:06 AM Misc #10907: Documentation of Addrinfo.new suggests default family of PF_UNSPEC while in practise it appears to be AF_INET
- It seems I am confusing `afamily` with `pfamily`. The `pfamily` indeed returns `Socket::PF_UNSPEC` by default.
-
10:05 AM Bug #10908: Addrinfo.new appears to ignore the afamily argument when using a String for sockaddr
- @Michael
Hm, good catch, I hadn't thought of that. In that case it indeed looks like I
was misunderstanding the documentation. I'll work on the specs to
confirm or rule this out. -
08:10 AM Revision ca6b1740 (git): * vm_core.h: define vm_svar_index.
- * vm_insnhelper.c, vm.c, compile.c: use vm_svar_index names.
* iseq.h: remove DEFAULT_SPECIAL_VAR_COUNT.
use VM_SVAR_FLIPFLOP_START instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:23 AM Revision 689df4ae (git): compile.c: debug prints to stderr
- * compile.c: send all debug prints to stderr, as ruby_debug_printf
does.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:02 AM Revision 52d810e2 (git): compile.c: fix function name
- * compile.c (APPEND_ELEM): fix function name so that the first
argument will be inserted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:57 AM Revision d8abb9da (git): io.c: wipe away ioctl buffer
- * io.c (setup_narg): wipe away expanded part of buffer to get rid
of revealing uncleaned data. reported by Dongkwan Kim <dkay AT
kaist.ac.kr>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49768 b2dd03c8-39d4-4d8f-98ff-823fe69b... - 03:55 AM Revision 6bb470cf (git): * 2015-02-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:55 AM Revision 194c3907 (git): thread.c: refine enums
- * ext/thread/thread.c: remove unnecessary enum values and add end
of enumerations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:54 AM Revision b84e28d1 (git): io.c: discard buffer always
- * io.c (copy_stream_fallback_body): discard buffer always before
exit or exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:23 AM Feature #10912 (Closed): Add method(s) to IPAddr for determining whether an address is link local
- I was surprised to find that IPAddr has no methods for determining whether an address is a link local address (ie RFC1918 or RFC5735). This would make it easy to blacklist local IP addresses from services.
02/26/2015
-
11:36 PM Feature #10911 (Closed): IPAddr.new should ignore zone identifiers
- Link local IPv6 addresses may have a zone identifier suffix:
fe80::1%lo0
IPAddr.new currently does not ignore the zone identifier and raises IPAddr::InvalidAddressError. -
10:54 PM Bug #10910 (Closed): NoMethodError when opening SSL connection with OpenSSL::SSL::VERIFY_PEER set and anonymous ciphers allowed
- When establishing an SSL connection with peer verification enabled, if the list of allowed ciphers includes an anonymous cipher, and negotiation with the server results in that cipher being used, a NoMethodError is raised with a stack tr...
-
03:56 PM Feature #10882: Provide Levenshtein distance implementation as part of stdlib
- I would like to see this too - Levensthein distance is used a lot in Bioinformatics to calculate the edit distance between two sequences (in ruby, thus, two strings) - three operations are Edit, Replace, Delete (+1, -1, change informatio...
-
02:42 PM Revision 19711c78 (git): io.c: redulce RSTRING_PTR and RSTRING_LEN
- * io.c: replace repeating RSTRING_PTR and RSTRING_LEN with local
variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:42 PM Revision e1aba5bb (git): test_io.rb: separate platform-specific tests
- * test/ruby/test_io.rb: separate platform-specific tests at load
time instead of runtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:42 PM Revision 727f5251 (git): runruby.rb: use File::PATH_SEPARATOR
- * tool/runruby.rb: use File::PATH_SEPARATOR as
DYLD_INSERT_LIBRARIES is colon-separated list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:55 PM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- David Rodríguez wrote:
> Both.
Ok, so let's start with byebug. When it is stopped inside rescue clause (as far as I understand) it doesn't know about the frame "rescue" added because there is no event about it. Am I right? If so h... -
12:28 PM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- Both.
-
09:56 AM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- David Rodríguez wrote:
> After rereading the whole thing, I'm still not clear about the issue...
What exactly is unclear? Why I suggest add a new event or when byebug could miss a frame? -
09:36 AM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- After rereading the whole thing, I'm still not clear about the issue...
-
03:43 AM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- David Rodríguez wrote:
> > Yes, byebug doesn't use real stack size but it means it does not provide complete information about the stack :(
> ...
e.g. byebug is unable to detect additional frame added by rescue thus it will not be able... -
01:06 PM Bug #10908: Addrinfo.new appears to ignore the afamily argument when using a String for sockaddr
- Yorick Peterse wrote:
> When creating a new `Addrinfo` instance the `new` class method appears to ignore
> ...
I have confirmed this on ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
After some investigation, the afam... -
11:36 AM Bug #10908 (Rejected): Addrinfo.new appears to ignore the afamily argument when using a String for sockaddr
- When creating a new `Addrinfo` instance the `new` class method appears to ignore
the 2nd (afamily) argument and always sets it to `AF_INET`. Some examples:
Socket::AF_INET # => 2
Addrinfo.new(Socket.sockaddr_in(80, 'localh... -
12:59 PM Feature #10909: [PATCH 2/2] math.c: Direct casting from Rational to double.
- I can find this proposal makes `Math` faster more than 2 times at most.
$ cat bench.rb
```ruby
require 'benchmark'
puts Benchmark.measure { 10_000_000.times { Math.cos 1 } }
puts Benchmark.measure { 10_000_000.... -
12:42 PM Feature #10909 (Closed): [PATCH 2/2] math.c: Direct casting from Rational to double.
- Hi, this proposal is continued from [Feature 10800](https://bugs.ruby-lang.org/issues/10800) and [Feature 10785](https://bugs.ruby-lang.org/issues/10785)
I'd like to do cast from Rational to double unless Rational#to_f is redefined.
Al... -
12:08 PM Bug #10906 (Feedback): Problem building on Solaris 10 - symbol rb_infinity not found
- Could you please show configure options and environment variables,
and execute the following commands and show results?
% /usr/ccs/bin/nm numeric.o | grep infinity
% /usr/ccs/bin/nm .ext/i386-solaris2.10/date_core.so | grep infini... -
09:49 AM Bug #10906 (Closed): Problem building on Solaris 10 - symbol rb_infinity not found
- Hi,
Solaris 10
gcc 4.8
ruby 2.2.0 current stable
I did configure/make, and it works until it tries to generate rdoc:
Generating RDoc documentation
/export/home/djberge/Downloads/Ruby/ruby-2.2.0/.ext/common/date.rb... -
11:28 AM Misc #10907: Documentation of Addrinfo.new suggests default family of PF_UNSPEC while in practise it appears to be AF_INET
- By the way, this was tested using `ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]` on Arch Linux (`Linux yorickpeterse-macbook-olery 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64 GNU/Linux`).
-
11:27 AM Misc #10907 (Rejected): Documentation of Addrinfo.new suggests default family of PF_UNSPEC while in practise it appears to be AF_INET
- The documentation of Addrinfo.new states the following:
> family is specified as an integer to specify the protocol family such as
> ...
However, the behaviour contradicts this:
Addrinfo.new(Socket.sockaddr_in(80, 'localhost')... -
08:23 AM Bug #10876: Win32API.new fails when an Array is given for the import argument
- ruby_2_2 r49761 merged revision(s) 49750.
-
08:23 AM Revision 35f8beef (git): merge revision(s) 49750: [Backport #10876]
- * ext/win32/Win32API.rb (initialize): accept both a string and an array
for the arguments of the imported function.
reported by Aaron Stone [ruby-core:68208] [Bug #10876] [Fixes GH-835]
git-svn-id: svn+ssh://ci.ruby... -
08:01 AM Revision 68c062b1 (git): configure.in: PRELOADENV
- * configure.in (PRELOADENV): platform specific environment to
pre-load the given shared libraries.
* tool/runruby.rb: use config['PRELOADENV'] instead of hardcoded
LD_PRELOAD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49760... -
01:07 AM Bug #10904: Time.strptime with %s.%N format should not ignore sec_fraction
- I attached an updated patch (strptime-s-n-format-sec-fraction-fix.2.patch) that invert sign of sec_fraction if seconds is negative.
This is the new behavior:
```
TZ=GMT ruby -rtime -e 'p Time.strptime("-3.1", "%s.%N").iso8601(10)'
... -
12:48 AM Revision fefdad10 (git): configure.in: check USDT headers
- * configure.in (RUBY_DTRACE_AVAILABLE): try compile to see if
headers are available too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/25/2015
-
11:36 PM Feature #10844: TracePoint API needs an event to inform about creating/removing a new frame without calling something
- Sure, most of the issues here were related to unbalanced counts of events: https://github.com/deivid-rodriguez/byebug/issues/16#issuecomment-47673108 All of them are already fixed. The only bug yet to be fixed related to this would be th...
-
11:02 PM Feature #8544: OpenURI should open 'file://' URIs
- Here's a naive implementation of support for "file:"
require 'open-uri'
require 'uri'
module URI
class File < Generic
def open(*args, &block)
::File.open(self.path, &block)
end
... -
09:49 PM Bug #10904: Time.strptime with %s.%N format should not ignore sec_fraction
- It seems your patch doesn't consider negative seconds
```
% TZ=GMT ./ruby -Ilib -rtime -e 'p Time.strptime("-3.1", "%s.%N").iso8601(10)'
"1969-12-31T23:59:57.1000000000+00:00"
```
-
06:01 AM Bug #10904 (Closed): Time.strptime with %s.%N format should not ignore sec_fraction
- `Time.strptime` with "%s.%N" format ignores milliseconds, microseconds and nanoseconds.
For example, `Time.strptime("0.123", "%s.%N").tv_usec` returns 0.
Here is the script to reproduce:
```
require 'time'
# sec (this is ok)
t1... -
07:56 PM Feature #10600: [PATCH] Queue#close
- Here is the full patch including tests and updated rdoc comments. diffed from current trunk 25f99aef.
-
07:01 PM Bug #10876: Win32API.new fails when an Array is given for the import argument
- Thank you for the fix! This must still be backported to ruby_2_2 branch!
-
01:08 PM Bug #10876 (Closed): Win32API.new fails when an Array is given for the import argument
- Applied in changeset r49750.
----------
* ext/win32/Win32API.rb (initialize): accept both a string and an array
for the arguments of the imported function.
reported by Aaron Stone [ruby-core:68208] [Bug #10876] [Fixes GH-835] -
05:19 PM Revision 25f99aef (git): fake.rb: rubyarchhdrdir for rubyspec
- * common.mk (test-rubyspec): use fake script to set header
directories.
* template/fake.rb.in (RUBYOPT): set -r option to propagate to
forked processes.
* tool/fake.rb (prehook): set rubyarchhdrdir too.
git-svn-id: svn+ssh://ci.ru... -
05:05 PM Revision 41b2f1ad (git): complex.c: sign of zeros
- * complex.c (rb_nucomp_mul): preserve sign of zeros without NaN by
regularized values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:20 PM Bug #10837: spatting a single element array produces an array instead of a single value for return and next
- Nobuyoshi Nakada wrote:
> It's similar to `return *[1, 2]`.
Please clarify your position, is this about preserving compatibility, or do you really disagree that conceptually an rvalue splat should eliminate the array? - 03:04 PM Revision 694d6f27 (git): * 2015-02-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:04 PM Revision 8b89b2c6 (git): runruby.rb: update pattern
- * tool/runruby.rb: no space may be after RUBY_VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:16 PM Revision 909c4c0f (git): complex.c: specialize
- * complex.c (rb_nucomp_mul): specialize real numbers and purely
imaginary numbers, and get rid of multiplication by zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:25 PM Revision a96c88ec (git): * spec/default.mspec: use default configuration file name.
- https://github.com/ruby/rubyspec/commit/cc69f337b06362e5607ffa3e3ad40ef7494960cf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:22 PM Revision 8e183909 (git): * spec/default.mspec: remove specific version number.
- https://github.com/ruby/rubyspec/commit/7a909e925c1baa9c700bd44af9241aef6e596714
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:08 PM Revision 55d74913 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:08 PM Revision dad59fcd (git): * ext/win32/Win32API.rb (initialize): accept both a string and an array
- for the arguments of the imported function.
reported by Aaron Stone [ruby-core:68208] [Bug #10876] [Fixes GH-835]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:25 AM Misc #10905 (Closed): Additional documentation for Time#getlocal
- Patch to add examples of valid utc_offset formats.
-
09:17 AM Bug #10866 (Closed): A signal handler in signal.c can corrupt the value of errno. - Applied in changeset r49746.
----------
signal.c: preserve errno
* signal.c (sighandler): preserve errno
Patch by Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
[ruby-core:68172] [Bug #10866] -
09:17 AM Revision 25edb07c (git): mkconfig.rb: delete DESTDIR
- * tool/mkconfig.rb (RbConfig): delete default DESTDIR set by
--with-destdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:17 AM Revision 7722b3b6 (git): runruby.rb: follow r49740
- * tool/runruby.rb: follow the change of RUBY_VERSION check in
rbconfig by r49740.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:17 AM Revision be5b7f61 (git): signal.c: preserve errno
- * signal.c (sighandler): preserve errno
Patch by Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
[ruby-core:68172] [Bug #10866]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:31 AM Revision 967f5611 (git): * class.c (clone_method): fixed missing assignment introduced by
- previous commit.
* vm_insnhelper.c (rb_vm_rewrite_cref_stack): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:59 AM Revision f4726dcd (git): dir.c: same encoding to the pattern
- * dir.c (push_pattern, push_glob): make globbed file names same
encoding to the given pattern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:48 AM Revision ca3f71b8 (git): complex.c: move optimization
- * complex.c (f_complex_polar): move optimization for orthogonal
cases from rb_nucomp_mul.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:39 AM Revision 244260d6 (git): bump version to 2.2.1
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:36 AM Revision e04b5d25 (git): merge revision(s) 49740:
- * tool/merger.rb: support 2.1+ versioning scheme.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:35 AM Revision 7d248667 (git): * tool/merger.rb: support 2.1+ versioning scheme.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:27 AM Bug #10885: Segmentation fault when calling refined method in duplicate module
- ruby_2_0_0 r49739 merged revision(s) 49685,49687.
note: omitted the test because `Module#using` is not available on 2.0.0. - 06:26 AM Revision 852d56ff (git): merge revision(s) 49685,49687: [Backport #10885]
- * vm_insnhelper.c (rb_vm_rewrite_cref_stack): copy nd_refinements
of orignal crefs. It fixes segmentation fault when calling
refined method in duplicate module. [ruby-dev:48878] [Bug #10885]
* vm_core.h, clas... -
06:16 AM Bug #9790: Zlib::GzipReader only decompressed the first of concatenated files
- Aleksandar Kostadinov wrote:
> Because gzip format allows multiple entries with filename I'd suggest to support a method like Java's ZipInputStream `getNextEntry()` [1]. This way programmer can choose to read everything as one chunk of ... -
06:02 AM Bug #10826: Refinements make instance_methods(false) return methods of superclasses
- ruby_2_0_0 r49738 merged revision(s) 49222,49480,49493.
-
06:01 AM Bug #10765: Module#remove_method remove refined method entry.
- ruby_2_0_0 r49738 merged revision(s) 49222,49480,49493.
- 06:01 AM Revision 94ec0a64 (git): merge revision(s) 49222,49480,49493: [Backport #10765] [Backport #1010826]
- method.h: UNDEFINED_REFINED_METHOD_P
* method.h (UNDEFINED_REFINED_METHOD_P): macro to tell if refined
original method is defined.
* vm_method.c (remove_method): When remove refined
method, raise a NameError ... -
05:42 AM Bug #10753: Refined class returns unexpected value when call public_method_defined?, protected_method_defined?, private_method_defined?
- ruby_2_0_0 r49737 merged revision(s) 49322.
- 05:42 AM Revision 24bb5756 (git): merge revision(s) 49322: [Backport #10753]
- * vm_method.c (check_definition): Module#public_method_defined?,
Module#private_method_defined?, Module#protected_method_defined?
should not use refinements. [ruby-core:67656] [Bug #10753]
git-svn-id: svn+ssh://ci.r... -
05:33 AM Bug #10825: Fix build error in sdbm under Windows
- ruby_2_0_0 r49736 merged revision(s) 49490,49494.
- 05:33 AM Revision 843aadc3 (git): merge revision(s) 49490,49494: [Backport #10825]
- * ext/sdbm/_sdbm.c: include ruby/ruby.h for PRIdPTRDIFF when a
macro `DEBUG` is defined. based on the patch by Owen Rodley in
[ruby-core:67987]. [Bug #10825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rub... -
05:27 AM Bug #10821: mkmf.rb: Incorrect have_devel? test depending on run order
- ruby_2_0_0 r49735 merged revision(s) 49482,49487.
note: need to require `envutil` because it's not loaded implicitly ruby 2.0.0. - 05:26 AM Revision 5b37cb25 (git): merge revision(s) 49482,49487: [Backport #10821]
- * lib/mkmf.rb (try_cppflags, try_cflags, try_ldflags): get rid of
interference by modifying global variables in have_devel? method.
[ruby-core:67962] [Bug #10821]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches... -
05:21 AM Bug #10694: Improve Thread#value rubydoc
- ruby_2_0_0 r49734 merged revision(s) 49428.
- 05:20 AM Revision 12ba294b (git): merge revision(s) 49428: [Backport #10694]
- * thread.c: Improve documentation for Thread#value
[Bug #10694][ruby-core:67324][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:18 AM Bug #10582: String#chomp strips off more newlines than its documentation states
- ruby_2_0_0 r49733 merged revision(s) 48747.
- 05:18 AM Revision b27d06d3 (git): merge revision(s) 48747: [Backport #10582]
- * string.c: [DOC] Add missing documentation around String#chomp.
Patchby @stderr [ci skip][fix GH-780]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:44 AM Feature #10903 (Closed): [PATCH] Matrix#zip returns a matrix
- Currently:
> x = Matrix.I 2
> x.zip x
=> [[1, 1], [0, 0], [0, 0], [1, 1]] # It's an array!
With the patch:
> x.zip x
=> Matrix[[1, 1], [0, 0], [0, 0], [1, 1]]
And also:
> x.zip x, x # and so on
=... -
02:25 AM Revision 7b65fb29 (git): complex.c: M_PI in VC
- * complex.c (_USE_MATH_DEFINES): needed for M_PI in Microsoft
Visual C.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:06 AM Bug #10899 (Feedback): ruby 2.2.0 darwin crash (in ripper?)
- Could you compile with debugging options?
And, if possible, can it reproduce with the trunk? -
12:20 AM Revision 5ac58b27 (git): insns.def: reverse
- * insns.def (reverse): add new instruction for massign.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:20 AM Revision 2c8cea84 (git): compile.c: unbalanced massign
- * compile.c (compile_massign): adjust stack for unbalanced massign.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e