Activity
From 04/08/2018 to 04/14/2018
04/14/2018
-
04:51 PM Revision 5bae48bd (git): thread_sync.c: [DOC] fix typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:50 PM Revision 5e998633 (git): string.c: [DOC] fix typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:50 PM Revision 5b4a5c66 (git): gc.c: [DOC] fix typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:49 PM Revision 15192b64 (git): process.c: [DOC] fix grammar
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:48 PM Revision 9d069981 (git): man/ruby.1: [DOC] fix grammar
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:47 PM Revision d890fabe (git): lib/fileutils.rb: [DOC] fix typos and grammar
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:46 PM Revision f10a1348 (git): error.c: [DOC] minor fixes
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:45 PM Revision 5c5b64c6 (git): random.c: improve docs for Random.bytes
- * random.c: [DOC] improve language and RDoc markup in Random.bytes docs;
also adjust call-seq style of Random.bytes and Random#bytes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:43 PM Revision 136643a8 (git): * 2018-04-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:43 PM Revision 96827ee5 (git): complex.c: improve docs for Complex#{finite?,infinite?}
- * complex.c: [DOC] correct term "real value" to "real part", and same
for imaginary part, in documentation for Complex#{finite?,infinite?}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:05 PM Revision 0cd595cb (git): Extend timeout
- On armv7 environment, the timeout is too short
http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-trunk/log/20180319T191706Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:06 PM Feature #14684 (Closed): IRB swallows exceptions
- Applied in changeset trunk|r63150.
----------
irb.rb: restore the last error
* lib/irb.rb (eval_input): restore the last error `$!`, as the
previous result. [Feature #14684]
* lib/irb/context.rb (evaluate): add `exception` keyword ... -
01:05 PM Revision 9fa0d005 (git): irb.rb: restore the last error
- * lib/irb.rb (eval_input): restore the last error `$!`, as the
previous result. [Feature #14684]
* lib/irb/context.rb (evaluate): add `exception` keyword argument
to set the last error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/... -
12:49 PM Revision d6dc676d (git): irb/{context,workspace}.rb: use local_variable_set
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:36 PM Revision 69840745 (git): irb/context.rb: using input-method
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/13/2018
-
09:36 PM Revision 5bafb6c5 (git): Add write barrier calls for direct marking objects.
- This commit adds write barriers for objects marked from `rb_iseq_mark`.
r62851 introduced direct marking from iseqs to:
* keyword arg default values
* catch table iseqs
* VALUEs embedded in encoded instructions
This patch adds missing ... -
06:11 PM Revision 282efd1f (git): irb.rb: backtrace order
- * lib/irb.rb (handle_exception): show backtrace from the topmost
if stdout is not a tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 06:06 PM Revision a90e2426 (git): * 2018-04-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:06 PM Revision fb68dfc4 (git): irb.rb: hoist out handle_exception
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:20 PM Feature #14685: IRB doesn't print exception cause
- Note that per @Hanmac above in comment #2, separate work might be necessary to also print the `#cause` in default Ruby uncaught exception print out. But that is not the subject of this issue.
Hanmac -- should I open a separate issue t... -
03:18 PM Feature #14685: IRB doesn't print exception cause
- May I ask: a very quick path to solving this would be for me (or someone else) to turn my workaround monkey-patch of IRB (see comment #1 above) into a pull request to IRB in the standard library.
Ruby maintainers: are you interested i... -
05:46 AM Feature #14685: IRB doesn't print exception cause
- i tested it with multiple ruby versions, both irb and ruby, because i wanted to see what happen
irb doesn't print the cause, but ruby itself doesn't do too.
should that be done in ruby itself too?
(and maybe a way to disable that?) -
02:24 PM Feature #14684: IRB swallows exceptions
- nobu (Nobuyoshi Nakada) wrote:
> `$!` isn't accessible outside `rescue` clause, even without irb.
In IRB, should `$!` be set, or a proxy for it be set, when the IRB eval handles an exception? -
06:06 AM Feature #14684: IRB swallows exceptions
- `$!` isn't accessible outside `rescue` clause, even without irb.
-
12:50 AM Feature #14684 (Assigned): IRB swallows exceptions
-
06:26 AM Revision 081df640 (git): file.c: chardev is loadable
- * file.c (ruby_is_fd_loadable): allow character devices to load,
e.g., `ruby /dev/null` exits successfully.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:22 AM Bug #14687 (Closed): TestM17N#test_str_dump, String.dump, frozen-string
- The test `TestM17N#test_str_dump` located in `test/ruby/test_m17n.rb` (link at https://github.com/ruby/ruby/blob/83c961665def138e78a66d8bef0b4fa1da49ac69/test/ruby/test_m17n.rb#L324-L363), fails when run with frozen-string.
The test i... -
01:50 AM Bug #13670: [BUG] Bus Error at 0xefce7b (armv7l) (ruby 2.3.4p301)
- Disregard the failed tests above - second build installed okay.
Still hitting the bug very occasionally, but finding it very hard to reproduce reliably.
-
01:01 AM Bug #14686: Windows - uninitialized constant Fiddle::Function::STDCALL, test issue
- Probably better to use `Function.const_defined?(:STDCALL)` than `defined?(Function::STDCALL)`
-
12:54 AM Bug #14686 (Closed): Windows - uninitialized constant Fiddle::Function::STDCALL, test issue
- While testing the test/ruby folder with frozen-string, I came across a few issues. More later...
I had the following failures in test_rubyoptions.rb, which were due to output on stderr:
```
3) Failure:
TestRubyOptions#test_fro... -
12:49 AM Feature #14683 (Assigned): IRB with Ripper
04/12/2018
-
10:13 PM Bug #14674 (Closed): New mismatched indentations warnings?
- Applied in changeset trunk|r63141.
----------
parse.y: `when` indent
* parse.y (k_when): warn less-indented `when` than `case`.
[ruby-core:86492] [Bug #14674] -
07:23 AM Bug #14674: New mismatched indentations warnings?
- I agree with @marcandre. I used to prefer "indented when" style once, and still think it is pretty acceptable.
When Ruby has introduced interpreter warnings about mismatched indentation, I thought it is a good thing, allowing to catc... -
05:11 AM Bug #14674: New mismatched indentations warnings?
- I strongly believe that it is not Ruby's parser job to warn us about styling, especially if there's no strong reason to suspect that it's a programmer error.
I realize rubocop is not official or part of MRI, but it has the required qu... -
02:30 AM Bug #14674: New mismatched indentations warnings?
- It was intentional, but mismatched with your style?
- 10:13 PM Revision 83c96166 (git): * 2018-04-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:13 PM Revision a3a5f38d (git): parse.y: `when` indent
- * parse.y (k_when): warn less-indented `when` than `case`.
[ruby-core:86492] [Bug #14674]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:52 PM Bug #13670: [BUG] Bus Error at 0xefce7b (armv7l) (ruby 2.3.4p301)
- nobu (Nobuyoshi Nakada) wrote:
> `RubyVM::InstructionSequence#to_binary` and `RubyVM::InstructionSequence.load_from_binary` had bugs around word alignments.
> ...
Getting 3 failures from `make check`
~~~
1) Failure:
DRbTests::Te... -
02:34 AM Bug #13670 (Feedback): [BUG] Bus Error at 0xefce7b (armv7l) (ruby 2.3.4p301)
- `RubyVM::InstructionSequence#to_binary` and `RubyVM::InstructionSequence.load_from_binary` had bugs around word alignments.
I think the trunk has been fixed, couldn't you try it? -
05:46 PM Feature #14685: IRB doesn't print exception cause
- For Ruby 2.3.4, here is a working monkey-patch which causes IRB to behave as expected above:
https://gist.github.com/ms-ati/c11658166c8844dfa6b1caed480d02b3 -
04:32 PM Feature #14685 (Open): IRB doesn't print exception cause
- # Summary
IRB doesn't print `Exception#cause`.
Because IRB also doesn't offer access to raised exceptions (see https://bugs.ruby-lang.org/issues/14684), in effect this make the `#cause` of exceptions inaccessible without extra wor... -
04:50 PM Feature #14683: IRB with Ripper
- ref. https://github.com/ruby/rdoc/pull/512
-
03:06 PM Feature #14683 (Closed): IRB with Ripper
- I replaced lexical analyzer with Ripper. It's important for supporting new syntax.
I explain what I did.
## Replace with Ripper
I talked with @matz about it and I decided to use mirb of mruby as a reference.
https://github.com/... -
04:18 PM Feature #14684 (Closed): IRB swallows exceptions
- # Summary
IRB swallows exceptions, doesn't provide programatic access to raised exception in session.
## Details
On Ruby 2.3.4, we find it surprising that exceptions in IRB are swallowed, and are not accessible at the two locati... - 02:24 PM Revision 2625c6a7 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:24 PM Revision dfeafff3 (git): [DOC] Add win32/README.win32 to .document
- see https://github.com/ruby/docs.ruby-lang.org/issues/56
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:01 PM Revision b6490ddd (git): assert indents of `case` and `end`
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:34 AM Revision 8ef4ff1b (git): error.c: fix for DRb
- * error.c (name_err_init_attr): hide the receiver object from
Marshal, as DRb depends on it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:09 AM Bug #14682 (Closed): Error [BUG] unexpected THREAD_KILLED
- Hi there an error, and the attached file.
./Users/murbano/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/monitor.rb:200: [BUG] unexpected THREAD_KILLED
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
-- Crash Report log informa... -
04:06 AM Feature #13626: Add String#byteslice!
- By the way, I ended up implementing https://github.com/socketry/async-io/blob/master/lib/async/io/binary_string.rb which I guess is okay but it's not ideal.
-
04:04 AM Feature #13626: Add String#byteslice!
- If you round trip UTF-8 to ASCII-8BIT and back again, the result should be the same IMHO. It's just the interpretation of the bytes which is different, but the underlying data should be the same. I still think adding `String#byteslice!` ...
-
03:48 AM Bug #14670 (Closed): Objectで定義したmethod_missingでsuperが使えない
- Applied in changeset trunk|r63136.
----------
error.c: super in method_missing
* error.c (nometh_err_initialize): do not shirtcut rb_call_super,
to push proper control frame. [ruby-dev:50522] [Bug #14670]
* error.c (rb_nomethod_err... -
03:48 AM Revision a72581d7 (git): error.c: super in method_missing
- * error.c (nometh_err_initialize): do not shirtcut rb_call_super,
to push proper control frame. [ruby-dev:50522] [Bug #14670]
* error.c (rb_nomethod_err_new): allocate and initialize a new
NoMethodError instance.
* vm_eval.c (rb_m... - 03:40 AM Revision fe96e87e (git): * 2018-04-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:40 AM Revision 2e501b0a (git): marshaltestlib.rb: use clean object for exception
- * test/ruby/marshaltestlib.rb (test_exception): use separate
clean object to raise an exception. TestCase instance often has
modules included.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63134 b2dd03c8-39d4-4d8f-98ff-823fe69b... -
03:21 AM Bug #14681: `syswrite': stream closed in another thread (IOError)
- I confirmed the issue also applies to 2.5.1
I add a mutex to the write and close operations (which should not be necessary) and it "fixes" the issue.
```
100.times.collect do
Thread.new do
mutex = Mutex.new
input, output =... -
03:16 AM Bug #14681 (Assigned): `syswrite': stream closed in another thread (IOError)
- Perhaps related to https://bugs.ruby-lang.org/issues/13632
Here is a sample to reproduce the issue.
```
#!/usr/bin/env ruby
require 'thread'
puts RUBY_VERSION
100.times.collect do
Thread.new do
input, output = IO.pip...
04/11/2018
-
10:22 PM Bug #13670: [BUG] Bus Error at 0xefce7b (armv7l) (ruby 2.3.4p301)
- Can confirm this still happening in 2.5.1
~~~
ruby 2.5.1p57 (2018-03-29 revision 63029) [armv7l-linux-eabihf]
bootsnap (1.3.0)
Rails 5.2.0
~~~
Rails adds bootsnap to a new app by default as of version 5.2.0
any call to `rails` (... -
08:02 PM Feature #14680: Adding +@ and -@ to hash and array
- I don't think it's as common these days to see `.freeze` all over the place, since the linters explicitly tell you to use the frozen string literal comment. But that's explicitly for literals. There are plenty of cases where you'd want t...
-
07:48 PM Feature #14680: Adding +@ and -@ to hash and array
- I like `.dup` and `.freeze`, more than `+` and `-` on class `String`.
https://ruby-doc.org/core-2.5.0/String.html#method-i-2B-40
The only good thing is that I don't have to use any of these
methods so ultimately I don't have to ca... -
02:49 PM Feature #14680 (Closed): Adding +@ and -@ to hash and array
- Since we have `-@` and `+@` for strings and it's very useful (and reads better than `.freeze`) I'd like to propose adding the same API to hash and array. Especially with constants, linters are always telling me to freeze them, and I'd li...
-
03:56 PM Feature #14672: Introduce a Date.safe_parse method
- http://blog.honeybadger.io/benchmarking-exceptions-in-ruby-yep-theyre-slow
exceptions are used a lot in parsers
https://github.com/ruby/csv/blob/master/lib/csv.rb#L342
having an oportunity to skip exception handing could also improv... -
02:29 PM Feature #14672: Introduce a Date.safe_parse method
- Why not just use a one line rescue?
~~~ ruby
Date.parse(some_value) rescue Date.new(2018,1,1)
~~~
It shows IMHO the intention very clear. -
02:46 PM Feature #14059: Refine multiple classes in one call
- I agree with the points above, so this issue can be closed (or someone can teach me how to close these, I'm not entirely sure how).
-
02:45 PM Feature #14344: refine at class level
- I haven't contributed before so I'm not sure how to bump this ticket, but I'd like to keep pushing on this. Could someone from core take a look at this proposal? I'd love to help introduce this syntax.
-
01:14 PM Bug #14679 (Assigned): StdLib gems should properly specify their dependencies
-
12:01 PM Bug #14679: StdLib gems should properly specify their dependencies
- Also, if Ruby one day decides to drop JSON support for whatever reason, the RDoc won't be usable after installation, since it will be missing json dependency.
-
11:50 AM Bug #14679 (Closed): StdLib gems should properly specify their dependencies
- Could you please properly specify gem dependencies for gems included in StdLib? The current situation is unfortunate.
Let me give you hypothetical example. Lets say there is RDoc 7.x under development and it will depend on JSON 3.x li... -
12:47 PM Bug #14678 (Feedback): Segmentation fault in pg
- Could you show small code to reproduce it and/or show local variables with a debugger?
-
10:21 AM Bug #14678 (Closed): Segmentation fault in pg
- This error don't reproduce in Ruby 2.5.0 but reproduce in 2.5.1
~~~
$ bundle ex rspec
/Users/tanimichi.tsukuru/ghq/github.com/moneyforward/moneyplus/vendor/bundle/ruby/2.5.0/gems/pg-0.21.0/lib/pg.rb:56: [BUG] Segmentation fault at 0... -
08:08 AM Bug #14566: `raise` in `Exception#message` causes infinite loop
- Thx!
-
08:03 AM Bug #14566 (Closed): `raise` in `Exception#message` causes infinite loop
- Applied in changeset trunk|r63133.
----------
eval_error.c: fix loop on exception in message
* error.c (rb_get_message): accessor to the message.
* eval_error.c (rb_ec_error_print): handle exceptions on fetching
the message. [Bug #... -
08:00 AM Bug #14566: `raise` in `Exception#message` causes infinite loop
- It should work as well as 2.4, not `fatal`.
-
07:08 AM Bug #14566: `raise` in `Exception#message` causes infinite loop
- Thank you, I've missed the report mail.
I think it fatal. -
08:03 AM Revision aa2b32ae (git): eval_error.c: fix loop on exception in message
- * error.c (rb_get_message): accessor to the message.
* eval_error.c (rb_ec_error_print): handle exceptions on fetching
the message. [Bug #14566]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63133 b2dd03c8-39d4-4d8f-98ff-823fe69... -
07:17 AM Bug #14674: New mismatched indentations warnings?
- I think in the long run it would be nice if ruby hackers have more
control over non-error messages (e. g. warnings).
Some may prefer ruby providing cues for a more consistent code
layout but others may not necessarily care that much... -
12:49 AM Bug #14676 (Third Party's Issue): On Windows Readline's input is not correctly filled after autocomplete
- It's issue of https://github.com/ConnorAtherton/rb-readline
-
12:49 AM Bug #14677 (Third Party's Issue): On Windows Readline.refresh_line raises NoMethodError
- It's issue of https://github.com/ConnorAtherton/rb-readline
-
12:49 AM Bug #14675 (Third Party's Issue): On Windows Readline.redisplay raises NoMethodError
- It's issue of https://github.com/ConnorAtherton/rb-readline
-
12:43 AM Bug #14675: On Windows Readline.redisplay raises NoMethodError
- At present, RubyInstaller2 builds are using RbReadline (the rb-readline gem). RubyInstaller builds also used it.
The gem is not really maintained. I believe Lars Kanis is working on updating the readline package to work with Windows...
04/10/2018
-
10:46 PM Bug #14676: On Windows Readline's input is not correctly filled after autocomplete
- Works when the string is actual prefix for the completion.
```
require 'readline'
Readline.completion_proc = Proc.new do |word|
['aafoo', 'aabar']
end
while buf = Readline.readline('> ')
pp buf
end
```
produces
```
... -
10:35 PM Bug #14676 (Third Party's Issue): On Windows Readline's input is not correctly filled after autocomplete
- When Readline.completion_proc returns more than one match, you are presented with empty line insted of what you have already put in.
```
require 'readline'
Readline.completion_proc = Proc.new do |word|
['foo', 'bar']
end
while ... -
10:37 PM Bug #14677 (Third Party's Issue): On Windows Readline.refresh_line raises NoMethodError
- I think it should raise NotImplementedError instead as other method in Readline claim to do.
-
10:31 PM Bug #14675 (Third Party's Issue): On Windows Readline.redisplay raises NoMethodError
- On Windows Readline.redisplay raises NoMethodError while according to docs it should raise NotImplementedError.
-
05:43 PM Bug #14674 (Closed): New mismatched indentations warnings?
- I recently got a failure in my test suite because ruby head warns of indentation it considers mismatched:
```
$ ruby -w -e "
case
when :foo
end
"
-e:3: warning: mismatched indentations at 'when' with 'case' at 2
```
I hop... -
03:32 PM Feature #14672: Introduce a Date.safe_parse method
- I can understand the proposal.
I think your primary use case is to be able to use less code,
without needing to rescue all (or the important) errors specifically
via begin/rescue.
Perhaps it can be mentioned in the ruby developer... -
07:19 AM Feature #14672 (Open): Introduce a Date.safe_parse method
- This feature request is about a Date.safe_parse method.
The method should call the original Date.parse method but avoid raising an exception and returning a fallback value instead.
An implementation in ActiveSupport has been proposed h... - 03:29 PM Revision a7c7cfb8 (git): * 2018-04-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:29 PM Revision 342709d1 (git): Try to fix some broken links
- see https://github.com/ruby/docs.ruby-lang.org/issues/56
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:55 PM Bug #14566: `raise` in `Exception#message` causes infinite loop
- I tried making a patch fixing this issue. See attached.
This patch makes the behaviour similar to the old Ruby, rescuing any exceptions in the "message" method, but also warns that an exception was automatically caught.
I'm not 100... -
09:51 AM Misc #14673 (Open): Documentation for `Array#drop` / `drop_while` unclear in regard to modification
- The documentation for [`Array#drop`](http://ruby-doc.org/core-2.5.0/Array.html#method-i-drop) says:
> Drops first `n` elements from `ary` and returns the rest of the elements in an array.
It's unclear if the receiver is being chang... -
06:27 AM Bug #14671 (Rejected): Refining Module#refine itself introduces strange state
- ```ruby
using Module.new {
refine Module do
def refine *;
puts self
end
public :refine
end
}
Object.refine # => NoMethodError
```
It is possible to refine Module#refine, but there seems to be no way to ... -
12:41 AM Feature #13770 (Closed): Can't create valid Cyrillic-named class/module
- Applied in changeset trunk|r63130.
----------
symbol.c: non-ASCII constant names
* symbol.c (rb_sym_constant_char_p): support for non-ASCII
constant names. [Feature #13770]
* object.c (rb_mod_const_get, rb_mod_const_defined): suppo... -
12:41 AM Revision f852af0e (git): symbol.c: non-ASCII constant names
- * symbol.c (rb_sym_constant_char_p): support for non-ASCII
constant names. [Feature #13770]
* object.c (rb_mod_const_get, rb_mod_const_defined): support for
non-ASCII constant names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru... -
12:04 AM Bug #14480 (Open): miniruby crashing when compiled with -O2 or -O1 on aarch64
- Sorry for the confusion, I am not one of "upstream".
So I revert the issue status and there are no upstream opinion.
I am sorry again.
04/09/2018
-
09:21 PM Feature #14605: Remove `original_iseq` from `rb_iseq_constant_body`
- ko1 (Koichi Sasada) wrote:
> On my comment, I want to make clear that is it a typo of "encoded" -> "decoded" or not.
> ...
Oops sorry! Yes, it's a typo. :) I mean we don't use the decoded iseq (iseq *without* direct threading transl... - 04:00 PM Revision 44c01a5d (git): * 2018-04-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:00 PM Revision e0f7bb39 (git): rexml: Fix a XPath bug of -
- [Bug #14600]
* lib/rexml/parsers/xpathparser.rb: Fix a bug that "N-M" requires a space
before "-".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:55 PM Feature #12839: CSV - Give not nil but empty strings for empty fields
- I added `:nil_value` option as a shortcut:
```ruby
require "csv"
p CSV.parse(',"",a') # => [[nil, "", "a"]]
p CSV.parse(',"",a', nil_value: "") # => [["", "", "a"]]
```
But it's not so fast:
```ruby
require... -
12:39 PM Revision bbcab8c6 (git): parse.y: [DOC] Ripper.dedent_string is internal
- * parse.y (parser_dedent_string): stated that Ripper.dedent_string
is for internal use only.
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:09 AM Revision 6a571272 (git): parse.y: extra error message after no digits
- * parse.y (no_digits): return tINTEGER instead of unexpected
end-of-input, to get rid of extra error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:45 AM Feature #14594: Rethink yield_self's name
- I think expand is cool, it is expanding method to another one, so it can be chained.
My alternative suggestion would be "pass" since it is passing itself. What do you think about it?
```
construct_url
.pass(&Faraday.method(:get... -
09:59 AM Revision 066af25b (git): test_literal.rb: use assert_syntax_error
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:59 AM Bug #13524: miniruby: [BUG] Segmentation fault at 0x0055e487e00230 ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-li
- Alpine package jemalloc in their main repo, so it would seem that they support it to some extent: https://pkgs.alpinelinux.org/package/v3.7/main/x86/jemalloc
-
08:41 AM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
- Just forwarding one remark from RH Bugzilla [0]:
~~~
--- Comment #44 from Dave Malcolm <dmalcolm@redhat.com> ---
> should we keep the "setjmp" for AArch64? I am asking,
> ...
Note that the workaround in the gcc rpm is papering over... -
05:51 AM Bug #14668: Ruby2.6.0-preview1とtrunkでnmatrixがコンパイルできない
- trunk で試したところコンパイルが通るようになりました。
ありがとうございます!
余談も https://github.com/SciRuby/nmatrix に共有しておきます。 -
02:43 AM Bug #14668: Ruby2.6.0-preview1とtrunkでnmatrixがコンパイルできない
- とりあえずstdalign.hをincludeするようにしてalignofを優先したのでtrunkご確認ください。
余談ですがC++の場合、allocaを使う必然性は皆無のはずです。普通に `VALUE slice_argv[dim];` とかでいいはず。CもC99以降はそうです。Rubyがいまだにalloca使ってるのは古いCに固執してるから、という認識でいます。 -
02:40 AM Bug #14668 (Closed): Ruby2.6.0-preview1とtrunkでnmatrixがコンパイルできない
- Applied in changeset trunk|r63123.
----------
Prefer alignof() over _Alignof()
to allow C++ programs include <ruby.h>. [Bug #14668] -
03:24 AM Revision 85e9f287 (git): offsetof(type, foo.bar) is (arguably) a GCCism
- clang -Wextended-offsetof warns this line.
CF: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2031.htm
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:40 AM Revision 9930481a (git): Prefer alignof() over _Alignof()
- to allow C++ programs include <ruby.h>. [Bug #14668]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:16 AM Misc #10375 (Rejected): [Redmine] Optimal viewing across a wide range of devices
- Current redmine versioned 3.4 was optimized mobile view.
04/08/2018
- 07:39 PM Revision 784fdba3 (git): * 2018-04-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:39 PM Revision d33ddd63 (git): parse.y: fix docs for Ripper.dedent_string
- * parse.y: [DOC] fix return type in call-seq of Ripper.dedent_string,
clarify the method's behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:46 PM Bug #14668: Ruby2.6.0-preview1とtrunkでnmatrixがコンパイルできない
- r61843 以降、ALLOCA_N マクロの中で(利用可能なときには) RUBY_ALIGNOF マクロを利用するようになったことがきっかけのようです。
ただこれはきっかけというだけで、どちらかというと RUBY_ALIGNOF マクロが config.h の中に `_Alignof` の形で定義されていて、nmatrix のように C++ のプログラム中で用いる場合にも `alignof` にはなってくれないことの方がより根本的な原因のように見えます。 -
11:17 AM Revision 610dc339 (git): compile.c: disable debug prints on sparc
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:12 AM Revision fda1837e (git): compile.c: fix an exception argument
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:11 AM Feature #14669: Regexp does not expose the amount of capture groups.
- This information is available for named captures via Regexp#names and Regexp#named_captures, but it doesn't seem available for unnamed capture groups:
~~~ruby
[15] pry(main)> /(?<one>a)(?<two>b)(?<three>c)/.named_captures
=> {"one"=... -
07:26 AM Feature #14669: Regexp does not expose the amount of capture groups.
- Can you give a few examples of how this may be used, and explain what's the purpose of getting the number of capture groups before actual matching?
Also, can you show an example what you think the actual interface (e.g. method name) w... -
04:26 AM Feature #14669: Regexp does not expose the amount of capture groups.
- Should be added; may have just been forgotten if Onigmo already
supports that. -
08:28 AM Revision a72a50b1 (git): compile.c: suppress warnings
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:20 AM Revision 0f8368ca (git): compile.c: align ibf_object_header
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:42 AM Revision 89a6a4ec (git): compile.c: debug prints in ibf_load_object
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:31 AM Revision 6ce79866 (git): [DOC] `*` in glob matches `\n` too [ci skip]
- ```
File.fnmatch("a*b", "a\nb") # => true
/\Aa.*b\z/x.match?("a\nb") # => false
/\Aa.*b\z/mx.match?("a\nb") # => true
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:22 AM Revision a38339d8 (git): * 2018-04-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:22 AM Revision b6185e17 (git): compile.c: align IBF dumped data
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 AM Bug #14670 (Closed): Objectで定義したmethod_missingでsuperが使えない
- ```ruby
class Object
def method_missing(name, *args, &block)
super
end
end
Object.new.foo
```
を実行すると, `SystemStackError` になってしまいます.
再定義する先が`Object`でなければ(`Object`のサブクラスなら)問題ないです.