Activity
From 11/20/2013 to 11/26/2013
11/26/2013
-
11:30 PM Revision cbb56e30 (git): * compile.c: Use rb_fstring() to de-duplicate string literals in code. [ruby-core:58599] [Bug #9159] [ruby-core:54405]
- * iseq.c (prepare_iseq_build): De-duplicate iseq labels and source locations.
* re.c (rb_reg_initialize): Use rb_fstring() for regex string.
* string.c (rb_fstring): Handle non-string and already-fstr arguments.
* vm_eval.c (eval_string_... -
10:43 PM Bug #9151 (Closed): Segfault in Ruby head
- This issue was solved with changeset r43859.
Sam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
hash.c: cut off if recursion
* hash.c (rb_hash): cut off if recur... -
07:26 PM Bug #9151: Segfault in Ruby head
- @nobu running in ubuntu latest x64
-
06:58 PM Bug #9151: Segfault in Ruby head
- its a similar error to #9003
p a.hash # raises Stack Error
p b.hash # Segmentation fault: 11
happens for:
ruby 2.1.0dev (2013-11-26 trunk 43854) [x86_64-darwin12.0]
does not happen for:
ruby 2.1.0dev (2013-09-22 trunk 43011... -
02:06 PM Bug #9151: Segfault in Ruby head
- It's a simple machine stack overflow.
What's your platform? -
10:23 PM Bug #9133: logger rotates log files more than expected
- (13/11/26 19:23), no6v (Nobuhiro IMAI) wrote:
> File.open(@filename, File::WRONLY | File::APPEND) do |lock|
> lock.flock(File::LOCK_EX) # inter-process locking. will be unlocked at closing file
> - ... -
07:23 PM Bug #9133: logger rotates log files more than expected
- Thanks for your suggestion. I feel this simple condition seems looking good.
I updated a patch using `File.identical?`.
diff --git a/lib/logger.rb b/lib/logger.rb
index c70b091..f1c6cbe 100644
--- a/lib/logger.rb
+++ b/lib/logger.... -
12:05 PM Bug #9133: logger rotates log files more than expected
- Probably, you can use `File.identical?` instead of comparison of ino.
-
10:14 PM Revision 599c3a92 (git): * ext/psych/lib/psych.rb: psych version 2.0.2
- * ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:41 PM Revision 079ff69c (git): * ext/psych/lib/psych/scalar_scanner.rb: fix support for negative
- years.
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
* test/psych/test_date_time.rb: test for change.
Fixes: https://github.com/tenderlove/psych/issues/168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43864 b2dd03c8-39d4-4d8... -
08:04 PM Feature #9120 (Closed): [PATCH] Tests for a_call + a_return
- This issue was solved with changeset r43858.
Brandur, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/ruby/test_settracefunc.rb: add tests for a_call/a_retur... -
07:48 PM Revision 725d6f49 (git): * ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME
- strings.
* test/psych/test_date_time.rb: test for change.
Fixes: https://github.com/tenderlove/psych/issues/171
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:56 PM Bug #9159: [patch] use rb_fstring for internal strings
- > if (nd_type(node) == NODE_STR) {
> ...
Some internal strings are no longer hidden with this patch, since the underlying T_STRING object can be shared via the fstr table.
Since the object is already marked immutable (via the frozen ... -
06:54 PM Bug #9159: [patch] use rb_fstring for internal strings
- One example of strings de-duplicated by this patch are iseq labels. Before:
irb(main):001:0> mm = "method_missing"
irb(main):002:0> GC.start; ObjectSpace.each_object(String).select{ |o| o == mm }.size
=> 77
After:
irb(... -
06:30 PM Bug #9159 (Closed): [patch] use rb_fstring for internal strings
- I added rb_fstring wrappers around internal strings generated by iseqs, regexps and eval:
https://github.com/tmm1/ruby/commit/9587fae171835ccf013661ba837f097754f170ef
In our rails app, this reduces the number of long-lived string... -
05:27 PM Revision 4760b982 (git): string.c: fix memsize of frozen shared string
- * string.c (str_new4): copy the original capacity so that memsize of
frozen shared string returns correct size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:20 PM Revision faaec02a (git): * 2013-11-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:20 PM Revision 94f01c55 (git): should not ignore the rest of recursive constructs
- * array.c (rb_ary_hash): should not ignore the rest of recursive
constructs.
* hash.c (rb_hash_hash): ditto.
* range.c (range_hash): ditto.
* struct.c (rb_struct_hash): ditto.
* test/-ext-/test_recursion.rb (TestRecursion): separate fr... -
04:30 PM Bug #9157 (Closed): rb_readlink() calls rb_str_modify_expand() too early
- This issue was solved with changeset r43853.
Maciek, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
file.c: fix buffer overflow
* file.c (rb_readlink): fix buffer... -
03:12 PM Bug #9157 (Closed): rb_readlink() calls rb_str_modify_expand() too early
- If rb_readlink() (file.c) is called on a long symlink, Ruby tends to crash. This is present in -trunk. The problem is that the rb_str_modify_expand() statement is incorrectly placed before the statement 'size*=2'. Here is a patch:
---... -
03:57 PM Bug #8623: Make stable Gem::Specification.files in default .gemspecs
- nagachika (Tomoyuki Chikanaga) wrote:
> I've overlooked this ticket.
> ...
That would be sweet if you can backport. One less patch I need to maintain for Fedora. -
11:10 AM Bug #8623: Make stable Gem::Specification.files in default .gemspecs
- I've overlooked this ticket.
Hello vit, r43587 should be backported to ruby_2_0_0, doesn't it?
-
03:53 PM
Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- unsubscribe
-
03:41 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- matz (Yukihiro Matsumoto) wrote:
> OK, I misunderstood something.
> ...
I discovered the current behavior while playing around, learning about method binding in ruby, not via a bug in my code. I noticed in irb (to_s) that an unbound m... -
02:47 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- OK, I misunderstood something.
In case foo is implemented in Base as in the original example, I admit that it will not cause any serious problem.
But I still have small concern.
If you are sure foo is implemented in Base, you can ... -
02:04 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- to continue, the above:
we are binding a method from Base to an instance of Base, and it's failing. Why? How can that possibly be unsafe? What difference does it make that the method was requested from a subclass of Base? It certai... -
01:26 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- matz (Yukihiro Matsumoto) wrote:
> @rits You haven't read my message above, have you?
> ...
Neither I nor marcandre understood what you were alluding to and asked for a clarification, but you just repeated without clarifying.
You appear... -
12:54 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- @rits You haven't read my message above, have you?
>It is due to implementation limitation of CRuby.
> ...
Matz.
-
12:34 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- matz (Yukihiro Matsumoto) wrote:
> @rits Yes, basically. Method transplanting from modules is already allowed though.
> ...
ok, but you never really explained what purpose this restriction serves, it seems pretty arbitrary and illogical -
12:25 PM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- @rits Yes, basically. Method transplanting from modules is already allowed though.
Matz.
-
03:23 PM Bug #9158 (Closed): bug in rb_readlink() in file.c (fixed)
- Hello,
Here is a cute bug that has existed for a little while in file.c . Ruby will tend to crash when File.readlink() is called on a symlink with a long target. Fix:
--- - 2013-11-25 22:10:59.694183795 -0700
+++ file.c 2013... -
03:07 PM Bug #9106 (Assigned): 'gem install' doesn't copy .so files of ext libs
-
03:05 PM Bug #9106: 'gem install' doesn't copy .so files of ext libs
- This problem is reproduced on ruby 2.1.0-preview2 on Linux/OSX.
'msgpack' gem cannot be loaded (LoadError) and 'ext/msgpack/msgpack.so' (or .bundle) is not copied to 'lib/msgpack/msgpack.so'.
About other library (ex: cool.io), binary f... -
02:25 PM Bug #9156 (Feedback): Not able to get tmp dir to work with Ruby 2.0.0
- It's by a security reason.
What's your platform? -
10:01 AM Bug #9156 (Closed): Not able to get tmp dir to work with Ruby 2.0.0
- I just migrated to Ruby 2.0.0 from 1.9.2 and I'm getting errors when trying to handle files because I can't get tmp directories to work.
If you check this file and look at line 29 you'll see that a check on world_writable? has been ad... -
02:18 PM Bug #9149: rb-appscript crash
- I think I've seen very similar report in these days, but I can't find it now...
7 libruby.2.0.0.dylib 0x00000001027af9ca st_init_strcasetable + 16
8 libruby.2.0.0.dylib 0x00000001026eb9a5 rb_enc_init + 29
9... -
01:43 PM Revision d503381c (git): hash.c: cut off if recursion
- * hash.c (rb_hash): cut off if recursion detected to get rid of stack
overflow. [ruby-core:58567] [Bug #9151]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:40 AM Bug #9119: TestTime#test_marshal_broken_offset broken under MinGW
- I noticed the attached patch has problems with mingw.org 32bit toolchain.
The updated patch is only affects for MINGW64 toolchain.
Refer to https://groups.google.com/forum/#!topic/rubyinstaller/zNNccqwWMsA for more information. -
11:03 AM Revision a4b0c3c2 (git): * test/ruby/test_settracefunc.rb: add tests for a_call/a_return
- by Brandur <brandur@mutelight.org> [Feature #9120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:30 AM Revision be26a374 (git): * common.mk: add useful config "set breakpoint pending on"
- for run.gdb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:26 AM Revision 8ca8d7af (git): * ext/objspace/object_tracing.c (newobj_i): skip class_path if class
- is frozen.
rb_class_path() can modify frozen classes (and causes errors).
This patch is temporary. We need no-modification/no-allocation
class path function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43856 b2dd03c8-39d4-... -
09:42 AM Revision bd26be2b (git): * vm_trace.c: skip "exception check" and "reentrant check (only normal
- events) for internal events.
Reentrant check for internal events are remaining.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:41 AM Revision 5b40cb6a (git): * vm_trace.c: prohibit to specify normal events and internal events
- simultaneously.
I will introduce special care for internal events later.
* ext/-test-/tracepoint/tracepoint.c: test this behavior.
* test/-ext-/tracepoint/test_tracepoint.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@... -
07:45 AM Bug #9155: DelegateClass - ArgumentError: not delegated
- @hsbt yep that's where I found the issue - I thought I'd make it easier to replicate with the above code :)
-
07:34 AM Bug #9155: DelegateClass - ArgumentError: not delegated
- It happened will_paginate too. follow code.
https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/page_number.rb
-
05:33 AM Bug #9155 (Closed): DelegateClass - ArgumentError: not delegated
- Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-...
-
07:30 AM Revision 079009fb (git): file.c: fix buffer overflow
- * file.c (rb_readlink): fix buffer overflow on a long symlink. since
rb_str_modify_expand() expands from its length but not its capacity,
need to set the length properly for each expansion.
[ruby-core:58592] [Bug #9157]
git-svn-id... -
05:27 AM Revision adcd0174 (git): * ext/objspace/objspace_dump.c (dump_append_string_value): Escape
- control characters for strict json parsers.
* ext/objspace/objspace_dump.c (objspace_dump): Document File/IO
output option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:45 AM Revision 0791c940 (git): * ruby_atomic.h: use __atomic builtin functions supported by GCC.
- __sync family are legacy functions now and it is recommended
that new code use the __atomic functions.
http://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
* configure.in: check existence of __atomic functions.
git-svn-... -
02:23 AM Revision 6295a023 (git): * properties: ext/bigdecimal/bigdecimal.gemspec
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:20 AM Revision d473aff6 (git): * properties: ext/bigdecimal/bigdecimal.gemspec
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:57 AM Revision 78acdaca (git): bigdecimal.gemspec: date
- * ext/bigdecimal/bigdecimal.gemspec: revert Gem::Specification#date
for snapshot/release tarballs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:29 AM Bug #9154 (Closed): Support for OpenSSL with MD5 disabled for certificate verification
- =begin
In Fedora Rawhide, there was disable support for verification of certificate, CRL, and OCSP signatures using MD5 in OpenSSL [1, 2], therefore I observe following test errors:
7) Error:
test_sign_and_verify(OpenSSL::TestX5...
11/25/2013
-
11:17 PM Bug #9153 (Closed): IO#flush causes unnecessary fsync on Windows
- On Windows calling IO#flush is effectively identical to calling IO#fsync, i.e. contents of the file are committed to disk platters instead of just being flushed. I traced it back to bug #776 where the original "bug" was worked around by ...
-
10:23 PM Misc #9148 (Closed): Fix broken url in lib/xmlrpc.rb documentation
- This issue was solved with changeset r43844.
Giorgos, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/xmlrpc.rb: [DOC] Fix link to xmlrpc4r site [Bug #9148]
... -
10:54 AM Misc #9148 (Assigned): Fix broken url in lib/xmlrpc.rb documentation
- Thank you for the patch, I will commit this soon!
-
04:52 AM Misc #9148 (Closed): Fix broken url in lib/xmlrpc.rb documentation
-
10:22 PM Bug #9152 (Assigned): Relic documentation in lib/xmlrpc/client.rb
- Thanks for the report!
-
07:49 PM Bug #9152 (Closed): Relic documentation in lib/xmlrpc/client.rb
- In line 80
# Note, that you need the SSL package from RAA installed.
I could provide a fix but I am not sure exactly about the solution. -
09:46 PM Revision 302743d3 (git): * NEWS: Add ObjectSpace.after_gc_{start,end}_hook=
- * ext/objspace/objspace_dump.c: [DOC] catch up dump/dump_all to r43679
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:15 PM Bug #9151 (Closed): Segfault in Ruby head
- Following code causes a segfault in ruby head on x64:
class A
attr_accessor :b
def hash
[b,""].hash
end
end
class B
attr_accessor :a
def hash
[a,""].hash
end
end
a = A.new
b = B.new
a.b = b
... - 07:14 PM Revision c21f62d0 (git): * 2013-11-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:14 PM Revision 04817ae6 (git): * lib/rubygems: Update to RubyGems master 612f85a. Notable changes:
- Fixed installation and activation of git: and path: gems via
Gem.use_gemdeps
Improved documentation coverage
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:12 PM Bug #9119: TestTime#test_marshal_broken_offset broken under MinGW
- After applying above patch, TestTime#test_marshal_broken_offset test passes.
But TestTime#test_marshal_zone test fails on UTC-5 timezone.
I inspected this issue and found that it is a mingw 32-bit compiler specific issue.
The MSVC a... -
05:08 PM Misc #8741: email notification on bugs.ruby-lang.org is broken
- A have newer received any email notification, i do not know why.
-
09:52 AM Misc #8741: email notification on bugs.ruby-lang.org is broken
- Our redmine's notification seems buggy.
Contribution is welcome.
https://github.com/asakusarb/redmine4ruby-lang/issues/28 -
07:43 AM Misc #8741 (Feedback): email notification on bugs.ruby-lang.org is broken
- ok, I restart to investigation.
-
05:24 AM Misc #8741: email notification on bugs.ruby-lang.org is broken
- Why is this closed?
-
03:17 PM Feature #9145: Queue#pop(true) return nil if empty instead of raising ThreadError
- Note that the current behavior allows you to distinguish between a nil in the queue (returns nil) and no value in the queue (raises ThreadError)
-
11:59 AM
Feature #9145: Queue#pop(true) return nil if empty instead of raising ThreadError
- On 11/23/2013 08:30 PM, Glass_saga (Masaki Matsushita) wrote:
> I think we can't change default behavior of Queue#pop(true) because some code expects ThreadError to be raised.
> However, it may be possible to introduce new keyword a... -
09:13 AM Feature #9145: Queue#pop(true) return nil if empty instead of raising ThreadError
- Glass_saga (Masaki Matsushita) wrote:
> I think we can't change default behavior of Queue#pop(true) because some code expects ThreadError to be raised.
> ...
That would work for me. -
02:58 PM Bug #9150 (Closed): Segfault in case statement execution, possibly related to refinements
- This code consistently segfaults in 2.0.0p353:
require 'active_support/all'
case 3600
when 1.week then true
end
This is after `gem install activesupport --version=3.2.13`. The code works fine in 2.0.0p247.
I ran a git bisec... -
01:23 PM Revision c1073725 (git): * lib/xmlrpc.rb: [DOC] Fix link to xmlrpc4r site [Bug #9148]
- Patch by Giorgos Tsiftsis
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:49 AM Bug #9149 (Closed): rb-appscript crash
- a simple script as :
#! /usr/bin/env ruby
# encoding: utf-8
require 'rubygems'
require 'appscript'
include Appscript
selected = app('Finder').selection.get(:result_type => :alias)
selected.each do |file|
puts file.to_s
end... -
10:49 AM Revision 217d37a6 (git): * lib/uri/common.rb: [DOC] typo fixes by @vipulnsward [Fixes GH-456]
- https://github.com/ruby/ruby/pull/456
* lib/uri/generic.rb: [DOC] ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:24 AM Bug #9133: logger rotates log files more than expected
- no6v (Nobuhiro IMAI) wrote:
> After that, the @logdev.dev of process A is "log.0", so #9133 happens.
> ...
Both 9133 above are #9130, sorry.
-
09:23 AM Bug #9133: logger rotates log files more than expected
- After that, the @logdev.dev of process A is "log.0", so #9133 happens.
I wrote a test for this issue, also fixes #9133.
diff --git a/lib/logger.rb b/lib/logger.rb
index c70b091..071594d 100644
--- a/lib/logger.rb
+++ b/lib/logger.... -
05:35 AM Revision b5147423 (git): * ext/bigdecimal/bigdecimal.gemspec: bump BigDecimal to 1.2.3 for
- proper release date in RubyGems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:25 AM Revision a7925537 (git): * ext/bigdecimal/bigdecimal.gemspec: Remove Gem::Specification#date
- We should rely on rubygems to create the date the gem was released
for each version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:11 AM Feature #7511: short-circuiting logical implication operator
- mame (Yusuke Endoh) wrote:
> Please show a more concrete example.
> ...
logical implication is a core operation of boolean algebra, do you also need concrete examples for || ?
ok if you insist, lets say your code needs to perform so... -
04:22 AM Revision 336eb217 (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:18 AM Bug #8418: when all params are optional, named arg hash maps to the first available param
- but isn't it good to have correspondence between keyword args and keyword hash?
when keyword args are used explicitly at invocation (foo a: 1, foo **hash) but the method signature does not use keyword params, it seems natural to bind ... -
04:02 AM Feature #7274: UnboundMethods should be bindable to any object that is_a?(owner of the UnboundMethod)
- is this rejected?
-
01:13 AM Revision 2bfd722d (git): * internal.h: do not use ruby_sized_xrealloc() and ruby_sized_xfree()
- if HAVE_MALLOC_USABLE_SIZE (or _WIN32) is defined.
We don't need these function if malloc_usable_size() is available.
* gc.c: catch up this change.
* gc.c: define HAVE_MALLOC_USABLE_SIZE on _WIN32.
* array.c (ary_resize_capa): do not u...
11/24/2013
-
11:41 PM Feature #9147 (Closed): CSV.new option skip_lines should escape String before convert to Regexp
- After r43823, the following script ignore all lines.
== test_csv.rb ==
```
require "csv"
csv = CSV.new(<<-EOL, skip_lines: ".")
1,foo
.2,bar
3,baz
EOL
p csv.each.to_a # => []
```
I think String value for skip_lines o... -
08:06 PM Revision 84b7d6d5 (git): * test/-ext-/tracepoint/test_tracepoint.rb: catch up GC.stat changes
- at r43835.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:49 PM Revision 30e88ca8 (git): * gc.c: continue to change OLDSPACE -> OLDMALLOC.
- RGENGC_ESTIMATE_OLDSPACE -> RGENGC_ESTIMATE_OLDMALLOC.
* gc.c: add a new major GC reason GPR_FLAG_MAJOR_BY_OLDMALLOC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:24 PM Misc #9146 (Closed): Update documentation for lib/abbrev.rb
-
07:18 PM Revision a87eaf88 (git): * gc.c: change terminlogy "..._num" to "..._slots" about slot opetaion.
- * final_num -> final_slots
* objspace_live_num() -> objspace_live_slots()
* objspace_limit_num() -> objspace_limit_slots()
* objspace_free_num() -> objspace_free_slots()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43836 b2... -
07:08 PM Revision f0600220 (git): * gc.c (gc_stat): add internal information.
- * heap_swept_slot
* malloc_increase
* malloc_limit
* remembered_shady_object
* remembered_shady_object_limit
* old_object
* old_object_limit
* oldmalloc_increase
* oldmalloc_limit
* gc.c (gc_stat): rename names.
* heap_... -
07:01 PM Revision 15bbf34c (git): * test/ruby/test_gc.rb: catch up last commit.
- Now RUBY_GC_OLDSPACE_LIMIT(...) is RUBY_GC_OLDMALLOC_LIMIT(...).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:13 PM Revision c1382f3a (git): * gc.c: change terminology OLDSPACE -> OLDMALLOC.
- (oldspace -> oldmalloc for variable names)
OLDSPACE is confusing because it is not includes slots.
To more clearly, rename such as (oldspace_limit -> oldmalloc_limit).
It is clear that it measures (estimates) malloc()'ed size.
g... - 04:03 PM Revision 9465475e (git): * 2013-11-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:03 PM Revision b25a6494 (git): * internal.h: use __builtin_bswap16() if possible.
- * configure.in: check existence of __builtin_bswap16().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:55 PM Feature #8509: Use 128 bit integer type in Bignum
- I decided to disable __int128 for Bignum because it is not always faster.
__int128 is still be usable by specifying CPPFLAGS for configure as:
configure CPPFLAGS='-DBDIGIT=uint64_t -DSIZEOF_BDIGITS=8 -DBDIGIT_DBL=uint128_t -DBDIGIT_D... -
01:53 PM Feature #9145: Queue#pop(true) return nil if empty instead of raising ThreadError
- "Glass_saga (Masaki Matsushita)" <glass.saga@gmail.com> wrote:
> I think we can't change default behavior of Queue#pop(true) because some code expects ThreadError to be raised.
> However, it may be possible to introduce new keyword ... -
01:30 PM Feature #9145 (Feedback): Queue#pop(true) return nil if empty instead of raising ThreadError
- I think we can't change default behavior of Queue#pop(true) because some code expects ThreadError to be raised.
However, it may be possible to introduce new keyword argument like following:
q = Queue.new
while next_item = q.pop(true... -
12:42 PM Feature #9145 (Open): Queue#pop(true) return nil if empty instead of raising ThreadError
- I propose the non-blocking form of Queue#pop behave like Array#pop and return nil when empty.
Current behavior is to raise a ThreadError, with a message indicating the queue is empty.
For example:
q = Queue.new
begin
loop do... -
01:27 PM Revision bc65d709 (git): * bignum.c (bigxor_int): Apply BIGLO for long in a BDIGIT expression.
- (bigor_int): Ditto.
(bigand_int): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:47 AM Feature #9143 (Closed): Optimize CSV to share hash key objects between rows
-
09:01 AM Feature #9143 (Assigned): Optimize CSV to share hash key objects between rows
-
09:01 AM Feature #9143: Optimize CSV to share hash key objects between rows
- assert_predicate(string_key, :frozen?) will show better message when it fails.
-
08:35 AM Feature #9143: Optimize CSV to share hash key objects between rows
- Thanks nobu, I write too much RSpec lately.
Updated patch attached: I also added freeze in Row#initialize, not sure if both places are needed, or which is better. Please review. -
12:56 AM Feature #9143: Optimize CSV to share hash key objects between rows
- =begin
You can use (({assert_instance_of})) and (({assert_same})).
=end
-
09:15 AM Revision 0224b515 (git): * include/ruby/defines.h (SIZEOF_ACTUAL_BDIGIT): Defined.
- * include/ruby/ruby.h (RBIGNUM_EMBED_LEN_MAX): Use
SIZEOF_ACTUAL_BDIGIT instead of SIZEOF_BDIGITS.
SIZEOF_BDIGITS can be different to sizeof(BDIGIT).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43829 b2dd03c8-39d4-4d8f-98ff-... -
08:14 AM Bug #8560 (Closed): CSV, skip_lines option causes error when passing a string
-
04:08 AM Bug #8560: CSV, skip_lines option causes error when passing a string
- Attached is a patch that converts skip_lines to a Regexp if it's a string. Also see pull request on GitHub: https://github.com/ruby/ruby/pull/455
-
07:17 AM Revision 8835b1fb (git): * ChangeLog: adjust timezone and encoding.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:23 AM
Bug #9144: ptys on AIX version 4 through 7
- Doing more research, the existing ruby code is 99% there.
I got it to work by changing line 248 of ext/pty/pty.c from:
#if defined(I_PUSH) && !defined(__linux__)
to
#if defined(I_PUSH) && !defined(__linux__) && !defined(_AIX... -
04:14 AM Bug #9144 (Closed): ptys on AIX version 4 through 7
- The best way to open a pty on AIX version 4 through 7 is using what they call "AT&T" mode. The steps are to first open "/dev/ptc" which opens the master side. Then to a ttyname on the file descriptor and open the string that is returne...
-
04:51 AM Revision d3354100 (git): * include/ruby/defines.h: Don't use int128_t for Bignum.
- It's not always faster.
* bignum.c: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:50 AM Misc #8741: email notification on bugs.ruby-lang.org is broken
- Maybe it is all about missing SPF record for the server bugs.ruby-lang.org to send emails in name of ruby-lang.org => https://support.google.com/a/answer/33786
-
02:11 AM Feature #9140 (Rejected): Allow each_with_index to get start index
-
02:05 AM Feature #9140: Allow each_with_index to get start index
- There's no bug. Just reject this feature request.
-
01:48 AM
Feature #9099: Train emoji lambda operator
- @mame: OMG there are crazier people than me out there.
-
01:34 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- BertramScharpf (Bertram Scharpf) wrote:
>
> ...
I do not understand what is a matter of taste here. Everybody seems to agree that the only problem is the compatibility. How would the following be less beautiful or clear?
a.so... -
01:31 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- alexeymuranov (Alexey Muranov) wrote:
> In my opinion, it is because code is intended mostly for reading, not for writing.
> ...
That's a matter of taste. In my eyes, this code example is beautiful and clear.
It could be more efficien... -
01:20 AM Revision 4ef2f0d2 (git): * NEWS: Add details about new debugging features and APIs.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:44 AM Revision 895e9b0a (git): * lib/csv.rb: Optimize header hashes by freezing string keys.
- [ruby-core:58510]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:22 AM Revision 34176b02 (git): * ext/objspace/objspace_dump.c: test fixes and win32 compatibility
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11/23/2013
- 11:12 PM Revision 80c4b4b3 (git): * lib/csv.rb: If skip_lines is set to a String, convert it to a Regexp
- to prevent the alternative, which is that each line in the CSV gets
converted to a Regexp when calling skip_lines#match.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:44 PM Feature #9121: [PATCH] Remove rbtree implementation of SortedSet due to performance regression
- Maybe. And I noticed the second preview (not RC though) of 2.1.0 was out, so I'll postpone any change to SortedSet to the next major.
-
10:07 PM Feature #9121: [PATCH] Remove rbtree implementation of SortedSet due to performance regression
- zzak (Zachary Scott) wrote:
> See #7698 and https://github.com/seki/Drip/issues/4
Thank you, but it works now for me.
$ ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
$ gem -v
2.1.11
$ gem install ... -
10:01 PM Feature #9121: [PATCH] Remove rbtree implementation of SortedSet due to performance regression
- I wrote:
> ... and the point of this issue is that we should not depend on it any more, so I'll go ahead anyway.
Oops, I mistook this issue for something else, I just thought that's another reason to ditch the rbtree dependency albei... -
09:53 PM Feature #9121: [PATCH] Remove rbtree implementation of SortedSet due to performance regression
- mame (Yusuke Endoh) wrote:
> knu (Akinori MUSHA) wrote:
> ...
Try it yourself and you'll see. It relies on the internal data structure of RHash at some point of Ruby that lasted until 1.9.3.
> I'm afraid it is a more serious proble... -
09:23 PM Feature #9121: [PATCH] Remove rbtree implementation of SortedSet due to performance regression
- See #7698 and https://github.com/seki/Drip/issues/4
> On Nov 23, 2013, at 6:09 PM, "mame (Yusuke Endoh)" <mame@tsg.ne.jp> wrote:
>
>
> Issue #9121 has been updated by mame (Yusuke Endoh).
>
>
> knu (Akinori MUSHA) w... -
06:09 PM Feature #9121: [PATCH] Remove rbtree implementation of SortedSet due to performance regression
- knu (Akinori MUSHA) wrote:
> rbtree is seemingly broken for the latest version of ruby.
What do you mean? What broke rbtree?
I'm afraid it is a more serious problem than this ticket itself.
--
Yusuke Endoh <mame@tsg.ne.jp> -
05:51 PM Feature #9121: [PATCH] Remove rbtree implementation of SortedSet due to performance regression
- Thanks for your input, guys.
I think I'll drop the optional rbtree version of SortedSet for now, since rbtree is seemingly broken for the latest version of ruby. -
09:23 PM Bug #9142: Ruby 2.0.0 crash in Rake/mysql2
- Can you also include an example to reproduce?
> On Nov 23, 2013, at 4:43 AM, "mlarocque (Michael Larocque)" <mlarocque@prolumina.com> wrote:
>
>
> Issue #9142 has been reported by mlarocque (Michael Larocque).
>
> ----... -
04:43 AM Bug #9142 (Closed): Ruby 2.0.0 crash in Rake/mysql2
- Hi folks,
I've spent the past couple of days trying to decipher a ruby crash. I've googled, etc and followed the 'How to Report bugs in Ruby' page. I'm looking for any advice to try to track this down.
Here's the relevant data:
... -
09:23 PM Feature #9140: Allow each_with_index to get start index
- So is this a doc bug?
> On Nov 23, 2013, at 12:05 AM, "rosenfeld (Rodrigo Rosenfeld Rosas)" <rr.rosas@gmail.com> wrote:
>
>
> Issue #9140 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).
>
>
> By the way, fe... -
12:05 AM Feature #9140: Allow each_with_index to get start index
- By the way, feel free to reject this ticket then. I only created it because I thought it would be backwards compatible.
-
12:02 AM Feature #9140: Allow each_with_index to get start index
- Actually, it explains but I missed an example :) I do example driven development ;)
-
07:55 PM Feature #6857 (Assigned): bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
- The optimization of BigMath.log is remaining.
-
07:52 PM Feature #6857 (Closed): bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
- This issue was solved with changeset r43817.
Rafał, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/lib/bigdecimal/math.rb (BigMath.E): Use BigMath... -
07:03 PM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- fuadksd (Fuad Saud) wrote:
> I don't understand why we would want to be so strict about types on this
> ...
In my opinion, it is because code is intended mostly for reading, not for writing.
a.sort {|a,b| (a.downcase <=> b.downc... -
11:23 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- I don't understand why we would want to be so strict about types on this
case. Having some arbitrary value being returned is useful and it doesn't
hurt any good practices. Ensuring predicates return true or false feels
useless for... -
10:14 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- avit (Andrew Vit) wrote:
> 42.nonzero? #=> 42
> ...
In fact, the first version of nonzero? returned self or false.
Inaba, in [ruby-dev:6417] (22 Mar 1999), suggested a convention about the usage
of nil and false.
* if a me... -
09:14 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- avit (Andrew Vit) wrote:
> Also, why should we return nil in any case? I think the correct return value should be false, not nil. (nil implies an unknown or unavailable answer, but we *do* know if the number is 0 or not.) In other words... -
04:01 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- The history on this is interesting. I would agree with the consistency idea of nonzero = (nil | 1) and nonzero? = (false | true) but I don't know if this could be changed now.
Also, why should we return nil in any case? I think the co... -
12:54 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- mame (Yusuke Endoh) wrote:
> By the way, I investigated the early history of nonzero?.
Very interesting, thank you a lot for reporting it!
Personally I do sometimes use #nonzero? semantics when I want an Integer, but another val... - 04:08 PM Revision 10ca8a4b (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_power): Use FIX2LONG instead
- of FIX2INT to avoid conversion error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:53 PM Feature #9047: Alternate hash key syntax for symbols
- @matz -- sorry, I didn't receive an email notification, so I didn't realize you had responded.
This isn't MRI, I realize, but in RubyMotion this notation would come in handy.
https://github.com/clearsightstudio/ProMotion/issues/345#iss... -
03:44 PM Revision 4efba669 (git): ruby.h: define RBIGNUM_EMBED_LEN_MAX by macros
- * include/ruby/ruby.h (RBIGNUM_EMBED_LEN_MAX): define by macros
defined in defines.h, instead of complex and repeated expression.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:35 PM Revision b28608f7 (git): * 2013-11-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:35 PM Revision 81f4262e (git): * ChangeLog: fix a typo at r43744.
- * gc.c (is_mark_stack_empty): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:25 PM Revision 6bcb8edb (git): * include/ruby/ruby.h (RBIGNUM_EMBED_LEN_MAX): Limit the value to
- less than 8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:34 AM Bug #8995: バイナリデータを文字列として encode! すると readbyte の結果が変化する
- workaroundが入ったようですが、元々UTF-8ではないバイナリデータが壊れないということは、裏を返せばmalformed UTF-8の攻撃文字列も破棄されないということです。
つまり、脆弱性はそのまま残っているわけなので、何らかの対策が必要であろうことだけは警告しておきます。 -
11:09 AM Bug #9119: TestTime#test_marshal_broken_offset broken under MinGW
- Finally, I found the reason why I cannot reproduce the same result with Rubyinstaller test.
The timezone of Rubyinstaller test server is UTC-3 and my timezone is UTC+9.
The localtime(3) overflow check code returns yes for timezone fr... - 10:52 AM Revision b8bbc1a3 (git): * ext/bigdecimal/lib/bigdecimal/math.rb (BigMath.E): Use BigMath.exp.
- [Feature #6857] [ruby-core:47130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 10:49 AM Revision b09f4158 (git): exp
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:41 AM Bug #9124: TestSocket errors in test-all on Arch 64-bit
- No failure on 64bit ubuntu server 13.10 with glibc 2.17 and gcc 4.8.1. Failure only on arch 64bit with glibc 2.18 and gcc 4.8.2
- 10:36 AM Revision 926960b0 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): The signature was
- changed to allow us to pass arguments directly.
* ext/bigdecimal/bigdecimal.c (BigDecimal_div3): Added for the role of
the old BigDecimal_div2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:41 AM Feature #9143: Optimize CSV to share hash key objects between rows
- Note, this can be worked around by doing `csv.header_converters << proc{|h| h.freeze }` but I think there should be some built-in optimization for this.
-
05:05 AM Feature #9143 (Closed): Optimize CSV to share hash key objects between rows
- Currently, when CSV headers are strings, then each row receives a copy of the strings for hash keys. This patch is an optimization to share the same frozen string keys between all rows.
Please verify: in the implementation of `Hash::[... -
04:51 AM Revision c5a919fb (git): * append newline at EOF.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:46 AM Revision fe398529 (git): add NEWS about rb_gc_set_params() and rb_gc_count()
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:58 AM Misc #9136: Deprecated Enumerator.new(object, method) bad for BasicObject
- @nobu I found that out but it seems kind of hackish way to have to do it. (Also a little counter-intuitive since Kernel is not in BasicObject). I ended up with:
def to_enum(meth=:each)
Enumerator.new{ |y| __send__(meth) { |... - 03:40 AM Revision 7ae8d789 (git): fix typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:33 AM Revision dbe9e6a5 (git): * gc.c: fix gloval variable name.
- Now we have following environments (and related variable names).
* RUBY_GC_HEAP_INIT_SLOTS
* RUBY_GC_HEAP_FREE_SLOTS
* RUBY_GC_HEAP_GROWTH_FACTOR (new from 2.1)
* RUBY_GC_HEAP_GROWTH_MAX_SLOTS (new from 2.1)
* obsolete
* RU... -
12:46 AM Revision 65a56437 (git): * marshal.c (w_object): Use HASH_PROC_DEFAULT directly from internal.h
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:29 AM Bug #9141: define_singleton_method creates private method
- This is probably related to #9005.
11/22/2013
-
11:56 PM Feature #9140: Allow each_with_index to get start index
- This is interesting because I noticed the *args in the documentation but it wasn't documented what it means. So I tried it but in a different context (adapting from your example):
%w(foo bar baz).each_with_index("|") {|s, i| p [s, i] ... -
11:28 PM Feature #9140: Allow each_with_index to get start index
- Unfortunately, it is incompatible because "each_with_index" actually accepts arguments and passes them to "each".
$ ruby -rstringio -e 'StringIO.new("foo|bar|baz").each_with_index("|") {|s, i| p [s, i] }'
["foo|", 0]
["bar|", ... -
10:17 PM Feature #9140 (Rejected): Allow each_with_index to get start index
- Is it possible for array.each_with_index(1){|el, i| ... } to be equivalent to array.each.with_index(1){...}?
Sometimes the application-domain index starts with 1, not 0. Currently each_with_index doesn't accept any arguments, so it wo... -
11:50 PM Revision 3d5bf44c (git): * gc.c: Rename heap_pages_swept_num to heap_pages_swept_slots to clarify meaning (number of slots, not pages).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:50 PM Revision cac4da98 (git): * lib/set.rb (class SortedSet): Fix source_location for methods defined via eval.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:59 PM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- I don't think it is possible to change the spec.
Many programs in the wild actually use the behavior.
https://github.com/search?q=nonzero%3F+sort+extension%3Arb&type=Code
By the way, I investigated the early history of nonzero... -
10:19 PM Bug #9141 (Closed): define_singleton_method creates private method
- Hello,
I stumbled upon the following problem:
irb(main):001:0> guy = "Bob"
=> "Bob"
irb(main):002:0> guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
=> :hello
irb(main):003:0> guy.hello
NoMethodError: private met... -
07:34 PM Bug #9139 (Rejected): each_with_index
- Nothing is wrong with index.
Array.new(4, Hash.new) creates an array with four copies of one and the same new hash. Your code is the same as
h = Hash.new
[h, h, h, h].each_with_index{ |item, index| item["index"] = index; item["val... -
07:01 PM Bug #9139: each_with_index
- What's wrong with index? :)
-
06:24 PM Bug #9139 (Rejected): each_with_index
- Whats wrong with index?
> Array.new(4, Hash.new).each_with_index{ |item, index| item["index"] = index; item["value"] = 10*index; p index;}
0
1
2
3
=> [{"index"=>3, "value"=>30},
{"index"=>3, "value"=>30},
{"index"=>3, "value"... -
06:53 PM Revision e8e18cff (git): * lib/rubygems: Update to RubyGems master dcce4ff. Important changes
- in this commit:
Remove automatic detection of gem dependencies files. This prevents a
security hole as described in [ruby-core:58490]
Fixed bugs for installing git gems.
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-... - 06:23 PM Revision 0a5fc9c3 (git): * 2013-11-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:22 PM Revision d56cbe5a (git): * test/ruby/test_settracefunc.rb (test_tracepoint_thread): bugfix.
- Take care about the thread switch between Thread.new and let to
create_thread.
TracePoint's block is sometimes run with create_thread == nil,
so we have to perform Thread check later.
git-svn-id: svn+ssh:/... -
04:52 PM Bug #8818 (Closed): BigDecimal#power
- This issue was solved with changeset r43796.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/bigdecimal.c (BigDecimal_power): Round the resu... -
04:40 PM Bug #9137 (Closed): RUBY_FREE_MIN is not enforced correctly
- This issue was solved with changeset r43795.
Sam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (heap_set_increment): accept minumum additional page number... -
10:00 AM Bug #9137: RUBY_FREE_MIN is not enforced correctly
- sorry, had to squash my patch and remove a printf ... it is now at: https://github.com/SamSaffron/ruby/commit/b60d32ad1da648a305b54859c300927603026db9
-
09:26 AM Bug #9137 (Closed): RUBY_FREE_MIN is not enforced correctly
- At the moment setting RUBY_FREE_MIN does not work as expected:
All it does is cause heap_set_increment to be triggered more aggressively. heap_set_increment totally ignores it. The end result is
sam@ubuntu:~/Source/ruby$ RUBY_FR... -
03:53 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- すいません、常にログしてはだめですね。
```ruby
log_exception $! if $!
``` -
03:46 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- そういう場合は
```ruby
begin
do_something
ensure
log_exception $!
end
```
のほうがいいんじゃないかと。 -
03:34 PM Bug #8730: "rescue Exception" rescues Timeout::ExitException
- そもそも rescue Exceptionを使うのはまずいという意見が出ていますが、
例えば以下ようにフィルタ的に全てのexceptionを補足してそのままraiseするような
利用をしたい場合があり、実際に使われています。
```ruby
begin
do_something
rescue Exception => e
log_exception e
raise e
end
```
libraryコードの中でこのようなコードが... -
03:48 PM Bug #9138 (Closed): make initialize_copy private
- it was discussed with nobu that initialize_copy should be a private method, and any cases where it's public is considered a bug.
when i asked matz he said, it sounds good and ok to experiment with this change in trunk. -
02:44 PM Feature #9113 (Feedback): Ship Ruby for Linux with jemalloc out-of-the-box
-
11:41 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
- It does NOT mean jemalloc has no chance. But we don't discuss performance issue if nobody has a number.
-
11:40 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
- @duerst It is not correct. I and glibc folks are working on several improvement about malloc. Moreover, each allocator has different pros/cons. jemalloc can retrieve some workload better and glibc allocator can retrieve some other worklo...
-
02:02 PM Feature #4990 (Closed): Proposal: Internal GC/memory subsystem API
- Hi. I'm sorry to late reply. Could you make more small proposal? It's difficult to introduce big feature at once.
- 01:31 PM Revision 909d14a1 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_power):
- Round the result value only if the precision is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:39 PM Misc #9136: Deprecated Enumerator.new(object, method) bad for BasicObject
- =begin
FYI, (({Kernel.instance_method(:to_enum).bind(basic_object).call})) can work since 2.0.
=end
-
08:50 AM Revision 95a6be1a (git): * transcode.c (str_transcode0): don't scrub invalid chars if
- str.encode doesn't have explicit invalid: :replace.
workaround fix for see #8995
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:22 AM Revision 9cda3a35 (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:16 AM Revision f29e9257 (git): * include/ruby/intern.h, internal.h: Expose rb_gc_count().
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:07 AM Revision 4fb88821 (git): * ext/bigdecimal/bigdecimal.gemspec: version 1.2.2.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:05 AM Revision 15185e87 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_data_type):
- Use RUBY_TYPED_FREE_IMMEDIATELY only if it is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:56 AM Revision d87a0849 (git): * gc.c (RUBY_ALIAS_FUNCTION_VOID): fix compile error.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:52 AM Revision 2043bb5c (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_power): Round the result value.
- [Bug #8818] [ruby-core:56802]
* test/bigdecimal/test_bigdecimal.rb: Add a test for the above fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:40 AM Revision c91ec25d (git): * gc.c (heap_set_increment): accept minumum additional page number.
- * gc.c (gc_after_sweep): allocate pages to allocate at least
RUBY_HEAP_MIN_SLOTS.
[Bug #9137]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:26 AM Revision 9d2f54b3 (git): * include/ruby/intern.h (rb_gc_set_params): Deprecate
- rb_gc_set_params because it's only used in ruby internal.
* internal.h (ruby_gc_set_params): Declare rb_gc_set_params's
alias function.
* gc.c: ditto.
* ruby.c: use ruby_gc_set_params.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr... -
07:01 AM Misc #8741: email notification on bugs.ruby-lang.org is broken
- I should clarify I am not an admin and have no access/perms to fix this.
However, running an automatic mail notifier can be difficult and
time-consuming because of bounce/invalid-mail processing and the
possibility of ending up... -
06:27 AM Misc #8741: email notification on bugs.ruby-lang.org is broken
- Receiving all of ruby-core is not the same as following certain specific issues that one reported or is interested in.
It's possible to subscribe to specific ruby-core threads on ruby-forum.com.
However, what is the problem with fi... -
05:23 AM Misc #8741: email notification on bugs.ruby-lang.org is broken
- I cannot fix bugs.ruby-lang.org, but as a workaround I suggest
subscribing to ruby-core anyways. ruby-core is basically an
email gateway to bugs.ruby-lang.org (which is good for people like
me who hate using web browsers). -
04:42 AM Misc #8741: email notification on bugs.ruby-lang.org is broken
- this is not fixed, I haven't received any notifications from this bug.
I too don't understand what is being suggested by "re-register". It sounds like you are talking about unsubscribing an resubscribing to a mailing list, presumably... -
06:38 AM Revision 5a02bc4f (git): Update NEWS
- * rdoc and rubygems are preview 2
* objspace is compatible changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:32 AM Revision f229f6e3 (git): test_string.rb: refine assertions
- * test/ruby/test_string.rb: refine assertions, instead of mere assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:55 AM Revision 5ff59381 (git): * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Insert rb_thread_check_ints.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:55 AM Feature #8956: Allow hash members delimited by \n inside of {}
- Bump again. Can we get a thumbs up or down on this?
As a gift, here is a picture of a very happy cat. http://www.freefever.com/stock/comic-pet-desktop-very-happy-cat.jpg
URL:http://www.freefever.com/stock/comic-pet-desktop-very-hap... - 05:54 AM Revision 467c9ec3 (git): * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Fix the inserting points
- of RB_GC_GUARDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:50 AM Revision 4131c29f (git): * ext/bigdecimal/bigdecimal.c: Fix indentation.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:21 AM Revision 5efbf8a4 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:16 AM Revision e1033666 (git): * ext/nkf: merge nkf 2.1.3 2a2f2c5.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:19 AM Revision 533a4c8d (git): merge revision(s) 43780:
- util.c: more precision
* util.c (ruby_strtod): BigMath requires more precision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:18 AM Revision 4cd481f0 (git): merge revision(s) 43780:
- * util.c (ruby_strtod): BigMath requires more precision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@43782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:10 AM Revision cf0efb83 (git): util.c: more precision
- * util.c (ruby_strtod): BigMath requires more precision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:00 AM Revision 46cd2f46 (git): merge revision(s) 43775:
- * util.c (ruby_strtod): ignore too long fraction part, which does not
affect the result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:51 AM Revision 60c29bbb (git): merge revision(s) 43775:
- * util.c (ruby_strtod): ignore too long fraction part, which does not
affect the result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@43776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:43 AM Revision 5cb83d9d (git): util.c: ignore too long fraction part
- * util.c (ruby_strtod): ignore too long fraction part, which does not
affect the result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:17 AM Revision e71bb2c5 (git): openssl/buffering.rb: call super
- * ext/openssl/lib/openssl/buffering.rb (OpenSSL::Buffering#initialize):
initialize of a module should pass arguments to super.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:03 AM Revision a89132ca (git): * test/ruby/test_settracefunc.rb: Ignore events from other threads.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:06 AM Revision 2cf7281c (git): don't call gem method if Test::Unit is defined
- ruby's test-all may define 'gem' method somewhere,
and it cause test failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:38 AM Revision a6ca9f9f (git): * vm.c (ruby_vm_destruct): do not use ruby_xfree() after freeing
- objspace.
* gc.c (ruby_mimfree): added. It is similar to ruby_mimmalloc().
* internal.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:28 AM Bug #9135: ruby 2.0.0p247 [BUG] Bus Error
- This problem may be not Ruby's issue but ruby-debugger's issue.
According to ruby-debugger's README, the support for Ruby 2.0.0 is not enough and is recognised as a known issue.
https://github.com/cldwalker/debugger#known-issues -
12:43 AM Revision d553c518 (git): * test/digest/test_digest.rb: Reverse order of assert_equal
- Reported by @splattael
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 AM Revision 215a7da2 (git): * gc.c: fix build failure on FreeBSD introduced by r43763.
- malloc_usable_size() is defined by malloc_np.h on FreeBSD.
* configure.in: check malloc.h and malloc_np.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11/21/2013
- 11:27 PM Revision 62d6fc31 (git): * 2013-11-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:27 PM Revision 5307d803 (git): * lib/rubygems: Update to RubyGems master 50a8210. Important changes
- in this commit:
RubyGems now automatically checks for gem.deps.rb or Gemfile when
running ruby executables. This behavior is similar to `bundle exec
rake`. This change may be reverted before Ruby 2.1.0 if too many bugs
are fou... -
10:45 PM Misc #9136 (Assigned): Deprecated Enumerator.new(object, method) bad for BasicObject
-
10:24 PM Misc #9136: Deprecated Enumerator.new(object, method) bad for BasicObject
- P.S. This interface for bug reports is buggy (and I see no way to fix what I submitted). Not to offend, but why do it when there is GitHub issues?
-
10:19 PM Misc #9136: Deprecated Enumerator.new(object, method) bad for BasicObject
- Documentation it says:
> ((*In the second, deprecated, form, a generated Enumerator iterates over the given object using the given method with the given arguments passed.
> ...
But #enum_for and #to_enum are not available to subc... -
10:18 PM Misc #9136 (Assigned): Deprecated Enumerator.new(object, method) bad for BasicObject
- =begin
Documentation it says:
In the second, deprecated, form, a generated Enumerator iterates over the given object using the given method with the given arguments passed.
Use of this form is discouraged. Use Kernel#enum_for or... -
09:48 PM Feature #5392 (Closed): Symbol GC
- duplicated #7791
-
09:37 PM Bug #5266 (Closed): BigDecimal#sqrt で、大きな数の平方根の、要求する精度が低いある範囲のとき、結果がおかしい
- This issue was solved with changeset r43764.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/bigdecimal.c (BigDecimal_sqrt): Fix the precis... -
09:11 PM Bug #9135 (Rejected): ruby 2.0.0p247 [BUG] Bus Error
- I've encountered a strange ruby error on my mac while testing code with spec.
Here is the full output I get: https://gist.github.com/RunsFor/6cd51563bc56dd2457d4
As you can see, sometimes it fails, sometimes not. And it crashes onl... -
05:09 PM Bug #9117: 43656 breakes openssl in stalic-ext ruby
- this is the binary I got http://rvm.io/binaries/experimental/osx_106plus_ruby_8879/ruby-2.0.0-p247-nbroken.tar.bz2
it fails also without moving to other machine -
09:50 AM Bug #9117: 43656 breakes openssl in stalic-ext ruby
- As same as #8879, it maybe reproducible only when configure'd with --with-static-linked-ext. But I cannot reproduce too.
$ configure --prefix=${HOME}/ruby-2.0.0-static --with-static-linked-ext
$ make
$ make install
$ ${HOME}/ruby-2... -
04:35 PM Feature #9111: Encoding-free String comparison
- Hanmac (Hans Mackowiak) wrote:
> what about strings with the same encoding, but different content, but that is turned the same?
> ...
The standard practice is NFD("â") == NFD("a" + "^").
To NFD, you can use some libraries.
see also... -
03:28 PM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- BertramScharpf (Bertram Scharpf) wrote:
> The opposite of "zero?" is not "nonzero?" but "notzero?". If the method's
> ...
"Nonzero" is an adjective, opposite of "zero" used as an adjective. "Not zero" is the negation of "zero", so esse... -
09:06 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- =begin
> The opposite of "zero?" is not "nonzero?" but "notzero?". If the method's name was "notzero?", one could call it an inconsistency. "nonzero?" is not a yes-no-question.
Nonzero means "not equal to zero". It means the exact s... -
06:00 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- > I'm not proposing a change to the semantics of Ruby; I'm proposing
> ...
The opposite of "zero?" is not "nonzero?" but "notzero?". If the method's
name was "notzero?", one could call it an inconsistency. "nonzero?" is
not a yes-no-q... -
05:07 AM Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
- =begin
I'm not proposing a change to the semantics of Ruby; I'm proposing a fix to an inconsistency.
The vast majority of predicate methods in Ruby return (({true})) or (({false})). There are approximately 200 such methods in the core l... -
02:19 PM Misc #9128 (Closed): Clarify documentation on difference between Object#clone and Object#dup
- This issue was solved with changeset r43747.
stephen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c: [DOC] Clarify Object#dup vs #clone [Bug #9128]
M... -
01:45 PM Misc #9128 (Assigned): Clarify documentation on difference between Object#clone and Object#dup
-
01:48 PM Bug #9134 (Closed): RUBY_HEAP_MIN_SLOTS does not work correctly in Ruby 2.0
- sam@ubuntu:~/Source$ rbenv shell ruby-head
sam@ubuntu:~/Source$ RUBY_HEAP_MIN_SLOTS=$(( 408*1000 )) ruby -e "puts GC.stat[:heap_length]"
1000
sam@ubuntu:~/Source$ rbenv shell 2.0.0-p247
sam@ubuntu:~/Source$ RUBY_HEAP_MIN_SLOTS=$((... -
01:34 PM Revision b1529a30 (git): * gc.c: RGENGC_CHECK_MODE should be 0.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:42 PM Revision b6f66468 (git): * ext/bigdecimal/bigdecimal.c (VpAlloc): Fix the expr to adjust the size
- of the digit array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:37 PM Revision ff3e5850 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_sqrt): Fix the precision of
- the result BigDecimal of sqrt.
[Bug #5266] [ruby-dev:44450]
* test/bigdecimal/test_bigdecimal.rb: add tests for the above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:41 AM Revision d1d737ae (git): * gc.c: needs malloc.h if malloc_usable_size() is available.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:17 AM Bug #9133 (Closed): logger rotates log files more than expected
- =begin
(This may be a same problem as #9130, but this also happens with 2.0.0 and 1.9.3.)
Logger rotates log files more than expected as follow:
SH> rm -f log*
A>> logger = Logger.new("log", 1, 200)
B>> logger = Logger.new("l... -
09:52 AM Revision 1a2997b2 (git): gc.c: malloc_usable_size
- * gc.c (malloc_usable_size): use _msize() on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:51 AM Revision 7800a4b5 (git): test_tempfile.rb: suppress warnings
- * test/test_tempfile.rb (test_tempfile_is_unlinked_when_ruby_exits): no error should emit.
* test/test_tempfile.rb (test_tempfile_encoding_ascii8bit): remove unused variable.
* test/test_tempfile.rb (test_tempfile_encoding_ascii8bit2):... -
09:49 AM Revision 4305eb8e (git): gc.c: malloc_usable_size
- * gc.c (vm_xrealloc, vm_xfree): use malloc_usable_size() to obtain old
size if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:47 AM Revision bb660740 (git): delegate.rb: check if target is set
- * lib/delegate.rb (SimpleDelegator#__getobj__): target object must be set.
* lib/delegate.rb (DelegateClass#__getobj__): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:28 AM Revision 2958ecae (git): tempfile.rb: get rid of warnings
- * lib/tempfile.rb (Tempfile#initialize): use class method to get rid
of warnings when $VERBOSE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:50 AM Revision 20fa0c26 (git): * gc.c: rename initial_xxx variables to gc_params.xxx.
- They are not only used initial values.
Chikanaga-san: Congratulations on RubyPrize!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:21 AM Revision a638a44b (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:20 AM Revision 047cdaca (git): * gc.c: enable "RGENGC_ESTIMATE_OLDSPACE" option as default.
- Without this option, some application consumes huge memory.
(and there are only a few performance down)
Introduced new environment variables:
* RUBY_GC_HEAP_OLDSPACE (default 16MB)
* RUBY_GC_HEAP_OLDSPACE_MAX (default 128 MB)
*... -
07:53 AM Revision 8a53b575 (git): * ext/digest/bubblebabble/bubblebabble.c: Teach RDoc digest/bubblebabble
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:51 AM Revision 671dbfdd (git): * test/digest/test_digest.rb: Add more tests for digest/bubblebabble
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:33 AM Revision 594eec5b (git): delegate.rb: try private methods after the target
- * lib/delegate.rb (Delegator#method_missing): try private methods defined in
Kernel after the target. [Fixes GH-449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:26 AM Revision d3edb4a8 (git): * test/uri/test_generic.rb (URI#test_merge): Test uri + URI(path)
- in addition to uri + path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:37 AM Revision f0dfcefa (git): * ext/openssl/lib/openssl/buffering.rb: [DOC] Fix HEREDOC comment for
- OpenSSL::Buffering which breaks overview because of RDoc bug
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:35 AM Revision 739881c1 (git): Add link to pull request from r43742
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:33 AM Revision 1df5ebf4 (git): * eval_intern.h (SAVE_ROOT_JMPBUF): workaround for the failure of
- test/ruby/test_exception.rb on Windows.
wrap by __try and __exception statements on mswin to raise SIGSEGV
when EXCEPTION_STACK_OVERFLOW is occurred, because MSVCRT doesn't
handle the exception.
however, (1) mingw-gcc doesn't sup... -
06:03 AM Bug #9101: Reference to unset variable
- Reminder: Not one single reaction for ten days.
-
05:19 AM Revision 6869a65a (git): * object.c: [DOC] Clarify Object#dup vs #clone [Bug #9128]
- Moving existing doc for this comparison to separate section of #dup
Adding examples to document behavior of #dup with Module#extend.
Based on a patch by stevegoobermanhill
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43747 b2d... -
05:07 AM Revision 5d1d1ed2 (git): * gc.c (gc_marks_check): do not dump all refs.
- * gc.c (allrefs_dump_i): fix output format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:01 AM Revision 42a8a2cb (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:57 AM Revision 4c9d6d80 (git): * gc.c: change RGENGC_CHECK_MODE (>= 2) logic.
- Basically, make an object graph of all of living objects before and
after marking and check status.
[Before marking: check WB sanity]
If there is a non-old object `obj' pointed from old object
(`parent') then `parent' or `obj' sh... -
04:44 AM Revision f67be322 (git): * lib/observer.rb: [DOC] Clarify default observer method.
- By @edward [Fixes GH-450] https://github.com/ruby/ruby/pull/450
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:37 AM Revision 1d8d8ff5 (git): * ext/openssl/ossl_engine.c: [DOC] Documentation for OpenSSL::Engine
- This patch is based off work by @vbatts in GH-436 completing the
documentation for this class and its methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:31 AM Revision 7db42e86 (git): * version.h (RUBY_PATCHLEVEL): update patchlevel to 351.
- fix commit miss of r43732. [ruby-core:58444] [Backport #9131]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:46 AM Revision 0c873e97 (git): * ext/openssl/lib/openssl/buffering.rb: Remove unused arguments from
- OpenSSL::Buffering.new [Fixes GH-445]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:31 AM Revision dd1ade22 (git): * 2013-11-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:31 AM Revision 543c99e2 (git): * test/digest/test_digest.rb: Add test for Digest::SHA256.bubblebabble
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11/20/2013
-
03:07 PM Bug #9130: logger continues to write in old log file after rotation
- =begin
We should also compare inode of @filename and @dev, right?
The following patch works fine for me.
diff --git a/lib/logger.rb b/lib/logger.rb
index c70b091..071594d 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -6... -
10:46 AM Bug #9130 (Closed): logger continues to write in old log file after rotation
- =begin
Logger continues to write in old log file after rotation as follow:
$ cat l.rb
require "logger"
logdev = "log"
pids = []
2.times do |n|
pids << fork{
logger = Logger.new(logdev, 10, 300)
5.times do
... - 11:56 AM Revision 4b130154 (git): * tool/instruction.rb : fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:05 AM Revision ced9ad5a (git): * random.c (rand_init): Make it possible to specify arbitrary array
- for init_genrand().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:33 AM Bug #9129: Regression in support for IPv6 literals in URIs with Net::HTTP
- I will add also that this example gives a SocketError (as I would expect it to and is consistent with 1.9.3) on Ruby 2.0:
ruby -rnet/http -e "Net::HTTP.new('[::1]', 80).get('/')"
/Users/ddeleo/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.... -
10:27 AM Bug #9129: Regression in support for IPv6 literals in URIs with Net::HTTP
- Hi Eric,
Earlier ruby versions handled proxy support differently (I'm not very familiar with either the old or new code), so my repro won't show that. The issue is that HTTP#proxy_uri is in the path for all HTTP requests, at least the w... -
08:27 AM Bug #9129 (Assigned): Regression in support for IPv6 literals in URIs with Net::HTTP
- =begin
I can't find a regression here as no prior version has #proxy_uri:
$ ruby19 -v -rnet/http -e 'Net::HTTP.new("::1", 80).proxy_uri'
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1]
-e:1:in `<main>': undef... -
07:04 AM Bug #9129 (Closed): Regression in support for IPv6 literals in URIs with Net::HTTP
- The proxy code in Net::HTTP constructs a URI string by concatenating the address with the port. If the address is IPv6, this is incorrect, the address should be surrounded by square brackets. My code is failing in the Net::HTTP#proxy_uri...
-
09:01 AM Revision cdde8c23 (git): test_exception.rb: enclose hash defininition
- * test/ruby/test_exception.rb: (test_machine_stackoverflow): enclose
hash defininition because SystemStackError raises at line 3 on
FreeBSD, for unknown reason.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43735 b2dd03c8-39d4-4... -
08:40 AM Revision 4e064fb0 (git): * parse.y (rb_gc_mark_symbols): set global_symbols.minor_marked only
- when full_mark is 0.
rb_gc_mark_symbols() (with full_mark == 1) can be called by other
than GC (such as rb_objspace_reachable_objects_from_root()).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43734 b2dd03c8-39d4-4d8f-98ff-82... - 06:25 AM Revision e0df0af1 (git): * 2013-11-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:25 AM Revision a339ca51 (git): * test/ruby/test_thread.rb (test_mutex_unlock_on_trap): extend waiting
- time to invocation of signal handler from 0.01 sec to 0.2 sec.
RubyCI report error on mswin. reported by @unak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:55 AM Revision 14cab325 (git): * ext/json: merge JSON 1.8.1.
- https://github.com/nurse/json/compare/002ac2771ce32776b32ccd2d06e5604de6c36dcd...e09ffc0d7da25d0393873936c118c188c78dbac3
* Remove Rubinius exception since transcoding should be working now.
* Fix https://github.com/flori/json/issues/162...