Activity
From 02/23/2016 to 02/29/2016
02/29/2016
-
11:06 PM Feature #12020: Documenting Ruby memory model
- I understand your point, I would like explore how it could be solved in MRI before relaxing the constant and method redefinition though. The relaxation could lead to undesirable unpredictable behaviour for users.
As you've mentioned t... -
10:03 PM Feature #12129 (Open): syntactic sugar for dynamic method dispatch `object_expression:method_name_expression(1, 2)`
-
09:34 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- Although I don't understand the Japanese, the linked issue, with a similar syntax to what Shel vacu proposed above, was rejected by Matz. So probably not too much hope on getting this into core…
-
08:45 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- I think there have been many other similar proposals. Nobu linked to other
discussions.
From what I have seen, I think the major problem is coming up with a nice
syntax proposal.
```ruby
.map(&:foo)
```
is ok because it is s... -
06:35 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- I agree that there should be some syntax for doing this, but I don't think this is the proper way to do it.
Personally, the syntax is confusing to me. I would prefer something like:
~~~ruby
[1,2,16].map(&:to_s(16))
~~~
This wa... -
08:40 PM Feature #12125: Proposal: Shorthand operator for Object#method
- I think the `&File->basename` looks confusing since we also have
`->` standalone now.
`object->method` reminds me a lot of php/perl and ruby uses the
prettier `.` instead, `object.method`.
I also think that :
```ruby
.map{F... -
04:40 PM Feature #12125: Proposal: Shorthand operator for Object#method
- Please don't do this!!! No need to make the language more complex just to solve such small issue!!!
If you want to do something pretty, then whole closure syntax should be simplified, not just call to '#method'.
````ruby
Dir["*/*.... -
02:29 PM Feature #12125: Proposal: Shorthand operator for Object#method
- How about this one?
~~~ruby
class UnfoundMethod
def initialize(receiver)
@receiver = receiver
end
def method_missing(name, *args, &block)
@receiver.method(name)
end
end
module UnfoundMethodAttacher
def ... -
02:14 PM Feature #12125: Proposal: Shorthand operator for Object#method
- Yukihiro Matsumoto wrote:
> but I don't think `->` is a good idea.
Other options I can think of are:
* Using `.>`: `the_object.>a_method` While its look is nearer to a normal method call (Which I think is a plus), I fear that the... -
12:58 PM Feature #12125: Proposal: Shorthand operator for Object#method
- For this kind of "conceptual" methods I sometimes define just one-letter shortcuts in core_ext.rb, like `.map(&File.m(:basename))`. I'm not sure, though, if any of existing/popular libraries will struggle from such kind of solution (or m...
-
12:37 AM Feature #12125: Proposal: Shorthand operator for Object#method
- I like the idea of short hand notation for `Object#method()`, but I don't think `->` is a good idea.
Matz. -
08:33 PM Bug #12128: Strings in `ARGV` are frozen
- I believe that this is actually how ruby may have behaved before the transition into frozen strings
already; at the least, I seem to distinctly remember that, if I write a method such as:
---
~~~ruby
require 'pp'
def foo(i = A... -
07:35 PM Bug #12128: Strings in `ARGV` are frozen
- Be advised that you can say `ARGV.map!(&:+@)` if you really want to modify the elements in-place, but that's probably not the best idea.
-
06:15 PM Bug #12128: Strings in `ARGV` are frozen
- Sorry, I found that it is indeed a feature that they are frozen. Please reject this.
-
06:08 PM Bug #12128 (Rejected): Strings in `ARGV` are frozen
- It is not clear how the frozen status of strings in `ARGV` are to be described, but regardless of what I try to do (i.e. set frozen string pragma as false, which is probably irrelevant because the strings are already created at the time ...
-
08:13 PM Bug #11962: Ruby 2.3.0 causing compile failure on extensions using a C++ compiler
- We are trying to transition Debian unstable to ruby2.3, it would be very helpful to have this applied to the 2.3 branch.
-
07:56 PM Feature #11625 (Assigned): Unlock GVL for SHA1 calculations
- ext/digest should use OpenSSL, which has many optimizations.
But old ruby's ext/digest/sha1 was buggy.
Through r52694, r52695, and r52755, I fixed it.
Now it correctly uses openssl (if you give --with-openssl-dir or something on OS ... -
02:14 PM Bug #12127 (Third Party's Issue): LANG environment is not respected
- Ruby 2.2:
~~~
$ ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
$ ruby -e "puts ''.encoding"
US-ASCII
$ LANG=en_US.utf-8 ruby -e "puts ''.encoding"
UTF-8
~~~
Ruby 2.3:
~~~
$ ruby -v
ruby 2.3.0p0 ... -
01:02 PM Bug #12126 (Closed): [PATCH] openssl: accept moving write buffer for write_nonblock
- ~~~
By setting the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag.
This flag was introduced at the same time as
SSL_MODE_ENABLE_PARTIAL_WRITE in OpenSSL 0.9.4 and makes usage
with non-blocking sockets much easier.
Before this, a Rubyist... -
12:35 PM Feature #12113: Global method inside Delegator causes NameError
- Benoit Daloze wrote:
> Would this patch allow to remove the special case for Kernel dispatch then? Or should it be kept for compatibility if `!target.is_a?(Kernel)` and most likely a `BasicObject`?
It's necessary to avoid infinite re... -
10:17 AM Feature #12113: Global method inside Delegator causes NameError
- Nobuyoshi Nakada wrote:
> Benoit Daloze wrote:
> ...
Ah, right, because in this case the method would be found on target since target is an `Object` (a `Fixnum` actually).
Would this patch allow to remove the special case for Kernel... -
08:01 AM Feature #12113: Global method inside Delegator causes NameError
- Benoit Daloze wrote:
> Would that solve the OP example code since `some_func` is defined in `Object`, not `Kernel`?
It is because of the private method of the target, in `Object` or in `Kernel` or in target itself is not the point.
-
12:22 PM Revision 52bdb3ce (git): fileutils.rb: LowMethods aliases
- * lib/fileutils.rb (LowMethods): make alias methods instead of
eval for each methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:36 AM Revision efa39c3d (git): fileutils.rb: reduce private
- * lib/fileutils.rb (Verbose, NoWrite, DryRun): make overridden
methods private by each one calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:36 AM Revision 6b3e5bb0 (git): fileutils.rb: reduce public
- * lib/fileutils.rb (Verbose, NoWrite, DryRun): make extended
methods public by each one calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:36 AM Revision 13dadf3f (git): fileutils.rb: unify method definition style
- * lib/fileutils.rb: Unify to coding-style for method definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:31 AM Misc #12124: Use Automake
- On 02/29/2016 03:17 PM, Eric Wong wrote:
> shyouhei@ruby-lang.org wrote:
>> - I'm afraid automake contaminates this project with GPL.
>
> Not true, automake gives something like the following:
>
> # This Makefile.in is free soft... -
06:48 AM Misc #12124: Use Automake
- I generally for this, but ...
C.J. Collier wrote:
> It looks like there is a lot of duplicate code that could be removed by making use of automake.
> ...
Just because Ruby was born before automake (and matz seems not be familiar wit... -
06:21 AM Misc #12124: Use Automake
- shyouhei@ruby-lang.org wrote:
> - I'm afraid automake contaminates this project with GPL.
Not true, automake gives something like the following:
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited... -
01:14 AM Misc #12124: Use Automake
- - I'm afraid automake contaminates this project with GPL.
- I'm afraid this world is not built on top of GNU. AFAIK automake forces us to use GNU make, which breaks compatibility. -
07:51 AM Revision c31d06ee (git): array.c: [DOC] remove trailing comma [ci skip]
- * array.c (rb_ary_push_m): [DOC] Remove trailing comma from
Array#push example, as other Array examples doesn't put trailing
comma. [Fix GH-1279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53970 b2dd03c8-39d4-4d8f-98ff-823fe... -
07:31 AM Revision 199e9106 (git): mkconfig.rb: cross_compiling option
- * common.mk, tool/mkconfig.rb: set cross_compiling option from
Makefile, but not from rbconfig.rb, which is just going to be
created by this command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53969 b2dd03c8-39d4-4d8f-98ff-82... -
06:46 AM Bug #12123 (Feedback): FileUtils.ln_s create a '.symlink' file not a symbolic link on windows
- Could you show failed messages?
- 05:54 AM Revision 06efc1da (git): * 2016-02-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:54 AM Revision f7228ad8 (git): ruby-style.el: add an instruction to load
- [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:09 AM Bug #12078: Segmentation fault in did_you_mean with ruby revision 53608
- r53524 is the revision in the trunk, not 2.3.
And #11928's backport status to 2.3 is still REQUIRED. -
01:55 AM Bug #12120 (Feedback): [target/sh4] error: 'asm' operand requires impossible reload
- What constraints does `DTRACE_PROBE4` macro have?
-
01:02 AM Bug #12103: ruby process hangs while executing regular expression.
- On 02/28/2016 12:22 PM, Eric Wong wrote:
> Keep in mind the equivalent Perl terminates just fine:
Yes. But,
> So I prefer we acknowledge cases like these as bugs to at least
> encourage someone to fix them.
Ruby's (and Perl's...
02/28/2016
-
09:43 PM Feature #12125: Proposal: Shorthand operator for Object#method
- > The & operator lets one pass a #call-able object as block.
I meant `#to_proc`-able objects, sorry for the confusion. -
09:39 PM Feature #12125 (Open): Proposal: Shorthand operator for Object#method
- Hello,
The `&` operator lets one pass a `#call`-able object as block.
Really useful feature, but at the moment, if you want to pass a `Method` this way the syntax is not really concise:
```ruby
Dir["*/*.c"].map(&File.method(:ba... -
02:14 PM Revision 0927f830 (git): configure.in: fold summary
- * configure.in: fold long lines in configuration summary
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:14 PM Revision 7b91046b (git): configure.in: summary
- * configure.in: Add summary to end of configure output.
[Fix GH-1277]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:54 PM Revision 1a9bc87a (git): configure.in: no leading spaces
- * configure.in (cflags, cppflags): remove unnecessary leading
spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:09 PM Bug #12078: Segmentation fault in did_you_mean with ruby revision 53608
- I also got a similar bug with Ruby 2.3.0p7 revision 53608. As the poster writes, this version is later than revision 53524, in which a similar (alleged duplicate) bug has been supposed to be fixed. But the bug retains, and the present is...
-
11:41 AM Bug #12121: 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
- 問題が起きたライブラリは dotenv というライブラリです。
https://github.com/bkeepers/dotenv
Module.constants の戻り値として `[Substitutions::Variable, Substitutions::Command]` だった
並び順が `[Substitutions::Command, Substitutions::Variable]` に変わっておりました。
https://g... -
11:07 AM Bug #12121 (Feedback): 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
- ちなみにどういうライブラリでどういう問題が起きたのでしょうか。
-
08:52 AM Bug #12121 (Rejected): 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
- `Module#constants`に順序の保証はありません。
- 11:28 AM Revision 1b34bf19 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:28 AM Revision 018f0812 (git): * lib/drb/drb.rb (error_print): Add verbose failure messages and
- avoid infamous DRb::DRbConnError. [Feature #12101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:28 AM Feature #12101 (Closed): Add verbose failure messages and avoid infamous DRb::DRbConnError
- Applied in changeset r53962.
----------
* lib/drb/drb.rb (error_print): Add verbose failure messages and
avoid infamous DRb::DRbConnError. [Feature #12101] -
09:50 AM Feature #12113: Global method inside Delegator causes NameError
- Would that solve the OP example code since `some_func` is defined in `Object`, not `Kernel`?
Using `Kernel.method` would be wrong, because the receiver would be the `Kernel` class, and not the delegated object `(Klass.new(0).inspect` ... -
05:17 AM Feature #12113: Global method inside Delegator causes NameError
- It's the current spec that delegator cannot call private method of the target, because it was impossible to tell it was called as function call form, (without the receiver).
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12... -
08:24 AM Misc #12124 (Closed): Use Automake
- It looks like there is a lot of duplicate code that could be removed by making use of automake.
Are there any reasons why this should not be done?
I've got some patches up for review here:
https://github.com/ruby/ruby/compare/tr... -
04:41 AM Revision 4d9f5482 (git): NoMethodError#private_call?
- * error.c (nometh_err_initialize): add private_call? parameter.
* error.c (nometh_err_private_call_p): add private_call? method,
to tell if the exception raised in private form FCALL or VCALL.
[Feature #12043]
* vm_eval.c (make_no_me... -
04:40 AM Feature #12043 (Closed): Add a method to NoMethodError that tells if private methods are callable at the time of
- Applied in changeset r53961.
----------
NoMethodError#private_call?
* error.c (nometh_err_initialize): add private_call? parameter.
* error.c (nometh_err_private_call_p): add private_call? method,
to tell if the exception raised in p... -
03:31 AM Bug #12103: ruby process hangs while executing regular expression.
- duerst@it.aoyama.ac.jp wrote:
> Status changed from Open to Rejected
>
> I simplified this as follows:
> regex = /\(a+( ?a*)*\)/
> detail = "(aaaa aaaaaaa aaaaa aaaaaaaaa aaaaa"
Keep in mind the equivalent Perl terminates just ... -
03:00 AM Bug #12123 (Closed): FileUtils.ln_s create a '.symlink' file not a symbolic link on windows
- when building ruby, 'test_cp_r_symlink' fail on make test-all
-
01:39 AM Revision 74e5e618 (git): test_exception.rb: split test_name_error_info
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:32 AM Feature #12110: Create a method to avoid vacuous truth?
- Martin Dürst wrote:
> Andrew Vit wrote:
> ...
In natural language, universal quantification carries a presupposition that the domain is non empty; the meaning of "for all x in A, p(x)" is undefined when A is empty, just like "the king ... -
12:51 AM Feature #12110: Create a method to avoid vacuous truth?
- Andrew Vit wrote:
> This is still surprising to me, it looks like a contradiction:
> ...
It's the way it works in Mathematics. But I'll try to explain it without using too much Mathematical terminology.
all? doesn't ask "at least ... - 01:20 AM Revision 60c8bfb3 (git): * 2016-02-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:20 AM Revision 491c44e9 (git): Clarify set intersection and union documentation
- * array.c (rb_ary_and): clarify that set intersection returns the
unique elements common to both arrays.
* array.c (rb_ary_or): clarify that union preserves the order from
the given arrays.
- Most know what intersection means, but ...
02/27/2016
-
09:21 PM Misc #12122 (Closed): Array Documentation (set intersection, union)
- **Set Intersection**
* Most know what intersection means, but saying the operation excludes duplicates could be misleading (`[1] & [1]`, duplicates excluded, might mean a result of `[]`).
* Instead, saying intersection returns the un... -
07:34 PM Bug #12121 (Closed): 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
- Ruby 2.4.0-dev で、Ruby 2.3.0 以前と変わっている振る舞いについてです。
自身のモジュール定義の前に、異なる名前空間で同名の定数が定義されていると
Module.constants の結果の並びに影響を与える振る舞いに変わっているように見えます。
```ruby
module M1
module A end
end
module M2
module B end
module A end
end
... -
02:23 PM Bug #12120 (Closed): [target/sh4] error: 'asm' operand requires impossible reload
- Hello!
ruby2.3 fails to build from source on sh4 (Hitachi/Renesas SuperH), the build fails with [1]:
```
gcc -mieee -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector -fno... -
01:59 PM Feature #12110: Create a method to avoid vacuous truth?
- Waldyr de Souza wrote:
> I often find myself running into unexpected results when using #all? for example
> ...
If you expect all false, then why not use `none?`, is it not sufficient?
> Even though it's logically correct could we h... -
01:53 PM Feature #12119 (Closed): next_prime for lib/prime.rb
- cf. https://github.com/ruby/ruby/pull/1272
## Rationale
To me, integer-without-limit is one of the greatest features of Ruby. I am currently working on my own implementation of arbitrary precision number system (https://github.com... -
12:07 PM Bug #12118: ruby2.3: Segfaults on m68k due to improper stack allocation
- Update: It seems the suggested patch by Andreas Schwab does not help on ruby2.3 anymore. So, for ruby2.3, something different needs to be done.
-
09:37 AM Bug #12118 (Closed): ruby2.3: Segfaults on m68k due to improper stack allocation
- Hello!
On Motorola 680x0, ruby2.2 and ruby2.3 segfault when running the Ruby interpretor:
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./m68k-linux-gnu-fake ./tool/rbinstall.rb --make="... -
09:11 AM Bug #12103 (Rejected): ruby process hangs while executing regular expression.
- I simplified this as follows:
regex = /\(a+( ?a*)*\)/
detail = "(aaaa aaaaaaa aaaaa aaaaaaaaa aaaaa"
It still hangs. But it's easier to see why: The part (a+( ?a*)* allows many different ways to match the same thing, and all these are... -
08:06 AM Revision c4e69641 (git): * enc/unicode/case-folding.rb, casefold.h: Reducing size of TitleCase
- table by eliminating duplicates.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:10 AM Revision bafa7f90 (git): test/unit: refine output in job_status=normal
- * test/lib/test/unit.rb (Test::Unit::StatusLine#jobs_status): show
status of only changed woker, not to show same lines repeatedly,
in normal job_status mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53956 b2dd03c8-39d4-4d8... -
04:16 AM Revision de121968 (git): test/unit: fix for the test
- * test/lib/test/unit.rb (_run_parallel): make sure retrying
message is a separate line.
* test/lib/test/unit.rb (_prepare_run): do not add Output if
testing.
* test/lib/test/unit.rb (Skipping#failed): defer showing reports
when s... -
02:21 AM Feature #12085: [PATCH] openssl: document `exception: false' for *_nonblock
- normalperson@yhbt.net wrote:
> I do not plan to commit the test change since OpenSSL behavior
> ...
I just discovered `SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER`,
which might've saved me plenty of headaches earlier this month:
```diff
-... -
02:01 AM Revision 9c55cb2e (git): test/unit: refine output in verbose mode
- * test/lib/test/unit.rb (Test::Unit::StatusLine#_prepare_run): add
StatusLine::Output even if job_status is not replace, to filter
extra outputs and newlines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53954 b2dd03c8-39d4-4d8... -
01:56 AM Revision fea80948 (git): test/unit: add --jobs-status=none
- * test/lib/test/unit.rb (Test::Unit::StatusLine#setup_options):
add :none to --jobs-status option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:56 AM Revision 97d90a7e (git): * 2016-02-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:56 AM Revision 0783358d (git): test/unit: no newlines to be chomped
- * test/lib/test/unit.rb (Test::Unit::StatusLine::Output#print):
matched part never contains a newline to be chomped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/26/2016
-
10:20 PM Feature #11666: IPAddr#private?
- IPv6 has a private range too: d00::/8 (RFC 4193)
Also, there are more IP ranges that have been reserved for special use (there's an overview on https://en.wikipedia.org/wiki/Reserved_IP_addresses). I think it would be better to make 1... -
08:49 PM Bug #12117 (Closed): UDPSocket.new crash on win32 with "rb_update_max_fd: invalid fd (xxx) given"
- OS is Windows 7. The following command line reproduces the issue:
$ ruby22 -rsocket -e "UDPSocket.new(Socket::AF_INET)"
Output is:
~~~
-e:1: [BUG] rb_update_max_fd: invalid fd (176) given.
ruby 2.2.5p241 (2016-02-24 revision 5... -
06:04 PM Feature #12116 (Open): `Fixnum#divmod`, `Bignum#divmod` with multiple arguments
- Sometimes, I need to apply `divmod` repeatedly. For example, in order to convert a number expressing seconds into approx year, day, hour, minutes, seconds (approx in the sense of ignoring leap day and leap second), I can repeatedly apply...
-
06:03 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- Edited to remove `**kwargs` argument I added, which would require checking if the called method supports them.
-
05:51 PM Feature #12115 (Open): Add Symbol#call to allow to_proc shorthand with arguments
- I am a great fan of the `Symbol#to_proc` shorthand when mapping or reducing collections:
```ruby
[1,2,16].map(&:to_s)
=> ["1", "2", "16"]
[1,2,16].reduce(&:*)
=> 32
```
I often wish it would be possible to pass an argument to ... -
02:09 PM Bug #12112: Resolv.getname with IPv6 noop
- I'm seeing this issue on 2.0.0, 2.2.1, 2.2.2, but not 1.9.3 and 2.2.3 (I suspect all versions between 2.0.0 and 2.2.3 are broken).
This is due to how Resolv::IPv6#to_name and Resolv::Name.initialize work. In 2.2.3 Resolv::Name constru... -
02:00 PM Feature #12114: $VERBOSE = true is being ignored
- Thus is a spec now.
That warning is at parsing, but `BEGIN` blocks are executed after it.
It may be possible by executing `BEGIN`s during parsing, but it needs renovations. -
11:18 AM Feature #12114 (Open): $VERBOSE = true is being ignored
- This programm correctly complains about "assigned but unused variable - p"
~~~ruby
#!/usr/bin/ruby -w
p=1
~~~
However, this one doesn't
~~~ruby
#!/usr/bin/ruby
BEGIN {$VERBOSE = true}
p=1
~~~
Setting `$VERBOSE` to true... -
12:32 PM Misc #12004: Code of Conduct
- Given this issue has been closed by Matz, is it possible to block further posts from all non-admins? Leaving it as a forum for people to push personal vendettas is, at the very least, unhelpful and off-topic.
-
07:26 AM Misc #12004: Code of Conduct
- I think that this https://github.com/ContributorCovenant/contributor_covenant/issues/278 and how Coraline will reply is and will be very relevant.
-
10:00 AM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
- Nobuyoshi Nakada wrote:
> This feature is **only** for "did_you_mean" gem, so I think that any name is OK, including implementation details.
> ...
It's still public API.
Let's choose `private_call?`, since I and the OP agree on this... -
09:31 AM Feature #12075: some container#nonempty?
- Nobuyoshi Nakada wrote:
> https://github.com/ruby/ruby/compare/trunk...nobu:feature/12075-not
I like it! -
07:25 AM Feature #12075: some container#nonempty?
- https://github.com/ruby/ruby/compare/trunk...nobu:feature/12075-not
-
05:22 AM Feature #12075: some container#nonempty?
- Nobuyoshi Nakada wrote:
> First, along this line, we'll need negative forms for all predicate methods.
> ...
I like this proposal. I definitely prefer the word 'not' over the symbol '!', because `ary&.!:empty?` has too much consecutive... -
04:40 AM Feature #12075: some container#nonempty?
- Or
```ruby
module Kernel
def !(*a)
a.empty? ? super() : !__send__(*a)
end
end
ary = nil; ary&.!:empty? #=> nil
ary = []; ary&.!:empty? #=> false
ary = [nil]; ary&.!:empty? #=> true
``` -
04:33 AM Feature #12075: some container#nonempty?
- First, along this line, we'll need negative forms for all predicate methods.
And I think `nil.empty?` makes no sense.
Just an idea:
```ruby
module Kernel
def not(*a)
not a.empty? ? self : __send__(*a)
end
end
ary... -
09:17 AM Feature #12113 (Open): Global method inside Delegator causes NameError
- ~~~ruby
def some_func
puts '12'
end
class Klass < Delegator
def initialize(obj)
@obj = obj
end
def __getobj__
@obj
end
def func
some_func #=> /home/oleg/.rbenv/versions/2.3.0/lib64/ruby/2.3.0/del... -
07:18 AM Revision b3177141 (git): README.md: fix linked file name [ci skip]
- * README.md: fix linked file name, COPYING does not a suffix.
[Fix GH-1265]
* README.ja.md: update a link too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:41 AM Revision 60dad06d (git): numeric.c: wrong type step should raise TypeError
- * numeric.c (num_step_scan_args): comparison String with Numeric
should raise TypeError. it is an invalid type, but not a
mismatch the number of arguments. [ruby-core:62430] [Bug #9810]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t... -
05:40 AM Bug #9810 (Closed): Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
- Applied in changeset r53949.
----------
numeric.c: wrong type step should raise TypeError
* numeric.c (num_step_scan_args): comparison String with Numeric
should raise TypeError. it is an invalid type, but not a
mismatch the number... -
01:01 AM Bug #9810: Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
- [Developers' meeting log][1]
> This issue is because of invalid type, not mismatch the number of arguments.
> ...
[1]: https://docs.google.com/document/d/1rj7ODOCSfcsQeBd6-p-NiVwqxDUg05G66LwDOkKOGTw/pub
-
05:40 AM Revision a12e8fd2 (git): doc: editor local variables [ci skip]
- * doc/extension.rdoc, doc/extension.ja.rdoc: add editor local
variables, with commenting out by :enddoc: directives which are
just ignored unless code object mode. [Bug #12111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5394... -
03:26 AM Revision d7c46522 (git): * doc/extension.ja.rdoc: removed rendering error caused by editor specific
- configuration on http://docs.ruby-lang.org/en/trunk/extension_rdoc.html .
[Bug #12111][ruby-core:73990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:26 AM Bug #12111 (Closed): [DOC] Small fix for extension.roc / extension.ja.rdoc
- Applied in changeset r53947.
----------
* doc/extension.ja.rdoc: removed rendering error caused by editor specific
configuration on http://docs.ruby-lang.org/en/trunk/extension_rdoc.html .
[Bug #12111][ruby-core:73990] -
02:25 AM Revision 0676ce87 (git): * lib/xmlrpc.rb: Removed references to NQXML. It's obsoleted parser.
- [fix GH-1245][ruby-core:59593][Feature #9371]
* lib/xmlrpc/config.rb: ditto.
* lib/xmlrpc/parser.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:24 AM Feature #9371 (Closed): Remove NQXML from xmlrpc/parser
- Applied in changeset r53946.
----------
* lib/xmlrpc.rb: Removed references to NQXML. It's obsoleted parser.
[fix GH-1245][ruby-core:59593][Feature #9371]
* lib/xmlrpc/config.rb: ditto.
* lib/xmlrpc/parser.rb: ditto. -
02:11 AM Revision 379c3b8b (git): * lib/tmpdir.rb: Unify to coding-style for method definition.
- [fix GH-1252]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:03 AM Revision 49f17cc6 (git): * README.md: update markdown syntax for anchor tag.
- [fix GH-1265] Patch by @lukBarros
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:57 AM Revision 966e020a (git): * lib/irb.rb: avoid to needless truncation when using back_trace_limit option.
- [fix GH-1205][ruby-core:72773][Bug #11969]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:57 AM Bug #11969 (Closed): [PATCH] IRB: Final newline missing in truncated backtraces
- Applied in changeset r53943.
----------
* lib/irb.rb: avoid to needless truncation when using back_trace_limit option.
[fix GH-1205][ruby-core:72773][Bug #11969]
02/25/2016
- 11:23 PM Revision 7a35ffec (git): * 2016-02-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:23 PM Bug #12112 (Closed): Resolv.getname with IPv6 noop
- Currently reverse resolving IPv6 addresses using stdlib Resolv does not work.
### How reproducible
always
### Steps:
1. Require 'resolv'
2. Use #getname or #getnames with a valid, reverse resolvable IPv6 address
### Result:
... -
11:23 PM Revision 41020311 (git): Reduce system calls by activating the `did_you_mean` gem.
- Activating the gem puts the gem on the load path, where simply requiring
the file will search every gem that's installed until it can find a gem
that contains the `did_you_mean` file.
Calling RubyGems' `require` will search each install... -
10:39 PM Feature #12110: Create a method to avoid vacuous truth?
- Robert A. Heiler wrote:
> Here is the biggest problem:
> ...
I seem to recall someone suggesting 'any_and_all?' in the past. Can't remember if I just made that up, though. -
09:29 PM Feature #12110: Create a method to avoid vacuous truth?
- Here is the biggest problem:
- What name would you give it? :) -
04:30 PM Feature #12110 (Open): Create a method to avoid vacuous truth?
- I often find myself running into unexpected results when using `#all?` for example
```ruby
[].all? { |e| false } # => true
```
Even though it's logically correct could we have a method that express the following?
```ruby
foo.... -
09:44 PM Bug #11969: [PATCH] IRB: Final newline missing in truncated backtraces
- Ping again...
-
07:17 PM Bug #12111 (Closed): [DOC] Small fix for extension.roc / extension.ja.rdoc
- The patch removes the local variables list for Emacs,
since they show up in the rendered page; see the very end
of http://docs.ruby-lang.org/en/trunk/extension_rdoc.html
-
04:37 PM Feature #12075: some container#nonempty?
- I like this idea a lot, Tsuyoshi. I'm +1 for introducing nil.empty? as returning true.
-
05:12 AM Feature #12075: some container#nonempty?
- What about introducing `NilClass#empty?`:
~~~RUBY
nil.empty? # => true
~~~
The code in question can be written simply as:
~~~RUBY
unless ary.empty?
# some code
end
~~~
If the original proposal is going to be realized... -
02:47 AM Feature #12075: some container#nonempty?
- I have just learned that zsh(1) calls this concept being "full". http://zsh.sourceforge.net/Doc/Release/Expansion.html#Glob-Qualifiers
-
12:36 PM Revision 5fa5b50e (git): eval_error.c: constify
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:36 PM Revision 37d6a4dd (git): eval_error.c: remove warn_printf
- * eval_error.c (warn_printf): remove.
* eval_error.c (error_pos_str): return error position string,
split from error_pos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 11:04 AM Revision 4ef48a78 (git): merge revision(s) 53790,53844: [Backport #12054]
- * lib/logger.rb: Remove block from Logger.add as it's not needed
patch provided by Daniel Lobato Garcテュ [fix GH-1240] [Bug #12054]
patch provided by Daniel Lobato Garcia [fix GH-1240] [Bug #12054]
git-svn-id: svn+ss... -
11:03 AM Bug #12054: Remove block from Logger.add as it's not needed
- ruby_2_1 r53938 merged revision(s) 53790,53844.
- 11:00 AM Revision b58ee667 (git): merge revision(s) 53784: [Backport #11495]
- * re.c: Remove deprecated kcode argument from Regexp.new and compile
patch provided by Dylan Pulliam [Bug #11495]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:00 AM Bug #11495: [Documentation] Please improve documentation for Regexp.new() and clarify the 3 argument call
- ruby_2_1 r53937 merged revision(s) 53784.
- 10:58 AM Revision e41ee7cf (git): merge revision(s) 53677: [Backport #11877]
- * ext/socket/socket.c (sock_gethostname): support unlimited size
hostname.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:57 AM Bug #11877: Socket.gethostname will fail when the hostname length == RUBY_MAX_HOST_NAME_LEN
- ruby_2_1 r53936 merged revision(s) 53677.
- 10:29 AM Revision abe1b00d (git): merge revision(s) 53318: [Backport #11489]
- * lib/xmlrpc/client.rb: Support SSL options in async methods of
XMLRPC::Client.
[Bug #11489]
Reported by Aleksandar Kostadinov. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53935... -
10:29 AM Bug #11489: XMLRPC client cannot alter SSL options for _async calls
- ruby_2_1 r53935 merged revision(s) 53318.
- 10:27 AM Revision ca8b2d26 (git): merge revision(s) 53609: [Backport #12011]
- * marshal.c (r_object0): honor Marshal.load post proc
value for TYPE_LINK. by Hiroshi Nakamura <nahi@ruby-lang.org>
https://github.com/ruby/ruby/pull/1204 fix GH-1204
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra... -
10:26 AM Bug #12011: honor Marshal.load post proc value for TYPE_LINK
- ruby_2_1 r53934 merged revision(s) 53609.
- 10:23 AM Revision 63b34ade (git): * version.h: commit miss
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:21 AM Bug #11958: TCPSocket.getsockopt().bool raises a TypeError on windows
- ruby_2_1 r53931 merged revision(s) 53561.
- 10:19 AM Revision 84f768b4 (git): * io.c (io_read_nonblock): decrement argc before calling io_readpartical() if
- kwarg is eaten in this function. fixed a test failure introduced at r53926.
see [Backport #11885]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 10:16 AM Revision e86d271d (git): merge revision(s) 53561: [Backport #11958]
- * ext/socket/option.c (sockopt_bool): relax boolean size to be one
too not only sizeof(int). Winsock getsockopt() returns a single
byte as a boolean socket option. [ruby-core:72730] [Bug #11958]
git-svn-id: svn+ss... -
10:04 AM Revision 7feb182a (git): * enc/unicode/case-folding.rb: Adding possibility for debugging output
- for TitleCase table in casefold.h.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:58 AM Revision 78400580 (git): merge revision(s) 53346,53347,53348,53349,53391,53928: [Backport #11898]
- * process.c: use rb_w32_uchdir() instead of plain chdir() on Windows.
reported by naruse via twitter.
* process.c (rb_execarg_addopt): need to convert to ospath.
* process.c (rb_execarg_parent_start1): need to... -
09:57 AM Bug #11898: backport r53346-r53349
- ruby_2_1 r53929 merged revision(s) 53346,53347,53348,53349,53391,53928.
- 09:54 AM Revision 92e0377e (git): * test/ruby/test_process.rb (test_execopts_open_chdir_m17n_path): it's originally for Windows. should not ignore on the platform.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 09:23 AM Revision cfdb3f5c (git): merge revision(s) 53435: [Backport #11945]
- * ext/stringio/stringio.c (strio_binmode): implement to set encoding
* test/stringio/test_stringio.rb (test_binmode): new test
[ruby-core:72699] [Bug #11945]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_... -
09:22 AM Bug #11945: [PATCH] stringio: binmode sets encoding to ASCII-8BIT
- ruby_2_1 r53927 merged revision(s) 53435.
- 09:16 AM Revision 2b0014ca (git): merge revision(s) 53329: [Backport #11885]
- * io.c (io_getpartial): remove unused kwarg from template
* test/ruby/test_io.rb (test_readpartial_bad_args): new
[Bug #11885]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53926 b2dd03c8-39d4-4d8f-98... -
09:16 AM Bug #11885: [PATCH] IO#readpartial rejects bad args
- ruby_2_1 r53926 merged revision(s) 53329.
- 09:00 AM Revision 9c0d8283 (git): merge revision(s) 53299: [Backport #11870]
- fix common misspelling [ci skip]
compile.c, cont.c, doc, man: fix common misspelling. [Bug #11870]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:59 AM Bug #11870: Eradication of typical misspellings
- ruby_2_1 r53925 merged revision(s) 53299.
- 08:50 AM Revision af3ab0bb (git): merge revision(s) 53259: [Backport #11862]
- * ext/socket/init.c (rsock_init_sock): reject reserved FDs
[ruby-core:72445] [Bug #11862]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:50 AM Bug #11862: [PATCH] ext/socket/init.c (rsock_init_sock): reject reserved FDs
- ruby_2_1 r53924 merged revision(s) 53259.
- 08:45 AM Revision c9eefd56 (git): merge revision(s) 53231,53244: [Backport #11854]
- * ext/socket/init.c (rsock_init_sock): check FD after validating
* test/socket/test_basicsocket.rb (test_for_fd): new
[ruby-core:72418] [Bug #11854]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53923... -
08:44 AM Bug #11854: Socket.for_fd(-1) causes segmentaion fault on mingw32.
- ruby_2_1 r53923 merged revision(s) 53231,53244.
- 08:34 AM Revision 734ac672 (git): merge revision(s) 53023: [Backport #11313]
- * cont.c: fix a double word typo.
[Bug #11313][ruby-core:69749]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:33 AM Bug #11313: Fixed a couple of typos
- ruby_2_1 r53922 merged revision(s) 53023.
- 08:33 AM Revision d849db29 (git): merge revision(s) 53022: [Backport #11764]
- * ext/tk/lib/multi-tk.rb: fix typos.
[Bug #11764][ruby-core:71800]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:32 AM Bug #11764: ext/tk/lib/multi-tk.rb: fix three typos.
- ruby_2_1 r53921 merged revision(s) 53022.
- 07:48 AM Revision bf524be1 (git): merge revision(s) 53167: [Backport #11825]
- * re.c (reg_names_iter): should consider encoding of regexp.
[ruby-core:72185] [Bug #11825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:47 AM Bug #11825: MatchData#names returns ASCII-8BIT
- ruby_2_1 r53920 merged revision(s) 53167.
-
07:22 AM Revision aa40518b (git): eval_error.c: error position format
- * eval_error.c (error_print): use same error position format when
no backtrace too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:01 AM Bug #12109 (Rejected): Exception during class load can cause partially-loaded class
- I noticed this bug using Rails, which lazy-loads classes (via ActiveSupport.)
Here's a minimal test case:
~~~ruby
#!/usr/bin/env ruby
begin
# simulate loading a class from file at runtime
eval %q{
class Foo
de... -
06:42 AM Feature #10098: [PATCH] Timing-safe string comparison for OpenSSL::HMAC
- Aleksandrs Ļedovskis wrote:
> Can someone clarify, what state is this feature in? Do we still need to get Matz's approval of String API change, or in light of Zachary's change "openssl" group gives the final call?
While still useful ... - 04:42 AM Revision 06751e43 (git): * 2016-02-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:42 AM Revision 1d581843 (git): eval_error.c: colon in message
- * eval_error.c (error_pos): include a clone after the position.
* eval_error.c (error_print, error_handle): do not print a colon
if the error position is unavailable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53917 b2dd03c8-3... -
01:58 AM Bug #12072 (Assigned): SortedSet#superset? raises NoMethodError if rbtree is installed
- Same code doesn't work on Ruby 2.3.0, because the cause of this bug is [r52586](https://github.com/ruby/ruby/commit/d736eded9d4cb7ab5ddc693059d55f8d1e369c98).
02/24/2016
-
05:52 PM Feature #11816: Partial safe navigation operator
- I prefer Marc's proposal here: https://bugs.ruby-lang.org/issues/11816#note-6. I think that's the much more natural than the existing behavior. I found this ticket after being surprised by the behavior, as I attempted to update my projec...
-
05:18 PM Bug #12108 (Rejected): Splitting an empty string returns an empty array
-
04:21 PM Bug #12108: Splitting an empty string returns an empty array
- Sorry, it turns out that this was a feature (http://ruby-doc.org/core-2.3.0/String.html#method-i-split). I didn't know. I would like to retract this bug report.
-
03:56 PM Bug #12108 (Rejected): Splitting an empty string returns an empty array
- Splitting an empty string returns an empty array.
~~~RUBY
"".split("") # => []
"".split("a") # => []
"".split(//) # => []
"".split(/a/) # => []
~~~ -
03:00 PM Bug #12078 (Closed): Segmentation fault in did_you_mean with ruby revision 53608
-
02:53 PM Bug #12107 (Closed): Segmentation fault at 0x000000000000b8 - did_you_mean
-
11:51 AM Bug #12107 (Closed): Segmentation fault at 0x000000000000b8 - did_you_mean
- Today I have encounter a bug Accidentally which caused Segmentation fault. I'm using Rails 4.2.5.1 and
~~~
ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
~~~
I can find similar bug Bug #12078, but not sure both... - 01:32 PM Revision 35f40f53 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:32 PM Revision f1f48e61 (git): * include/ruby/oniguruma.h: Rearranging flag assignments and making
- space for titlecase indices; adding additional macros to add or
extract titlecase index; adding comments for better documentation.
* enc/unicode.c: Moving some macros to include/ruby/oniguruma.h;
activating use of titlecase indices.
... -
12:30 PM Revision 169b867f (git): * random.c (limited_rand): Add a specialized path for the limit fits in 32 bit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:21 AM Revision d4819da6 (git): parse without $.
- * io.c (rb_io_gets_internal): read one line from an IO without
setting ARGF.lineno.
* parse.y (lex_io_gets): use rb_io_gets_internal not to affect
$. global variable.
* ruby.c (load_file): no longer reset $.
git-svn-id: svn+ssh://... -
04:33 AM Bug #12106: Behavior of double splatting of hashes with non symbol key is different according to splatted hash position
- Small correction: for the 2nd, 3rd and 4th examples on each code block the error actually is "TypeError: wrong argument type String (expected Symbol)"
-
04:29 AM Bug #12106 (Closed): Behavior of double splatting of hashes with non symbol key is different according to splatted hash position
- When doing double splatting with hash with non symbols keys you get different behaviors according to the position of the hash been splatted:
```ruby
{a: 3, **{b: 1}, **{'b' => 1}} # Works fine
{a: 3, **{1 => 1}, **{b: 1}} ... -
02:42 AM Revision 43f7eacd (git): parse.y: hide compile_option
- * parse.y (parser_set_compile_option_flag): hide compile_option
hash from ObjectSpace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:38 AM Revision 0cd34e96 (git): vm_method.c: for hidden object
- * vm_method.c (rb_method_basic_definition_p): methods of hidden
objects cannot be overridden, return TRUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:20 AM Revision 53ec85b5 (git): numeric.c: micro optimizations
- * numeric.c (flo_to_s, rb_fix2str): use rb_usascii_str_new instead
of rb_usascii_str_new_cstr, when the length can be calculated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:01 AM Bug #12105: JSON.pretty_generate throws a TypeError when there is a BigDecimal object as a value
- Not sure if this is an active support bug or a ruby bug. if i try to create the hash regularly, it works fine:
[19] pry(main)> hash.to_json
=> "{\"x\":50.0}"
-
12:54 AM Bug #12105 (Third Party's Issue): JSON.pretty_generate throws a TypeError when there is a BigDecimal object as a value
- As the title states, JSON.pretty_generate throws a TypeError when there is a BigDecimal object as a value. This used to work in ruby 2.0 before upgrading in development. I havent tested to see how far back in ruby versions the error goes...
02/23/2016
-
11:27 PM Bug #11838: Please backport r52883, r52884, r53046, r53198
- usa san,
Please note that r53198 requires #11843 (r53202) too. -
11:25 PM Revision 782b9a89 (git): merge revision(s) 53202: [Backport #11843]
- * enc/windows_1250.c: Should not use C++ style comments (C99 feature).
[Bug #11843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@53909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:25 PM Bug #11843: enc/windows_1250.c syntax error with fcc on Solaris -- C++(C99)-style comments should not be used
- Backported into `ruby_2_2` at r53909.
-
11:17 PM Bug #11843: enc/windows_1250.c syntax error with fcc on Solaris -- C++(C99)-style comments should not be used
- ruby_2_2 に r53198 をバックポートしたため、これも必要になっていました。
- 04:51 PM Revision 7c14876b (git): * 2016-02-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:51 PM Revision c8b90210 (git): * test/ruby/test_exception.rb: fix bad spawn argument (multiple
- args in single) in test_thread_signal_location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:29 PM Bug #12098: Accessing a two level hash with invalid keys ignores the right side of expression
- Nobuyoshi Nakada wrote:
> Fixed by r53485.
Thank you! I should have tested against master. Sorry about that :) -
12:53 PM Revision 1cc579cb (git): * enc/unicode/case-folding.rb, casefold.h: Outputting actual titlecase
- data (new table, with indices from other tables).
* enc/unicode.c: Ignoring titlecase data indices for the moment.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:26 AM Bug #12104: Procs keyword arguments affect value of previous argument
- Looking deeper now it seems to be that this is because the first argument is an Array and that when that happens it's interpreting that as the elements of the array being the arguments of the Proc. Is that supposed to happen?
-
10:19 AM Bug #12104: Procs keyword arguments affect value of previous argument
- This seems to also happen when trying to use a options Hash as the second argument:
~~~
2.3.0 :009 > p = Proc.new {|nodes, options = {}| puts nodes.inspect }
=> #<Proc:0x007fa52b13b348@(irb):9>
2.3.0 :010 > p.call([])
nil
=> ni... -
10:15 AM Bug #12104 (Rejected): Procs keyword arguments affect value of previous argument
- This seems like a bug to me:
~~~
2.3.0 :001 > p = Proc.new {|nodes, match_array: false| puts nodes.inspect }
=> #<Proc:0x007fa52c0659e0@(irb):1>
2.3.0 :002 > p.call([])
nil
=> nil
2.3.0 :003 > p.call([], match_array: true)
[... -
09:46 AM Bug #12103 (Rejected): ruby process hangs while executing regular expression.
- The following code hangs
~~~
regex = /(\((\w+([\p{Punct}\s]{,3}\w*)*)\))/i
detail = "(said companies being fictitous sellers"
detail =~ regex
~~~
However when I change {,3} to {1,3}, the code executes and moves on. Otherwise hangs -
07:59 AM Revision 3c0bb8d6 (git): iseq.h: remove trailing comma
- * iseq.h (iseq_mark_ary_index): get rid of trailing comma and name
the magic number for iseq_mark_ary_create.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:21 AM Revision 8aa8847b (git): * enc/unicode/case-folding.rb, casefold.h: Reading casing data from
- SpecialCasing.txt.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:03 AM Revision 0a0d4525 (git): Bump up timeout for slower-starting implementations/platforms.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:58 AM Feature #11262: Make more objects behave like "Functions"
- Fix link to the Clojure docs after they changed their URI structure.
-
12:55 AM Feature #11262: Make more objects behave like "Functions"
- Victor Shepelev wrote:
> For me, this thing looks like some kind of over-simplification (leading to ambiguity).
> ...
I don't want to focus too much on the second example, because like I said: the "Class as Factory Function" is *not* a...