Activity
From 02/21/2016 to 02/27/2016
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...
02/22/2016
-
11:41 PM Feature #12096: New notation for instance variables and class variables
- I like the idea to some extent but the syntax strikes me as somewhat
peculiar.
```ruby
@'foo?'
```
In ruby one has to look quite closely to spot some errors on a
first glance; the did-you-mean-gem helps a bit but I think the
... -
11:39 PM Bug #12099: Documentation for Proc#call and Proc#[] missing from Ruby-Doc.Org.
- Jörg W Mittag wrote:
> The documentation for the instance methods [`Proc#call`](http://ruby-doc.org/core/Proc.html#method-i-call) and [`Proc#[]`](http://ruby-doc.org/core/Proc.html#method-i-5B-5D) is missing from [Ruby-Doc.Org](http://r... -
03:34 PM Bug #12099 (Closed): Documentation for Proc#call and Proc#[] missing from Ruby-Doc.Org.
- The documentation for the instance methods [`Proc#call`](http://ruby-doc.org/core/Proc.html#method-i-call) and [`Proc#[]`](http://ruby-doc.org/core/Proc.html#method-i-5B-5D) is missing from [Ruby-Doc.Org](http://ruby-doc.org/) despite be...
-
11:30 PM Bug #12102: Ruby Interpreter or extension library
- Perhaps you can give some more information in what code is used specifically to make it
crash, on a pastie or even better, here?
Ideally, the best way would be to isolate the problem to the smallest issue that you can
find, and then... -
08:11 PM Bug #12102: Ruby Interpreter or extension library
- I would like to add that this is for a Rails Application with version 4.2.5.1
-
08:05 PM Bug #12102 (Closed): Ruby Interpreter or extension library
- I don't really know what the problem is so please bear with me and I apologize in advance...
I encountered this issue after installing a gem in our production application.
The gem is called 'stripe-ruby-mock' and I believe it is the... -
11:23 PM Revision 073cbf20 (git): * test/ruby/test_math.rb: use 64 bits in test_override_bignum_to_f
- to ensure it's a bignum on all impls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:22 PM Revision 4a147572 (git): * test/ruby/test_math.rb: override tests must always put to_f back
- Conflicts:
test/ruby/test_math.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 11:22 PM Revision c06dd1ea (git): * 2016-02-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:22 PM Revision 9386ecf9 (git): * test/psych/test_emitter.rb: test_resizing_tags missing
- start_stream call, caused strict parsers like on JRuby to err.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:44 PM Revision 98011df3 (git): * test/ruby/test_math.rb: use 64 bits in test_override_bignum_to_f
- to ensure it's a bignum on all impls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:44 PM Revision 6863c409 (git): * test/ruby/test_math.rb: override tests must always put to_f back
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:00 PM Revision 80b13113 (git): merge revision(s) 52883,52884,53046,53198: [Backport #11838]
- * enc/iso_8859_4.c: Added missing lower/upper-case character
pair (U+014A and U+014B, LATIN CAPITAL/SMALL LETTER ENG)
* enc/iso_8859_13.c: Added three missing lower/upper-case
character pairs (from Kimihito M... -
07:00 PM Bug #11838: Please backport r52883, r52884, r53046, r53198
- Backported into `ruby_2_2` branch at r53896.
-
06:30 PM Feature #12101: Add verbose failure messages and avoid infamous DRb::DRbConnError
- I think printing out messages to $stdout is not the best way. If I'm running DRb as a server I may have no way of seeing these and knowing if it is a problem.
Better, I think, would be to allow a user to configure a callback or logge... -
05:24 PM Feature #12101 (Closed): Add verbose failure messages and avoid infamous DRb::DRbConnError
- Avoid the generic "DRb::DRbConnError" which gives very little information and make errors hard to debug.
When I stared using DRuby, I kept getting a strange and cryptic error message `DRb::DRbConnError 'connection closed'`. Turns out ... - 06:17 PM Revision 0bd3a524 (git): * 2016-02-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:17 PM Revision c99e4339 (git): * test/psych/test_emitter.rb: test_resizing_tags missing
- start_stream call, caused strict parsers like on JRuby to err.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@53894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:22 PM Bug #12100: CSV converters fail when using single arg proc
- Thanks for the explanation Madman, that's super helpful. So the actual bug is reproduced when passing a proc/non-lambda with any number of arguments but I agree, this would cause regressions in a case like this...
~~~ruby
parser.conv... -
04:44 PM Bug #12100: CSV converters fail when using single arg proc
- ~~Upon further investigation it looks like this might actually stem from Symbol#to_proc returning a Proc with unspecified number of arguments, which makes sense, but I think the fix here is valid regardless.~~ What REcursive Madman said....
-
04:41 PM Bug #12100: CSV converters fail when using single arg proc
- I'm pretty sure this will introduce new bugs.
The meaning of an arity of -1 is "any number of arguments".
In reality you're not passing a proc which takes 1 argument (which would
work w/o your patch), but a proc which takes any numb... -
04:14 PM Bug #12100 (Rejected): CSV converters fail when using single arg proc
- CSV#parse (and others) throw an ArgumentError when passing a single argument Proc as a converter because of a performance optimization check that assumes Proc#arity is always positive. Lambdas with one argument work fine as do Procs and ...
-
03:56 PM Feature #12094: parameterized property assignment: o.prop(arg) = 1
- Nobuyoshi Nakada wrote:
> This is a longstanding pending feature.
What is its status? Is there an existing issue for it? -
03:46 PM Feature #11262: Make more objects behave like "Functions"
- For me, this thing looks like some kind of over-simplification (leading to ambiguity).
Both cases are handled with sligtly longer statements with much more clear intent:
~~~ruby
%i[ruby c cplusplus scala java perl].select(&allowed_l... -
02:54 PM Revision b0d81c10 (git): ruby.c: remove unnecessary context
- * ruby.c (process_options): remove unnecessary context.
rb_parser_append_print and rb_parser_while_loop just append some
nodes and do not depend on the context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53893 b2dd03c8-39d4-4... -
11:00 AM Revision f42d2ca8 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:34 AM Revision 4ca9138b (git): * enc/unicode/case-folding.rb, casefold.h: Adding flag for title-case,
- not yet operational.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:17 AM Revision 5470ce82 (git): * enc/unicode/case-folding.rb, casefold.h: Fixed bug that avoided inclusion
- of compatibility characters in uppper-/lower-case mappings.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Feature #12093: Eval InstructionSequence with binding
- Depending on the context, an identifier may be a local variable or a method call.
I think that `RubyVM::InstructionSequence#compile` would need the binding, instead of `#eval`. - 07:15 AM Revision cdc5ac2e (git): * 2016-02-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:15 AM Revision 01075263 (git): vm_core.h: CoreDataFromValue
- * vm_core.h (CoreDataFromValue): split as an expression from
GetCoreDataFromValue, which can be a statement only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:15 AM Revision 1656b70c (git): internal.h: shortcut macros
- * internal.h (RRATIONAL_SET_{NUM,DEN}): shortcut macros for
internal only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:28 AM Feature #12039: Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
- Another real-world use-case where I found Numeric#infinite? useful is JSON validation. Infinities are not allowed in JSON so a programmer want to filter them out before converting a Numeric into JSON, but that is not straight-forward ri...
-
01:09 AM Bug #12098 (Closed): Accessing a two level hash with invalid keys ignores the right side of expression
- Fixed by r53485.
-
12:34 AM Bug #12098 (Closed): Accessing a two level hash with invalid keys ignores the right side of expression
- Ruby 2.3 has a strange issue with hashes:
On Ruby 2.2:
~~~
irb(main):001:0> foo = {}
=> {}
irb(main):002:0> foo[:bla][:ble] = anything really
NameError: undefined local variable or method `really' for main:Object
from ...
02/21/2016
-
10:11 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
- Awesome, thank you!
-
04:20 PM Feature #12096: New notation for instance variables and class variables
- And of course, the range of available names for these variables should be extended. And `attr_reader :foo?` should also be allowed.
---
Another use case may be a shorthand for `instance_variable_set`/`instance_variable_get` with dy... -
03:09 PM Feature #12096 (Closed): New notation for instance variables and class variables
- In order to create symbols that include non-word characters, we have the `:'...'` notation:
~~~RUBY
:'foo-bar'
:"foo-bar"
~~~
What about extending this notation to instance variables and class variables? The use case is to solve... -
03:36 PM Feature #12005: Unify Fixnum and Bignum into Integer
- Yui NARUSE wrote:
> CRuby has two `Integer` classes, `Fixnum` and `Bignum`.
> ...
I like this very much! It always struck me as odd that `Integer` is special-cased like that. Some implementations have special-cased optimizations for sm... -
12:01 PM Feature #11361: proposal for easy method to nil-guard for generated variable name.
- masaki yamada wrote:
> It's easy to 'nil-guard' for normal variable.
> ...
Note that the two examples you gave are *not* equivalent: the first assigns to the variable if it evaluates to `false` or `nil` regardless of whether it is de... -
10:42 AM Revision f66f9982 (git): vm.c (vm_cref_new0): adjust indent [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:54 AM Bug #12095 (Closed): ruby_vm_at_exit can sometime cause a crash.
- This behavior has been seen erratically, but one of our users got it to reproduce almost systematically. We didn't managed to understand what made his system special that it would get that crash to reproduce so well.
Here's one of the... -
04:57 AM Revision d463c492 (git): cgi/escape: Optimize CGI.unescape
- * cgi/escape/escape.c: Optimize CGI.unescape performance by C ext
for ASCII-compatible encodings. [Fix GH-1250]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:57 AM Revision 1b7109e1 (git): cgi/escape: Optimize CGI.unescapeHTML
- * cgi/escape/escape.c: Optimize CGI.unescapeHTML performance by C
ext for ASCII-compatible encodings. [Fix GH-1242]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:54 AM Feature #12094: parameterized property assignment: o.prop(arg) = 1
- This is a longstanding pending feature.
- 04:52 AM Revision 6b6b3689 (git): * 2016-02-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:52 AM Revision 74758a58 (git): NEWS: update [ci skip]
- * NEWS: change of Symbol#match. [Bug #11991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:22 AM Feature #8921: Allow select, reject, etc to accept a regex
- Has there been any thought on this?
-
02:14 AM Feature #12079: Loosening the condition for refinement
- There is a point that needs to be made clear regarding this proposal: whether the symbol or string used in the construction has to be a literal. I think there would be use cases where the symbol/string is expressed as a more complex expr...