Activity
From 12/28/2015 to 01/03/2016
01/03/2016
-
11:53 PM Bug #11915: File.read reading string starting with | executes it.
- Nobuyoshi Nakada wrote:
> Linus Sellberg wrote:
> ...
But File.read DOES. Which is what I find wrong. That File.open doesn't is another reason to not have .read do that. -
11:14 PM Revision c48abea0 (git): Move a comment to the appropriate position.
- The position of `/* fall through */` was moved by r52931.
* insns.def (opt_case_dispatch): Move a comment to the
appropriate position.
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53423 b2dd03c8-39d4-4d8f-98ff-823fe6... -
10:11 PM Feature #11818: `Hash#compact`
- Prem Sichanugrist wrote:
> Active Support has this: http://api.rubyonrails.org/classes/Hash.html#method-i-compact
> ...
https://github.com/ruby/ruby/pull/1184/files
In anticipation of this being approved, I have raised a PR of a sam... -
05:49 PM Bug #11706: Clean up files etc/unicode/name2ctype.{h.blt,kwd,src}
- I've been dealing with an issue related to this. When Ruby updated to MRI 7.0 the name2ctype.h was updated but not the name2ctype.src, so they're now inconsistent (look at CR_Blank for example).
I found this problem when I tried to up... -
03:24 PM Revision 7d117c70 (git): contributing.rdoc: update [ci skip]
- * doc/contributing.rdoc: mention some make targets, check, up, and
love.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:03 PM Revision c4079eec (git): * 2016-01-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:03 PM Revision 94519cbb (git): common.mk: up in help
- * common.mk (help): mention `up` target briefly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:55 PM Revision 192b63fd (git): Fix defined? expressions
- * lib/rubygems/security.rb (DIGEST_ALGORITHM, KEY_ALGORITHM):
should check same name as the used constants.
[ruby-core:72674] [Bug #11940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:53 PM Bug #11940 (Third Party's Issue): Ruby fails to compile with --with-static-linked-ext
- Luiz Angelo Daros de Luca wrote:
> It seems that `OpenSSL::Digest` is defined by the builtin ext (in miniruby?!),
It might be defined in `rubygems/digest.rb`.
-
02:36 PM Bug #11937: did_you_mean and other bundled gems are not installed by make install
- Benoit Daloze wrote:
> 1) Why and when should I do a `make up`?
`make up` is a trigger to update via the network.
Other targets would not access remote hosts, except for some necessary files (config. guess and config.sub).
> ...
... -
12:28 PM Bug #11937: did_you_mean and other bundled gems are not installed by make install
- About 2) it's due to #11876, so after updating the keys it seems to work.
-
11:37 AM Bug #11937: did_you_mean and other bundled gems are not installed by make install
- Nobuyoshi Nakada wrote:
> Doesn't `make up` do it?
I guess it would, however I think there are two problems:
1) Why and when should I do a `make up`?
And where is it documented it should be part of the the build process? (make he... -
02:31 PM Feature #11939: Syntax sugar to apply a method replace a variable
- Maybe an op assign could be used with (1)?
```ruby
var +=.some_method(some_args)
```
-
02:19 PM Revision 23529f5d (git): Makefile.in: drop dependency
- * Makefile.in (aclocal.m4): drop the dependency of aclocal.m4 for
broken autotools installations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:26 PM Misc #11876: Scheduled maintenance 2016/01/01
- New IP is 52.192.80.219.
(I got a "WARNING: POSSIBLE DNS SPOOFING DETECTED!") -
12:00 PM Bug #11942: No rule to make target 'aclocal.m4', needed by 'configure'
- Just for the record, if you run into this bug, just redoing 'make up; make install' isn't enough. A manual 'svn up' is necessary.
-
10:22 AM Bug #11942 (Closed): No rule to make target 'aclocal.m4', needed by 'configure'
- Applied in changeset r53417.
----------
aclocal.m4: add
* aclocal.m4: add fallback file for non-aclocal environments.
[ruby-core:72683] [Bug #11942] -
09:04 AM Bug #11942 (Closed): No rule to make target 'aclocal.m4', needed by 'configure'
- When executing 'make up; make install-nodoc' I get the following errors:
(it's an easy guess that this must be related to r53414)
make[1]: Entering directory '/cygdrive/c/Data/ruby'
sed 's/{\$([^(){}]*)[^{}]*}//g' common.mk > uncomm... -
10:22 AM Revision 853ef28a (git): aclocal.m4: add
- * aclocal.m4: add fallback file for non-aclocal environments.
[ruby-core:72683] [Bug #11942]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:34 AM Bug #11943 (Rejected): Segmentation fault ruby 2.0.0p645
- /opt/rh/ruby200/root/usr/share/ruby/net/http/response.rb:368: [BUG] Segmentation fault
ruby 2.0.0p645 (2015-04-13) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0032 p:---- s:0170 e:00... -
08:14 AM Bug #11903: [BUG] vm_call_cfunc - cfp consistency error
- Check this related issue -https://bugs.ruby-lang.org/issues/7938
-
08:13 AM Bug #11903: [BUG] vm_call_cfunc - cfp consistency error
- Check this related issue -https://bugs.ruby-lang.org/issues/7938
-
07:04 AM Feature #11911: Immutable method definitions and/or static dispatch
- I suppose I'm talking specifically about the first, that is, the ability to change any method at any time.
The most obvious use case I can imagine is an application that wants to guarantee that it's running the stock stdlib, with no m... -
05:52 AM Bug #10196 (Closed): rdoc should not depend on gems
-
04:58 AM Bug #10196: rdoc should not depend on gems
- Pull Request accepted. Please, close.
-
05:01 AM Misc #11649 (Closed): [Refactor] Use `rb_method_visibility_t` instead of `int` in `rb_print_undef`
-
04:59 AM Revision 5cf9b65a (git): Use `rb_method_visibility_t` instead of `int` in `rb_print_undef`
- * eval_error.c (rb_print_undef): Use `rb_method_visibility_t`
instead of `int`.
* eval_intern.h (rb_print_undef): ditto
* proc.c (mnew_internal): ditto
* vm_method.c (rb_export_method): ditto
[Misc #11649] [ruby-core:71311] [fix GH-1... -
04:05 AM Feature #11934: A feature to drop dynamics dynamically
- It would be nice to fine-tune some of ruby's behaviour like that.
So I am encouraging all ideas similar as to the above.
There is only one concern I have - is it possible to become
"less" strict again that is, to revert to the def... - 03:12 AM Revision 21649a0f (git): * 2016-01-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:12 AM Revision e05a8537 (git): acinclude.m4: rename
- * acinclude.m4: rename aclocal.m4, which should be generated by
aclocal. [ruby-core:72675] [Bug #11941]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:12 AM Bug #11941 (Closed): aclocal.m4 cannot be generated by aclocal
- Applied in changeset r53414.
----------
acinclude.m4: rename
* acinclude.m4: rename aclocal.m4, which should be generated by
aclocal. [ruby-core:72675] [Bug #11941] -
12:46 AM Bug #11941 (Closed): aclocal.m4 cannot be generated by aclocal
- Hello,
Since rev 52202, ruby added a aclocal.m4 file to its source. Normally, it is expected that aclocal.m4 to be generated by command aclocal that reads m4 directory. In order to avoid using tainted autotools-generated files, some b...
01/02/2016
-
10:39 PM Bug #11940 (Third Party's Issue): Ruby fails to compile with --with-static-linked-ext
- Hello,
When I select to include all ext static linked and between them there is openssl, ruby fails to build.
~~~
$ ./configure --disable-install-doc --disable-install-rdoc --disable-install-capi --with-static-linked-e... -
07:40 PM Bug #9569: SecureRandom should try /dev/urandom first
- Hi!
I happen to have just given a talk on urandom internals at 32C3: https://media.ccc.de/v/32c3-7441-the_plain_simple_reality_of_entropy
The main takeaway about urandom is that it's a CSPRNG, just like the OpenSSL one. (Just bette... -
06:09 PM Bug #9569: SecureRandom should try /dev/urandom first
- First off, thank you for providing number. Then we can discuss scientific way.
blog pages are not considered a formal document.
However I can't reproduce your conclusion. In my result, securerandom has one
weak and /dev/urandom has... -
03:11 PM Bug #9569: SecureRandom should try /dev/urandom first
- The following is the output of your 'SecureRandom' construction vs. the Linux `/dev/urandom` facility:
http://nopaste.narf.at/show/EPVj9ETuMIcrCXKErsS6/
http://nopaste.narf.at/show/i0EJbkQrL3SXurfQZ524/
As you can see your RNG is ... -
02:36 PM Bug #9569: SecureRandom should try /dev/urandom first
- >You evidently have no idea what you are talking about. Why would you want to use the PRNG that's local to OpenSSL? It can fail in many ways, is >slower than the kernel and may introduce vulnerabilities. The OpenSSL PRNG is not even fork...
-
10:18 AM Bug #9569: SecureRandom should try /dev/urandom first
- Nobuyoshi Nakada wrote:
> SecureRandom without OpenSSL (or compatible alternatives) is nonsense.
You evidently have no idea what you are talking about. Why would you want to use the PRNG that's local to OpenSSL? It can fail in many w... -
06:57 AM Bug #9569: SecureRandom should try /dev/urandom first
- Aaron Zauner wrote:
> The issuer before me has linked to various cryptographers telling you in their blogs to use `/dev/urandom`. Why would you rather listen to an out-dated man page? Even how this works (CSPRNG and entropy) in the ke... -
02:16 AM Bug #9569: SecureRandom should try /dev/urandom first
- SecureRandom without OpenSSL (or compatible alternatives) is nonsense.
-
01:48 AM Bug #9569: SecureRandom should try /dev/urandom first
- Hi,
This still seems to be the case according to the code available on GitHub.
I urge the core team to move to `/dev/urandom`. It is an urban-legend (as Thomas Ptacek notes in the sockpuppet.org blog-post referenced two years ago) ... -
01:59 PM Feature #11939 (Open): Syntax sugar to apply a method replace a variable
- There is frequent use case to modify the value of a variable and keep it referred to by the same variable name. When method chaining cannot be done (for example, when the method is conditionally called), the same variable name would have...
- 12:08 PM Revision 004bb16c (git): thread_sync.c: remove unnecessary casts for queue_sleep
- "Qfalse" and "(VALUE)0" are equivalent, and do not matter
for an ignored argument, either.
Additionally, there's no reason to cast the pointer to
rb_thread_sleep_deadly when we already have a queue_sleep
wrapper.
* thread_sync.c (queue... - 07:19 AM Revision 32b4a8b3 (git): Allow ERB subclass to add token easily. [Feature #11936]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:19 AM Feature #11936 (Closed): Allow ERB subclass to add token easily
- Applied in changeset r53412.
----------
Allow ERB subclass to add token easily. [Feature #11936] -
05:44 AM Revision 123313e2 (git): parse.y: use nd_tag
- * parse.y (regexp): set_yylval_num sets u1, should use nd_tag
instead of nd_state. [ruby-core:72638] [Bug #11932]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:20 AM Feature #11938 (Closed): [PATCH] cleanup: stdlib: avoid extra calls to eliminate "\n" from Base64
- stdlib: avoid extra calls to eliminate "\n" from Base64
We may use the '0' (zero) to avoid adding the line feed.
Furthermore, the '*' (asterisk) modifier is not needed for
a single-element arrays.
-
04:39 AM Revision 9c541079 (git): Revert r53409 "parse.y: yylval.num should be u3"
- It introduces SEGV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:09 AM Bug #11924 (Third Party's Issue): $ gem server is broken for documentation browsing
-
03:46 AM Bug #11937 (Feedback): did_you_mean and other bundled gems are not installed by make install
- Doesn't `make up` do it?
-
02:11 AM Revision 10c2251a (git): parse.y: yylval.num should be u3
- * parse.y (set_yylval_num): should be used as nd_state, set to u3.
[ruby-core:72638] [Bug #11932]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:11 AM Bug #11932 (Closed): Ripper.sexp can't parse some files from ruby repository and returns nil
- Applied in changeset r53409.
----------
parse.y: yylval.num should be u3
* parse.y (set_yylval_num): should be used as nd_state, set to u3.
[ruby-core:72638] [Bug #11932]
01/01/2016
- 11:47 PM Revision 81df39dc (git): * 2016-01-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:27 PM Feature #10168: Native Object#inspect method should single quote strings that don't need to be double quoted
- Peter Halliday wrote:
> From my point of view this is a suggestion to increase overall productivity as I use tools that use this method to print things that I then copy and paste quite a bit - not having to then replace the quotes will ... -
05:38 PM Bug #11901: Performance Issue with OpenStruct
- Marc-Andre Lafortune wrote:
> Yui NARUSE wrote:
> ...
nobu did the latter in r53396.
-
05:34 PM Bug #11901: Performance Issue with OpenStruct
- Yui NARUSE wrote:
> Could you fix rubyspec?
Great, that was a bug
I made an easy fix so `method_missing` doesn't add a method if frozen. I hesitated to redefine `freeze` to add all the needed method definitions, but it's difficult... - 05:27 PM Revision 9543908c (git): * lib/ostruct.rb: Fix case of frozen object with initializer.
- Bug revealed by RubySpec [ruby-core:72639]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:58 PM Feature #11934: A feature to drop dynamics dynamically
- I am not sure this would bring much in terms of performance,
and it would definitely limits lots of stuff to run in this mode (Rails as today would certainly not).
It sounds a bit to me like trying another language.
Constant folding... -
01:46 PM Feature #11934: A feature to drop dynamics dynamically
- All of the dynamic language features described (constant and method redefinition, inclusion of modules etc) can already be done with no runtime cost (http://chrisseaton.com/rubytruffle/deoptimizing/, http://chrisseaton.com/phd/). If thes...
-
12:04 AM Feature #11934: A feature to drop dynamics dynamically
- Eric, thank you for your comment.
> We already allow "freeze" on classes and modules; perhaps we perform
> ...
Is constant folding possible? And method inlining? They may be possible, but I guess the effect will be restricted. To ... -
01:13 PM Misc #11876 (Closed): Scheduled maintenance 2016/01/01
- I finished maintenance and confirmation to svn commit.
SSH fingerprint at our new repository is here:
* RSA: 72:04:c9:95:f5:06:de:57:0a:45:0e:30:9c:4e:57:87
* ECDSA: bd:9d:d7:25:85:12:ab:65:a1:11:78:a9:71:7d:af:af
Please revo... -
01:10 PM Misc #11876: Scheduled maintenance 2016/01/01
- Hi, sora.
I replaced your 2nd key from s3 to sorah account.
If you need to register more keys, Please mention to me.
-
08:26 AM Misc #11876: Scheduled maintenance 2016/01/01
- Shota Fukumori wrote:
> - HTTP + pgp clearsign: http://sorah.jp/sorah-key.txt.asc
Correction: http://sorah.jp/ssh-key.txt.asc -
08:24 AM Misc #11876: Scheduled maintenance 2016/01/01
- Could you update my ssh keys too? (svn id sorah)
- HTTPS: https://s3-ap-northeast-1.amazonaws.com/sorah.jp/ssh-key.txt https://github.com/sorah/sorah.jp/blob/master/source/ssh-key.txt
- HTTP: http://sorah.jp/ssh-key.txt
- HTTP + pgp... -
06:55 AM Misc #11876: Scheduled maintenance 2016/01/01
- Happy New Year!
I start maintenance now. -
01:02 PM Revision 428fe14f (git): * NEWS: mention about CSV's liberal_parsing option.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:39 PM Revision b8057a5c (git): * ChangeLog: added missing reference for GitHub
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:08 PM Bug #11937 (Closed): did_you_mean and other bundled gems are not installed by make install
- did_you_mean and other bundled gems are not installed when doing a regular local build:
autoconf
./configure --prefix=...
make install
.../bin/ruby -e 'require "did_you_mean"'
=> LoadError
`make update-gem... -
11:06 AM Feature #11936: Allow ERB subclass to add token easily
- I fixed a patch to reduce times to compile the same regexp in TrimScanner.
-
06:42 AM Feature #11936 (Closed): Allow ERB subclass to add token easily
- While I want to use ERB in Rails, escape token "<%==" is not available in ERB and we can't add a new token to ERB easily.
To allow ERB subclass to add a new token easily, I splitted ERB::Compiler#compile to some small methods and create... -
10:39 AM Revision b4c1a13d (git): * doc/NEWS-2.3.0: fix double words typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:28 AM Revision 910eb983 (git): compile.c: adjust call_info count
- * compile.c (remove_unreachable_chunk): decrease count of
call_info in removed instructions. fix up r53402.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:05 AM Revision 00947375 (git): compile.c: remove unreferred label
- * compile.c (remove_unreachable_chunk): remove unreferred label
to optimize away unreachable chunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:47 AM Feature #11839 (Closed): CSV: liberal_parsing option
- 02:44 AM Revision f18f9408 (git): Adding a liberal_parsing option to CSV. Patch by Braden Anderson.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:27 AM Bug #11881 (Closed): Ruby build uses SDKROOT as if it owns it
- Applied in changeset r53400.
----------
mkconfig.rb: SDKROOT
* tool/mkconfig.rb (RbConfig): prefix SDKROOT to oldincludedir
not includedir, the latter is outside the ruby installation.
[ruby-core:72496] [Bug #11881] -
01:27 AM Revision 7d9342ae (git): mkconfig.rb: SDKROOT
- * tool/mkconfig.rb (RbConfig): prefix SDKROOT to oldincludedir
not includedir, the latter is outside the ruby installation.
[ruby-core:72496] [Bug #11881]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53400 b2dd03c8-39d4-4d8f-98...
12/31/2015
-
11:53 PM Bug #11933 (Closed): Add test for Enumerator::Lazy#take
- Applied in changeset r53399.
----------
Add test for Enumerator::Lazy#take
* test/ruby/test_lazy_enumerator.rb (test_take_bad_arg): Add test
code in case of Enumerator::Lazy#take called with negative number.
[ruby-dev:49467] [Bug #... -
02:51 PM Bug #11933 (Closed): Add test for Enumerator::Lazy#take
- Add test code in case of Enumerator::Lazy#take called with negative number.
-
11:53 PM Revision bd5d443a (git): Add test for Enumerator::Lazy#take
- * test/ruby/test_lazy_enumerator.rb (test_take_bad_arg): Add test
code in case of Enumerator::Lazy#take called with negative number.
[ruby-dev:49467] [Bug #11933]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53399 b2dd03c8-39d4... -
08:06 PM Bug #11871 (Closed): Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
- Applied in changeset r53398.
----------
parse.y: single-quote indented heredoc
* parse.y (parser_here_document): update indent for each line in
indented here document with single-quotes.
[ruby-core:72479] [Bug #11871] -
08:06 PM Revision b1796737 (git): parse.y: single-quote indented heredoc
- * parse.y (parser_here_document): update indent for each line in
indented here document with single-quotes.
[ruby-core:72479] [Bug #11871]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:38 PM Bug #11912: [WIP] resolv: attempt to fix Resolv::LOC::Coord.create
- zn@mbf.nifty.com wrote:
> `()` is required, or use `0` instead of `1`.
Thanks, we can omit the second arg entirely.
Will squash the following changes in on top of my previous:
diff --git a/lib/resolv.rb b/lib/resolv.rb
index ... -
11:56 AM Bug #11912: [WIP] resolv: attempt to fix Resolv::LOC::Coord.create
- `()` is required, or use `0` instead of `1`.
```
% rbenv exec irb -r irb/completion --simple-prompt
>> "N"[/([NE])/,1]
=> "N"
> ...
=> nil
>> "N"[/[NE]/,0]
=> "N"
``` -
07:27 PM Bug #11932: Ripper.sexp can't parse some files from ruby repository and returns nil
- I reduced buggy files. Seems it's related to parsing regexp.
-
02:05 PM Bug #11932 (Closed): Ripper.sexp can't parse some files from ruby repository and returns nil
- Test file bug.rb:
```ruby
require "ripper"
puts Dir['**/**.rb'].find_all { |f| Ripper.sexp(File.read(f)) == nil }
```
```
$ make runruby TESTRUN_SCRIPT=bug.rb
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=... -
06:28 PM Feature #11934: A feature to drop dynamics dynamically
- mame@ruby-lang.org wrote:
> So, how about a feature to prohibit some dynamic features in runtime?
We already allow "freeze" on classes and modules; perhaps we perform
some optimizations when they become frozen: perfect hashing,... -
05:34 PM Feature #11934 (Rejected): A feature to drop dynamics dynamically
- Ruby is a dynamic language. Everything is possible in runtime.
So, how about a feature to prohibit some dynamic features in runtime?
~~~~
Foo = 1
RubyVM.drop_dynamics
Bar = 2 #=> cannot define new constant
Foo = 2 ... - 06:26 PM Revision d6c769a5 (git): * 2016-01-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:26 PM Revision 6e5967e2 (git): ostruct.rb: deferred accessors
- * lib/ostruct.rb (freeze): define deferred accessors before
freezing to get rid of an error when just reading frozen
OpenStruct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:03 PM Bug #11935 (Closed): Date.new returns inconsistent errors when passed invalid arguments
- When passed invalid data, such as floats and nil values, the Date.new function returns a variety of results that aren't particularly easy to read and understand. The 'undefined method 'div' for nil:NilClass' is particularly unhelpful.
... -
05:10 PM Bug #11901 (Closed): Performance Issue with OpenStruct
- Could you fix rubyspec?
-
05:40 AM Bug #11901: Performance Issue with OpenStruct
- Indeed, the test in `new_ostruct_member` was incorrect now that `respond_to_missing?` has been changed.
Instead, if we look for the actual method I believe this will fix all issues. -
12:52 PM Bug #11915: File.read reading string starting with | executes it.
- Linus Sellberg wrote:
> It is one thing that some of the `.open` methods actually can execute stuff, but a method named 'read' should not behave like that.
`File.open` does not.
Some class methods of `IO`, e.g. `IO.foreach` and `IO.... -
12:46 PM Bug #11906: File.dirname separator stripping from the begining of path
- And on Windows, note that `\\foo\bar` is a valid UNC style path, but `\\\foo\bar` is not.
-
06:11 AM Bug #11930: Segmentation Fault in gc_mark_ptr in 2.3.0p0
- ```
devbox@devbox:~/code/project_name$ gdb --args /usr/bin/env ruby_executable_hooks /home/devbox/.rvm/gems/ruby-2.3.0/bin/sidekiq
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
Licens... -
01:57 AM Bug #11930 (Feedback): Segmentation Fault in gc_mark_ptr in 2.3.0p0
- Seems a GC problem with `Proc`.
```
-- C level backtrace information -------------------------------------------
/home/devbox/.rvm/rubies/ruby-2.3.0/bin/../lib/libruby.so.2.3(rb_vm_bugreport+0x51f) [0x7fe25c8c6b7f] vm_dump.c:688
/h... -
06:11 AM Bug #11899 (Rejected): `Object#public_methods` returns unordered array in Ruby 2.3.0
- It is not guaranteed.
- 05:37 AM Revision 2f2a5c3a (git): * lib/ostruct.rb: Fix new_ostruct_member to correctly avoid redefinition
- [#11901]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:24 AM Bug #11929: No programatic way to check ability to dup/clone an object
- [This demonstration](https://eval.in/495653) should clarify the observed behavior. `Symbol`, `Fixnum`, and indeed every other numeric class inherit their `#dup` from `Kernel`, whose implementation does a sanity check before proceeding, t...
-
01:49 AM Revision 99894e6c (git): test_module.rb: sort constants
- * test/ruby/test_module.rb (test_classpath): since r53376, all
results of Module#constants should be sorted to compare.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:38 AM Revision 3e0f09db (git): ruby-additional.el: escape control code
- * misc/ruby-additional.el (ruby-encode-unicode): escape control
code except for LF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:39 AM Revision 34167345 (git): ruby-additional.el: encode non-ASCII code only
- * misc/ruby-additional.el (ruby-encode-unicode): encode non-ASCII
code only, excluding ASCII control code, e.g. \t, \n, etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/30/2015
-
11:57 PM Bug #11931 (Closed): Segmentation fault with rexml/element.rb
- I am experiencing a bug with an API call collecting XML. I have a script that goes through a web catalog of products and writes it to a csv. Eventually I hit this error ( attached ). It's caching the responses so if I run and fail throug...
-
11:40 PM Bug #11930: Segmentation Fault in gc_mark_ptr in 2.3.0p0
- https://github.com/flavorjones/loofah/blob/4887e62da44a5ae772d52f028ee25019e6c3626d/lib/loofah.rb#L12
-
11:39 PM Bug #11930: Segmentation Fault in gc_mark_ptr in 2.3.0p0
- devbox@devbox:~/code/project_name$ sidekiq
/home/devbox/.rvm/gems/ruby-2.3.0/gems/loofah-2.0.3/lib/loofah.rb:12: [BUG] Segmentation fault at 0x00000000000000
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
-- Control frame i... -
10:16 PM Bug #11930: Segmentation Fault in gc_mark_ptr in 2.3.0p0
- Brian Giaraffa wrote:
> /home/devbox/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/core_ext/module/attribute_accessors.rb:208: [BUG] Segmentation fault at 0x00000000000000
> ...
I have discovered more information--
... -
07:52 PM Bug #11930 (Closed): Segmentation Fault in gc_mark_ptr in 2.3.0p0
- /home/devbox/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/core_ext/module/attribute_accessors.rb:208: [BUG] Segmentation fault at 0x00000000000000
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] -
08:17 PM Bug #11928 (Feedback): Segmentation fault in did_you_mean extension
- What exception will raise with `--disable=did_you_mean` command line option?
-
03:27 PM Bug #11928 (Closed): Segmentation fault in did_you_mean extension
- I'm getting a segmentation fault in my Rails application test suite if I attempt to use an undefined method/object.
I was not able to reproduce this outside of the complex environment of my application, but hopefully you might be able... -
07:06 PM Revision 2fad0168 (git): skip if locale is not UTF-8
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:47 PM Revision 5da0e863 (git): * test/ruby/test_module.rb (test_classpath): r53376 may change
- the order of m.constants.
`make TESTS='-v ruby/test_class.rb ruby/test_module.rb' test-all`
may fail after that.
http://rubyci.s3.amazonaws.com/tk2-243-31075/ruby-trunk/log/20151230T164202Z.log.html.gz
git-svn-id: svn+ssh://ci.rub... - 05:20 PM Revision 6bdfd21d (git): * 2015-12-31
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:20 PM Revision 6ec9331c (git): * common.mk (help): Fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:30 PM Bug #11929 (Closed): No programatic way to check ability to dup/clone an object
- We can't dup a Fixnum, and it's ok. But I'm wondering «why is Fixnum saying it can dup?»
~~~
1.respond_to?(:dup) #=> true
~~~
Don't you think that the `dup` method should be undefined in the class Fixnum?
Currently I can do `c... -
12:29 PM Misc #11904: Why was Thread.exclusive deprecated?
- Tony Arcieri wrote:
> Is a single-threaded require actually a *guarantee* of every Ruby VM?
Not single-threaded, but each file should be loaded at most once.
Single require per file/path is certainly highly desirable,
otherwise you... -
11:53 AM Revision 95aadb14 (git): * lib/net/http/responses.rb: Added new response class for 451 status code.
- * lib/net/http.rb: documentation for HTTPUnavailableForLegalReasons
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:45 AM Revision 27f00a7a (git): * lib/webrick/httpstatus.rb: Added HTTP 451 Status Code.
- [fix GH-1167] Patch by @MuhammetDilmac
https://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:40 AM Feature #11927 (Open): Return value for `Module#include` and `Module#prepend`
- Currently, `Module#include` and `Module#prepend` return the receiver, regardless of whether the ancestor chain has been modified. It is not straightforward to know whether it actually had effect.
~~~ruby
module A; end
module B; end
... -
11:28 AM Bug #11926 (Closed): Backport request r53385
- Please backport documentation patch for safe navigation operator.
-
11:26 AM Revision 8f8f92b5 (git): * doc/syntax/calling_methods.rdoc: fix old operator for safe navigation
- operator. [ci skip][fix GH-1182] Patch by @dougo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:18 AM Feature #6284: Add composition for procs
- With the recent addition of `Hash#to_proc` and performance improvements to `Proc`s in 2.3.0, I have rebased my patch (attached) to add composition between `Proc`s, `Method`s and other objects responding to `call` with `*` in the hope of ...
-
11:08 AM Bug #11902: have_func('rb_thread_fd_select') returns false
- On Tue, Dec 29, 2015 at 8:09 AM, <dwfaithfull@gmail.com> wrote:
> Issue #11902 has been updated by Dwain Faithfull.
>
>
> Nobuyoshi Nakada wrote:
>> https://gist.github.com/dwfait/9515d4893ac59962d204#file-mkmf-log-L178-L183
>>
... -
10:15 AM Bug #11909: io.popen problem in 2.2 and over
- Hi all, I have a confirmation... The problem is with libxml-ruby invoked by io.popen. If we try with Nokogiri all is ok.
So, do you think I have to submit the problem to libxml-ruby gem team or do you think it may be a problem related t... -
08:40 AM Bug #11909: io.popen problem in 2.2 and over
- OK, excuse me, we have a problem with libxml if it's called via io.popen. I don't want any "heavy lifting" for me ...
I can't reproduce the problem without libxml because I don't have a problem without libxml, like Nobuyoshi says. And ... -
09:16 AM Bug #11878: Comparison of prepended modules
- I thought that the ordering relation among modules/classes represents the method call priority. `A` < `B` means that method look-up first looks in `A`, then `B`; smaller module/class has higher priority. If so, since a module prepended t...
-
07:36 AM Bug #11878: Comparison of prepended modules
- Making prepending class an ancestor of prepended module?
It feels strange a little, to me. -
04:28 AM Bug #11878: Comparison of prepended modules
- As far as I see the revision r53380 by Nakada san, it looks like my feature proposal part was rejected. Is this the case?
-
12:59 AM Bug #11878 (Closed): Comparison of prepended modules
- Applied in changeset r53380.
----------
object.c: fix prepend cmp
* object.c (rb_class_inherited_p): search the corresponding
ancestor to prepended module from prepending class itself.
[ruby-core:72493] [Bug #11878] -
07:44 AM Feature #11925: Struct construction with kwargs
- Hi.
I have thought the same thing that want to use kwargs in Struct class.
But I can't come up with a good API.
Finally, I made a gem. https://github.com/ksss/type_struct -
07:43 AM Revision f880d5dc (git): Add test for String#ord
- * test/ruby/test_string.rb (test_ord): Add test for String#ord.
[Fix GH-1181]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:28 AM Revision 6fd18ca5 (git): forwardable.rb: adjust backtrace by tail call
- * lib/forwardable.rb (def_instance_delegator): adjust backtrace of
method body by tail call optimization. adjusting the delegated
target is still done by deleting backtrace.
* lib/forwardable.rb (def_single_delegator): ditto.
git-s... -
02:26 AM Revision d8eb5ade (git): fix commit miss
- * test/test_forwardable.rb: add tests for r53381.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:18 AM Bug #11916 (Closed): Fix delegating to 'args' and 'block'
- Applied in changeset r53381.
----------
Forwardable: Fix delegating to 'args' and 'block'
* lib/forwardable.rb (def_instance_delegator) fix delegating to
'args' and 'block', clashing with local variables in generated
methods... -
02:18 AM Revision 986fb559 (git): Forwardable: Fix delegating to 'args' and 'block'
- * lib/forwardable.rb (def_instance_delegator) fix delegating to
'args' and 'block', clashing with local variables in generated
methods. [ruby-core:72579] [Bug #11916]
* lib/forwardable.rb (def_single_delegator): ditto.
If you have... -
12:58 AM Revision a974041b (git): object.c: fix prepend cmp
- * object.c (rb_class_inherited_p): search the corresponding
ancestor to prepended module from prepending class itself.
[ruby-core:72493] [Bug #11878]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53380 b2dd03c8-39d4-4d8f-98ff-82... -
12:42 AM Misc #11876: Scheduled maintenance 2016/01/01
- Hi kou.
Thank you for your comment. I will replace you key at maintenance time. -
12:41 AM Feature #11911 (Feedback): Immutable method definitions and/or static dispatch
- Ruby's ability to change any method anytime, and C++/Java's ability to overwrite some methods in subclasses, are conceptionally quite different. Which one are you interested in, and why? What is your use case?
-
12:20 AM Feature #11921 (Closed): Add test for rb_io_modestr_fmode
- Applied in changeset r53379.
----------
test_io.rb: test for rb_io_modestr_fmode
* test/stringio/test_io.rb (test_flag): add assertion for error when
text and binary mode are mixed.
[ruby-dev:49465] [Feature #11921] -
12:20 AM Revision d252e224 (git): test_io.rb: test for rb_io_modestr_fmode
- * test/stringio/test_io.rb (test_flag): add assertion for error when
text and binary mode are mixed.
[ruby-dev:49465] [Feature #11921]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/29/2015
-
11:44 PM Feature #11920 (Closed): Add test for StringIO#initialize
- Applied in changeset r53378.
----------
test_stringio.rb: test_initialize
* test/stringio/test_stringio.rb (test_initialize): add test for
StringIO#initialize. [ruby-core:72585] [Feature #11920] -
04:53 AM Feature #11920 (Closed): Add test for StringIO#initialize
- I cannot found testing for StringIO#initialize.
So, I tried writing this patch. -
11:44 PM Revision 3586aef4 (git): test_stringio.rb: test_initialize
- * test/stringio/test_stringio.rb (test_initialize): add test for
StringIO#initialize. [ruby-core:72585] [Feature #11920]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:58 PM Misc #11904 (Rejected): Why was Thread.exclusive deprecated?
- This use of `Thread.exclusive` seems nonsense.
https://github.com/cryptosphere/rbnacl/commit/25444979d161fa0f02a61a5003768c2173cfa2ee
While `Thread.exclusive` stops all other threads in 1.8 and earlier, it just blocks other threads w... -
08:01 PM Misc #11904: Why was Thread.exclusive deprecated?
- I received a PR to my project to "add Ruby 2.3 support" (via an inline Mutex) and I think it illustrates the problem:
https://github.com/cryptosphere/rbnacl/pull/127
This doesn't really help, and I guess to make the warning message... -
10:42 PM Bug #11909: io.popen problem in 2.2 and over
- Simone Pieri wrote:
> our problem is that we really need libxml, so it's not interesting to try without....
Ruby is an open source project. We depend on help from everybody; we don't have the time to do the heavy lifting for you. Man... -
10:21 PM Bug #11909: io.popen problem in 2.2 and over
- We have to tell if libxml is mandatory to reproduce it or not.
-
11:11 AM Bug #11909: io.popen problem in 2.2 and over
- Hi,
our problem is that we really need libxml, so it's not interesting to try without.... -
08:21 PM Feature #11614 (Closed): [RFC] use id_table for constant tables - Applied in changeset r53377.
----------
ChangeLog: add entry for r53376
Oops :x
[ruby-core:72112] [Feature #11614] - 08:21 PM Revision 7e85d487 (git): ChangeLog: add entry for r53376
- Oops :x
[ruby-core:72112] [Feature #11614]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:19 PM Revision 1142de8e (git): use id_table for constant tables
- valgrind 3.9.0 on x86-64 reports a minor reduction in memory usage
when loading only RubyGems and RDoc by running: ruby -rrdoc -eexit
before: HEAP SUMMARY:
in use at exit: 2,913,448 bytes in 27,394 blocks
total heap usage: 48,362 ... -
07:33 PM Bug #11867: overriden constant instance variable mismatch
- Nobuyoshi Nakada wrote:
> Exactly.
> ...
I expected the latest constant to set its @b property. If not Class A, at the very least I expected Struct :a to get set. Is this not the intuitive thing to expect? People send arguments based o... -
07:26 PM Revision b7573a00 (git): * thread_pthread.c (rb_thread_create_timer_thread): destroy attr even
- if pthread_create() failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:20 PM Bug #11922 (Closed): [PATCH] fix ASYNC BUG race from bootstraptest/test_fork.rb - Applied in changeset r53373.
----------
thread_pthread.c (rb_thread_create_timer_thread): fix race
This fixes an occasional [ASYNC BUG] failure in
bootstraptest/test_fork.rb '[ruby-dev:37934]'
which tests fork/pthread_create failure by... -
11:33 AM Bug #11922 (Closed): [PATCH] fix ASYNC BUG race from bootstraptest/test_fork.rb
- ~~~
thread_pthread.c (rb_thread_create_timer_thread): fix race
This fixes an occasional [ASYNC BUG] failure in
bootstraptest/test_fork.rb '[ruby-dev:37934]'
which tests fork/pthread_create failure by setting
RLIMIT_NPROC to 1 and ... - 06:20 PM Revision 60c49e94 (git): * 2015-12-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:20 PM Revision 24c979bd (git): thread_pthread.c (rb_thread_create_timer_thread): fix race
- This fixes an occasional [ASYNC BUG] failure in
bootstraptest/test_fork.rb '[ruby-dev:37934]'
which tests fork/pthread_create failure by setting
RLIMIT_NPROC to 1 and triggering EAGAIN on pthread_create
when attempting to recreate the ti... -
03:28 PM Feature #11918: Make #finite? consistent with #nonzero?
- Hello Matz,
With zero division on Integers we expect to do one of these:
~~~
99 / 0 # default behaviour: raise ZeroDivisionError from __LINE__
99 / 0 rescue 0 # handle it here: just return 0
~~~
For Floats there is... -
07:28 AM Feature #11918 (Feedback): Make #finite? consistent with #nonzero?
- Forget about consistency with `nonzero?`, it has sorting use-cases.
And tell me your use-case for `finite?` that returns `nil`.
Your example seems artificial for me.
Matz.
-
03:12 AM Feature #11918 (Feedback): Make #finite? consistent with #nonzero?
- Calling `.nonzero?` on a number returns itself (truthy) or nil, but calling `.finite?` on a float is just true or false.
Floats can produce Infinity without errors and cause downstream errors if that result is unexpected. This would b... -
01:09 PM Bug #11902: have_func('rb_thread_fd_select') returns false
- Nobuyoshi Nakada wrote:
> https://gist.github.com/dwfait/9515d4893ac59962d204#file-mkmf-log-L178-L183
> ...
Any hints/pointers as to figuring out why it's being linked and how to fix this?
-
12:57 PM Feature #11925 (Closed): Struct construction with kwargs
- Propose to make Struct subclass constructors which accept keyword arguments. Not sure, if it's reasonable to allow `.new` accept kwargs, so may be should use different method named like `.create`:
```ruby
Point = Struct.new(:x,:y, ... -
12:54 PM Feature #11923: Put Struct accessors into separate module to allow redefining them in Struct.new's block
- Sorry. Don't how to choose appropriate assignee.
-
11:57 AM Feature #11923 (Open): Put Struct accessors into separate module to allow redefining them in Struct.new's block
- `Struct.new(*args, &block)` creates a subclass of `Struct`. Some methods like accessors are defined right in newly created class. Others like `#initialize`, `#values` and so on are declared in a superclass, i.e. in `Struct`.
The fact th... -
12:23 PM Revision 290deeb7 (git): ruby.c: overriding warning options
- * ruby.c (proc_options): successive -W option overrides previous
warning options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:22 PM Bug #11924 (Third Party's Issue): $ gem server is broken for documentation browsing
- The `$ gem server` command is broken. The gemserver doesn’t find the stylesheets and javascripts, so that the browser only shows the unstyled, bare HTML.
Sample commandline session:
~~~~
% gem list ffi
*** LOCAL GEMS ***
ffi... -
12:17 PM Revision 3d458cd0 (git): * ChangeLog: remove duplicated entries at r53366.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:39 AM Revision 1eafb3dd (git): ruby.c: parse -W option
- * ruby.c (proc_options): parse and skip '-W' option and its
argument even if ignored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:12 AM Revision 66fe2c0d (git): ruby.c: command line option over RUBYOPT env
- * ruby.c (proc_options): -W command line option should be able to
override -w in RUBYOPT environment variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:04 AM Feature #11919: Passing a module directly
- Nobuyoshi Nakada wrote:
> You can write it as
> ...
Right. I had forgotten about operator precedence. My example did not make sense.
> Or without `Module.new`?
> ...
I think this is what I actually wanted to ask for. -
08:31 AM Feature #11919 (Feedback): Passing a module directly
- You can write it as
~~~ruby
using Module.new {
refine ...
...
}
~~~
Or without `Module.new`?
~~~ruby
using do
refine ...
...
end
~~~
-
03:57 AM Feature #11919 (Rejected): Passing a module directly
- Refinement requires a named module:
~~~ruby
module MyRefinement
refine ...
...
end
using MyRefinement
~~~
but often (but not always), refinements are called by the `using` command only in once in a single file, and shou... -
08:54 AM Revision b6b1038c (git): eval.c: warn block for using
- * eval.c (ignored_block): warn if a block is given to `using`,
which is probably for `Module.new`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:36 AM Revision 1403dfbf (git): compile.c: adjust label reference
- * compile.c (new_adjust_body): labels referred by adjuststack
shoud not be optimized away.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:58 AM Feature #11921 (Closed): Add test for rb_io_modestr_fmode
- I cannot found testing for error when io-mode is binary and text.
So, I tried writing this patch. -
03:48 AM Bug #11884 (Closed): Psych.load broken for OpenStruct in Ruby 2.3.0
- Applied in changeset r53366.
----------
ostruct.rb: respond_to?
* lib/ostruct.rb (OpenStruct): make respond_to? working on
just-allocated objects for workaround of Psych.
[ruby-core:72501] [Bug #11884] -
03:48 AM Revision 15960b37 (git): ostruct.rb: respond_to?
- * lib/ostruct.rb (OpenStruct): make respond_to? working on
just-allocated objects for workaround of Psych.
[ruby-core:72501] [Bug #11884]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:37 AM Revision 88aa6abf (git): * test/mkmf/test_have_func.rb (test_have_func):
- Add assertion to examine the existence of HAVE_RUBY_INIT.
* test/mkmf/test_have_func.rb (test_not_have_func):
Add assertion to examine the absence of HAVE_RUBY_INIT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53365 b2dd03c8-39... -
12:26 AM Feature #11917 (Open): Add Range#length as an alias for size
- I noticed that `Range` has a `size` method but no `length`, unlike most other `Enumerable` classes. I propose adding `Range#length` as an alias for `Range#size`. Any reason not to?
-
12:05 AM Bug #11913 (Feedback): make fails when using a custom build directory
- Elliot Winkler wrote:
> ~~~
> ...
This happens when `enc/trans/.time` file exists under the source
directory.
> ~~~
> ...
Seems like these object files exist in the source directory, too.
Have you build in the source directory,...
12/28/2015
-
11:56 PM Bug #11916 (Closed): Fix delegating to 'args' and 'block'
- If you have a class that uses Forwardable to delegate a method to
another object, and the method that returns the delegate object is
called `args` or `block`, then Forwardable will fail to work.
Here's a simple example:
class... -
11:54 PM Bug #11913 (Assigned): make fails when using a custom build directory
- I can reproduce this.
-
09:50 PM Bug #11913 (Closed): make fails when using a custom build directory
- Hi there. I've been trying to submit a bugfix, and in doing so I realized that I had to compile Ruby so that I could run all of the tests. I made a fresh clone of Ruby, and started following the [Contributing document](https://github.com...
-
11:46 PM Bug #11909 (Feedback): io.popen problem in 2.2 and over
- Since I haven't installed libxml, tried with mere `puts`, and couldn't reproduce it.
Can you reproduce it without libxml? -
03:42 PM Bug #11909 (Rejected): io.popen problem in 2.2 and over
- Hi, I have a ruby program (prova5.rb) that contains libxml prase and a find. With Ruby 2.1.8 I have no problem, even if I execute it via "ruby prova5.rb" than if I execute it via io.popen in prova2.rb.
In a 2.2.4 environment I have su... -
11:24 PM Bug #11915 (Closed): File.read reading string starting with | executes it.
- ```ruby
puts File.read "|/bin/ls"
[output of executing ls]
=> nil
```
This is quite surprising behaviour.
It is one thing that some of the `.open` methods actually can execute stuff, but a method named 'read' should not behave li... -
10:57 PM Bug #11914 (Closed): 2.2.4: Parsing "symbol:%w(word)" gives SyntaxError
-
10:08 PM Bug #11914 (Closed): 2.2.4: Parsing "symbol:%w(word)" gives SyntaxError
- This snippet does not parse correctly, only in ruby 2.2.4: {a:%w(a)}
Adding a space after the "a:" works.
irb(main):001:0> RUBY_VERSION
=> "2.2.4"
irb(main):002:0> {a:%w(a)}
SyntaxError: (irb):2: syntax error, unex... -
10:49 PM Bug #10687: ArgumentError in certain cases of instance_exec (new bug in 2.2)
- Still broken at 2.3.0:
~~~
$ ruby -v a.rb
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
a.rb:1:in `block in <main>': wrong number of arguments (given 4, expected 0..1) (ArgumentError)
from a.rb:4:in `instance_ex... -
10:42 PM Misc #11904: Why was Thread.exclusive deprecated?
- I agree with Tony that Thread.exclusive still has uses. Was there some discussion on deprecating it?
-
09:43 PM Misc #11904: Why was Thread.exclusive deprecated?
- Is a single-threaded require actually a *guarantee* of every Ruby VM?
-
06:17 PM Misc #11904: Why was Thread.exclusive deprecated?
- Also in this particular case, it seems relying on `require` being thread-safe would be good enough for ensuring a single initialization.
-
06:13 PM Misc #11904: Why was Thread.exclusive deprecated?
- Why not create your own Mutex and store it in a constant at load time?
Thread.exclusive could cause accidental contention because it is obviously global for all uses. -
06:31 AM Misc #11904 (Rejected): Why was Thread.exclusive deprecated?
- initialize a mutex because the mutex must be initialized in a thread-safe context where it's not possible for multiple caller threads to initialize the mutex concurrently.
One use case is here: this is an idempotent native funct... -
09:53 PM Bug #11906: File.dirname separator stripping from the begining of path
- MRI normalization uses UNIX style normalization. So, that's intentional. I'm curious why JRuby uses another normalization.
Does it have good use-case?
-
11:24 AM Bug #11906 (Closed): File.dirname separator stripping from the begining of path
- MRI strips additional leading slashes with `File.dirname` :
```
File.dirname "////foo/bar/baz" # => /foo/bar
File.dirname "////foo//bar/baz" # => /foo//bar
```
... issue arose as an incompatibility on JRuby's tracker: https://g... - 09:52 PM Revision 5ad289b1 (git): thread_sync.c: static classes
- We do not want to waste space by exposing globals to other
objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:05 PM Bug #11912 (Closed): [WIP] resolv: attempt to fix Resolv::LOC::Coord.create
- This seems to have never worked in the first place:
* "$1 < 180" where $1 is a string raises ArgumentError
* regexps in the assignment for "hemi" reset $1 and clobber $2, $3, $4
* orientation is a frozen string literal which we appe... -
08:31 PM Bug #11910 (Closed): resolv.rb - can't modify frozen String in #scan - Applied in changeset r53363.
----------
Resolv::IPv6.create: avoid modifying frozen string literal
* lib/resolv.rb (Resolv::IPv6.create): avoid modifying frozen
* test/resolv/test_dns.rb (test_ipv6_create): test for above
[Bug #11910... -
05:26 PM Bug #11910 (Closed): resolv.rb - can't modify frozen String in #scan
- lib/resolv.rb contains "frozen_string_literal: true". This causes an error in a travis build from https://github.com/middleman/middleman/pull/1713.
~~~ruby
/home/travis/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/resolv.rb:2462:in `block i... - 08:31 PM Revision a3b53cd9 (git): Resolv::IPv6.create: avoid modifying frozen string literal
- * lib/resolv.rb (Resolv::IPv6.create): avoid modifying frozen
* test/resolv/test_dns.rb (test_ipv6_create): test for above
[Bug #11910] [ruby-core:72559]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53363 b2dd03c8-39d4-4d8f-98ff-... -
06:46 PM Bug #11878: Comparison of prepended modules
- Indeed.
-
06:17 PM Feature #11911 (Feedback): Immutable method definitions and/or static dispatch
- One of Ruby's biggest strengths is the ability for anyone, at any time, to redefine (almost) any behavior. But this is also one of its biggest weaknesses.
Ruby has a very liberal dynamic dispatch, so any method can be redefined anywhere... -
06:16 PM Feature #11882: Map or NamedMap
- For a long time I've been saying Symbols are the biggest disadvantage of Ruby, so you can count on me with any efforts in trying to make symbols and strings interchangeable even if only for hashes.
I've tried many suggestions, like ma... -
07:02 AM Feature #11882: Map or NamedMap
- I used to have a strong opinion about the difference between String and Symbol, but ever since Symbol GC (and the resulting distinction between GC-able Symbols and "real" Symbols) I don't care so much. Now people can easily create what t...
-
03:56 AM Feature #11882: Map or NamedMap
- I concur with Hampton Catlin for the most part (save for the
name "Map", that is not a good name IMO).
I assume that exposing Symbols was never directly the primary
design goal to be had; it came to be, and please feel free to
corr... -
03:30 AM Feature #11882: Map or NamedMap
- That's such a kind of.... odd opinion to me. I've been doing ruby for 10 years, and I still have to write fairly obvious handling code when building programming interfaces and libraries... over and over again. I guess I just see 95% of H...
-
01:42 AM Feature #11882: Map or NamedMap
- Hampton Catlin wrote:
> Requirements:
> ...
The proposal to treat `meth {{k: v}}` as `meth(Map.new(k: v))` instead of the current behavior of `meth do {k: v} end` clearly breaks existing code, and a lot more of it than you probably ex... -
04:36 PM Feature #11782: String#+@ and String#-@
- What is primary use case for `-'string'`? I initially though it was to be a shorthand for `'string'.freeze`, avoiding allocation (due to special compiler support), producing an interned frozen string. But it does a dup, so does `-'strin...
-
03:37 PM Bug #11908 (Rejected): Tk still relies on safe level 3 and 4
- Tk uses safe level 3 and 4, which causes ArgumentError, because $SAFE >= 2 are no more supported in ruby >= 2.3.
To be honest, I'm not totally sure if it's "safe" enough to make this change, but at least it doesn't raise ArgumentError... -
03:10 PM Revision d21c54ff (git): :warning: key "accelerator" is duplicated and overwritten in Tk samples
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:10 PM Revision 58d698af (git): Missing require
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:10 PM Revision 357ef2f4 (git): parsedate is no more available since 1.9
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:10 PM Revision 1ea5d1ae (git): * 2015-12-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:09 PM Revision 67a886ce (git): Convert euc-jp resource file in Tk sample to utf-8
- The sample program assumes the file to be encoded in utf-8
https://github.com/ruby/ruby/blob/02531898987693bd28879c78b3cb660006891186/ext/tk/sample/tkoptdb.rb#L15-L17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53358 b2dd03c8-39d4... -
03:09 PM Revision 672fe831 (git): Documentation typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:21 PM Bug #11907: sort_by does not preserve order with arrays with 7+ items and a block that returns the same value
- I am pretty sure this proposal will be rejected. Ruby's sort is not stable. If you want to do stable sort, use `with_index`.
-
02:01 PM Bug #11907 (Rejected): sort_by does not preserve order with arrays with 7+ items and a block that returns the same value
- **TL;DR Arrays with more than 6 items do not have their order preserved if sorted with sort_by and the sort_by block returns the same value for each.**
Let’s start with a simple array of 6 items and sort it by the same value using the... -
12:07 PM Feature #11708: Specify a way to override Struct-subclass constructor
- Marc-Andre Lafortune wrote:
> It's true that there is no test (and more surprisingly no Rubyspec) on this.
> ...
First, thank you for the test.
And second, no. It can't be deduced. Actually, I was rather surprised that my approach wor... -
08:36 AM Feature #8839: Class and module should return the class or module that was opened
- I find myself repeating writing something like below (which, of course, doesn't work at this moment):
```ruby
private_constant class Person
...
end
```
Although it would need to return a symbol, it would be great if we could ... -
08:14 AM Feature #11905 (Closed): Change the 'class' keyword to return a symbol
- I am totally aware of the current behaviour that you mentioned, but I'll close this issue since this is a duplicate.
-
08:08 AM Feature #11905: Change the 'class' keyword to return a symbol
- It returns the last value inside the block, as well as `begin`/`end` block, not `nil`.
-
08:00 AM Feature #11905 (Closed): Change the 'class' keyword to return a symbol
- Currently the `class` keyword returns nil:
```ruby
class Person; end # => nil
```
It would be great if it could return a symbol instead:
```ruby
class Person; end # => :Person
```
If we make it so we'll be able to do so... -
07:17 AM Bug #11902 (Third Party's Issue): have_func('rb_thread_fd_select') returns false
- https://gist.github.com/dwfait/9515d4893ac59962d204#file-mkmf-log-L178-L183
~~~
"clang -o conftest -I/usr/local/include/ruby-2.4.0/x86_64-darwin14 -I/usr/local/include/ruby-2.4.0/ruby/backward -I/usr/local/include/ruby-2.4.0 -I. -D_X... -
04:55 AM Bug #11902: have_func('rb_thread_fd_select') returns false
- I should add installing ruby 2.3 through ruby-install works fine.
-
04:21 AM Bug #11902: have_func('rb_thread_fd_select') returns false
- Eric Wong wrote:
> dwfaithfull@gmail.com wrote:
> ...
Sure. I'm on OS X 10.10. As an aside, others I've talked to can't replicate it either, but I can't fathom what I could have done to cause this behaviour. With the exception of opens... -
04:08 AM Bug #11902: have_func('rb_thread_fd_select') returns false
- dwfaithfull@gmail.com wrote:
> Bug #11902: have_func('rb_thread_fd_select') returns false
> ...
I cannot reproduce this on my GNU/Linux machines with 2.4.0dev
Can you show us your gem_make.out and mkmf.log files?
-
03:55 AM Bug #11902 (Third Party's Issue): have_func('rb_thread_fd_select') returns false
- Hello all. I don't know if this is a bug or an error on my part of setting something up.
I was unable to install the eventmachine gem against a version of ruby I compiled from trunk due to have_func('rb_thread_fd_select') reporting fa... -
07:04 AM Revision 02531898 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:42 AM Revision f84ba30a (git): iseq.c: suppress warnings
- * iseq.c (rb_iseq_compile_with_option): suppress "clobbered"
warnings by old gcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:56 AM Revision 2eb5e09e (git): Add test for String#rstrip!
- * test/ruby/test_string.rb (TestString#test_rstrip_bang): Add test
for String#rstrip!. [Fix GH-1176]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:52 AM Bug #11903 (Closed): [BUG] vm_call_cfunc - cfp consistency error
- ~~~
usr/local/lib/ruby/gems/2.2.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1793: [BUG] vm_call_cfunc - cfp consistency error
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
~~~
-
01:50 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
- Eric Wong wrote:
> Anyways, if somebody can design a good API for internal use,
> ...
Something along the lines of vm_get_current_kwarg(name) could simply use existing interpreter structures for managing in-flight keyword arguments.
... -
01:18 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
- headius@headius.com wrote:
> Eric Wong wrote:
> > Using globals or TLS would introduce subtle reentrancy problems
> > when calls are nested. I don't want to create more C-APIs
> > we need to support long-term, either.
> The g... -
12:22 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
- Comparing stack traces:
```
[] ~/projects/ruby $ ruby23 -rsocket -e "t = TCPSocket.new('google.com', 80); t.read_nonblock(1)"
<internal:prelude>:76:in `__read_nonblock': Resource temporarily unavailable - read would block (IO::EAGAI... -
12:13 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
- Eric Wong wrote:
> Using globals or TLS would introduce subtle reentrancy problems
> ...
The global would only be used between the runtime making a call with keyword arguments and the consumption of those arguments for variable initia... - 12:19 AM Revision 4ab3c75b (git): * 2015-12-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:18 AM Revision 78d15f5e (git): Add test for String#lstrip!
- * test/ruby/test_string.rb (TestString#test_lstrip_bang): Add test
for String#lstrip!. [Fix GH-1176]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e