Project

General

Profile

Activity

From 11/30/2015 to 12/06/2015

12/06/2015

09:40 PM Bug #11779 (Feedback): Module#using does not make sense as a method
1. it can't be called from another method
2. the receiver must be self
3. since refinements are lexically scoped the self receiver must match the currently open class
#3 is particularly curious
```ruby
module Refinement
refin...
bughit (bug hit)
08:48 PM Feature #11588: Implement structured warnings
#3 is a big deal IMHO. Having finer-grained control over which warnings are
shown is long overdue.

On Tue, Oct 13, 2015 at 11:25 AM <[email protected]> wrote:

> Issue #11588 has been reported by Daniel Berger.
>
> ------------...
avdi (Avdi Grimm)
04:21 AM Feature #11588: Implement structured warnings
Matz, warnings may not affect control flow, but I've seen enough real world application logs filled with warnings we couldn't control to dispute your assertion that they don't need to be handled by machines. And right now they can't real... djberg96 (Daniel Berger)
02:27 PM Bug #11778 (Closed): recv_io with mode breaks when klass arg is kind of BasicSocket
Following test show the failure in the second recv_io call.
I was writing additional tests for FD passing when I noticed this.
I'm not sure if BasicSocket.for_fd should do with the mode flag if
we change its arity...
~~~
--- a/t...
normalperson (Eric Wong)
01:18 PM Feature #11664: [PATCH] introduce rb_autoload_value to replace rb_autoload
[email protected] wrote:
> I don't think there is good enough reason to deprecate `rb_autoload`.

Who uses rb_autoload from C extensions?
It is not performance-critical.

I'd like to make the C API smaller so we can have less to ...
normalperson (Eric Wong)
12:30 PM Feature #11664: [PATCH] introduce rb_autoload_value to replace rb_autoload
I don't think there is good enough reason to deprecate `rb_autoload`. nobu (Nobuyoshi Nakada)
12:28 PM Feature #11664 (Closed): [PATCH] introduce rb_autoload_value to replace rb_autoload
Applied in changeset r52909.
----------
introduce rb_autoload_str to replace rb_autoload
rb_autoload_str may be safer by preventing premature GC. It
can also be more efficient by passing a pre-frozen string that
can be deduped using r...
Anonymous
12:43 PM Feature #11777: Change NameError#local_variables to return the list of local variables where the method is raised
Do you want to **add** `NameError#local_variables`? nobu (Nobuyoshi Nakada)
06:15 AM Feature #11777 (Closed): Change NameError#local_variables to return the list of local variables where the method is raised
Sasada-san and I talked about this briefly a few weeks ago, but I also wanted to let others know about this.
This change will make it possible to pull out the list of local variables where the exception is raised without TracePoint. T...
yuki24 (Yuki Nishijima)
12:41 PM Revision 51cb462f (git): test_io_console.rb: wait
* test/io/console/test_io_console.rb (test_getpass): wait slave
thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:28 PM Revision a2e025a7 (git): introduce rb_autoload_str to replace rb_autoload
rb_autoload_str may be safer by preventing premature GC. It
can also be more efficient by passing a pre-frozen string that
can be deduped using rb_fstring. Common autoload callers (e.g.
rubygems, rdoc) already use string literals as th...
Eric Wong
12:13 PM Revision f534bc2e (git): hash.c: fix rubyspec failure
* hash.c (env_fetch): yield coerced string.
* hash.c (env_assoc): return coerced string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:53 AM Bug #11776: dig and custom objects
There is already a spec for this behavior though :)
https://github.com/ruby/rubyspec/blob/master/core/hash/dig_spec.rb
Eregon (Benoit Daloze)
05:18 AM Bug #11776 (Closed): dig and custom objects
Although currently undocumented and untested, it is possible to `dig` objects of any class that implements `dig`:
class Foo
def dig(x, *)
40 + x
end
end
{hello: Foo.new}.dig(:hello, 2) # => 42
...
marcandre (Marc-Andre Lafortune)
10:04 AM Revision dfe923cd (git): * configure.in: add missing x.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:38 AM Revision 80b3529f (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:28 AM Revision 52047a14 (git): * test/webrick/test_cgi.rb (TestWEBrickCGI#test_cgi): gave up the test
of binary path info test on Windows because the test had passed
occasionally as the comment said.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:22 AM Revision 9fc965ee (git): * test/fileutils/test_fileutils.rb: add debug output to investigate the error that occur at random on Windows CI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:30 AM Revision 1ad0d8ec (git): console.c: prompt to stderr
* ext/io/console/console.c (console_getpass): print prompt to
stderr when reading from stdin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:25 AM Revision 187de924 (git): console.c: console_getpass
* ext/io/console/console.c (console_getpass): add IO#getpass
method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:10 AM Bug #11774: OpenSSL::PKey.read produces ArgumentError on invalid passphrases
Seems that OpenSSL doesn't tell what kind failure happened. nobu (Nobuyoshi Nakada)
05:11 AM Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
I feel that either `dig` should be safe only against `nil` somewhere in the digging path (a bit like `&.`), or it's should always safe, even when digging through unexpected objects or indices.
Currently:
{a: 'hello'}.dig(:a, :b...
marcandre (Marc-Andre Lafortune)
04:37 AM Bug #11772: Implicit conversion of Array in String interpolation does not call to_str
~~~ruby
class A
undef :to_s
def to_str
"hello world"
end
end
"#{A.new}"
#NoMethodError: undefined method `to_s' for #<A:0x00000000dbea70>
"" + A.new
# => "hello world"
~~~
Using `+` to call `to_str` feels like...
danielpclark (Daniel P. Clark)
03:13 AM Feature #9451: Refinements and unary & (to_proc)
Is there any update on this feature? In Ruby 2.2.3 I still run into a problem where the unary & can not be used when the method was added with a refinement, such as the following:
```ruby
module Example
refine String do
def p...
justcolin (Colin Fulton)
03:12 AM Revision 33a05904 (git): test_env.rb: escape
* test/ruby/test_env.rb (TestEnv#test_utf8): escape non-ASCII
string with \u explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/05/2015

11:41 PM Revision 8f91b46d (git): * 2015-12-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:40 PM Revision 1f1e3d12 (git): * ext/json/json.gemspec: bump version to json 1.8.3. CRuby already contained
upstream changes.
https://github.com/ruby/ruby/commit/4d059bf9f5f10f3d3088de49fc87e5555db7770d
https://github.com/flori/json/commit/d4c99de78905d96c3f301f48b2c789943bb3f098
* ext/json/lib/json/version.rb: ditto.
git-svn-id: svn+ssh:...
hsbt (Hiroshi SHIBATA)
07:01 PM Bug #11775 (Closed): Backport r52892 (fix the argument order of ATOMIC_SIZE_CAS)
このチケットはバックポート管理用です。
r52892 で修正されている InterlockedCompareExchange64() を使った ATOMIC_SIZE_CAS() の修正部分は 2.0.0〜2.2 も同様なのでバックポート必要そうです。
nagachika (Tomoyuki Chikanaga)
04:54 PM Bug #11774 (Third Party's Issue): OpenSSL::PKey.read produces ArgumentError on invalid passphrases
If we try to read out an RSA encrypted key with an invalid passphrase like so:
```ruby
require 'openssl'
OpenSSL::PKey.read(File.read("#{ENV['HOME']}/.ssh/id_rsa"), 'invalid')
```
We get an argument error:
```
ArgumentError: C...
temikus (Artem Yakimenko)
04:32 PM Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
> I think it should return nil in this case.
Anyone else have an opinion?
colindkelley (Colin Kelley)
04:20 PM Bug #11759: URI breaks with frozen strings
> Outputs:
> ...
That is more significant than I thought. `''.dup` wins.
> No, we shouldn't worry about performance with older versions of Ruby
> ...
Good to have that confirmed. Then we should definitely leave the magic comment at...
colindkelley (Colin Kelley)
10:47 AM Misc #11770: [PATCH] $KCODEへの代入時にwarningが発生することのテストを追加
> 将来的には$KCODEの特別扱いをなしにしたい
$KCODEを削除するという意味でしょうか?
現時点ではwarningがでることをテストしておいてもいいのかなと思っています。
> ...
誤解していました、ありがとうございます。
`test_KCODE_warning`と`test_ignorecase_warning`に分割します。
また細かい修正になりますが、以下のテストの3・4番目のasserttionを`test_ignorecase`に切...
yui-knk (Kaneko Yuichiro)
08:48 AM Revision bf52a8b6 (git): Fix cross build
* tool/fake.rb: Fix cross build when srcdir is an absolute path.
* Makefile.in: PREP dependency is needed when cross build too, not
"-r$(arch)-fake" to be used before created. [Fix GH-1125]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nobu (Nobuyoshi Nakada)
08:33 AM Revision 80bedec6 (git): assertions.rb: fallback encoding error
* test/lib/test/unit/assertions.rb (message): fallback when
outputs from different encoding commands mixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:26 AM Bug #8822 (Closed): Incorrect encoding for ENV in Windows
Applied in changeset r52896.
----------
hash.c: env encoding fallback on Windows
* hash.c (env_str_new, env_path_str_new): make default string
UTF-8 for the case conversion is not possible. [Bug #8822]
* hash.c (get_env_cstr): conve...
nobu (Nobuyoshi Nakada)
08:26 AM Revision 5e3467c4 (git): hash.c: env encoding fallback on Windows
* hash.c (env_str_new, env_path_str_new): make default string
UTF-8 for the case conversion is not possible. [Bug #8822]
* hash.c (get_env_cstr): convert non-ASCII string to UTF-8 string.
* hash.c (ruby_setenv): use wide char version ...
nobu (Nobuyoshi Nakada)
07:58 AM Feature #11537 (Closed): Introduce "Safe navigation operator"
Applied in changeset r52895.
----------
node.c: NODE_QCALL
* node.c (dump_node): dump NODE_QCALL. [Feature #11537]
http://twitter.com/watson1978/status/673042429931446272
nobu (Nobuyoshi Nakada)
07:58 AM Revision 613737ee (git): node.c: NODE_QCALL
* node.c (dump_node): dump NODE_QCALL. [Feature #11537]
http://twitter.com/watson1978/status/673042429931446272
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:33 AM Feature #11773 (Closed): Enumerator::Lazy#grep_v
`Enumerable#grep_v` was introduced in #11049.
But `Enumerator::Lazy` doesn't have the method.
I've attached a patch that adds `grep_v` to `Enumerator::Lazy`.
spiritloose (Jiro Nishiguchi)
05:54 AM Bug #11772 (Closed): Implicit conversion of Array in String interpolation does not call to_str
As (implicitly) requested at ruby-core:71843. duerst (Martin Dürst)
05:32 AM Bug #11772: Implicit conversion of Array in String interpolation does not call to_str
My main point here is that anything that happens within String interpolation is "implicitly" going to be a String. So shouldn't it call `to_str` before `to_s` on anything given?
~~~ruby
class B
def to_str
"Hello from B"
e...
danielpclark (Daniel P. Clark)
05:22 AM Bug #11772 (Closed): Implicit conversion of Array in String interpolation does not call to_str
While providing an example in https://bugs.ruby-lang.org/issues/10930#note-7 I found that the implicit changing of an Array calls to_s without trying to_str first. Isn't String interpolation "implicitly" converting items to strings?
...
danielpclark (Daniel P. Clark)
04:53 AM Feature #10930: Allow splat operator to work for string interpolation
To better demonstrate the pain point here.
~~~ruby
class Example
def method_missing m, *a
puts "Method #{m} called with arguments ", *a
end
end
Example.new.foo :bar, :baz
#Method foo called with arguments
#bar
#baz...
danielpclark (Daniel P. Clark)
03:23 AM Bug #9715: ENV data yield ASCII-8BIT encoded strings under Windows with unicode username
Agreed: although Ruby 2.2 appears to be trying to use locale to determine the encoding for environment vars, it's not producing reasonable results on Windows. (E.g. w32_getenv() in hash.c, and also putenv() in hash.c)
Its current beh...
spatulasnout (B Kelly)
02:57 AM Revision b8172ec9 (git): Makefile.in: set CONFIGURE_TTY directly
* Makefile.in (reconfig-exec-0): set CONFIGURE_TTY without
intermediate variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:56 AM Revision e65f38b9 (git): ruby_atomic.h: fix old value type of ATOMIC_CAS
* ruby_atomic.h (ATOMIC_CAS): old value to be swapped should be
same as the destination. immediate value may need type
promotion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:25 AM Revision c5d2ef80 (git): ruby_atomic.h: fix the argument order
* ruby_atomic.h (ATOMIC_SIZE_CAS): fix the argument order of
InterlockedCompareExchange64. new value and then old value is
the last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:23 AM Revision 4a1b9786 (git): random.c: fix filling size
* random.c (fill_random_seed): fix the size to be filled, not the
size of element, but the whole size of array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/04/2015

11:43 PM Feature #11737: Pass in expression to then block in `case expression`
~~~ruby
case 4 # __case__ = 4
when 4 # 4 === __case__
puts "Success! #{__case__} is what we wanted!" # __case__ not defined! ... where did it go?
end
~~~
danielpclark (Daniel P. Clark)
11:14 PM Bug #11771: unable to pass keyargs to []=
Eric Wong wrote:
> Affects back to 2.0 (when keyword args were introduced),
> ...
The problem here is that the []= syntax compiled into a method dispatch where positional value arg is passed last, after keyargs, something you can't eve...
bughit (bug hit)
08:38 PM Bug #11771: unable to pass keyargs to []=
Affects back to 2.0 (when keyword args were introduced),
so this doesn't seem to be an optimization bug introduced in 2.1/2.2

I'm actually not sure about the specs and if there's some special case
for kwargs interacting with aref/a...
normalperson (Eric Wong)
07:42 PM Bug #11771 (Closed): unable to pass keyargs to []=
```ruby
module Foo
def self.[]=(key, val, option: nil)
end
end
Foo[:key] = 1 # ok
Foo[:key, option: 1] = 1 # wrong number of arguments (3 for 2)
```
if you declare the []= params using *
```ruby
module Bar
...
bughit (bug hit)
09:08 PM Revision 1e2a4575 (git): vm.c: make ruby_vm_*_ptr static
No point in wasting space until we get MVM (if ever).
* vm.c (ruby_vm_verbose_ptr): make static
(ruby_vm_debug_ptr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
05:37 PM Bug #9715: ENV data yield ASCII-8BIT encoded strings under Windows with unicode username
Dāvis Mosāns wrote:
> looks like same as bug #8822 and seems it's still wrong even with latest Ruby 2.2
Yes, I just ran my own set of tests on the latest 2.2 release and I'm getting #<Encoding:IBM437> for ENV entries despite internal...
thomthom (Thomas Thomassen)
04:27 PM Bug #9715: ENV data yield ASCII-8BIT encoded strings under Windows with unicode username
looks like same as bug #8822 and seems it's still wrong even with latest Ruby 2.2 davispuh (Dāvis Mosāns)
02:09 PM Bug #9715: ENV data yield ASCII-8BIT encoded strings under Windows with unicode username
Trying to bump this. Even just some feedback on what an acceptable change would be and I could try to produce a patch. thomthom (Thomas Thomassen)
05:28 PM Revision a560f2a4 (git): compile.c: no extra parentheses
* compile.c (COMPILE_ERROR): remove extra parentheses to enclose
variadic arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:26 PM Revision 650f8905 (git): compile.c: just append compile error message
* compile.c (append_compile_error, prepare_compile_error): simply
append messages to the same SyntaxError exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:59 PM Revision d7d265cd (git): * 2015-12-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:59 PM Revision bc9ac3ab (git): * include/ruby/ruby.h (RB_OBJ_TAINT): follow-up of r52881.
Turn into void expression not to use unexpected result.
Fix "operands have incompatible types" error with
Oracle Solaris Studio 12.x on Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52886 b2dd03c8-39d4-4d8f-98ff-823fe6...
ngoto (Naohisa Goto)
02:31 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Usaku NAKAMURA wrote:
> What can I say now is that we are planning to use UTF-8 as filesystem encoding on Windows at Ruby 3.0.
That's very promising to hear. I'll keep an eye out for that.
Though, Ruby 3 is quite a bit away, isn't i...
thomthom (Thomas Thomassen)
02:15 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
What can I say now is that we are planning to use UTF-8 as filesystem encoding on Windows at Ruby 3.0. usa (Usaku NAKAMURA)
01:35 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Revisiting this issue again. Is there a resolution to what can be done to improve this and still satisfy compatibility concerns? thomthom (Thomas Thomassen)
10:53 AM Revision c949208d (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:52 AM Revision e1f69b39 (git): enc/iso_8859_13.c: Added three missing lower/upper-case
character pairs (from Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:57 AM Revision dddbd864 (git): enc/iso_8859_4.c: Added missing lower/upper-case character
pair (U+014A and U+014B, LATIN CAPITAL/SMALL LETTER ENG)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
07:48 AM Revision cae3905e (git): string.c: should not taint fstring
* string.c (rb_obj_as_string): fstring should not be infected.
re-apply r52872 and fix a typo.
TODO: other frozen strings also may not be.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:32 AM Revision 7eb6942d (git): ruby.h: make flag setting macros void
* include/ruby/ruby.h (RB_FL_{SET,UNSET,REVERSE,INFECT,FREEZE}):
turn into void expressions not to use unexpected results. these
macros were statements till 2.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52881 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
06:21 AM Revision e2cf71a0 (git): * lib/rubygems: Update to RubyGems 2.5.0+ HEAD(fdab4c4).
this version includes #1396, #1397, #1398, #1399
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:01 AM Misc #11770: [PATCH] $KCODEへの代入時にwarningが発生することのテストを追加
どちらかと言えば、将来的には`$KCODE`の特別扱いをなしにしたい気持ちがあるので、ちょっと微妙な印象です。
それと、`$=`は`$KCODE`とは別です。
nobu (Nobuyoshi Nakada)
02:11 AM Misc #11770 (Closed): [PATCH] $KCODEへの代入時にwarningが発生することのテストを追加
testケースがなかったので、追加します。 yui-knk (Kaneko Yuichiro)
05:42 AM Revision e4c15e31 (git): KNOWNBUGS.rb: assertion failure
* KNOWNBUGS.rb: add test for r52872, assertion failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:28 AM Feature #11768: Add a polymorphic inline cache
Aaron Patterson <[email protected]> wrote:
> Probably OT for this list, but do you have sequel installed as a gem?
> If so, can you try running against rubygems master? I've put some
> patches on RubyGems master that *should*...
normalperson (Eric Wong)
03:40 AM Feature #11768: Add a polymorphic inline cache
Thank you for your patch.
Comments:
Implementation:
* Did you run some big application with your patch? it seems to have a bug. cc->aux also depends on cc->call, so that you need to duplicate the aux field.
* Sliding is one goo...
ko1 (Koichi Sasada)
03:08 AM Feature #11768: Add a polymorphic inline cache
On Fri, Dec 04, 2015 at 02:28:57AM +0000, Eric Wong wrote:
> Aaron Patterson <[email protected]> wrote:
> > On Thu, Dec 03, 2015 at 10:51:08PM +0000, Eric Wong wrote:
> > > Perhaps you can simplify the code so the existing mon...
tenderlovemaking (Aaron Patterson)
02:38 AM Feature #11768: Add a polymorphic inline cache
Aaron Patterson <[email protected]> wrote:
> On Thu, Dec 03, 2015 at 10:51:08PM +0000, Eric Wong wrote:
> > Perhaps you can simplify the code so the existing monomorphic cache is
> > just: POLYMORPHIC_CACHE_SIZE == 1
>
> Ye...
normalperson (Eric Wong)
04:10 AM Revision f2532ab8 (git): Revert r52872 "string.c: should not taint fstring"
This reverts commit b887c7c20ab81b50ed7cb8c7db3218c443985d6b.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:38 AM Feature #11769: optimize case / when for `nil`
[email protected] wrote:
> I've attached a patch that adds `nil` to the optimized case such that
> the above code will use `opt_case_dispatch`. My patch defines `===`
> on `nil`, then adds nil to the list of "optimizable lite...
normalperson (Eric Wong)
02:23 AM Revision 8068925a (git): * 2015-12-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:22 AM Revision 0ada28f9 (git): thread.c: name must be ascii-compatible
* thread.c (rb_thread_setname): name must be ascii-compatible, as
pthread APIs do not accept legacy wide char strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:56 AM Bug #11767: Range#to_s and Range#inspect are not infected by the receiver
ruby_2_1 r52875 merged revision(s) 52868. usa (Usaku NAKAMURA)
01:56 AM Revision 0399a3d4 (git): merge revision(s) 52868: [Backport #11767]
* range.c (range_to_s): should be infected by the receiver.
str2 infects by appending. [ruby-core:71811] [Bug #11767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:08 AM Feature #11664: [PATCH] introduce rb_autoload_value to replace rb_autoload
Eric Wong <[email protected]> wrote:
> [email protected] wrote:
> > We used to append `_str` in many cases, IIRC.
>
> So rename rb_autoload_value => rb_autoload_str?

Did that, I'd like to commit the following, soon:

http...
normalperson (Eric Wong)

12/03/2015

11:58 PM Feature #11768: Add a polymorphic inline cache
On Thu, Dec 03, 2015 at 10:51:08PM +0000, Eric Wong wrote:
> [email protected] wrote:
> > I haven't run every benchmark that's checked in, but this patch speeds
> > up the polymorphic call benchmark by about 20%.
>
> Nice!
...
tenderlovemaking (Aaron Patterson)
10:58 PM Feature #11768: Add a polymorphic inline cache
[email protected] wrote:
> I haven't run every benchmark that's checked in, but this patch speeds
> up the polymorphic call benchmark by about 20%.

Nice!

> The down side of this patch is that it increases memory usage bec...
normalperson (Eric Wong)
07:25 PM Feature #11768 (Closed): Add a polymorphic inline cache
Hi,
I've attached a patch that adds a PIC to the existing Mono IC struct.
I haven't run every benchmark that's checked in, but this patch speeds up the polymorphic call benchmark by about 20%. Here is the benchmark *before* my pat...
tenderlovemaking (Aaron Patterson)
11:48 PM Bug #11759: URI breaks with frozen strings
[email protected] wrote:
> Compared to the surrounding code in the full method, would the extra
> ...
64 bytes on ruby 2.3.0dev (2015-12-03 trunk 52872) [x86_64-linux].
~~~ruby
require 'objspace'
iseq = RubyVM::InstructionSequence
...
normalperson (Eric Wong)
05:20 AM Bug #11759: URI breaks with frozen strings
> Yes, but I prefer to avoid String.new because the constant lookup
> ...
Compared to the surrounding code in the full method, would the extra constant lookup make a measurable difference in code size?
> But maybe String.new is sligh...
colindkelley (Colin Kelley)
09:43 PM Feature #11769 (Closed): optimize case / when for `nil`
Hi,
I've noticed that when there are certain values in a case / when statement it gets optimized to a hash lookup. For example, code like this:
~~~
def foo socket
case str = socket.read_nonblock(10, exception: false)
when :...
tenderlovemaking (Aaron Patterson)
07:55 PM Bug #11766: sprintf formatting Rationals as floats produces garbage
Backported into `ruby_2_2` branch at r52874. nagachika (Tomoyuki Chikanaga)
06:33 AM Bug #11766 (Closed): sprintf formatting Rationals as floats produces garbage
Applied in changeset r52869.
----------
sprintf.c: fix garbage inserted with Rational
* sprintf.c (rb_str_format): fix wrong shifting position in
Rational conversion when not at the beginning of the result.
[ruby-core:71806] [Bug #...
nobu (Nobuyoshi Nakada)
12:43 AM Bug #11766: sprintf formatting Rationals as floats produces garbage
Another case:
~~~
"ABC%8.1fDEF" % [1r]
~~~
Expected:
~~~
"ABC 1.0DEF"
~~~
Actual result:
~~~
"ABC \u0000\u0000\u0000DEF"
~~~
heftig (Jan Steffens)
12:39 AM Bug #11766 (Closed): sprintf formatting Rationals as floats produces garbage
Test case:
~~~
"%8.1f %8.1f" % [1r, 1r]
~~~
Expected:
~~~
" 1.0 1.0"
~~~
Actual result:
~~~
" \u0000\u0000\u0000"
~~~
heftig (Jan Steffens)
07:55 PM Revision f50d0b98 (git): merge revision(s) 52869: [Backport #11766]
* sprintf.c (rb_str_format): fix wrong shifting position in
Rational conversion when not at the beginning of the result.
[ruby-core:71806] [Bug #11766]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5...
nagachika (Tomoyuki Chikanaga)
05:57 PM Bug #11767: Range#to_s and Range#inspect are not infected by the receiver
Backported into `ruby_2_2` branch at r52873. nagachika (Tomoyuki Chikanaga)
05:22 AM Bug #11767 (Closed): Range#to_s and Range#inspect are not infected by the receiver
Applied in changeset r52868.
----------
range.c: infected by the receiver
* range.c (range_to_s): should be infected by the receiver.
str2 infects by appending. [ruby-core:71811] [Bug #11767]
nobu (Nobuyoshi Nakada)
04:16 AM Bug #11767 (Closed): Range#to_s and Range#inspect are not infected by the receiver
In general, `to_s` and `inspect` on a tainted object should result a tainted string.
`Range` seems the only exception.
## code
~~~ruby
p ("0".taint.."1").to_s.tainted?
p ("0".."1".taint).to_s.tainted?
p ("0".."1").taint.to_s.tain...
nobu (Nobuyoshi Nakada)
05:56 PM Revision c35409c2 (git): merge revision(s) 52868: [Backport #11767]
* range.c (range_to_s): should be infected by the receiver.
str2 infects by appending. [ruby-core:71811] [Bug #11767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
07:02 AM Revision b887c7c2 (git): string.c: should not taint fstring
* string.c (rb_obj_as_string): fstring should not be infected.
TODO: other frozen strings also may not be.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:39 AM Revision e2977fc8 (git): * lib/scanf.rb: fixed double words typo.
[ci skip][fix GH-1123] Patch by @jwworth
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:38 AM Revision e1d28384 (git): * test/ruby/test_mixed_unicode_escapes.rb: fixed typo.
[fix GH-1122] Patch by @davydovanton
* test/ruby/test_object.rb: ditto.
* test/socket/test_tcp.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:33 AM Revision 77e9edc3 (git): sprintf.c: fix garbage inserted with Rational
* sprintf.c (rb_str_format): fix wrong shifting position in
Rational conversion when not at the beginning of the result.
[ruby-core:71806] [Bug #11766]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52869 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
05:22 AM Revision f7fb4e00 (git): range.c: infected by the receiver
* range.c (range_to_s): should be infected by the receiver.
str2 infects by appending. [ruby-core:71811] [Bug #11767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:08 AM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
[email protected] wrote:
> After r52723, SEGV occurred during Fiddle::TestFunc#test_qsort1 test/fiddle/test_func.rb:83 on Solaris 10 i386 on RubyCI.
>
http://rubyci.s3.amazonaws.com/unstable10x/ruby-trunk/log/20151123T224815Z.fa...
normalperson (Eric Wong)
03:14 AM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
After r52723, SEGV occurred during Fiddle::TestFunc#test_qsort1 test/fiddle/test_func.rb:83 on Solaris 10 i386 on RubyCI.
(r52725) http://rubyci.s3.amazonaws.com/unstable10x/ruby-trunk/log/20151123T224815Z.fail.html.gz
Because this...
ngoto (Naohisa Goto)
04:07 AM Feature #11737: Pass in expression to then block in `case expression`
Nobuyoshi Nakada wrote:
> It reminded me a rejected proposal:
> ...
Is the proposal [ ruby-dev:17615 ] ?
Or other?
wanabe (_ wanabe)
02:57 AM Revision 1c7f7579 (git): * 2015-12-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:57 AM Revision dfe27428 (git): configure.in: split SET_THREAD_NAME
* configure.in: separate SET_CURRENT_THREAD_NAME, which can set
the name of current thread only, and SET_ANOTHER_THREAD_NAME,
which can set the name of other threads.
* thread.c (rb_thread_setname): use SET_ANOTHER_THREAD_NAME. OS X...
nobu (Nobuyoshi Nakada)

12/02/2015

11:36 PM Feature #11747: "bury" feature, similar to 'dig' but opposite
Tsuyoshi Sawada wrote:
> > inferred from the what the user is passing (such as a symbol or string for a hash or an integer for an array)
> ...
I agree. I should clarify that I was assuming the class of the receiver (`data`) was known ...
dam13n (damien sutevski)
09:38 PM Bug #11759: URI breaks with frozen strings
[email protected] wrote:
> Isn't it sufficient to initialize the string buffer with String.new?
Yes, but I prefer to avoid String.new because the constant lookup
requires an inline cache lookup + storage entry in the iseq.
Here's ...
normalperson (Eric Wong)
07:11 AM Bug #11759: URI breaks with frozen strings
Isn't it sufficient to initialize the string buffer with String.new?
I've attached a patch that also includes the magic comment to indicate that this file has been converted.
colindkelley (Colin Kelley)
04:10 AM Bug #11759: URI breaks with frozen strings
Don't mix optimization and incompatible change.
Incompatible change should be separated to another feature ticket.
Don't assume global "mode" for frozen-string-literal: true/false.
This comment is specified for each file.
So, what ...
akr (Akira Tanaka)
03:56 AM Bug #11759: URI breaks with frozen strings
Hey Eric, thanks for the alternative! I was under the impression that we should assume strings to be frozen in this mode but if that's not the case I'd be happy to update the attached patch. davidcelis (David Celis)
01:48 AM Bug #11759: URI breaks with frozen strings
Hi David, a new problem is to_s now returns a frozen string.
This has the potential to break many existing callers of to_s.
Perhaps the following (untested) one-liner is enough?
~~~patch
--- a/lib/uri/generic.rb
+++ b/lib/uri/ge...
normalperson (Eric Wong)
01:30 AM Bug #11759: URI breaks with frozen strings
I just realized that the patch contained many cosmetic updates, so I reverted them to maintain the existing style. Sorry about that. davidcelis (David Celis)
01:18 AM Bug #11759: URI breaks with frozen strings
I've attached a patch you can try out. It will avoid string mutation in URI#to_s, though I'm not sure it's optimal to generate so many new strings in this way. I'm happy to edit as necessary. davidcelis (David Celis)
12:01 AM Bug #11759 (Closed): URI breaks with frozen strings
It appears URI uses String mutation and breaks frozen string mode.
~~~
$ RUBYOPT="--enable-frozen-string-literal" bundle exec rake
/Users/mike/.rubies/ruby-2.3.0-preview1/lib/ruby/2.3.0/uri/generic.rb:1344:in `to_s': can't modify fr...
mperham (Mike Perham)
08:35 PM Bug #11765: Trouble using fiddle to call Fortran from C

Found a bug in my Fortran file, it works now.
lxh37 (Liz Huang)
08:11 PM Bug #11765 (Third Party's Issue): Trouble using fiddle to call Fortran from C

Hi, I tried to transfer my project from Mac to Linux, but have trouble to use fiddle to call
the dynamic library which I generated using same Fortran and C codes I used in Mac. I used same
version of Ruby both in Mac and Linux. To na...
lxh37 (Liz Huang)
01:58 PM Revision 2962b6e0 (git): * vm_core.h, iseq.h: remove rb_iseq_t::variable_body.
Fields in rb_iseq_t::variable_body are contained by
rb_iseq_t::body::mark_ary (hidden Array object).
Index 0 to 2 of mark_ary are reserved by these objects.
* iseq.c: catch up this fix.
* compile.c (rb_iseq_original_iseq): trivial...
ko1 (Koichi Sasada)
09:47 AM Feature #11761: `Hash#default_set` and `Hash#default_proc_set`
Resetting the default value/proc for a Hash multiple times seems a rather special case, could you illustrate why you want to do this?
Hash#merge is not affected by the default values, isn't it?
If it's more like Python setdefault, ...
Eregon (Benoit Daloze)
06:55 AM Feature #11761: `Hash#default_set` and `Hash#default_proc_set`
`Kernel#tap` has been added for such purpose, I think. nobu (Nobuyoshi Nakada)
06:48 AM Feature #11761: `Hash#default_set` and `Hash#default_proc_set`
Or, perhaps there should be just one method `Hash#default_set` that can take either an argument or a block:
h.default_set(default_value)...
h.default_set{default_proc_value}...
sawa (Tsuyoshi Sawada)
06:34 AM Feature #11761 (Rejected): `Hash#default_set` and `Hash#default_proc_set`
I often want to assign a default value or proc to an existing hash `h` and chain method after it. The way I do it is:
Hash.new(default_value).merge(h)...
Hash.new{default_proc_value}.merge(h)...
It would be convenient if I...
sawa (Tsuyoshi Sawada)
09:17 AM Revision afd564ee (git): thread.c: rb_thread_setname on OS X
* thread.c (rb_thread_setname): pthread_setname_np() on OS X takes
the name only and sets the current thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:17 AM Revision bc6e31ee (git): missing.h: __STDC_WANT_LIB_EXT1__
* include/ruby/missing.h: get rid of redefinition of
__STDC_WANT_LIB_EXT1__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:20 AM Revision cfd1157f (git): * iseq.h: introduce ISEQ_ORIGINAL_ISEQ() and
ISEQ_ORIGINAL_ISEQ_ALLOC() macro.
* compile.c: use them to access original iseq buffer.
* iseq.c: ditto.
* vm_core.h: rename iseq field to support this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52862 b2dd03c8-39d4-4d8...
ko1 (Koichi Sasada)
08:11 AM Revision a9c0cf4f (git): * iseq.h: introduce ISEQ_FLIP_CNT_INCREMENT() macro.
* compile.c (iseq_compile_each): use it.
* vm_core.h: rename flip_cnt field to support this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:05 AM Revision 417240b7 (git): * iseq.h: introduce ISEQ_COVERAGE() and ISEQ_COVERAGE_SET() macro.
* compile.c: use them.
* iseq.c: ditto.
* iseq.c (rb_iseq_coverage): added.
* thread.c (update_coverage): use rb_iseq_coverage().
* vm_core.h: rename coverage field name to support this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org...
ko1 (Koichi Sasada)
08:00 AM Revision e86f66b3 (git): encoding.c: make fstring
* encoding.c (enc_name, rb_enc_name_list_i, rb_enc_aliases_enc_i):
make fstring instead of making each copies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:52 AM Bug #11764 (Closed): ext/tk/lib/multi-tk.rb: fix three typos.
* ext/tk/lib/multi-tk.rb: fix three typos. red54 (XIE Zhibang)
07:52 AM Revision 7afefea5 (git): * iseq.h: introduce ISEQ_COMPILE_DATA() macro.
* compile.c, iseq.c: use ISEQ_COMPILE_DATA().
* vm_core.h: rename compile_data field to support this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:38 AM Bug #11763 (Closed): gc.c: fix two typos.
* gc.c: fix two typos. red54 (XIE Zhibang)
07:38 AM Bug #11762 (Closed): Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
If you try to `dig` in an Array using a symbol or string, a `TypeError` exception will be raised:
irb> ['zero', 'one', 'two'].dig(:first)
TypeError: no implicit conversion of Symbol into Integer
from (irb):1:in `dig'
from (...
colindkelley (Colin Kelley)
07:31 AM Revision e917af64 (git): compile.c: fix the element
* compile.c (iseq_set_sequence): fix the element for line number
to rb_compile_bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:27 AM Bug #11760 (Closed): Encoding is tainted unexpectedly by Marshal.load
Applied in changeset r52856.
----------
encoding.c: defer finding encoding
* encoding.c (enc_m_loader): defer finding encoding object not to
be infected by marshal source. [ruby-core:71793] [Bug #11760]
* marshal.c (r_object0): enab...
nobu (Nobuyoshi Nakada)
06:26 AM Bug #11760 (Closed): Encoding is tainted unexpectedly by Marshal.load
By `Marshal.load`ing tainted source, `Encoding` object will be tainted.
## code to reproduce
~~~ruby
e = Encoding::UTF_8
p e.tainted?
p e == Marshal.load(Marshal.dump(e).taint)
p e.tainted?
~~~
## expected results
`false`, `...
nobu (Nobuyoshi Nakada)
07:27 AM Revision 2a66cc55 (git): encoding.c: defer finding encoding
* encoding.c (enc_m_loader): defer finding encoding object not to
be infected by marshal source. [ruby-core:71793] [Bug #11760]
* marshal.c (r_object0): enable compatible loader on USERDEF
class. the loader function is called with ...
nobu (Nobuyoshi Nakada)
06:50 AM Revision a497ed37 (git): marshal.c: lookup and remove
* marshal.c (r_fixup_compat): delete compatible object with
lookup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:48 AM Revision 4bef8cff (git): encoding.c: use rb_check_arity
* encoding.c (enc_dump): use rb_check_arity to just check number
of arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:14 AM Bug #11751: allow --with-libedit to work when a path is specified
ruby_2_1 r52853 merged revision(s) 52795. usa (Usaku NAKAMURA)
06:14 AM Revision 1745d258 (git): merge revision(s) 52795: [Backport #11751]
* ext/readline/extconf.rb: call dir_config("libedit")
if --enable-libedit is spcified. [Bug #11751]
patched by John Hein
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52853 b2dd03c8-39d4-4d8f-98ff-82...
U.Nakamura
06:13 AM Bug #11698 (Closed): Fix a bad double-negative comment
Applied in changeset r52852.
----------
* configure.in: Fixed double negative comments.
[Bug #11698][ruby-core:71506]
hsbt (Hiroshi SHIBATA)
06:12 AM Revision bf072364 (git): * configure.in: Fixed double negative comments.
[Bug #11698][ruby-core:71506]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:56 AM Revision b875b1c3 (git): * test/ruby/test_string.rb: removed non executing tests.
[Misc #11757][ruby-dev:49397]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:40 AM Revision b14f4209 (git): csv.rb: fix encoding
* lib/csv.rb: encoding must be plased at the first line except for
shebang. [fix GH-1116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:36 AM Revision 97fe4014 (git): explicit_bzero.c: fix typos
* missing/explicit_bzero.c (explicit_bzero): fix typos, probably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:28 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
[email protected] wrote:
> https://bugs.ruby-lang.org/issues/11339

For OpenSSL connect_nonblock/accept_nonblock, it seems to be not worth
the effort for a 1% improvement given the overheads of various parts of
OpenSSL. But I'...
normalperson (Eric Wong)
02:23 AM Revision aed0db8b (git): * lib/csv.rb: enable frozen_string_literal.
[fix GH-1116] Patch by @marshall-lee
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
01:50 AM Revision 4a7dedf7 (git): missing.h: __STDC_WANT_LIB_EXT1__
* include/ruby/missing.h: __STDC_WANT_LIB_EXT1__ is necessary for
memset_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:36 AM Revision d1decf0d (git): * ext/bigdecimal/bigdecimal.c: Fix double word typo.
[ci skip][fix GH-1120] Patch by @jwworth
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:55 AM Revision 9849555a (git): explicit_bzero.c: fix comments
* missing/explicit_bzero.c: fix comments. Microsoft Visual Studio
does not provide memset_s() in 12.0 at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:45 AM Revision 0167fc15 (git): string.c: adjust argument qualifier
* string.c (str_make_independent_expand): adjust argument
qualifier to get rid of a VC bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:03 AM Revision bb5bd52a (git): undef for tha case missing.h defines it as macro
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

12/01/2015

10:49 PM Revision ebcefd79 (git): ext/openssl/ossl_ssl.c: hide globals
* ext/openssl/ossl_ssl.c (mSSLExtConfig): make static
(eSSLError): ditto
(ID_callback_state): ditto
(ossl_ssl_ex_vcb_idx): ditto
(ossl_ssl_ex_store_p): ditto
(ossl_ssl_ex_ptr_idx): ditto
* ext/openssl/ossl_ssl.h: remove extern ...
Eric Wong
10:42 PM Revision fd8f7848 (git): missing/explicit_bzero.c (explicit_bzero): fixup r52839
...for compilers with "weak" attribute.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:55 PM Revision 93ce51b0 (git): * 2015-12-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:52 PM Revision 48de9684 (git): * missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unused
for preventing optimization. Inspired from OpenBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:58 PM Feature #11741: Migrate Ruby to Git from Subversion
[email protected] wrote:
> Eric Wong <[email protected]> wrote:
> > The main site's Terms of Service (or any ToS) is still a problem
> > for me. Currently there is no ToS at all on our Redmine instance
> > and registration i...
normalperson (Eric Wong)
06:29 PM Bug #11751: allow --with-libedit to work when a path is specified
Backported into `ruby_2_2` branch at r52838. nagachika (Tomoyuki Chikanaga)
06:28 PM Revision 8458ff3a (git): merge revision(s) 52795: [Backport #11751]
* ext/readline/extconf.rb: call dir_config("libedit")
if --enable-libedit is spcified. [Bug #11751]
patched by John Hein
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52838 b2dd03c8-39d4-4d8f-98ff-82...
nagachika (Tomoyuki Chikanaga)
06:16 PM Bug #11748: [BACKPORT] ripper misses on_tstring_content callback result
Backported into `ruby_2_2` branch at r52837. nagachika (Tomoyuki Chikanaga)
06:15 PM Revision 15cf9331 (git): merge revision(s) 52777: [Backport #11748]
* parse.y (parser_here_document): store dispatched result of
on_tstring_content at the last fragment of a here document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:14 PM Feature #11758 (Closed): Add keyword assignment syntax
I think keyword assignments would be a useful addition, especially since the introduction of keyword arguments
The basic example would be, and is expected to work like required keyword arguments:
~~~ruby
a:, b: = {a: 1, b: 2}
~~~...
elia (Elia Schito)
02:37 PM Revision 8ea55641 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:36 PM Revision 62b511d9 (git): thread.c: reset name
* thread.c (rb_thread_setname): allow to reset thread name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 PM Bug #11756 (Closed): SEGV Thread#inspect when sets the thread#name as a OpenStruct
Applied in changeset r52834.
----------
thread.c: check name argument
* thread.c (rb_thread_setname): check the argument if valid
string. [ruby-core:71774] [Bug #11756]
nobu (Nobuyoshi Nakada)
06:53 AM Bug #11756 (Closed): SEGV Thread#inspect when sets the thread#name as a OpenStruct
How to reproduce:
Run this script:
~~~ruby
require 'ostruct'
thread = Thread.new { 0 }
thread.name = OpenStruct.new
puts thread.inspect
~~~
Result:
~~~
../thread_name.rb:6: [BUG] Segmentation fault at 0x000000000000...
lucasamorim (Lucas Amorim)
02:14 PM Revision c56d9aaa (git): thread.c: check name argument
* thread.c (rb_thread_setname): check the argument if valid
string. [ruby-core:71774] [Bug #11756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:58 PM Misc #11757 (Closed): test_string.rbから不要なコードを削除する
テストでは`pre_1_7_1`に渡したブロックは実行されていないので、削除します yui-knk (Kaneko Yuichiro)
09:55 AM Bug #11755 (Third Party's Issue): ENV['TZ'] timezone
It's the convention. nobu (Nobuyoshi Nakada)
07:02 AM Bug #11755: ENV['TZ'] timezone
TZ database https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
'Etc/GMT+8' corresponding UTC is '-08:00'
@Nobuyoshi Nakada @Matthew Kerwin thanks
[email protected] (Jon Xie)
06:05 AM Bug #11755: ENV['TZ'] timezone
Matthew Kerwin wrote:
> Jon Xie wrote:
> ...
I'm sorry, I didn't describe clearly....
I think timezone should be '+0800'
~~~
ENV['TZ'] = 'GMT+8'; Time.now
=> 2015-12-01 11:35:06 +0800
~~~
And then it was '-0800 '
~~~
...
[email protected] (Jon Xie)
05:46 AM Bug #11755: ENV['TZ'] timezone
Jon Xie wrote:
> What reason is this excuse me?
Presumably you took 12 seconds between the first two commands, and then another 6 between the second and third. The clock keeps on ticking...
phluid61 (Matthew Kerwin)
05:24 AM Bug #11755: ENV['TZ'] timezone
Nobuyoshi Nakada wrote:
> Seems correct output.
> ...
I'm expect:
~~~
ENV['TZ'] = 'GMT+8'; Time.now
=> 2015-12-01 11:35:06 +0800
~~~
What reason is this excuse me?
[email protected] (Jon Xie)
04:22 AM Bug #11755 (Feedback): ENV['TZ'] timezone
Seems correct output.
What do you expect?
nobu (Nobuyoshi Nakada)
03:55 AM Bug #11755: ENV['TZ'] timezone
System: OS X 10.10.5 [email protected] (Jon Xie)
03:49 AM Bug #11755 (Third Party's Issue): ENV['TZ'] timezone
~~~ruby
2.2.3 :001 > Time.now
=> 2015-12-01 11:35:06 +0800
2.2.3 :002 > ENV['TZ'] = 'GMT+8'; Time.now
=> 2015-11-30 19:35:18 -0800
2.2.3 :003 > ENV['TZ'] = 'GMT-8'; Time.now
=> 2015-12-01 11:35:24 +0800
~~~
Why is this so?
[email protected] (Jon Xie)
08:13 AM Revision d58f17f3 (git): string.c: no frozen error at cstr
* string.c (rb_string_value_cstr): should not raise on frozen
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:09 AM Revision 41cbb7f0 (git): cstr.c: split bug_str_cstr_unterm
* ext/-test-/string/cstr.c (bug_str_cstr_unterm): split
unterminating from bug_str_cstr_term.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:01 AM Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints
ruby_2_1 r52831 merged revision(s) 51583,51594,51638. usa (Usaku NAKAMURA)
08:00 AM Revision f81b6694 (git): merge revision(s) 51583,51594,51638: [Backport #11444]
* io.c (rb_io_each_codepoint): read more data when read partially.
[ruby-core:70379] [Bug #11444]
* io.c (rb_io_each_codepoint): raise an exception at incomplete
character before EOF when conversion takes pla...
U.Nakamura
06:20 AM Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
"8 spaces for tab stops" is not enough to make the spec.
When tabs and spaces are mixed, e.g., there are`"\t"*2+"2 tabs"` line and `" "*10+"10 spaces"` line, what should be expected?
1. dedent at the greatest indent column where al...
nobu (Nobuyoshi Nakada)
05:55 AM Revision 8d7d4e33 (git): compile.c: consistent messages
* compile.c (EXPECT_NODE, EXPECT_NODE_NONULL, UNKNOWN_NODE): make
compile bug messages consistent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:25 AM Revision 9fcfaa8d (git): win32.c: fix argument type
* win32/win32.c (dupfd): promote argument type for old VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:13 AM Bug #11753 (Third Party's Issue): Building ruby-git on Arch Linux eats all memory on ./configure
It's a part of standard `AC_INIT()`.
Probably a bug of Arch Linux which `autoconf` does not support yet.
Please report it to [Arch Linux](https://bugs.archlinux.org/) and/or [`autoconf`](http://www.gnu.org/software/autoconf/autoconf....
nobu (Nobuyoshi Nakada)
04:07 AM Revision a1171a95 (git): * ext/digest/sha1/sha1ossl.c: fixed build error introduced at r52797.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:52 AM Revision 24dcb128 (git): explicit_bzero.c: needs windows.h
* missing/explicit_bzero.c, random.c (explicit_bzero):
SecureZeroMemory() needs windows.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:39 AM Revision e84000fc (git): missing.h: explicit_bzero by SecureZeroMemory
* include/ruby/missing.h (explicit_bzero): use SecureZeroMemory on
Windows. assume Windows XP or later at compile time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 AM Revision a73f0f2c (git): parse.y: TAB_WIDTH
* parse.y (TAB_WIDTH, token_info_get_column): add constant for
column calcuation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:24 AM Revision 10bb9e6f (git): missing.h: explicit_bzero by memset_s
* include/ruby/missing.h (explicit_bzero_by_memset_s): call
memset_s directly if available.
* missing/explicit_bzero.c: optimization is not a matter if
memset_s is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52824 ...
nobu (Nobuyoshi Nakada)
01:05 AM Revision ff113d52 (git): configure.in: FUNC_UNOPTIMIZED
* configure.in: check if optimize pragma is supported.
* include/ruby/defines.h (FUNC_UNOPTIMIZED): fallback definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:35 AM Revision 586c1749 (git): * missing/explicit_bzero.c: add a few comment.
* missing/explicit_bzero.c: add disabling optimization on gcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
12:07 AM Revision ed0858a8 (git): fix r52806
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)

11/30/2015

10:53 PM Revision b44b129e (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:53 PM Revision cae8e96b (git): missing/explicit_bzero.c: Fixup r52806
Maybe kosaki had a better version, but CI failure emails are
annoying.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:27 PM Feature #11665: Support nested functions for better code organization
According to #11754, this change seemed to cause an actual issue for some gems.
--
Yusuke Endoh <[email protected]>
mame (Yusuke Endoh)
09:13 PM Bug #11754: Visibility scope is kept after lexical scope is closed
To provide some context, this creates issues with two gems I am using that have dynamically defined methods (that now seems to be incorrectly private in 2.3.0preview1) :
- paranoia (`really_destroy!` method defined in https://github.c...
j15e (Jean-Philippe Doyle)
05:49 PM Bug #11754: Visibility scope is kept after lexical scope is closed
Better example
~~~ruby
module X
def self.test_def(name)
define_method(name) {}
end
test_def :x
private
test_def :y
def pr; end
end
X.test_def :z
X.public_instance_methods
# 2.2.2 => [:x, :y, :z]
...
printercu (Max Melentiev)
05:42 PM Bug #11754 (Closed): Visibility scope is kept after lexical scope is closed
~~~
module X
def self.test_def
def x; end;
end
private
def y; end;
end
X.test_def
X.instance_methods
~~~
In 2.2 it returns [:x], in 2.3-preview1 it returns empty array. Is it ok?
printercu (Max Melentiev)
08:33 PM Revision 487748fa (git): * thread_pthread.c (register_ubf_list): renamed from
add_signal_thread_list.
* thread_pthread.c (unregister_ubf_list): renamed
from remove_signal_thread_list.
* thread_pthread.c (ubf_wakeup_all_threads): renamed from
ping_signal_thread_list.
* thread_pthread.c (ubf_wakeup_thread): rena...
kosaki (Motohiro KOSAKI)
08:33 PM Revision a014e9e8 (git): * test/ruby/test_rand.rb (TestRand#test_default_seed): add
srand case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:32 PM Revision 86af9bba (git): * random.c (InitVM_Random): move Random::DEFAULT initialization
bits to Init_Random_default.
* random.c (Init_Random_default): renamed from Init_Rndom2.
* random.c (Init_RandomSeedCore): renamed from Init_Random.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52816 b2dd03c8-39d4-4d8f-98ff-823fe69...
kosaki (Motohiro KOSAKI)
08:31 PM Revision 99c05fb3 (git): * random.c (Init_RandomSeed): move all Random::DEFAULT
construction bits to Init_RandomSeed2. Random::DEFAULT
and Ruby internal hashes are no longer shared their seed.
* random.c (Init_RandomSeed2): ditto. And, kill evil
rb_obj_reveal() stuff.
* random.c (init_hashseed): add MT argument....
kosaki (Motohiro KOSAKI)
08:31 PM Revision 052535be (git): * random.c (init_hashseed, init_siphash): extract initialize
functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:30 PM Revision 0c4e7767 (git): * configure.in: sort AC_CHECK_HEADERS() by alphabetical order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
08:29 PM Revision 12e059b1 (git): * random.c (init_randomseed): remove "initial" argument. It never
be used from outside of this function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:29 PM Revision 7104a473 (git): * lib/securerandom.rb (SecureRandom::gen_random): use /dev/urandom
for initialize OpenSSL's rand.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:29 PM Revision 07083767 (git): * ext/openssl/ossl_rand.c (ossl_rand_bytes): RAND_bytes could
be return -1 as an error. Therefore, added error handling.
* ext/openssl/ossl_pkey_dsa.c (dsa_generate): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:27 PM Revision 86caaefc (git): * include/ruby/util.h: remove a warning suppression C4723
(potential divide by zero) for VisualC++. It's meaningless.
Before r26197, there is ruby_div0() in this place and it
actually made divide by zero. But now it's just garbage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52809 b2...
kosaki (Motohiro KOSAKI)
08:27 PM Revision f7bd7d6f (git): * random.c: random_raw_seed don't use GRND_NONBLOCK. GRND_NONBLOCK
mean the result might not have an enough cryptic strength and
easy predictable. That's no good for SecureRandom.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:27 PM Revision 9401002f (git): * 2015-12-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:26 PM Revision dea685c7 (git): * missing/explicit_bzero.c: new file. define explicit_bzero.
* common.mk: add a rule for explicit.o.
* configure.in: detect explicit_bzero and memset_s.
* include/ruby/missing.h: add explicit_bzero.
* random.c (init_randomseed): use explicit_bzero() instead of
memset(). memset could be eliminate...
kosaki (Motohiro KOSAKI)
05:53 PM Revision 4e869246 (git): merge partially revision(s) 52391:
explicitly overwrite signal handling
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:36 PM Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints
Backported r51594 into `ruby_2_2` branch at r52804. nagachika (Tomoyuki Chikanaga)
10:51 AM Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints
usa san: Thank you for your notice.
Hmm, I will backport r51594.
nagachika (Tomoyuki Chikanaga)
05:35 PM Revision 4af525b1 (git): merge revision(s) 51594: [Backport #11444]
* io.c (rb_io_each_codepoint): raise an exception at incomplete
character before EOF when conversion takes place. [Bug #11444]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52804 b2dd03c8-39d4-4d8f-98ff-823fe...
nagachika (Tomoyuki Chikanaga)
04:55 PM Bug #11595: Time#utc? and Time#gmt? return misleading results based on $TZ
Yasuhiro Nakamura wrote:
> Anyway I write a patch.
> ...
To me it seems like a bug, since the expectation is that Time#utc? would return true for any time with an offset of 0
davidcelis (David Celis)
01:27 PM Bug #11595: Time#utc? and Time#gmt? return misleading results based on $TZ
Anyway I write a patch.
Is it a bug? or specification?
nkmrya (Yasuhiro Nakamura)
02:45 PM Bug #11753: Building ruby-git on Arch Linux eats all memory on ./configure
Bar Hofesh wrote:
> Hi,
> ...
Ok, using the "echo here and there" debug method I got to the part where it is getting stuck:
~~~sh
echo "Testing 1"
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
_as_can...
bararchy (Bar Hofesh)
02:27 PM Bug #11753 (Third Party's Issue): Building ruby-git on Arch Linux eats all memory on ./configure
Hi,
I'm trying to build Ruby from sources.
What I tried:
1) Build from git using git clone, autoconf, ./configure
2) Build with RVM versions 2.2.1, 2.2-head, 2.1.5, ruby-head
All have failed when reaching the "./configure" ...
bararchy (Bar Hofesh)
01:48 PM Bug #10891: /[[:punct:]]/ POSIX group broken (with string literals?)
Yui NARUSE wrote:
> It follows UTR#18's Standard Recommendation.
> ...
In general, it would be a reasonable choice.
However, in Ruby, the problem is that it's hard to guess the programmers intention from code,
because the behavior ...
shugo (Shugo Maeda)
09:42 AM Bug #10891 (Feedback): /[[:punct:]]/ POSIX group broken (with string literals?)
It follows UTR#18's Standard Recommendation.
http://www.unicode.org/reports/tr18/#punct
naruse (Yui NARUSE)
03:14 AM Bug #10891: /[[:punct:]]/ POSIX group broken (with string literals?)
How about to interpret `[[:punct]]` as `[\p{P}\p{S}]` for unicode strings so that `[[:punct]]` will be a superset of POSIX's one? shugo (Shugo Maeda)
01:44 PM Bug #11752 (Closed): Bug in Rational documentation
Example for the + operator states that 900+1=900.
~~~
Rational(900) + Rational(1) #=> (900/1)
~~~
Seen in
http://ruby-doc.org/core-1.9.2/Rational.html
and
http://ruby-doc.org/core-2.2.3/Rational.html
trygveflathen (Trygve Flathen)
01:25 PM Revision 4eeec486 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:34 PM Bug #11211: defined(foo.bar) calls respond_to_missing? everytime
ruby_2_1 r52802 merged revision(s) 50737. usa (Usaku NAKAMURA)
12:34 PM Revision 99bcf86e (git): merge revision(s) 50737: [Backport #11211]
* insns.def (defined): skip respond_to_missing? when
a method is available.
[Bug #11211]
* test/ruby/test_defined.rb: add a test for this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@...
U.Nakamura
12:28 PM Revision 7caf8a50 (git): * ext/digest/rmd160/rmd160.c: fixed commit mistake at r52797.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
12:20 PM Bug #11738: ARGF.readpartial raises a wrong exception
ruby_2_1 r52800 merged revision(s) 52745. usa (Usaku NAKAMURA)
12:19 PM Revision 6602bc19 (git): merge revision(s) 52745: [Backport #11738]
* io.c (argf_getpartial): should not resize str if the second
argument is not given.
[ruby-core:71668] [Bug #11738]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52800 b2dd03c8-39d4-4d8f-98ff-823fe69...
U.Nakamura
12:17 PM Bug #11401: Net::HTTP SSL session resumption does not send SNI
ruby_2_1 r52799 merged revision(s) 52682. usa (Usaku NAKAMURA)
12:17 PM Revision 041afd1c (git): merge revision(s) 52682: [Backport #11401]
* lib/net/http.rb: set hostname before call ossl_ssl_set_session.
[Bug #11401][ruby-core:70152][fix GH-964] Patch by @mkarnebeek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52799 b2dd03c8-39d4-4d8f-98ff-823f...
U.Nakamura
12:15 PM Bug #11724 (Open): SNIでsessionが無効だったときにhostnameがサーバに送られない
むしろ ext/openssl においては問題が解決してないわけなのでopenにしておこうかと。 usa (Usaku NAKAMURA)
12:12 PM Bug #11416: TestEncodingConverter#test_newline_option fails under GC stress
ruby_2_1 r52798 merged revision(s) 51488,51489. usa (Usaku NAKAMURA)
12:12 PM Revision 1237e7a5 (git): merge revision(s) 51488,51489: [Backport #11416]
* transcode.c (rb_econv_open0): rb_econv_t::source_encoding_name
and rb_econv_t::destination_encoding_name should refer static
strings always or NULL. [ruby-core:70247] [Bug #11416]
git-svn-id: svn+ssh://ci.ruby-la...
U.Nakamura
12:08 PM Bug #3231: Digest Does Not Build
ruby_2_1 r52797 merged revision(s) 52694. usa (Usaku NAKAMURA)
12:08 PM Revision cb826f3f (git): merge revision(s) 52694: [Backport #3231]
* ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid
includeing ext/digest/extconf.h. [Bug #3231]
https://msdn.microsoft.com/library/36k2cdd4.aspx
* ext/digest/*/extconf.rb: remove ext/digest from i...
U.Nakamura
11:56 AM Bug #11722: Backport r52683 (Net::HTTP fix bug with "Expect: 100-continue" header)
ruby_2_1 r52796 merged revision(s) 52683,52684. usa (Usaku NAKAMURA)
11:56 AM Bug #11719: Backport request r52683
ruby_2_1 r52796 merged revision(s) 52683,52684. usa (Usaku NAKAMURA)
11:56 AM Revision 0f5bf067 (git): merge revision(s) 52683,52684: [Backport #11719] [Backport #11722]
* lib/net/http.rb: Fixed regression for Net::HTTP::PUT with "Expect-100"
header.
* test/net/http/test_http.rb: added test.
* Added missing reference of GitHub
header. [fix GH-949]
git-svn-id: svn+s...
U.Nakamura
11:48 AM Feature #11741: Migrate Ruby to Git from Subversion
Em 28-11-2015 20:25, Eric Wong escreveu:
> [email protected] wrote:
> ... There's a bunch of Redmine-specific tools the maintainers use (I
> haven't checked in depth); and as I said before: Redmine works with
> git, too. So perha...
rosenfeld (Rodrigo Rosenfeld Rosas)
01:19 AM Feature #11741: Migrate Ruby to Git from Subversion
GitLab Inc. would be very happy to support this effort in any way possible. We can help with the conversion, add features to GitLab of anything else needed.
Eric Wong wrote:
> [email protected] wrote:
> ...
1. Is this about the ter...
sytse (Sytse Sijbrandij)
12:38 AM Feature #11741: Migrate Ruby to Git from Subversion
[email protected] wrote:
> Eric, would you want to try Gitlab out with `w3m` before the
> switch?

The main site's Terms of Service (or any ToS) is still a problem
for me. Currently there is no ToS at all on our Redmine instance
...
normalperson (Eric Wong)
09:48 AM Bug #11751 (Closed): allow --with-libedit to work when a path is specified
Applied in changeset r52795.
----------
* ext/readline/extconf.rb: call dir_config("libedit")
if --enable-libedit is spcified. [Bug #11751]
patched by John Hein
naruse (Yui NARUSE)
04:47 AM Bug #11751: allow --with-libedit to work when a path is specified
See also https://svnweb.freebsd.org/ports/head/lang/ruby22/files/patch-ext_readline_extconf.rb?view=markup&pathrev=400142 rbj (John Hein)
04:40 AM Bug #11751 (Closed): allow --with-libedit to work when a path is specified
Adding dir_config("libedit") to ext/readline/extconf.rb allows the --with-libedit configuration knob to take a path (e.g., --with-libedit=/opt/libedit).
Patch against trunk attached.
rbj (John Hein)
09:48 AM Revision 6db72c01 (git): * ext/readline/extconf.rb: call dir_config("libedit")
if --enable-libedit is spcified. [Bug #11751]
patched by John Hein
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:11 AM Revision 794fb410 (git): parse.y: dispatch heredoc end
* parse.y (ripper_dispatch_heredoc_end): at the end of here
document, the terminator always should present. has_scan_event
is true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:36 AM Bug #11750: SEGV with Enumerator, yield and proc.
By bisecting, it raises `SytemStackError` or segfaults since r51243.
~~~
* vm_core.h: remove blockprocval field from rb_proc_t and rb_binding_t.
Instead of this field, mark given block in Proc at rb_env_t::env.
~~~
`Enumerator...
nobu (Nobuyoshi Nakada)
04:44 AM Revision 4c6dd77d (git): vm_eval.c: make dsym
* vm_eval.c (rb_throw, rb_catch): get rid of making static IDs,
use dynamic symbos instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:44 AM Revision 51964bf9 (git): symbol.c: rb_sym_intern
* symbol.c (rb_sym_intern): rename from rb_cstr_intern and add
variants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom