Activity
From 04/14/2016 to 04/20/2016
04/20/2016
-
11:33 PM Feature #12306 (Assigned): Implement String #blank? #present? and improve #strip and family to handle unicode
- Time and again there have been rejected feature requests to Ruby core to implement `blank` and `present` protocols across all objects as ActiveSupport does. I am fine with this call and think it is fair.
However, for the narrow case ... -
08:21 PM Bug #12305 (Closed): "can't remove str from str_id" at unregister_sym
- I'm experiencing random occurrences of "can't remove str from str_id" crash.
Message string looks like this one:
```
/srv/sim/.rvm/gems/ruby-2.3.0@env-manager/gems/mongo-2.2.4/lib/mongo/server/description.rb:508: [BUG] 0x007f4f400... -
07:21 PM Revision 6b34f723 (git): merge revision(s) 54653:
- assertions.rb: return the exception
* test/lib/test/unit/assertions.rb (assert_syntax_error): return
the rescued exception object as well as assert_raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54656 b2... -
06:17 PM Bug #12298: Indeterministic ruby behavior when another thread is killed
- In ruby_cleanup:
First we mark the main thread as killed: https://github.com/ruby/ruby/blob/trunk/eval.c#L186
Then we kill all threads: https://github.com/ruby/ruby/blob/trunk/eval.c#L191
Then we start at_exit hooks: (via ruby_f... -
07:35 AM Bug #12298: Indeterministic ruby behavior when another thread is killed
- Eric Hodel wrote:
> This is not a ruby bug. Thread scheduling is inherently non-deterministic.
> ...
I get that. But why does Ruby wait for the second thread to finish? Or is it that Ruby always waits for those threads to finish, but ... -
06:09 AM Bug #12298: Indeterministic ruby behavior when another thread is killed
- Hmm. Although the report was already rejected, and even if we all may agree that
the honeybadger code was not brilliant, I feel that the overall issue here in
regards to Threads may be useful for more people in the future too.
For ... -
05:40 PM Feature #12020: Documenting Ruby memory model
- Thank you for responding and for taking time to read the proposal.
Let me start by elaborating more on the motivation behind all of the related
proposals, since I did not really explained it in detail when I was opening
them. I apol... -
03:11 PM Feature #12304 (Feedback): String#split with a block
- I would like `String#split` to take an optional block, similar to `String#scan` with a block.
Suppose I have a regex pattern with captures, and I want to iterate over matches while having access to the information in last match `$~`. ... -
03:04 PM Bug #12303 (Closed): No rule to make target '.ext/include/i386-cygwin/ruby/config.h', needed by 'main.o' when ./configure TEST_COLORS=skip=43
- I could not find any document describing
how to use TEST_COLORS environment variable in Ruby.
I could change the color of messages with `./configure TEST_COLORS=skip=43`
and it finished successfully. However, after that, `make` result... -
08:36 AM Bug #12278: Sometimes I have segmentation fault with procs reducer
- Did you had use jemalloc compile ruby?
-
07:18 AM Bug #12278: Sometimes I have segmentation fault with procs reducer
- Seems a GC bug of a `Proc` created by `Symbol#to_proc`.
I suspect that it is a fixed bug, but can't find the ticket now.
-
08:33 AM Revision 20cd25c8 (git): cgi/util.rb: remove CGI::Util#_unescape
- * ext/cgi/escape/escape.c (cgiesc_unescape): define unescape
method instead of _unescape, and should pass the optional
argument to the super method.
* lib/cgi/util.rb (CGI::Util#_unescape): remove intermediate
method.
git-svn-id: ... -
06:52 AM Revision 86b1179a (git): error.c: SyntaxError#initialize
- * error.c (syntax_error_initialize): move the default message,
"compile error", from parse.y. the default parameter should
belong to the class definition.
* parse.y (yycompile0): use the default parameter.
git-svn-id: svn+ssh://ci.... -
04:37 AM Revision e06aaf69 (git): assertions.rb: return the exception
- * test/lib/test/unit/assertions.rb (assert_syntax_error): return
the rescued exception object as well as assert_raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:01 AM Feature #12275 (Feedback): String unescape
- We looked at this ticket on this month's developer meeting. I then started to think that the "escape" you refer to is not that concrete.
Unescaping cannot work out without escaping. In ruby, there already is a method called String#d... -
03:51 AM Feature #12080: Enumerable#first, Array#last with block
- We looked at this on this month's developer meeting but I remember there was no concrete consensus for this request.
-
03:45 AM Bug #12302 (Closed): at_exit status status is changed by raising/rescueing a exception in at_exit
- ~~~ruby
at_exit do
puts "1 #{$!}"
end
at_exit do
puts "2 #{$!}"
raise 'x' rescue nil
end
at_exit do
puts "3 #{$!}"
exit 1
end
~~~
Nr 3 runs first and exits 1 ... Nr2 receives the correct exit status ... but u... -
02:52 AM Revision 9e8dfaa8 (git): compile.c: make SyntaxError after formatting
- * compile.c (append_compile_error): make SyntaxError instance by
rb_syntax_error_append on demand after formatting the message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:07 AM Bug #12301 (Rejected): Path Check Causes Overhead and Unwanted and Unnecessary Warnings By Default
- I meant that "Cocos" application's fault, by "third party's issue".
-
02:01 AM Bug #12301: Path Check Causes Overhead and Unwanted and Unnecessary Warnings By Default
- I think this isn't even a third party's issue. The warning is because of OP's insecure PATH setting, which is not an Apple's fault.
-
01:50 AM Bug #12301 (Third Party's Issue): Path Check Causes Overhead and Unwanted and Unnecessary Warnings By Default
- > Why was it checking random directories like `/Applications/`, anyway?!
Not random.
It's because your `PATH` environment variable contains that directory.
Change the directory's permission, `chmod go-w /Applications/Cocos/tools/ant... -
01:39 AM Misc #12283: Obsolete ChangeLog and commit message in Git-style
- Seems no one is against abandoning ChangeLog.
What about "a ChangeLog-like plain-text file" part? -
01:35 AM Feature #12300: Allow Object#clone to take freeze: false keyword argument to not freeze the clone
- Sounds much simpler than the previous one to understand what is happening. Also it seems backwards-compatible.
Given the needs of this kind, I'd like to +1. - 01:25 AM Revision 7f5f5e80 (git): * 2016-04-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 AM Revision 97177a2d (git): refactor syntax error
- * compile.c (append_compile_error): use rb_syntax_error_append.
* error.c (rb_syntax_error_append): append messages into a
SyntaxError exception instance.
* parse.y (yycompile0): make new SyntaxError instance in main
mode, otherwize ... -
12:44 AM Bug #11924: $ gem server is broken for documentation browsing
- FYI Zachary taught me that this is fixed upstream https://github.com/rdoc/rdoc/pull/360.
-
12:16 AM Bug #12284: io-console gem >= 0.4.3 breaks on Windows ruby < 2.2.0 due to needing rb_sym2str
- Note:
rubygems prevents to ship to default gem now.
see. https://github.com/rubygems/rubygems.org/pull/1221
04/19/2016
-
09:07 PM Bug #12284: io-console gem >= 0.4.3 breaks on Windows ruby < 2.2.0 due to needing rb_sym2str
- The new gem appears to have installed without problems, thank you! Will rubygems pick it up when the version number is next bumped?
~~~
PS C:\test-gem> gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.2.5
- RUBY VE... -
06:47 PM Bug #12298 (Rejected): Indeterministic ruby behavior when another thread is killed
- This is not a ruby bug. Thread scheduling is inherently non-deterministic.
Sometimes you'll switch to the work thread before reaching rb_thread_terminate_all which allows the ensure to run, sometimes you won't.
I've attached a red... -
02:04 PM Bug #12301 (Rejected): Path Check Causes Overhead and Unwanted and Unnecessary Warnings By Default
- The title says it all. My solution is to disable path checking by default by defining `ENABLE_PATH_CHECK` as `1` by default, but allowing it to be manually enabled via a `configure` or runtime flag.
Currently it is only disabled on ["... -
10:02 AM Feature #12281: Allow lexically scoped use of refinements with `using {}` block syntax
- I found a way to use refinements in a block anywhere! Yay :-)
~~~ruby
module Moo
refine Fixnum do
def to_s
"moo"
end
end
end
class << Class.new # valid Ruby 2.3.0
using Moo
1.to_s
end
# => "moo"
... -
08:42 AM Revision 51c19594 (git): refactor parser error
- * error.c (err_vcatf): rename, and separate appending message from
creating a string buffer.
* error.c (rb_syntax_error_append): merge rb_error_vsprintf and
rb_compile_err_append.
* parse.y (parser_compile_error): use rb_syntax_error... -
04:46 AM Revision 51612505 (git): appending compile error without rb_errinfo
- * compile.c (append_compile_error, compile_bug): pass iseq and get
error info and file from it, not by the thread error info.
* error.c (rb_report_bug_valist): take va_list instead of variadic
arguments, and just report the bug but n... -
04:33 AM Misc #12283: Obsolete ChangeLog and commit message in Git-style
- I am positive this proposal, too. ChangeLog often conflicts and I encountered with conflicts today, too.
-
04:23 AM Bug #12190 (Rejected): DateTime.strptime and Time.strptime does not have compatibility in terms of parsing timezone
- Reverted with r54647, and changed status to Rejected.
-
03:38 AM Bug #12190: DateTime.strptime and Time.strptime does not have compatibility in terms of parsing timezone
- Thank you for pointing out behavior differences. I was supposed that this should not break backward compatibilities, but it was actually not.
I am going to revert then. -
02:35 AM Bug #12190: DateTime.strptime and Time.strptime does not have compatibility in terms of parsing timezone
- I think current Time.parse doesn't match the document.
```
# Since there are numerous conflicts among locally defined time zone
# abbreviations all over the world, this method is not intended to
# understand all of them. For examp... -
01:25 AM Bug #12190: DateTime.strptime and Time.strptime does not have compatibility in terms of parsing timezone
- I verified that new codes cover all ZoneOffset which covered before with test codes https://github.com/ruby/ruby/pull/1297/files#diff-0bc90ed869793fffc539dfe705fa8facR443
This change should not break existing codes.
(Of course, if so... -
04:20 AM Revision 64231b49 (git): * lib/time.rb: revert r54167 because it would break
- backward compatibilities, and it is documented that
Time.parse does not take into account time zone
abbreations other than ones described in RFC 822
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54647 b2dd03c8-39d4-4d8f-98ff-823... -
04:14 AM Revision b48c212e (git): use more descriptive assertions
- * test/logger/test_logdevice.rb: use assert_predicate,
assert_not_predicate, and assert_file instead of bare assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:13 AM Revision eb20a743 (git): * ChangeLog: Fix dates of previous commits
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:01 AM Misc #12124: Use Automake
- C.J. Collier wrote:
> I had a meeting yesterday at Microsoft in Redmond with members of the Visual Studio team. They are excited by the idea of enabling support for autotools in Visual Studio.
That sounds interesting.
If autotools ... -
03:55 AM Revision 7bb03997 (git): * ChangeLog: Add descriptions for logger updates
- * NEWS: Add descriptions for logger updates
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:49 AM Feature #10772 (Closed): Add ability to change rotated log file extention
- fixed via https://github.com/ruby/ruby/commit/2c6f15b1ad90af37d7e0eefff7b3f5262e0a4c0b
-
12:40 AM Feature #12300 (Closed): Allow Object#clone to take freeze: false keyword argument to not freeze the clone
- This allows Object#clone to not freeze the resulting object, which fixes a long standing problem in ruby in that you cannot get an unfrozen copy of an object that includes a copy of the object's singleton class. Previously, clone always ...
04/18/2016
-
10:59 PM Feature #12299 (Closed): Add Warning module for customized warning handling
- This is another attempt to provide the same type of support for customized warning handling as #12026. matz had a couple of issues with #12026. First, he did not like the introduction of a new global variable. Second, he wanted the ab...
-
05:46 PM Bug #12249: Math.gamma(-0.0) should return -Infinity
- ruby_2_3 r54643 merged revision(s) 54492,54494,54495,54496,54499,54503.
-
05:46 PM Revision e824b05b (git): merge revision(s) 54492,54494,54495,54496,54499,54503: [Backport #12249]
- * math.c (ruby_tgamma): fix tgamma(-0.0) on mingw.
[ruby-core:74817] [Bug #12249]
* math.c (ruby_lgamma_r): fix lgamma(-0.0) on mingw and OSX.
* math.c (ruby_lgamma_r): mswin's lgamma_r also seems to be wrong.... -
05:38 PM Bug #12190: DateTime.strptime and Time.strptime does not have compatibility in terms of parsing timezone
- I also thought in the same way.
So, I did not backport this into 2.1. -
05:26 PM Bug #12190: DateTime.strptime and Time.strptime does not have compatibility in terms of parsing timezone
- I wonder if this change could break existing codes.
Any thoughts? If there's no real demand, I'll marks this as WONTFIX in 2.3 branch. -
05:14 PM Feature #11816: Partial safe navigation operator
- Oh, thanks for the fix. That was really fast.
-
04:38 PM Feature #11816 (Assigned): Partial safe navigation operator
-
08:53 AM Feature #11816 (Closed): Partial safe navigation operator
- Applied in changeset ruby_2_3|r54635.
----------
merge revision(s) 54628: [Backport #12296]
* compile.c (iseq_peephole_optimize): should not replace the
current target INSN, not to follow the replaced dangling link in
the caller... -
07:13 AM Feature #11816 (Open): Partial safe navigation operator
-
07:07 AM Feature #11816 (Closed): Partial safe navigation operator
- Applied in changeset r54628.
----------
compile.c: fix dangling link
* compile.c (iseq_peephole_optimize): should not replace the
current target INSN, not to follow the replaced dangling link in
the caller. [ruby-core:74993] [Bug ... -
05:34 AM Feature #11816: Partial safe navigation operator
- @Matthew
Thought about it again and would agree with the last paragraph. Direct substitution is not appropriate here, despite it sounds logical.
The *&.* operator is a strange beast as other general rules also won't apply, like (opti... -
01:11 AM Feature #11816: Partial safe navigation operator
- I don't necessarily disagree with the rest of Joan's post, but for this point:
Joan Blackmoore wrote:
>
> ...
That's perhaps not the right consistency to be searching for; the `&.` operator is a dressed up `.` operator. There's no ... -
12:36 AM Feature #11816: Partial safe navigation operator
- I can understand the intention behind the proposal, but would like to express a (strong) disagreement with it.
The thing is that it would break language's consistency and is in contradiction to declared behavior.
"safe navigation o... -
05:12 PM Bug #8851: alias/undef で % リテラルによるシンボルが使えない
- ruby_2_3 r54642 merged revision(s) 53753,54131.
-
05:12 PM Revision b7c90baf (git): merge revision(s) 53753,54131: [Backport #8851]
- lex.c.blt: update
* lex.c.blt: follows r52429, not removing casts to int.
* defs/keywords (alias, undef): symbol literals are allowed.
* parse.y (parse_percent): should parse symbol literals for alias
... -
03:54 PM Revision dd4f5901 (git): * test/logger/test_logdevice.rb: fix tests to pass on windows
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:07 PM Revision 7b2d4713 (git): * 2016-04-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:07 PM Revision 2c6f15b1 (git): * lib/logger.rb: Add shift_period_suffix option [Fix GH-10772]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:16 PM Feature #11955: Expose Object that Receives logs in Logger
- I am wondering of the interface yet.
Users pass an io object to Logger constructor as `logdev` like `Logger.new(logdev)`, so getting the io object from `Logger#logdev` seems natural. However,
```
attr_reader :logdev
```
return... -
01:00 PM Bug #12298: Indeterministic ruby behavior when another thread is killed
- Related Honeybadger bug: https://github.com/honeybadger-io/honeybadger-ruby/issues/186
-
12:58 PM Bug #12298 (Rejected): Indeterministic ruby behavior when another thread is killed
- ```
#!ruby
require 'securerandom'
class MyThread < ::Thread; end
def delay
15
end
def run
loop { work }
rescue Exception => e
puts "#{Time.now} Exception"
ensure
puts "#{Time.now} stopping agent"
end
def wor... -
12:54 PM Bug #12297 (Rejected): Ruby stdlib date can parse non-existent date with year 0
- Ruby date lib can parse date with year 0
`$ pry
[1] pry(main)> shitdate=Date.strptime('0000-01-07','%Y-%m-%d')
=> #<Date: 0000-01-07 ((1721064j,0s,0n),+0s,2299161j)>
[2] pry(main)> shitdate.year
=> 0
[3] pry(main)> `
There is n... -
10:45 AM Feature #12224 (Closed): logger: Allow specifying log level in constructor
- Applied in changeset r54638.
----------
Allow specifying logger parameters in constructor
* lib/logger.rb: Allow specifying logger prameters such as level,
progname, datetime_format, formatter in constructor [Bug #12224] -
10:45 AM Revision a0409533 (git): Allow specifying logger parameters in constructor
- * lib/logger.rb: Allow specifying logger prameters such as level,
progname, datetime_format, formatter in constructor [Bug #12224]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:13 AM Bug #12291: Struct member accessor is not consistent with hash access when keys are repeated
- ruby_2_3 r54637 merged revision(s) 54611,54612.
-
09:12 AM Revision 9dc33b83 (git): merge revision(s) 54611,54612: [Backport #12291]
- * struct.c (struct_make_members_list): extract making member name
list from char* va_list, with creating symbols without
intermediate IDs.
* struct.c (struct_make_members_list, rb_struct_s_def): member
... -
09:02 AM Bug #12238 (Rejected): Logger writes progname if log message is nil
-
09:02 AM Bug #12238: Logger writes progname if log message is nil
- Seems intended, so let me close.
(It is okay to change the behavior, but it looks also okay not to change the behavior) -
09:00 AM Misc #12283: Obsolete ChangeLog and commit message in Git-style
- I welcome this proposal. It makes committing easier. Can you please tell us when this proposal will actually start? I see people still committing ChangeLog changes.
-
08:55 AM Bug #12264: Win32::Registry::API.DeleteKey and DeleteValue reference renamed constants
- ruby_2_3 r54636 merged revision(s) 54529.
-
08:54 AM Revision 79e826d7 (git): merge revision(s) 54529: [Backport #12264]
- * ext/win32/lib/win32/registry.rb (DeleteValue, DeleteKey): fix
API names. [ruby-core:74863] [Bug #12264]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:53 AM Bug #12296 (Closed): [Backport] fix dangling link
- Applied in changeset ruby_2_3|r54635.
----------
merge revision(s) 54628: [Backport #12296]
* compile.c (iseq_peephole_optimize): should not replace the
current target INSN, not to follow the replaced dangling link in
the caller... -
08:53 AM Bug #12296: [Backport] fix dangling link
- ruby_2_3 r54635 merged revision(s) 54628.
-
07:17 AM Bug #12296 (Closed): [Backport] fix dangling link
- Backport r54628 to fix infinite loop by dangling link.
c.f. https://bugs.ruby-lang.org/issues/11816#change-58120 -
08:53 AM Revision 4989a071 (git): merge revision(s) 54628: [Backport #12296]
- * compile.c (iseq_peephole_optimize): should not replace the
current target INSN, not to follow the replaced dangling link in
the caller. [ruby-core:74993] [Bug #11816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/b... -
08:26 AM Bug #12279: cont.c: wrong _MSC_VER check
- ruby_2_3 r54634 merged revision(s) 54574.
-
08:26 AM Revision 892deeb5 (git): merge revision(s) 54574: [Backport #12279]
- * cont.c (fiber_initialize_machine_stack_context): fix wrong
_MSC_VER check, should be decimal but not hexadecimal.
[ruby-core:74936] [Bug #12279]
* cont.c (fiber_initialize_machine_stack_context): fix wrong
... -
08:17 AM Bug #12095: ruby_vm_at_exit can sometime cause a crash.
- ruby_2_3 r54633 merged revision(s) 54484.
-
08:15 AM Revision 157401a9 (git): merge revision(s) 54484: [Backport #12095]
- * vm_core.h (rb_vm_struct): make at_exit a single linked list but
not RArray, not to mark the registered functions by the write
barrier. based on the patches by Evan Phoenix.
[ruby-core:73908] [Bug #12095]
... -
08:00 AM Bug #12237: Coverage keeps tracking counts even after Coverage.result
- ruby_2_3 r54632 merged revision(s) 54465.
-
08:00 AM Revision 1b327a08 (git): merge revision(s) 54465: [Backport #12237]
- * thread.c (update_coverage): Do not track coverage in loaded files
after Coverage.result. Avoids out-of-bounds access. [Bug #12237]
* ext/coverage/coverage.c (coverage_clear_result_i): document.
git-svn-id: svn+ssh:... -
07:34 AM Bug #12233: Please consider adding documentation to DateTime, one line, require 'date'
- ruby_2_3 r54631 merged revision(s) 54444.
-
07:33 AM Revision 0e30b44a (git): merge revision(s) 54444: [Backport #12233]
- * ext/date/date_core.c (Init_date_core): [DOC] fix misplaced doc
of DateTime. [ruby-core:74729] [Bug #12233]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:08 AM Revision ec2f6316 (git): error.c: warn_vsprintf
- * error.c (warn_vsprintf, warning_string): share common code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:08 AM Revision 5a0543e8 (git): error.c: compile_vsprintf
- * error.c (compile_vsprintf): rename compile_snprintf, following
the argument changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:07 AM Revision 6ee3a2cd (git): compile.c: fix dangling link
- * compile.c (iseq_peephole_optimize): should not replace the
current target INSN, not to follow the replaced dangling link in
the caller. [ruby-core:74993] [Bug #11816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54628 b2dd03... -
04:57 AM Bug #12199: About msys2 path conversion measures in make test-all
- ruby_2_3 r54627 merged revision(s) 54086,54211,54233.
-
04:57 AM Revision ffcad81c (git): merge revision(s) 54086,54211,54233: [Backport #12199]
- * test/lib/test/unit.rb (Options#non_options): make regexp name
options prefixed with "!" negative filters.
* common.mk (TEST_EXCLUDES): use negative filter to exclude memory
leak tests. -x option excludes t... -
03:57 AM Revision 0a38e38a (git): numeric.c: numeric ndigits
- * numeric.c (num_floor, num_ceil, num_truncate): add an optional
parameter, digits, as well as Numeric#round. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:56 AM Revision fe96a249 (git): numeric.c: flo_truncate
- * numeric.c (flo_truncate): add an optional parameter, digits, as
well as Float#round. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:55 AM Revision 39f31b8c (git): numeric.c: int_truncate
- * numeric.c (int_truncate): add an optional parameter, digits, as
well as Integer#round. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:40 AM Revision adc7cb24 (git): test_float.rb: assertions for negative floats
- * test/ruby/test_float.rb: add assertions for round,floor,ceil on
negative floats. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:38 AM Revision b25f06d3 (git): * 2016-04-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:38 AM Revision ae4eb682 (git): numeric.c: update doc [ci skip]
- * numeric.c (int_to_i): [DOC] floor and ceil are no longer
synonyms. [Feature #12245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/17/2016
-
09:55 PM Bug #12295: Ripper not emitting on_parse_error for global variable name syntax errors
- You can handle the case by using `compile_error` instead of `on_parse_error` as below:
```
$ ruby -rripper -e 'class X < Ripper; def compile_error(m) puts "ERROR #{m}" end end; X.parse ":~$"'
ERROR `$' without identifiers is not all... -
07:54 PM Bug #12295: Ripper not emitting on_parse_error for global variable name syntax errors
- After looking into this a little more it looks like the Ruby error is not a "parse error", though it probably should be? This might no longer be Ripper specific. Ruby just seems to give up on the above code no matter where it is placed i...
-
07:48 PM Bug #12295 (Rejected): Ripper not emitting on_parse_error for global variable name syntax errors
- Ripper is not emitting the `on_parse_error` event for certain types of syntax errors, specifically for the following snippet of code:
```
:~$
```
Here is the Ruby syntax error:
```
$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision... -
12:37 PM Revision 912948c7 (git): error.c: remove unused function
- * error.c (rb_compile_bug): remove unused function, which has
never been exposed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:34 AM Revision 5e084529 (git): * array.c (rb_ary_sum): [DOC] fix typos.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:34 AM Feature #12281: Allow lexically scoped use of refinements with `using {}` block syntax
- Not having any pro or contra opinion here but I would like to just briefly chime in that I find the syntax quite heavy.
module Foo
refine String do
It feels a bit ... odd with other ruby code that I would use or write, t... -
01:49 AM Bug #12294 (Rejected): String encoding methods rename
- Use `String#encode`.
-
12:07 AM Bug #12294 (Rejected): String encoding methods rename
- http://ruby-doc.org/stdlib-2.3.0/libdoc/nkf/rdoc/String.html
Most of the string encoding methods are named counter to the established pattern of other check and to_ methods.
Proposed changes:
~~~
iseuc -> euc?
isjis -> j... -
01:46 AM Bug #12293: BUILD FAILED (OS X 10.11.5 using ruby-build 20160330)
- And the reason of segfault is the usual mixing incompatible libraries.
```
-- Control frame information -----------------------------------------------
c:0013 p:-17579912175910 s:0061 e:000060 TOP [FINISH]
``` -
01:06 AM Bug #12183: require "win32ole" すると終了ステータスが必ず 0 になる
- 手元で r49495 の修正で事象が解消されることを確認しました。
https://github.com/ruby/ruby/commit/99eaebcea3ae30f14da659cfd2d5b3b00ff9d351
04/16/2016
-
07:43 PM Bug #12073: local variable interferes with keyword arguments
- ruby_2_3 r54618 merged revision(s) 53834,53835,53836.
-
07:43 PM Revision b118f5d8 (git): merge revision(s) 53834,53835,53836: [Backport #12073]
- parse.y: simplify local ID condition
* parse.y (tokenize_ident, parse_ident): ident in tokenize_ident()
can be a local id only when called from parse_ident(), but never
from parse_gvar() and parse_atmark().
* parse.y... -
07:28 PM Bug #12068: raise overwrites exception cause even if exception is not new
- ruby_2_3 r54617 merged revision(s) 53819,53822.
-
07:28 PM Revision 53298a28 (git): merge revision(s) 53819,53822: [Backport #12068]
- * eval.c (setup_exception): set the cause only if it is explicitly
given or not set yet. [Bug #12068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:21 PM Bug #12293 (Rejected): BUILD FAILED (OS X 10.11.5 using ruby-build 20160330)
- Why you use such old version of ruby?
2.0.0 is already expired.
Try 2.3.0 or 2.2.4 (or 2.1.9/2.1.10, but I don't recommend). -
05:37 PM Bug #12293 (Rejected): BUILD FAILED (OS X 10.11.5 using ruby-build 20160330)
- Installing Ruby version 2.0.0-p353 on my Mac OSX Version: 10.11.5 Beta (15F18c), got an installation error. Thanks for the help in advance.
- 07:20 PM Revision f2ee4c7e (git): * 2016-04-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:20 PM Revision 531514ba (git): * tool/redmine-backporter.rb: revisions are strings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:16 AM Bug #12292 (Closed): Race between OpenSSL::SSL::SSLSocket#stop and #connect can cause a segmentation fault
- The following code will demonstrate the issue:
~~~ruby
require "openssl"
require "socket"
ctx = OpenSSL::SSL::SSLContext.new
ctx.ciphers = "aNULL"
sock1, sock2 = UNIXSocket.pair
ssl1 = OpenSSL::SSL::SSLSocket.new(sock1, ctx)... -
05:25 AM Revision a17dfde3 (git): * ext/date/date_core.c : remove not used f_getlocal macro.
- After r54553 f_getlocal macro is not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:14 AM Revision 3fa0fc69 (git): * ext/date/date_core.c : remove not used f_utc6 macro.
- After r54169 f_utc6 macro is not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:20 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
- I concur with Shyouhei Urabe - the name seems to not entirely fit the
given outcome.
More typical use cases of methods with ! bang, if we ignore any
exception, would be more akin to things such as:
x = "abc" # => "abc"
... -
01:00 AM Bug #12291 (Closed): Struct member accessor is not consistent with hash access when keys are repeated
- Applied in changeset r54612.
----------
struct.c: unique members
* struct.c (struct_make_members_list, rb_struct_s_def): member
names should be unique. [ruby-core:74971] [Bug #12291] -
01:00 AM Revision da2e0721 (git): struct.c: unique members
- * struct.c (struct_make_members_list, rb_struct_s_def): member
names should be unique. [ruby-core:74971] [Bug #12291]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:59 AM Revision c746d502 (git): struct.c: struct_make_members_list
- * struct.c (struct_make_members_list): extract making member name
list from char* va_list, with creating symbols without
intermediate IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/15/2016
-
11:36 PM Bug #12183: require "win32ole" すると終了ステータスが必ず 0 になる
- Cygwin パッケージ同梱のRubyでは再現しました。
自分でビルドしたruby 2.2.4p230 では再現しました。
自分でビルドしたruby 2.3.0 では再現しませんでした。
trunk でも再現しませんでした。
$ /usr/bin/ruby -ve 'require "win32ole"; abort'; echo $?
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-cygwin]
... -
10:09 PM Misc #12124: Use Automake
- C.J. Collier wrote:
> Shyouhei Urabe wrote:
> ...
I had a meeting yesterday at Microsoft in Redmond with members of the Visual Studio team. They are excited by the idea of enabling support for autotools in Visual Studio. We spoke abo... -
04:34 PM Revision 25c0a2d3 (git): * tool/redmine-backporter.rb: sort revisions.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:26 PM Revision b59a158a (git): * array.c (rb_ary_sum): Don't yield same element twice.
- Found by nagachika.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:25 PM Bug #12291: Struct member accessor is not consistent with hash access when keys are repeated
- Interestingly, I'm seeing the following on ruby 2.0.0p648:
```
[1] pry(main)> foo = Struct.new(:a, :a).new("1", "2")
=> #<struct a="1", a="1">
```
-
04:13 PM Bug #12291: Struct member accessor is not consistent with hash access when keys are repeated
- I would expect that foo['a'] and foo.a to return the same value.
-
04:12 PM Bug #12291 (Closed): Struct member accessor is not consistent with hash access when keys are repeated
- ~~~
irb(main):001:0> foo = Struct.new(:a, :a).new("1", "2")
=> #<struct a="1", a="2">
irb(main):002:0> foo.a
=> "2"
irb(main):003:0> foo['a']
=> "1"
irb(main):004:0> foo.members
=> [:a, :a]
irb(main):005:0> foo.to_h
=> {:a=>"2"... -
04:22 PM Bug #12287: [Backport] r53619: libdir_basename on Windows
- ruby_2_3 r54608 merged revision(s) 53619,53620,53621,53622,53623,53624,53626,53627.
-
05:49 AM Bug #12287 (Closed): [Backport] r53619: libdir_basename on Windows
- Windowsでも32bit/64bit用のライブラリを使い分けるために--with-libdirをバックポートしてください。
-
04:22 PM Revision ef5b2914 (git): merge revision(s) 53619,53620,53621,53622,53623,53624,53626,53627: [Backport #12287]
- configure.bat: --with-libdir
* win32/configure.bat: add --with-libdir option for basename of
libdir. on Windows it must be placed under exec_prefix always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54608 ... -
04:07 PM Bug #12290: Possible segfault with Thread#name=
- ruby_2_3 r54607 merged revision(s) 54598,54600.
-
12:12 PM Bug #12290 (Closed): Possible segfault with Thread#name=
- Applied in changeset r54598.
----------
thread.c: must be initialized to set name
* thread.c (get_initialized_threadptr): extract ensuring that the
thread is initialized.
* thread.c (rb_thread_setname): thread must be initialized to ... -
11:51 AM Bug #12290: Possible segfault with Thread#name=
- That patch still segfaulted when using `self.name = nil`. Version 2 attached.
-
11:44 AM Bug #12290: Possible segfault with Thread#name=
- And this is the simplest solution I could think of. It throws an exception, which is a better way to react than a segfault. Making it actually work would of course be even better.
-
11:23 AM Bug #12290: Possible segfault with Thread#name=
- And since it's pretty easy to get the relevant source on a running debian system:
```
int
pthread_setname_np (th, name)
pthread_t th;
const char *name;
{
const struct pthread *pd = (const struct pthread *) th;
...
... -
11:14 AM Bug #12290: Possible segfault with Thread#name=
- And of course the backtrace can be improved when installing the debugging symbols for libc
```
/lib/i386-linux-gnu/i686/cmov/libpthread.so.0(pthread_setname_np+0x50) [0xf73e0ed0] ../nptl/sysdeps/unix/sysv/linux/pthread_setname.c:49
... -
11:07 AM Bug #12290 (Closed): Possible segfault with Thread#name=
- Ruby 2.3 added a Thread#name=, which may segfault when used incorrectly. This little program:
```ruby
class SubClassedThread < Thread
def initialize()
self.name = 'foo'
super do
yield
end
end
end
SubCl... -
04:07 PM Revision 260d1ac2 (git): merge revision(s) 54598,54600: [Backport #12290]
- * thread.c (get_initialized_threadptr): extract ensuring that the
thread is initialized.
* thread.c (rb_thread_setname): thread must be initialized to set
the name. [ruby-core:74963] [Bug #12290]
* ... -
04:04 PM Revision 72305d25 (git): * array.c (rb_ary_sum): Fix SEGV by [1/2r, 1].sum.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:26 PM Revision 7111e7c6 (git): * 2016-04-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:26 PM Revision 4873e621 (git): mention Array#sum with third-party gems.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:54 PM Revision d1d95056 (git): rename rb_rational_add -> rb_rational_plus
- * rational.c (rb_rational_plus): rename from rb_rational_add
to be aligned with rb_fix_plus.
* array.c (rb_ary_sum): ditto.
* internal.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54603 b2dd03c8-39d4-4d8f-98ff-823fe69... - 02:46 PM Revision 0a267b79 (git): array.c (rb_ary_sum): use rb_rational_add directly
- * rational.c (rb_rational_add): rename from nurat_add.
* array.c (rb_ary_sum): use rb_rational_add directly.
* test/ruby/test_array.rb (test_sum): add assertions for an array of
Rational values.
git-svn-id: svn+ssh://ci.ruby-lang.or... - 01:33 PM Revision a945eb9d (git): array.c: sum for Rational and Float mixed arrays
- * array.c (rb_ary_sum): apply the precision compensated algorithm
for an array in which Rational and Float values are mixed.
* test/ruby/test_array.rb (test_sum): add assertions for the above
change.
git-svn-id: svn+ssh://ci.ruby-l... -
01:30 PM Revision 4bf8fa83 (git): thread.c: defer setting name in initialize
- * thread.c (rb_thread_setname): defer setting native thread name
set in initialize until the native thread is created.
[ruby-core:74963] [Bug #12290]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54600 b2dd03c8-39d4-4d8f-98ff-82... -
12:32 PM Feature #10098: [PATCH] Timing-safe string comparison for OpenSSL::HMAC
- Following is a patch but I just found there's OPENSSL_memcmp, which is not timing safe...
```diff
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index d03dfa7..76333e2 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c... -
12:13 PM Revision ffd0301a (git): win32/console: io_handle
- * ext/-test-/win32/console/attribute.c (io_handle): extract
conversion from IO instance to HANDLE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:12 PM Revision f7d0059e (git): thread.c: must be initialized to set name
- * thread.c (get_initialized_threadptr): extract ensuring that the
thread is initialized.
* thread.c (rb_thread_setname): thread must be initialized to set
the name. [ruby-core:74963] [Bug #12290]
git-svn-id: svn+ssh://ci.ruby-lang.... -
12:10 PM Revision 59d521ad (git): merge revision(s) 54596:
- * lib/irb/ext/save-history.rb: Fix NoMethodError when method is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:27 AM Revision 589169cb (git): * lib/irb/ext/save-history.rb: Fix NoMethodError when method is not defined.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:00 AM Bug #12289 (Third Party's Issue): Segmentation fault at 0x00000000000020 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
- /home/.../shared/bundle/ruby/2.2.0/gems/curb-0.9.1/lib/curl/easy.rb:68: [BUG] Segmentation fault at 0x00000000000020
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
-
09:53 AM Bug #11916: Fix delegating to 'args' and 'block'
- ruby_2_3 r54595 merged revision(s) 53381.
-
07:22 AM Revision 6fe4aa6e (git): merge revision(s) 53381: [Backport #11916]
- * 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_delegat... -
07:08 AM Bug #12284: io-console gem >= 0.4.3 breaks on Windows ruby < 2.2.0 due to needing rb_sym2str
- I can't push the new gem to rubygems.org.
Could you try the attached file? -
12:03 AM Bug #12284 (Closed): io-console gem >= 0.4.3 breaks on Windows ruby < 2.2.0 due to needing rb_sym2str
- Applied in changeset r54587.
----------
io/console: rb_sym2str
* ext/io/console/console.c (rb_sym2str): fallback definition for
older ruby. [ruby-core:74953] [Bug #12284] -
06:39 AM Revision b80598a9 (git): * common.mk (benchmark): order options for built-ruby and compare-ruby.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:15 AM Revision 53d48629 (git): io/console: bump up
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:01 AM Bug #12288 (Closed): [Backport] r49576: check RAND_egd to support libressl
- libresslサポートをバックポートしてください。
-
05:27 AM Revision a2edc111 (git): merge revision(s) 54576:
- * lib/irb/ext/save-history.rb: suppress warning: method redefined;
discarding old save_history=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:16 AM Revision 741229b4 (git): * test/ruby/test_array.rb (test_sum): add assertions for Rational and
- Complex numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:33 AM Bug #9569: SecureRandom should try /dev/urandom first
- I'm aware that current Linux urandom *happen to* be safe for our needs in current implementation. I'm also skeptical about OpenSSL's code quality in general. The problem preventing me to +1 this request is that I cannot find any statem...
-
03:03 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
- I don't like the name. It doesn't uniform other usage of bang in method names.
-
02:23 AM Bug #12286 (Third Party's Issue): Segfault on ruby 2.3.0p0 (2015-12-25 revision 53290) [armv7l-linux-eabihf]
- Hi everyone,
I am running Ruby 2.3.0 on an ARM device (A Raspberry Pi v3, to be exact).
I keep hitting the segfault listed below. Source code for the application is available at: https://github.com/FarmBot/farmbot-raspberry-pi-cont... -
01:17 AM Revision 1826991f (git): NEWS: mention [Feature #12245]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:07 AM Revision e78beed4 (git): io/console: unknown key code for names with nul
- * ext/io/console/console.c (console_key_pressed_p): raise the same
exception, "unknown virtual key code", for names with nul chars.
though console_win32_vk() considers the length and can deal with
nul chars, rb_sprintf() raised at ... -
01:06 AM Revision caaf4f2a (git): io/console: move conditions
- * test/io/console/test_io_console.rb: move conditions for method
definitions before the bodies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:02 AM Revision 9816f878 (git): io/console: rb_sym2str
- * ext/io/console/console.c (rb_sym2str): fallback definition for
older ruby. [ruby-core:74953] [Bug #12284]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:02 AM Revision cc91082a (git): io/console: use rb_funcallv
- * ext/io/console/console.c: use rb_funcallv instead of
rb_funcall2, and define rb_funcallv if unavailable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:02 AM Revision c88d0666 (git): io/console: fallback RARRAY_CONST_PTR
- * ext/io/console/console.c (RARRAY_CONST_PTR): fallback definition
for older ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:02 AM Revision 01776871 (git): io/console: reject symbols with nul char
- * ext/io/console/console.c (console_key_pressed_p): symbol names
can contain nul chars, reject them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/14/2016
-
09:56 PM Bug #12285 (Closed): Date.iso8601 does not properly handle partial date strings
- > For reduced accuracy, any number of values may be dropped from any of the date and time representations, but in the order from the least to the most significant. For example, "2004-05" is a valid ISO 8601 date, which indicates May (the...
-
09:51 PM Misc #12283: Obsolete ChangeLog and commit message in Git-style
- naruse@airemix.jp wrote:
> How about Git-style commit message instead of ChangeLog?
Yes please :)
The current changelog format is a very annoying barrier to
making commits; especially for applying patches from others.
> Matz ... -
06:57 PM Misc #12283 (Closed): Obsolete ChangeLog and commit message in Git-style
- How about Git-style commit message instead of ChangeLog?
## Proposal
After we reach the consensus
1. Write a commit message in Git-style.
* Line 1: summary of commit (around 80 characters or less, <50 is better)
* Line 2... -
09:41 PM Revision 336ab285 (git): fix commit miss
- * ChangeLog: remove duplicate entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:16 PM Bug #12284 (Closed): io-console gem >= 0.4.3 breaks on Windows ruby < 2.2.0 due to needing rb_sym2str
- Ruby 2.1.x users (on Windows) who do "gem update" and try to build io-console 0.4.3 or later fail at link-time.
rb_sym2str was first used in console.c in r50427
rb_sym2str was implemented in ruby 2.20
Excerpt of build failure:
... - 04:19 PM Revision eb4b2b96 (git): * 2016-04-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:19 PM Revision 32959b0b (git): add assertions.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:40 PM Revision ad2f660e (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:57 PM Revision c0e3b20e (git): add an assertion.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:56 PM Revision df941c91 (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:48 PM Revision 76426c7e (git): * array.c (rb_ary_sum): Support the optional argument, init, and block.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:43 PM Bug #12181: ブロックがたくさんあるファイルを編集するとruby-modeが重い
- http://svn.ruby-lang.org/repos/ruby/trunk/misc/ruby-mode.el と http://svn.ruby-lang.org/repos/ruby/trunk/misc/ruby-electric.el を一緒に使っていました。
-
12:27 PM Bug #12270: 2.3.0/2.4.0 で stackprof を実行すると SEGV することがある
- fixed by stackprof v0.2.9.
-
10:06 AM Revision af24631a (git): * lib/irb/ext/save-history.rb: suppress warning: method redefined;
- discarding old save_history=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:09 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
- Nobuyoshi Nakada wrote:
> It raises a `TypeError`.
I think it is a typographical error of
~~~ruby
places.dig :countries, :ontario # => nil
places.dig! :countries, :ontario # => KeyError: Key not found: :ontario
~~~ -
07:22 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
- Nobuyoshi Nakada wrote:
> It raises a `TypeError`.
So you have the method which raises an exception already.
-
07:21 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
- I'm negative because:
1. This example is wrong.
~~~ruby
places.dig :countries, :canada, :ontario # => nil
~~~
It raises a `TypeError`.
2. It feels curious to me that the method with '!' raises an exception... -
06:56 AM Feature #12282: Hash#dig! for repeated applications of Hash#fetch
- This makes sense only within limited cases, i.e. when the same key never appears at different depths. For example, if you get an error:
~~~ruby
hash.dig!(:foo, :bar, :foo) # => KeyError: Key not found: :foo
~~~
you cannot tell wh... -
06:35 AM Feature #12282 (Open): Hash#dig! for repeated applications of Hash#fetch
- A new feature for your consideration: #dig! which is to #fetch as #dig is to #[]. For me and maybe many others, Hash#fetch is used much more than Hash#[]. And traversing multiple fetches isn't very convenient nor Ruby-like, e.g.: places....
-
05:58 AM Revision 31a3a862 (git): tkutil.c: ary can be nil
- * ext/tk/tkutil/tkutil.c (tk_hash_kv): the third argument can be
nil not only an Array. reported by @windwiny at
https://github.com/ruby/ruby/commit/cdaa94e#commitcomment-17096618
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5... -
05:29 AM Bug #12279 (Closed): cont.c: wrong _MSC_VER check
- Applied in changeset r54574.
----------
cont.c: wrong _MSC_VER check
* cont.c (fiber_initialize_machine_stack_context): fix wrong
_MSC_VER check, should be decimal but not hexadecimal.
[ruby-core:74936] [Bug #12279] -
05:28 AM Revision 06ccd684 (git): cont.c: wrong _MSC_VER check
- * cont.c (fiber_initialize_machine_stack_context): fix wrong
_MSC_VER check, should be decimal but not hexadecimal.
[ruby-core:74936] [Bug #12279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54574 b2dd03c8-39d4-4d8f-98ff-823fe... -
04:41 AM Revision 24eb2e9c (git): process.c: prefer rb_check_arity
- * process.c: use rb_check_arity instead of rb_scan_args for simple
optional arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:56 AM Feature #12281: Allow lexically scoped use of refinements with `using {}` block syntax
- I would also like the block for `using` to have access to local variables.
~~~ruby
def example(thing)
using MyCapitalize do
thing.my_capitalize
end
end
example "hello"
# => "Hello"
~~~ -
03:48 AM Feature #12281 (Assigned): Allow lexically scoped use of refinements with `using {}` block syntax
- In Ruby 2.2.3 a refinement could be used in a begin/end block.
~~~ruby
module Moo
refine Fixnum do
def to_s
"moo"
end
end
end
begin # valid Ruby 2.2.3 and NOT Ruby 2.3
using Moo
1.to_s
end
# => "moo... -
02:45 AM Bug #11704: Refinements only get "used" once in loop
- Tsuyoshi Sawada wrote:
> I had made a feature request #12079 (later than this post) to allow refinements to be effective in such cases.
I like it. One note: Your code examples don't have a lexically scoped block. For them to work i... -
02:03 AM Bug #11704: Refinements only get "used" once in loop
- Daniel P. Clark wrote:
> According to John (who commented on my blog on this issue) this is a Dynamic Dispatch issue. And the following example may be a related.
I had made a feature request #12079 (later than this post) to allow re... -
01:55 AM Bug #12179: Build failure due to VPATH expansion
- Seems there is no way to tell `make` not to use `VPATH` for a particular target.
-
01:30 AM Revision 7343b492 (git): ruby-runner.h
- * template/ruby-runner.h.in: separate configured part from
ruby-runner.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:25 AM Revision 1a88b871 (git): configure.in: feature macros on cygwin
- * configure.in (cygwin): add feature macros for the declarations
of eaccess.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:25 AM Revision a86d5d16 (git): configure.in: tabify
- * configure.in: tabify spaces after a tab.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:00 AM Revision 90a5257d (git): * 2016-04-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:00 AM Revision 350a7400 (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e