Project

General

Profile

Activity

From 04/08/2016 to 04/14/2016

04/14/2016

09:56 PM Bug #12285 (Closed): Date.iso8601 does not properly handle partial date strings
> For reduced accuracy, any number of values may be dropped from any of the date and time representations, but in the order from the least to the most significant. For example, "2004-05" is a valid ISO 8601 date, which indicates May (the... backus (John Backus)
09:51 PM Misc #12283: Obsolete ChangeLog and commit message in Git-style
naruse@airemix.jp wrote:
> How about Git-style commit message instead of ChangeLog?

Yes please :)

The current changelog format is a very annoying barrier to
making commits; especially for applying patches from others.

> Matz ...
normalperson (Eric Wong)
06:57 PM Misc #12283 (Closed): Obsolete ChangeLog and commit message in Git-style
How about Git-style commit message instead of ChangeLog?
## Proposal
After we reach the consensus
1. Write a commit message in Git-style.
* Line 1: summary of commit (around 80 characters or less, <50 is better)
* Line 2...
naruse (Yui NARUSE)
09:41 PM Revision 336ab285 (git): fix commit miss
* ChangeLog: remove duplicate entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:16 PM Bug #12284 (Closed): io-console gem >= 0.4.3 breaks on Windows ruby < 2.2.0 due to needing rb_sym2str
Ruby 2.1.x users (on Windows) who do "gem update" and try to build io-console 0.4.3 or later fail at link-time.
rb_sym2str was first used in console.c in r50427
rb_sym2str was implemented in ruby 2.20
Excerpt of build failure:
...
hobart (Jon Bailey)
04:19 PM Revision eb4b2b96 (git): * 2016-04-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:19 PM Revision 32959b0b (git): add assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:40 PM Revision ad2f660e (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:57 PM Revision c0e3b20e (git): add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:56 PM Revision df941c91 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:48 PM Revision 76426c7e (git): * array.c (rb_ary_sum): Support the optional argument, init, and block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:43 PM Bug #12181: ブロックがたくさんあるファイルを編集するとruby-modeが重い
http://svn.ruby-lang.org/repos/ruby/trunk/misc/ruby-mode.el と http://svn.ruby-lang.org/repos/ruby/trunk/misc/ruby-electric.el を一緒に使っていました。
okkez (okkez _)
12:27 PM Bug #12270: 2.3.0/2.4.0 で stackprof を実行すると SEGV することがある
fixed by stackprof v0.2.9. naruse (Yui NARUSE)
10:06 AM Revision af24631a (git): * lib/irb/ext/save-history.rb: suppress warning: method redefined;
discarding old save_history=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:09 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
Nobuyoshi Nakada wrote:
> It raises a `TypeError`.
I think it is a typographical error of
~~~ruby
places.dig :countries, :ontario # => nil
places.dig! :countries, :ontario # => KeyError: Key not found: :ontario
~~~
sawa (Tsuyoshi Sawada)
07:22 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
Nobuyoshi Nakada wrote:
> It raises a `TypeError`.
So you have the method which raises an exception already.
nobu (Nobuyoshi Nakada)
07:21 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
I'm negative because:
1. This example is wrong.
~~~ruby
places.dig :countries, :canada, :ontario # => nil
~~~
It raises a `TypeError`.
2. It feels curious to me that the method with '!' raises an exception...
nobu (Nobuyoshi Nakada)
06:56 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
This makes sense only within limited cases, i.e. when the same key never appears at different depths. For example, if you get an error:
~~~ruby
hash.dig!(:foo, :bar, :foo) # => KeyError: Key not found: :foo
~~~
you cannot tell wh...
sawa (Tsuyoshi Sawada)
06:35 AM Feature #12282 (Open): Hash#dig! for repeated applications of Hash#fetch
A new feature for your consideration: #dig! which is to #fetch as #dig is to #[]. For me and maybe many others, Hash#fetch is used much more than Hash#[]. And traversing multiple fetches isn't very convenient nor Ruby-like, e.g.: places.... robb (Robb Shecter)
05:58 AM Revision 31a3a862 (git): tkutil.c: ary can be nil
* ext/tk/tkutil/tkutil.c (tk_hash_kv): the third argument can be
nil not only an Array. reported by @windwiny at
https://github.com/ruby/ruby/commit/cdaa94e#commitcomment-17096618
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
nobu (Nobuyoshi Nakada)
05:29 AM Bug #12279 (Closed): cont.c: wrong _MSC_VER check
Applied in changeset r54574.
----------
cont.c: wrong _MSC_VER check
* cont.c (fiber_initialize_machine_stack_context): fix wrong
_MSC_VER check, should be decimal but not hexadecimal.
[ruby-core:74936] [Bug #12279]
nobu (Nobuyoshi Nakada)
05:28 AM Revision 06ccd684 (git): cont.c: wrong _MSC_VER check
* cont.c (fiber_initialize_machine_stack_context): fix wrong
_MSC_VER check, should be decimal but not hexadecimal.
[ruby-core:74936] [Bug #12279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54574 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
04:41 AM Revision 24eb2e9c (git): process.c: prefer rb_check_arity
* process.c: use rb_check_arity instead of rb_scan_args for simple
optional arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:56 AM Feature #12281: Allow lexically scoped use of refinements with `using {}` block syntax
I would also like the block for `using` to have access to local variables.
~~~ruby
def example(thing)
using MyCapitalize do
thing.my_capitalize
end
end
example "hello"
# => "Hello"
~~~
danielpclark (Daniel P. Clark)
03:48 AM Feature #12281 (Assigned): Allow lexically scoped use of refinements with `using {}` block syntax
In Ruby 2.2.3 a refinement could be used in a begin/end block.
~~~ruby
module Moo
refine Fixnum do
def to_s
"moo"
end
end
end
begin # valid Ruby 2.2.3 and NOT Ruby 2.3
using Moo
1.to_s
end
# => "moo...
danielpclark (Daniel P. Clark)
02:45 AM Bug #11704: Refinements only get "used" once in loop
Tsuyoshi Sawada wrote:
> I had made a feature request #12079 (later than this post) to allow refinements to be effective in such cases.
I like it. One note: Your code examples don't have a lexically scoped block. For them to work i...
danielpclark (Daniel P. Clark)
02:03 AM Bug #11704: Refinements only get "used" once in loop
Daniel P. Clark wrote:
> According to John (who commented on my blog on this issue) this is a Dynamic Dispatch issue. And the following example may be a related.
I had made a feature request #12079 (later than this post) to allow re...
sawa (Tsuyoshi Sawada)
01:55 AM Bug #12179: Build failure due to VPATH expansion
Seems there is no way to tell `make` not to use `VPATH` for a particular target. nobu (Nobuyoshi Nakada)
01:30 AM Revision 7343b492 (git): ruby-runner.h
* template/ruby-runner.h.in: separate configured part from
ruby-runner.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 AM Revision 1a88b871 (git): configure.in: feature macros on cygwin
* configure.in (cygwin): add feature macros for the declarations
of eaccess.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 AM Revision a86d5d16 (git): configure.in: tabify
* configure.in: tabify spaces after a tab.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:00 AM Revision 90a5257d (git): * 2016-04-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:00 AM Revision 350a7400 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)

04/13/2016

10:12 PM Feature #12280: IO.copy_stream(IO, IO) fails with "pread() not implemented"
Eric Wong wrote:
> eregontp@gmail.com wrote:
> ...
Thanks for the quick reply!
For me, having a message like:
"NotImplementedError: IO.copy_stream with offset is not supported on Windows since it is not atomic"
would be a good eno...
Eregon (Benoit Daloze)
10:03 PM Feature #12280: IO.copy_stream(IO, IO) fails with "pread() not implemented"
eregontp@gmail.com wrote:
> IO.copy_stream on Windows with IO having an offset fails with:
> NotImplementedError: pread() not implemented
>
> This seems suboptimal, should a clearer be reported?

Not sure. Maybe include a bug re...
normalperson (Eric Wong)
09:03 PM Feature #12280 (Open): IO.copy_stream(IO, IO) fails with "pread() not implemented"
IO.copy_stream on Windows with IO having an offset fails with:
NotImplementedError: pread() not implemented
This seems suboptimal, should a clearer be reported?
Is it a platform limitation?
Eregon (Benoit Daloze)
08:19 PM Bug #11704: Refinements only get "used" once in loop
According to John (who commented on my blog on this issue) this is a Dynamic Dispatch issue. And the following example may be a related.
~~~ruby
module Moo
refine Fixnum do
def to_s
"moo"
end
end
end
class...
danielpclark (Daniel P. Clark)
07:17 PM Bug #12279 (Closed): cont.c: wrong _MSC_VER check
2.3.0 and trunk are affected. I wonder why compiling with Visual C++ 6.0 is still supported.
~~~diff
diff --git a/cont.c b/cont.c
index 8ebd78f..729a025 100644
--- a/cont.c
+++ b/cont.c
@@ -657,7 +657,7 @@ fiber_initialize_machin...
cremno (cremno phobia)
06:32 PM Misc #12277: Coding rule: colum number
ko1@atdot.net wrote:
> Eric proposed that code should be limited in 80 column.
> https://bugs.ruby-lang.org/issues/12236#note-1

Not a proposal, just citing existing/common standard:

https://www.emacswiki.org/emacs/EightyColumnR...
normalperson (Eric Wong)
11:52 AM Misc #12277: Coding rule: colum number
I was on the meeting. I'm for some line width cap, be they 80 or 120.
It is a good idea to be concise. I'm especially for comments being concise.
However I don't like the idea of indiscreetly line-folding things _only because_ they...
shyouhei (Shyouhei Urabe)
07:54 AM Misc #12277 (Open): Coding rule: colum number
Eric proposed that code should be limited in 80 column.
https://bugs.ruby-lang.org/issues/12236#note-1
At today's developer's meeting, I asked how long column is suitable.
* declaration can over limitation.
* logic should have so...
ko1 (Koichi Sasada)
06:28 PM Bug #12278 (Closed): Sometimes I have segmentation fault with procs reducer
Hello,
Sometimes I have segmentation fault for code like:
~~~
# /Users/newmen/projects/versatile-diamond/analyzer/lib/modules/procs_reducer.rb:35
8 # Combines passed procs to one function
9 # @param [Array] procs which w...
newmen (Gleb Averchuk)
03:47 PM Bug #9569: SecureRandom should try /dev/urandom first
I would just like to +1 that the text on the random(4) page is incorrect. Regarding fixing it, this bug has been open on the Linux kernel bug tracker for 2 years:
https://bugzilla.kernel.org/show_bug.cgi?id=71211
I would look to so...
bascule (Tony Arcieri)
09:02 AM Bug #9569: SecureRandom should try /dev/urandom first
There's now a new paper outlining RNG weaknesses in OpenSSL: https://eprint.iacr.org/2016/367.pdf
Again: Please switch to a proper RNG/seeding mechanism as suggested by multiple people earlier.
Thanks,
Aaron
azet (Aaron Zauner)
02:55 PM Revision 8574a372 (git): Array#sum described.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:40 PM Revision 30d7fb37 (git): add a space in [ruby-core:74569] [Feature #12217]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:51 PM Revision b359d203 (git): * array.c (rb_ary_sum): Array#sum is implemented.
Kahan's compensated summation algorithm for precise sum of float
numbers is moved from ary_inject_op in enum.c.
* enum.c (ary_inject_op): Don't specialize for float numbers.
[ruby-core:74569] [Feature#12217] proposed by mrkn.
gi...
akr (Akira Tanaka)
01:01 PM Bug #12181 (Feedback): ブロックがたくさんあるファイルを編集するとruby-modeが重い
Emacs 24付属のruby-mode.elではとくに問題がないように思えますが、どのバージョンでしょうか。 nobu (Nobuyoshi Nakada)
12:55 PM Bug #12274: accessing to instance variable should be fast.
> About the object check, is it not problematic to do ((struct RBasic*)obj)->klass if obj is a tagged integer (since klass is the second member, after flags)?
Thank you for pointing out.
I'll revive check.
tarui (Masaya Tarui)
09:32 AM Bug #12274: accessing to instance variable should be fast.
Masaya Tarui wrote:
> there are 2 parts of optimization.
> ...
I see, thanks for explaining :)
About the object check, is it not problematic to do ((struct RBasic*)obj)->klass if obj is a tagged integer (since klass is the second me...
Eregon (Benoit Daloze)
01:32 AM Bug #12274: accessing to instance variable should be fast.
2016-04-13 5:41 GMT+09:00 <eregontp@gmail.com>:
> Issue #12274 has been updated by Benoit Daloze.
> ...
It is not for avoiding ID2SYM (In fact, it is calculated every time
:-), it is for sharing.
Please check the 0007 below
```
...
tarui (Masaya Tarui)
01:13 AM Bug #12274: accessing to instance variable should be fast.

there are 2 parts of optimization.
* share inline cache between same symbol(at compile.c)
* inline fast pass only and cut useless check(RB_TYPE_P).(at insns.def)
We can skip st_lookup from the 2nd insns by sharing cache.
I...
tarui (Masaya Tarui)
12:44 PM Bug #12183: require "win32ole" すると終了ステータスが必ず 0 になる
r54533では再現できませんでした。 nobu (Nobuyoshi Nakada)
06:47 AM Bug #12183: require "win32ole" すると終了ステータスが必ず 0 になる
あまり役に立たない情報かもしれませんが、mswin64ではどのバージョンでも問題が再現しないことを確認しました。 usa (Usaku NAKAMURA)
06:36 AM Bug #12183 (Assigned): require "win32ole" すると終了ステータスが必ず 0 になる
shyouhei (Shyouhei Urabe)
07:57 AM Feature #11210 (Assigned): IPAddr has no public method to get the current subnet mask
Sorry for being inactive.
I've made some comments in the above PR.
I can't recall the exact reason why there's no access to the netmask provided, but one main design concept of IPAddr by the original author (Ume-san) was to allow m...
knu (Akinori MUSHA)
07:02 AM Bug #11878 (Assigned): Comparison of prepended modules
naruse (Yui NARUSE)
06:56 AM Revision c2585351 (git): numeric.c: flo_ceil
* numeric.c (flo_ceil): add an optional parameter, digits, as
well as Float#round. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:54 AM Revision d56b2776 (git): numeric.c: flo_floor
* numeric.c (flo_floor): add an optional parameter, digits, as
well as Integer#floor. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:50 AM Feature #12245 (Closed): optional parameter ndigits to Integer#floor, Integer#ceil, Float#floor, Float#ceil
Applied in changeset r54562.
----------
numeric.c: int_ceil
* numeric.c (int_ceil): add an optional parameter, digits, as
well as Integer#round. [Feature #12245]
nobu (Nobuyoshi Nakada)
06:50 AM Revision a1542d33 (git): numeric.c: int_ceil
* numeric.c (int_ceil): add an optional parameter, digits, as
well as Integer#round. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:50 AM Feature #7361 (Rejected): Adding Pathname#touch
I don't like the method name "touch".
"touch" command has multiple features:
create empty file, update mtime.
So, the intent of touch method is ambiguous.
akr (Akira Tanaka)
06:47 AM Revision 15558a8f (git): numeric.c: int_floor
* numeric.c (int_floor): add an optional parameter, digits, as
well as Integer#round.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:40 AM Bug #12184 (Assigned): Cygwin LANG=ja_JP.SJIS 環境でコマンドライン引数に日本語が渡せない
Nobu will look into it. shyouhei (Shyouhei Urabe)
06:14 AM Revision 163604ec (git): NEWS: [Feature #9969]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:01 AM Feature #12222: Introducing basic statistics methods for Enumerable (and optimized implementation for Array)
Hi,
I agree with adding `sum` to `Array`. It is natural and easy to define.
I disagree (for now) for adding it to `Enumerable` since it may not be meaningful (e.g. Hash).
Matz.
matz (Yukihiro Matsumoto)
05:53 AM Feature #12026 (Closed): Support warning processor
Hi,
* I agree with the need for filtering/customizing warnings
* but I disagree with the use of a global variable
* casting warnings via `warn` method may work
* but there might be need for controlling warnings per gem/class basis
...
matz (Yukihiro Matsumoto)
05:47 AM Feature #9969 (Closed): Add File.empty? as alias to File.zero?
Applied in changeset r54559.
----------
file.c: File.empty?
* file.c (Init_File): add alias File.empty? to File.zero?.
[Feature #9969]
nobu (Nobuyoshi Nakada)
05:24 AM Feature #9969: Add File.empty? as alias to File.zero?
OK, agreed.
Matz.
matz (Yukihiro Matsumoto)
05:47 AM Revision 096137e8 (git): file.c: File.empty?
* file.c (Init_File): add alias File.empty? to File.zero?.
[Feature #9969]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:36 AM Feature #10617 (Closed): Change multiple assignment in conditional from parse error to warning
Applied in changeset r54558.
----------
parse.y: massign in cond
* parse.y (assign_in_cond): allow multiple assignment in
conditional expression. [Feature #10617]
nobu (Nobuyoshi Nakada)
05:36 AM Revision 134d1ce8 (git): parse.y: massign in cond
* parse.y (assign_in_cond): allow multiple assignment in
conditional expression. [Feature #10617]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:24 AM Feature #11547: remove top-level constant lookup
I am for this proposal, but also concern about code breakage. Let's try removing top-level constant look-up in 2.4dev and see how much code it breaks.
Matz.
matz (Yukihiro Matsumoto)
05:16 AM Feature #12272: Accepting HTML entity name in string literal
Tsuyoshi Sawada wrote:
> Ideally, I would prefer LaTeX math symbol commands, which I believe many people have wider handle on.
I think there are strong individual differences. Therefore, it doesn't make that much sense to implement...
duerst (Martin Dürst)
05:12 AM Revision 1ea1d2e4 (git): numeric.c: int_round_zero_p
* bignum.c (rb_big_size): add wrapper function of BIGSIZE and
rename the method funtion with _m suffix.
* numeric.c (int_round_zero_p): extracted from rb_int_round.
optimize for Bignum, and convert VALUE returned by Numeric#size
to...
nobu (Nobuyoshi Nakada)
03:03 AM Revision 9d258137 (git): * test/ruby/test_basicinstructions.rb: add a test to check access
instance variables on special const objects.
All of such objects are frozen, so that we can not set instance
variables for them. But we can read instance variables and return
default value (nil).
git-svn-id: svn+ssh://ci.ruby-la...
ko1 (Koichi Sasada)
02:41 AM Revision 182f8d7e (git): * 2016-04-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:41 AM Revision aaf0f51f (git): numeric.c: float_invariant_round
* numeric.c (float_invariant_round): extracted from flo_round to
be optimizer-friendly, e.g., tail-call optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:38 AM Bug #12269: Nesting Two-levels of Hash with Hash as default value makes top level Hash not list keys/values and causes reference issue with nested values.
Re: "it is possible to overwrite the values of keys in the 2nd level hash via new assignments to entirely different keys on the 2nd level hash"
It is per spec. The hash default value is shared among keys. This is not only for nested...
shyouhei (Shyouhei Urabe)
02:13 AM Bug #12276: Quoting error involving '$' characters in DT_RPATH pathnames
Nobuyoshi Nakada wrote:
> Doesn't `configure --enable-load-relative` work?
I believe --enable-load-relative works with the module loading process, which is slightly different from my problem. I want to ensure correct linkage of share...
eam (Evan Miller)
01:00 AM Bug #12276 (Feedback): Quoting error involving '$' characters in DT_RPATH pathnames
Doesn't `configure --enable-load-relative` work? nobu (Nobuyoshi Nakada)
12:42 AM Bug #12270: 2.3.0/2.4.0 で stackprof を実行すると SEGV することがある
僕も stackprof の master で SEGV が起きないことを確認しました。
参考: https://twitter.com/mametter/status/719795060015898624
hsbt (Hiroshi SHIBATA)

04/12/2016

11:45 PM Bug #12276 (Closed): Quoting error involving '$' characters in DT_RPATH pathnames
Often it's desired to use DT_RPATH in Ruby and associated extension objects when bundling custom libraries for a Ruby application. Often absolute paths cannot be known at build-time, so the linker provides the $ORIGIN macro used to build... eam (Evan Miller)
11:04 PM Bug #11430: Redefining a lazy-loaded variable in child context within RSpec spec causes crash
andrewchhwong+ruby@gmail.com wrote:
> Not sure what to do here. Do random issues like this get triaged? Or sitting around like this is typical?

Most of us are volunteers and I find it helpful for reporters to
send reminders every o...
normalperson (Eric Wong)
07:56 PM Bug #11430: Redefining a lazy-loaded variable in child context within RSpec spec causes crash
Not sure what to do here. Do random issues like this get triaged? Or sitting around like this is typical? andrewchhwong (Andrew Wong)
08:41 PM Bug #12274: accessing to instance variable should be fast.
Koichi Sasada wrote:
> Tarui-san suggested another way to optimize and this is my version of that technique (with some refactoring).
The diff is hard to read, would you have a commit on GitHub or a patch file?
Tarui-san, could you...
Eregon (Benoit Daloze)
07:21 PM Bug #12274: accessing to instance variable should be fast.
Tarui-san suggested another way to optimize and this is my version of that technique (with some refactoring).
evaluation result:
fps: 19.21335880758348
->
fps: 22.16285461090967
(15% improvement)
```diff
Index: vm_insnhelper.c...
ko1 (Koichi Sasada)
03:50 PM Bug #12274 (Closed): accessing to instance variable should be fast.

Currently, accessing to instance variable is quite slower than accessing to local variable.
I think accessing to instance variable is basic operation and it should be fast, so tried to improve.
patch: https://github.com/tarui/ruby/...
tarui (Masaya Tarui)
08:20 PM Bug #12270 (Third Party's Issue): 2.3.0/2.4.0 で stackprof を実行すると SEGV することがある
示唆なさってたとおり、 `gem 'stackprof', github: 'tmm1/stackprof'` で直りますね。 naruse (Yui NARUSE)
07:07 AM Bug #12270 (Third Party's Issue): 2.3.0/2.4.0 で stackprof を実行すると SEGV することがある
tDiary ( https://github.com/tdiary/tdiary-core )のテストに添付しているパッチを当てて stackprof を有効にして実行すると最後の results を出力する箇所で SEGV となります。
```
spec/spec_helper.rb:33: [BUG] frame2iseq: unreachable
```
`ruby 2.2.5p292 (2016-03-31 revision 54443) ...
hsbt (Hiroshi SHIBATA)
07:03 PM Feature #12275 (Closed): String unescape
I think it will be usefull to have function that convert input string as it was written in prime qouted string or in double qouted string. It's part of metaprogramming.
Example:
~~~ ruby
class String
# Create new string like it w...
asnow (Andrew Bolshov)
04:03 PM Bug #12273 (Rejected): Time.parse incorrectly parses Russian months
naruse (Yui NARUSE)
04:03 PM Bug #12273: Time.parse incorrectly parses Russian months
Viacheslav Ptsarev wrote:
> Victor Shepelev wrote:
> ...
Just replace Russian to English with gsub before parsing.
naruse (Yui NARUSE)
02:46 PM Bug #12273: Time.parse incorrectly parses Russian months
> Thanks. So what should I use to parse dates in Russian?
There's no easy way, unfortunately. For simple formats you can try to just `gsub` Russian monthnames into English and then use normal `Time.parse`.
Not a Ruby bug, definitel...
zverok (Victor Shepelev)
02:29 PM Bug #12273: Time.parse incorrectly parses Russian months
Victor Shepelev wrote:
> I assume `Time.parse` is not localized to all world languages.
> ...
Thanks. So what should I use to parse dates in Russian?
leemour (Viacheslav Ptsarev)
02:23 PM Bug #12273: Time.parse incorrectly parses Russian months
I assume `Time.parse` is not localized to all world languages.
So, it just ignores the "unidentified" part, replacing it with "current month" (and then fixes non-existent 31.04 into 1.05):
~~~ruby
Time.parse('31 ничего 2016')
# =>...
zverok (Victor Shepelev)
02:22 PM Bug #12273: Time.parse incorrectly parses Russian months
When parsing dates in Russian where day number is 31, `Time.parse` returns `2016-05-01`. No matter what month or year is provided. With other dates, it returns date with given day number, but current month and year.
31 march 2016:
``...
leemour (Viacheslav Ptsarev)
02:14 PM Bug #12273 (Rejected): Time.parse incorrectly parses Russian months
When parsing dates in Russian where day number is 31, `Time.parse` returns `2016-05-01`. No matter what month or year is provided.
31 march 2016:
```
irb(main):003:0> require "time"
=> true
irb(main):004:0> Time.parse "31 марта 20...
leemour (Viacheslav Ptsarev)
03:55 PM Feature #12272: Accepting HTML entity name in string literal
Robert A. Heiler wrote:
> I don't know. I am not really against it, also not really for it but to be honest, I can't remember either of these variants anyway. :)
> ...
Ideally, I would prefer LaTeX math symbol commands, which I believe...
sawa (Tsuyoshi Sawada)
03:00 PM Feature #12272: Accepting HTML entity name in string literal
I don't know. I am not really against it, also not really for it but to be honest, I can't remember either of these variants anyway. :)
Would this actually be used/usable?
shevegen (Robert A. Heiler)
01:00 PM Feature #12272 (Open): Accepting HTML entity name in string literal
String literal allows the escape character `\u` to describe a character using UTF-8 character code like this:
~~~ruby
"\u201c" # left double quote
"\u2191" # up arrow
~~~
This is useful in typing characters that are not easy to ...
sawa (Tsuyoshi Sawada)
01:41 PM Feature #12080: Enumerable#first, Array#last with block
ping... Any thoughts?
(updated patch to apply successfully to the current trunk)
rhenium (Kazuki Yamaguchi)
11:40 AM Bug #12271 (Closed): `Time#to_time` removes timezone information
Applied in changeset r54553.
----------
date_core.c: preserve timezone
* ext/date/date_core.c (time_to_time): should preserve timezone
info. [ruby-core:74889] [Bug #12271]
nobu (Nobuyoshi Nakada)
09:35 AM Bug #12271 (Closed): `Time#to_time` removes timezone information
```ruby
irb(main):001:0> RUBY_VERSION
=> "2.3.0"
irb(main):002:0> require 'date'
=> true
irb(main):003:0> ENV['TZ'] = 'US/Eastern'
=> "US/Eastern"
irb(main):004:0> time = Time.new(2005, 2, 21, 10, 11, 12, '+09:00')
=> 2005-02-21 ...
yui-knk (Kaneko Yuichiro)
11:40 AM Revision 456523e2 (git): date_core.c: preserve timezone
* ext/date/date_core.c (time_to_time): should preserve timezone
info. [ruby-core:74889] [Bug #12271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:46 AM Bug #12238: Logger writes progname if log message is nil
Thanks
I see that it is supposed to be like this. Seems a bit weird though.
Soilent (Konstantin x)
07:22 AM Revision 8424452c (git): merge revision(s) 53566:
* configure.in: improve ICC (Intel C Compiler) support.
* configure.in (CXX): The name of icc's c++ compiler is `icpc`.
* configure.in (warnings): Add `-diag-disable=2259` to suppress
noisy warnings: "non-poin...
naruse (Yui NARUSE)
06:20 AM Bug #12269 (Rejected): Nesting Two-levels of Hash with Hash as default value makes top level Hash not list keys/values and causes reference issue with nested values.
Try `h.default.default`. nobu (Nobuyoshi Nakada)
01:44 AM Bug #12269 (Rejected): Nesting Two-levels of Hash with Hash as default value makes top level Hash not list keys/values and causes reference issue with nested values.
Nesting Hashes that have Hashes as default values cause the 1st (top) level hash to not list keys or values. Also, it is possible to overwrite the values of keys in the 2nd level hash via new assignments to entirely different keys on th... spacemunkay (Jason Denney)
05:29 AM Bug #12232: Ripper.lex can't parse 2.3-style heredoc
ruby_2_3 r54471 merged revision(s) 53722. naruse (Yui NARUSE)
05:29 AM Bug #12182: openssl: NPN may be disabled by OpenSSL configuration
ruby_2_3 r54551 merged revision(s) 54258. naruse (Yui NARUSE)
05:29 AM Revision f74ba9cc (git): merge revision(s) 54258: [Backport #12182]
* ext/openssl/extconf.rb: check SSL_CTX_set_next_proto_select_cb
function rather than OPENSSL_NPN_NEGOTIATED macro. it exists
even if it is disabled by OpenSSL configuration.
[ruby-core:74384] [Bug #12182]
...
naruse (Yui NARUSE)
05:27 AM Bug #12215: URI::HTTP.new example is incorrect
ruby_2_3 r54550 merged revision(s) 54257. naruse (Yui NARUSE)
05:27 AM Revision 9b3f70d1 (git): merge revision(s) 54257: [Backport #12215]
* lib/uri/http.rb (URI::HTTP#initialize): [DOC] fix example,
missing mandatory arguments. [ruby-core:74540] [Bug #12215]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:49 AM Revision 991c159c (git): basictest: disable warnings
* basictest/runner.rb: disable warnings for old test script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:51 AM Revision 6648d615 (git): compile.c: initialize LABEL fields
* compile.c (new_label_body): initialize bit fields, since
compile_data_alloc does not clear the memory. [Bug #12082]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:08 AM Feature #12267 (Rejected): REXML Authoring constants are unwanted (or clash) when mixing into other namespaces
You should not include a module when your code may conflict with constants in the module. kou (Kouhei Sutou)
12:30 AM Revision 057cf38c (git): * 2016-04-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:30 AM Revision 26317750 (git): test_optimization.rb: disasm
* test/ruby/test_optimization.rb (disasm): dump disassembled code
for investigation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/11/2016

08:29 PM Feature #12268 (Rejected): Open3 should use extend self instead of module_function calls
Open3 should use `extend self` instead of `module_function` calls after defining each method.
Using `module_function` causes access issues when the `Open3` module is mixed into other class or module namespaces. Ie, the very method pro...
DanRathbun (Dan Rathbun)
08:07 PM Feature #12267 (Rejected): REXML Authoring constants are unwanted (or clash) when mixing into other namespaces
The following file can be added, OR it's contents pasted into "rexml/rexml.rb". Basically it renames the authoring constants defined in "rexml/rexml.rb", with a "REXML_" prefix. But it only does so when REXML module is mixed into some ot... DanRathbun (Dan Rathbun)
12:39 PM Revision 88c7ffb2 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:50 AM Revision 9d8ef4ea (git): Update dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:31 AM Feature #12236: Introduce `mmap` managed heap
> I believe we don't have any drawback with 256MB virtual memory allocation. (but it can depend on OSs)
It may depends on devices: one may wish to run ruby script on MIPS linux box with 64MB memory.
Doubtfully, kernel will be configu...
funny_falcon (Yura Sokolov)
06:40 AM Feature #12236: Introduce `mmap` managed heap
Thank you for your comment.
Eric Wong wrote:
> ko1@atdot.net wrote:
> ...
We don't iterate to insert/delete them.
> We may also rely on ccan/list in other places for branchless
> ...
It can be.
> > * Difficult to port on ...
ko1 (Koichi Sasada)
11:19 AM Revision 62784207 (git): * vm_backtrace.c (frame2klass): filter only for imemo_ment.
T_IMEMO/imemo_iseq can be passed here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:43 AM Bug #12082 (Closed): Tail-calling method can't catch exception raised by tail-called method
Applied in changeset r54542.
----------
compile.c: disable tco with rescue
* compile.c (iseq_optimize): disable tail call optimization in
rescued, rescue, and ensure blocks.
[ruby-core:73871] [Bug #12082]
nobu (Nobuyoshi Nakada)
05:57 AM Bug #12082: Tail-calling method can't catch exception raised by tail-called method
Thank you for reporting and patches.
Nobu's patch seems good. Could you commit it?
ko1 (Koichi Sasada)
08:43 AM Revision f0226f0a (git): compile.c: disable tco with rescue
* compile.c (iseq_optimize): disable tail call optimization in
rescued, rescue, and ensure blocks.
[ruby-core:73871] [Bug #12082]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:27 AM Revision 0ebf3849 (git): TestException.rb: suppress warning
* test/excludes/TestException.rb: suppress "ambiguous first
argument" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:27 AM Revision 316bb88f (git): test/unit.rb: show warning locations
* test/lib/test/unit.rb (ExcludedMethods.load): supply the path to
show the warning locations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Revision ba001b41 (git): test_whileuntil.rb: fix old behavior
* test/ruby/test_whileuntil.rb (test_while): fix old behavior.
mere numeric literal in condition no longer matches $. global
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Revision 015b4922 (git): test_rubyoptions.rb: suppress warning
* test/ruby/test_rubyoptions.rb (test_indentation_check): remove
unused variable to suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Revision d9f6850e (git): test_regexp.rb: suppress warning
* test/ruby/test_regexp.rb (test_named_capture): suppress
"assigned but unused variable" warning by prefixing '_'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Revision c372b123 (git): test_iterator.rb: suppress warnings
* test/ruby/test_iterator.rb (test_break): suppress "statement not
reached" warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:18 AM Feature #12020: Documenting Ruby memory model
Sorry for late to comment on this topic.
(and sorry i don't read all of comments on this topic)
At first, I need to appreciate you for such a great document.
However, my opinion is negative.
Basically, (at least on MRI) *I* again...
ko1 (Koichi Sasada)
06:52 AM Bug #11924: $ gem server is broken for documentation browsing
This is still happening for me with `ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]`. It seems to be caused by inconsistencies between URLs generated by darkfish and the RDoc::Servlet's expectations of which URLs are handled... david_macmahon (David MacMahon)
06:28 AM Feature #11788 (Closed): New ISeq serialize binary format
MRI 2.3 was shipped with this feature.
ko1 (Koichi Sasada)
06:21 AM Bug #11954: "self has wrong type to call super in this context" under weird circumstances
Shugo-san, thank you for your investigating.
It seems perfect.
Could you commit it? or should I commit it?
Thanks,
Koichi
ko1 (Koichi Sasada)
05:13 AM Revision ba56de8b (git): test_coverage.rb: suppress warnings
* test/coverage/test_coverage.rb (test_coverage_snapshot),
(test_restarting_coverage): use unique names to suppress method
redefinition warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54535 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
04:57 AM Bug #12159: Thread::Backtrace::Location#path returns absolute path for files loaded by require_relative
Actually, I'm not sure the policy of path representation.
For example, we can normalize every path entities with absolute path.
I'll ask Matz at next dev meeting (next Wed 13:00-, JST).
ko1 (Koichi Sasada)
04:40 AM Bug #12231 (Rejected): Kernel#system should not expand shell variables when given multiples arguments, but on Windows it does
It's a specification. nobu (Nobuyoshi Nakada)
04:28 AM Revision bf6a8134 (git): fiddle/import.rb: suppress warnings
* ext/fiddle/lib/fiddle/import.rb (type_alias, handler): suppress
"not initialized instance variable" warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:11 AM Bug #12265 (Closed): did_you_mean spell checker crash
nobu (Nobuyoshi Nakada)

04/10/2016

09:59 PM Revision e9bb167b (git): file.c: prefer rb_check_arity
* file.c (rb_file_s_expand_path, rb_file_s_absolute_path): use
rb_check_arity instead of rb_scan_args for a simple optional
argument.
* file.c (rb_file_s_realpath, rb_file_s_realdirpath): ditto.
* file.c (rb_file_s_basename): ditto...
nobu (Nobuyoshi Nakada)
09:59 PM Revision e19df562 (git): file.c: apply2files returns Fixnum
* file.c (apply2files): return Fixnum so that callers can just
return it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:54 PM Revision df63c544 (git): * 2016-04-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:54 PM Revision 03bf343a (git): file.c: apply to argv
* file.c (apply2files): apply to a VALUE vector instead of a
temporary array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:49 PM Bug #12265: did_you_mean spell checker crash
Apparently there was a method I forgot to define. Running rake test:controllers first, followed by rake test:modules let me track down the issue. Bug no longer throws. durfee (Sean Durfee)
08:43 PM Bug #12265 (Closed): did_you_mean spell checker crash
I'm not entirely sure what went wrong. I fixed a bracket error in my code and it started throwing this.
If you need anything else from me/I can help at all, please let me know.
durfee (Sean Durfee)
02:07 PM Feature #11633 (Closed): NilLogger class
Let me close sonots (Naotoshi Seo)
11:54 AM Bug #12264 (Closed): Win32::Registry::API.DeleteKey and DeleteValue reference renamed constants
Applied in changeset r54529.
----------
registry.rb: fix API names
* ext/win32/lib/win32/registry.rb (DeleteValue, DeleteKey): fix
API names. [ruby-core:74863] [Bug #12264]
nobu (Nobuyoshi Nakada)
11:54 AM Revision 21992b6c (git): registry.rb: fix API names
* ext/win32/lib/win32/registry.rb (DeleteValue, DeleteKey): fix
API names. [ruby-core:74863] [Bug #12264]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:47 AM Revision 3cd3c9d7 (git): no argument conversions in rb_realpath_internal
* file.c (rb_realpath_internal): no argument conversions since
this internal function does not need to_path and encoding
conversions, not to be affected by the default internal
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
nobu (Nobuyoshi Nakada)
07:30 AM Revision ee833721 (git): * 2016-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:30 AM Revision 75dc429f (git): win32/file.c: fix free
* win32/file.c (rb_file_expand_path_internal): should free wpath,
but not xfree, corresponding to rb_w32_mbstr_to_wstr which
allocates by malloc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54526 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)

04/09/2016

10:28 PM Feature #12026: Support warning processor
Here is a patch that implements $WARNING_PROCESSOR support. jeremyevans0 (Jeremy Evans)
06:14 PM Bug #12264: Win32::Registry::API.DeleteKey and DeleteValue reference renamed constants
Made a mess of the patch. I had to try to recreate by hand so it may not apply directly, but the idea is simple enough. jswatosh (Joe Swatosh)
06:10 PM Bug #12264 (Closed): Win32::Registry::API.DeleteKey and DeleteValue reference renamed constants
The fix for https://bugs.ruby-lang.org/issues/10820 (https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/49542) started using the wide version of the registry APIs.
**************
```diff
--- D:/Ruby/ruby-2.1.8-i386-...
jswatosh (Joe Swatosh)
06:04 PM Bug #10257: Generate X.509 certificate/request/CRL with elliptic curve keys
"no shared cipher" for EC: looks like the curve name's in OpenSSL::PKey::EC::Group. There's a `#curve_name` method to get the curve name, but no way to set it and when a group's created using a named curve the name's never set in the res... tknarr (Todd Knarr)
01:39 PM Revision 997df3ad (git): * lib/ostruct.rb: [DOC] fix position of nodoc directive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
10:03 AM Feature #12263: Feature request: &&. operator (shorthand for foo && foo.method)
Robert A. Heiler wrote:
> I also have to admit that I find "x && y" easier to understand than
> ...
But one could argue that the following, which is semantically equivalent to the proposed `&&.`, is harder to understand:
~~~ruby
(t...
phluid61 (Matthew Kerwin)
05:33 AM Feature #12263: Feature request: &&. operator (shorthand for foo && foo.method)
I don't really like it.
matz said that & is the lonely operator because the person is staring
at a dot before, like &.
&&. would be too lonely because now you have 2 people staring at a
dot together. This would make ruby hackers...
shevegen (Robert A. Heiler)
05:30 AM Feature #12262: Anti-loop
I don't have any big pro or contra opinion, but there is one thing I am wondering:
Is this still called a loop in the second case? Because the default is to break
after the first run. And a loop implies to continue, until one ends i...
shevegen (Robert A. Heiler)
04:01 AM Revision 21791dd9 (git): ext/tk/extconf.rb: add newline
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:58 AM Revision e6c88132 (git): load.c: fix r54521
* load.c (rb_f_load): do not convert the encoding twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 AM Revision 404bf57a (git): assertions.rb: set default internal encoding
* test/lib/test/unit/assertions.rb (assert_raise_with_message):
set default internal encoding to the excpected message, which
affects String#inspect in messages.
* test/lib/test/unit/assertions.rb (assert_warning): ditto.
git-svn-i...
nobu (Nobuyoshi Nakada)
01:03 AM Revision 56417d1f (git): load.c: raise name before conversion
* load.c (rb_f_load): raise with the original path name before
encoding conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:59 AM Revision 7aa83cd0 (git): test_io_m17n.rb: nil default internal encoding
* test/ruby/test_io_m17n.rb (test_bom_non_utf): ensure default
internal encoding is not set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/08/2016

05:05 PM Revision 40c83329 (git): * 2016-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:05 PM Revision 3b6c4dad (git): bignum.c: rb_cstr_parse_inum
* bignum.c (rb_cstr_parse_inum): [EXPERIMENTAL] new function to
parse integer in C-string with length. the name and the
arguments may be changed in the future.
* bignum.c (rb_str_to_inum): preserve encoding of the argument in
erro...
nobu (Nobuyoshi Nakada)
12:44 PM Feature #11816: Partial safe navigation operator
Tsuyoshi Sawada wrote:
> Does this conflict with the current syntax?
Yes.
```ruby
proc{|x|p x}&.(1) #=> 1
```
> ...
Is `&(.` a single token?
nobu (Nobuyoshi Nakada)
11:42 AM Feature #11816: Partial safe navigation operator
What about allowing parentheses after the safe navigation operator like this:
~~~ruby
foo&.(bar.baz)
~~~
which should behave in the way proposed.
The edge cases:
Shyouhei Urabe wrote:
> ~~~ruby
> ...
with the two possibil...
sawa (Tsuyoshi Sawada)
10:44 AM Feature #12263 (Feedback): Feature request: &&. operator (shorthand for foo && foo.method)
`&.` was considered useful because of `try!`.
Is method call on an expression which may be `false` so frequent?
nobu (Nobuyoshi Nakada)
09:47 AM Feature #12263 (Feedback): Feature request: &&. operator (shorthand for foo && foo.method)
Ruby 2.3 introduced the `&.` safe-navigation operator. I'd like to propose a `&&.` operator which would be shorthand for:
~~~ruby
foo && foo.method
~~~
Unlike `&.`, this does not continue the chain if the variable evaluates to `f...
johnnyshields (Johnny Shields)
10:43 AM Feature #12254 (Assigned): Add SSLCiphers option to webrick ssl.rb
shyouhei (Shyouhei Urabe)
09:46 AM Feature #8526: gemify tk
Hiroshi SHIBATA wrote:
> gem で出来るようにしてみました。
> ...
おぉ、ありがとうございます。
> https://github.com/ruby や任意のアカウントに transfer することは可能です。
永井さんの意向次第ですが、ruby/tkもよいでしょうね。
naruse (Yui NARUSE)
02:55 AM Feature #8526: gemify tk
gem で出来るようにしてみました。
https://github.com/hsbt/tk
https://github.com/ruby や任意のアカウントに transfer することは可能です。
hsbt (Hiroshi SHIBATA)
09:16 AM Feature #12262: Anti-loop
You can make your last example work with `loop` by just adding a `break` at the end of the loop body. I don't think that warrants a new method. jwille (Jens Wille)
07:21 AM Feature #12262 (Open): Anti-loop
The `loop` method continues by default, and requires the keyword `break` to escape. This is good when the continuing cases are the norm and the escaping cases are exceptional:
~~~RUBY
loop do
...
if ...
...
elsif ...
...
sawa (Tsuyoshi Sawada)
08:32 AM Revision 45c593d8 (git): bignum.c: radix check functions
* bignum.c (valid_radix_p, invalid_radix): extracted functions to
check radix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:53 AM Revision 333034ea (git): tk/extconf.rb: progress
* ext/tk/extconf.rb (progress): print progress messages only if
Logging is quiet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:14 AM Revision ccb6e802 (git): tk/extconf.rb: outdated checks
* ext/tk/extconf.rb: remove outdated checks.
* ext/tk/tcltklib.c (ip_ruby_cmd): remove longstanding dead code.
ptr and len in RArray were till 1.8 and have_struct_member of
1.8 does not set HAVE_<stuct_name>_<member_name> but only
...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom