Activity
From 03/08/2016 to 03/14/2016
03/14/2016
-
11:09 PM Bug #12175 (Closed): rb_gc_mark prevents the value from being garbage collected if called outside of a GC cycle
- I had some code that called rb_gc_mark in an initializer function instead of in the corresponding mark function, and the value never got garbage collected, causing a memory leak. This seems like an easy mistake to make, and there does no...
-
10:52 PM Bug #12174: Interpolation ignores `to_s` (and `inspect`) when `to_s` is defined to `nil`.
- The description was too specific. Whenever `to_s` is defined to be not a string, the issue arises.
-
05:36 PM Bug #12174 (Rejected): Interpolation ignores `to_s` (and `inspect`) when `to_s` is defined to `nil`.
- When `to_s` is defined to return `nil`, interpolation prints the original inspection.
~~~RUBY
class A
def to_s; end
end
puts "#{A.new}" # => #<A:0x007f4edf19d720>
~~~
It even ignores an overwritten `inspect` definition.
... -
10:24 PM Feature #12173: `Time#till_now`
- Matthew Kerwin wrote:
> Please note that "till_now" is not correct spelling; it should be "until_now" or "til_now"
*till* and *until* are the correct spelling. Perhaps you are confusing it with *'til* (which is pretty much informal).
-
08:55 PM Feature #12173: `Time#till_now`
- This is related to (but different from) #8640, #8096
-
08:41 PM Feature #12173: `Time#till_now`
- I would use both of these if they existed, and have defined my own equivalent versions in past projects.
Please note that "till_now" is not correct spelling; it should be "until_now" or "til_now" -
07:48 PM Feature #12173: `Time#till_now`
- This can also be used to wait until a preset time:
~~~RUBY
target_time = Time.new(2017, 1, 1, 0, 0, 0)
sleep(-target_time.till_now)
~~~
Or perhaps, the opposite (multiplied by `-1`) might be more intuitive:
~~~RUBY
class Tim... -
04:57 PM Feature #12173 (Open): `Time#till_now`
- It is very frequent to have a time instance:
~~~RUBY
t = Time.now
~~~
and then after some operations, do:
~~~RUBY
Time.now - t
~~~
I propose `Time#till_now`, which is equivalent to:
~~~RUBY
class Time
def till_now;... -
07:39 PM Revision c5228393 (git): * test/ruby/test_rubyoptions.rb (test_disable): add tests for
- --disable-gems and --disable-did_you_mean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:03 PM Feature #12026: Support warning processor
- Since this will be discussed tomorrow at the developers meeting, here's a more detailed example of how this can be used.
Let's say you are using a library that is not free of verbose warnings, but you would like to use verbose warning... -
06:36 PM Revision fa0e3764 (git): * marshal.c (r_object0): Fix Marshal crash for corrupt extended object.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:09 PM Feature #12092: Allow Object#clone to yield cloned object before freezing
- Since this will be discussed tomorrow at the developers meeting, here's a more detailed example of how this can be used, along with pros and cons of alternative approaches.
Let's say you have a class where each instance has an options... -
04:46 PM Feature #12125: Proposal: Shorthand operator for Object#method
- +1 for this proposal. How about `recv.:fname`?
~~~
$ ./miniruby -e 'p Dir["*/*.c"].map(&File.:basename)'
["hypot.c", "memcmp.c", "erf.c", ...]
~~~
Fortunately, it brings no conflict.
A patch is attached. (dot-symbol.patch)
... -
01:44 AM Feature #12125: Proposal: Shorthand operator for Object#method
- It would be nice if we could find symmetric syntax for getting an `UnboundMethod` from a module.
-
01:42 AM Feature #12125: Proposal: Shorthand operator for Object#method
- A proposal that has existed for years, if not decades, is to deprecate usage of the `::` double colon binary infix namespace operator for message sends, and instead re-use it for method references:
~~~ruby
Dir["*/*.c"].map(&File::bas... - 04:24 PM Revision 4358ff46 (git): * 2016-03-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:24 PM Revision a4e97af6 (git): * test/ruby/test_rubyoptions.rb: make version matching support
- JRuby's version output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:30 PM Feature #12172 (Closed): Array#max and Array#min
- I propose to define `Array#max`. It is 10+ times faster than `Enumerable#max` since it skips a call to `#each`.
~~~~
a = [*1..10000]; 100000.times { a.max }
~~~~
* no patch: 22.424s
* Array#max defined: 1.740s
I don't thin... -
10:14 AM Revision 3d5a3a23 (git): * bignum.c (big2str_2bdigits): reduce div instruction.
- Fix the code so that C compiler unify div instructions of `%` and `/`.
Before:
4291b0: 48 89 f0 mov %rsi,%rax
4291b3: 31 d2 xor %edx,%edx
4291b5: 48 83 ef 01 sub... -
09:55 AM Bug #9905 (Closed): Fiber does not work on AIX
- Change status as Closed to enqueue backport.
-
09:39 AM Revision 4b15b54d (git): * include/ruby/oniguruma.h, enc/unicode.c: Adjusting flag assignments
- and macros to work with unified CaseMappingSpecials array.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:53 AM Revision ea5e885a (git): optimize named capture assignment
- * compile.c (compile_named_capture_assign): optimize named capture
assignments, by replacing repeating global variable accesses
with `dup`, and by returning the matched result instead of
re-getting it from the MatchData.
* parse.y... -
07:03 AM Revision a4e6f7d7 (git): ruby.c: reduce fstat
- * file.c (ruby_is_fd_loadable): now return -1 if loadable but
may block.
* ruby.c (open_load_file): wait to read by the result of
ruby_is_fd_loadable, without fstat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54099 b2dd03c8-3... -
04:41 AM Revision fcadcd3e (git): * numeric.c (fix2str): improve r54092 like rb_int2big().
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:35 AM Feature #12129: syntactic sugar for dynamic method dispatch `object_expression:method_name_expression(1, 2)`
- bug hit wrote:
> Yukihiro Matsumoto wrote:
> ...
Please, for the love of all that is holy, regardless of whatever syntax sugar you choose, make it translate or equivalent to `public_send`, not `__send__`! -
01:32 AM Feature #12141: send and __send__
- Martin Dürst wrote:
> I agree with Yusuke. The name `__send__` is chosen explicitly to show that this is an 'internal' method with special status.
Also, the messaging metaphor is at the core of Smalltalk-style OOP. And the very heart... -
01:31 AM Bug #12069: [PATCH] document OpenSSL::SSL::SSLContext#setup as MT-unsafe
- Committed with a minor wording change as r54097
s/SSLSockets/SSLSocket objects/ for searchability -
01:20 AM Bug #12069 (Closed): [PATCH] document OpenSSL::SSL::SSLContext#setup as MT-unsafe - Applied in changeset r54097.
----------
document OpenSSL::SSL::SSLContext#setup as MT-unsafe
On a cursory inspection, using rb_block_call for extra_chain_cert
is thread-unsafe. There may be other instances of thread-unsafe
behavior in... - 01:20 AM Revision 9749511d (git): document OpenSSL::SSL::SSLContext#setup as MT-unsafe
- On a cursory inspection, using rb_block_call for extra_chain_cert
is thread-unsafe. There may be other instances of thread-unsafe
behavior in this method, but one is enough.
* ext/openssl/ossl_ssl.c (ossl_sslctx_setup): document as MT-... -
12:41 AM Bug #12163 (Rejected): New to redmine & ruby, cannot get it to install
- This is not language issue.
You need to setup development files like headers and shared libraries.
03/13/2016
- 04:26 PM Revision bd618911 (git): * 2016-03-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:26 PM Revision 3392b6c9 (git): parse.y: adjust indent
- * parse.y: adjust indent and tabify spaces after tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:50 AM Feature #12161 (Assigned): Friendly BigDecimal#inspect
-
12:43 AM Bug #12171 (Closed): TestFile#test_file_share_delete failure
- Applied in changeset r54094.
----------
win32.h: fix O_SHARE_DELETE
* include/ruby/win32.h (O_SHARE_DELETE): change to fit Fixnum
limit. [ruby-core:74285] [Bug #12171] -
12:43 AM Revision e13db770 (git): win32.h: fix O_SHARE_DELETE
- * include/ruby/win32.h (O_SHARE_DELETE): change to fit Fixnum
limit. [ruby-core:74285] [Bug #12171]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:15 AM Revision f0d1787a (git): * 2016-03-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:15 AM Revision 05d91641 (git): numeric.c: fix edge case
- * numeric.c (rb_fix2str): fix edge case, accidentally generated
wrong Fixnum from LONG_MIN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/12/2016
-
11:33 AM Bug #12171 (Closed): TestFile#test_file_share_delete failure
- I got an failure in Mingw-w64 32bit.
~~~
1) Failure:
TestFile#test_file_share_delete [E:/Jenkins/jobs/RubyInstaller32_ruby23_4.7.2/workspace/sandbox/ruby_2_3/test/ruby/test_file.rb:418]:
Exception raised:
<#<Errno::EACCES: Permiss... -
10:55 AM Feature #12165: Hash#first, Hash#last
- Yes, I would concur considering that ruby hashes are ordered these days.
It may have been different in the past when the hashes were not ordered.
But the moment when ruby hashes were ordered, I think using .first or .last
would ma... -
10:51 AM Bug #12163: New to redmine & ruby, cannot get it to install
- I am not sure if this is the appropriate forum Dawes? Since this is for the ruby core team to
have a look at what ails the core ruby stuff - redmine would be an addon and has another bug
tracker, assumingly so.
From the output, you ... -
08:01 AM Feature #12110: Create a method to avoid vacuous truth?
- Nobuyoshi Nakada wrote:
> Anybody proposed an optional parameter for the default value to `#all?` and `#any?` ?
`any?` is not the issue. I don't think Waldyr de Souza wants to alter the behaviour:
~~~RUBY
[].any?{} # => false
... -
07:06 AM Feature #12110: Create a method to avoid vacuous truth?
- Anybody proposed an optional parameter for the default value to `#all?` and `#any?` ?
-
01:35 AM Revision 8b4448e2 (git): unicode.c: off-by-one error
- * enc/unicode.c (CodePointListValidP): fix off-by-one error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:15 AM Revision d48f9236 (git): unicode.c: boundary check
- * enc/unicode.c (CodePointListValidP): add pathological boundary
check, for gcc 4.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:50 AM Revision 12ec73ad (git): Malformed RDoc syntax in catch [ci skip]
- * vm_eval.c (rb_f_catch): [DOC] fix malformed RDoc syntax, "+...+"
cannot enclose non-identifier characters.
a patch by Sebastian S in [ruby-core:74278]. [Bug#12170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54089 b2dd03c8-...
03/11/2016
-
06:32 PM Feature #3944: Add Fiber#root? method
- For example, the Facebook Graph API server accepts POST request to calculate smth heavy and returns id of the 'async job'. Then I GET status until it's "complete" and then I GET the actual result.
To process thousands of requests I ca... - 05:58 PM Revision 2d6f1d90 (git): * 2016-03-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:58 PM Revision db271576 (git): * test/lib/test/unit.rb: describe !/REGEXP/ in the help message.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:07 PM Bug #12170 (Closed): Malformed RDoc syntax in Kernel#catch description
- Patch attached.
-
01:05 PM Bug #12169 (Rejected): How to solve the following error - An error occurred while sending the digest (undefined method `length' for true:TrueClass)
- It's redmine or some plugin issue. Not ruby language issue.
-
12:14 PM Bug #12169 (Rejected): How to solve the following error - An error occurred while sending the digest (undefined method `length' for true:TrueClass)
- Steps to reproduce
1)Install Redmine 3
2)Install redmine_digest
3)Navigate to plugins
4)Configure redmine digest plugin
5)Click on Apply
6)Click on Send a test email to your email address
Actual result:An error occurred while sen... -
08:03 AM Revision 83e36bb5 (git): testunit: negative filter
- * 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 test files, not test metho... -
07:11 AM Revision 59766643 (git): * enc/unicode/case-folding.rb, casefold.h: Streamlining approach to
- case mapping data not available from case folding by unifying all
three cases (special title, special upper, special lower).
* enc/unicode.c: Adjust macro names for above (macros are currently inactive).
(with Kimihito Matsui)
git-... -
03:30 AM Revision a2b88f53 (git): Revert r54082 "ruby.c: load in binary mode"
- DATA is expected to be text mode, but there is no ways to make a
FD to text mode from binary mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:47 AM Revision 50dd7358 (git): * 2016-03-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:47 AM Revision d661eb44 (git): ruby.c: load in binary mode
- * ruby.c (open_load_file): always open in binary mode if provided,
parser deals with CRs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:42 AM Bug #12164: Binding UnboundMethod to BasicObject
- "Yes" was to
> Probably it is somehow related to https://bugs.ruby-lang.org/issues/11278
I guess it's a bug-fix, but maybe an improvement.
Subtle. -
12:21 AM Bug #9905: Fiber does not work on AIX
- Could you back-port this to 2.1 as well? Thanks.
-
12:16 AM Bug #12168 (Closed): Backport r48224 to 2.1
- This is a ticket to back-port r48224 (and the fixes on which it depends) to 2.1. Ruby 2.1 gets stuck in test/openssl/test_ssl.rb on AIX, and r48224 solves this problem. r48224 depends on r46108, r46209, r46223, r46297, and r48223.
03/10/2016
-
08:00 PM Bug #12167 (Closed): Backport r54025 (Avoid false positive in an IMAP test)
- This is a ticket to back-port r54025 to 2.3.
-
07:46 PM Bug #12166 (Closed): Backport r54073 (AIX does not set MSG_TRUC for recvmsg(2) with MSG_PEEK)
- This is a ticket to back-port r54073 to 2.3.
-
06:00 PM Feature #12165 (Open): Hash#first, Hash#last
- Just run into a simple problem with a colleague and was wondering why there is no Hash#last method?
~~~ruby
{a: true, b: false}.last
NoMethodError: undefined method 'last' for {:a=>true, :b=>false}:Hash
~~~
Interestingly I while... -
02:04 PM Bug #12164: Binding UnboundMethod to BasicObject
- Nobuyoshi Nakada wrote:
> Yes.
Thank you! Well... a feature?
-
01:16 PM Bug #12164 (Closed): Binding UnboundMethod to BasicObject
- Yes.
-
11:22 AM Bug #12164 (Closed): Binding UnboundMethod to BasicObject
- I tried to bind method from Object to BasicObject and I suddenly succeeded.
For example:
```
$ irb
2.3.0 :001 > BasicObject.send :define_method, :methods, Object.instance_method(:methods)
=> :methods
2.3.0 :002 > BasicObject.ne... -
09:41 AM Feature #12110: Create a method to avoid vacuous truth?
- Martin Dürst wrote:
> But this isn't so much because that's how natural language works.
That is how natural language works. Presupposition (failure) is an essential part of natural language semantics. It is a matter of semantics, not... -
09:06 AM Feature #12110: Create a method to avoid vacuous truth?
- Tsuyoshi Sawada wrote:
> In natural language, universal quantification carries a presupposition that the domain is non empty; the meaning of "for all x in A, p(x)" is undefined when A is empty, just like "the king of the United States... -
07:24 AM Feature #12110: Create a method to avoid vacuous truth?
- Thanks Martin and Tsuyoshi,
Yes, all of this makes sense when you just look at it the right way.
Otherwise this basic equality wouldn't work either:
```ruby
[].all? { true } == [].none? { false }
```
I'm not sure a new core... -
08:34 AM Revision cf09c0c3 (git): iseq.h: coverage_enabled flag
- * iseq.c (prepare_iseq_build): enable coverage by coverage_enabled
option, not by parse_in_eval flag in the thread context.
* iseq.h (rb_compile_option_struct): add coverage_enabled flag.
* parse.y (yycompile0): set coverage_enabled fl... -
07:27 AM Revision 2d39d114 (git): node.c: no nd_compile_option unless set
- * node.c (dump_node): show nd_compile_option only when it is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:27 AM Revision 72b3e226 (git): node.c: stringize before expansion
- * node.c (F_NODE, F_OPTION): stringize member names defined as
macros before expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:06 AM Revision 46ac76b6 (git): iseq.h: bit flags
- * iseq.h (rb_compile_option_struct): turn boolean flags to bit
fields.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:59 AM Feature #12157: Is the option hash necessary for future Rubys?
- **Edited:**
_Tsuyoshi Sawada_: how do you feel about those edge cases dealing with the double splat? Do you know of any real world code that uses the option hash in arrays? I have yet to see that in the wild.
A special syntax to dist... -
05:58 AM Feature #12157: Is the option hash necessary for future Rubys?
- Note that optional hash is not just for arguments in method call. It is also used for arrays, for example:
["a", "b", "c" => 1, d: 2]
Unlike in method calls, keyword arguments do not make sense in an array. Therefore, removing ... -
06:19 AM Revision a944bdd5 (git): node.c: hidden options hash
- * node.c (dump_option): nd_compile_option is a hidden hash object,
cannot call inspect on it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:32 AM Revision 9871d88e (git): iseq.c: set coverage at once
- * iseq.c (prepare_iseq_build): set coverage at once, not
repeatedly resetting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:32 AM Revision c3900ff4 (git): thread.c: check type of coverage
- * thread.c (update_coverage): check type of coverage array not
only if non-zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:10 AM Feature #12160: Extract XMLRPC library to bundled gem
- As the lib/xmlrpc maintainer, I missed these issues. Sorry and thanks for handling them.
I handled issues I noticed (e.g. #11489 2 months ago) but I don't object that you maintain lib/xmlrpc as a gem.
- 12:55 AM Revision e266279a (git): * 2016-03-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:55 AM Revision acfd12ae (git): * test/socket/test_socket.rb (test_udp_recvmsg_truncation):
- AIX does not set the MSG_TRUNC flag for a message partially read
by recvmsg(2) with the MSG_PEEK flag set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:07 AM Bug #12022: Inconsistent behavior with splatted named arguments
- _NOTE_: I did find a "cleaner" way to do the decorator mentioned in the **Further Information** section, but it uses `Kernel#eval` which never feels like a good idea:
```ruby
def method_missing *ordered, **named, &block
args = ord...
03/09/2016
-
11:56 PM Feature #12157: Is the option hash necessary for future Rubys?
- # Examples
Currently Ruby has syntactic sugar to make passing a Hash as a final argument prettier. Consider the following:
```ruby
def foo(arg1, arg2, option_hash)
option_hash
end
```
If someone doesn't know about the opti... -
09:49 PM Feature #12157: Is the option hash necessary for future Rubys?
- An option hash is just an optional argument with a default value of the empty hash. You can't really remove options hashes unless you remove optional arguments or disallow using a hash as a default value for an optional argument, neither...
-
09:25 PM Feature #12157: Is the option hash necessary for future Rubys?
- Sorry, I accidentally marked this as a bug. Moving it to features.
-
10:25 PM Feature #11997: A method to read a file with interpolations
- As far as implementation, `File.eval` doesn't feel right since you may want any `IO` object—or any object with `#read`—to be `eval`-able. Also giving `File` the ability to do `eval` feels like it violates the single responsibility princi...
-
09:49 PM Feature #11997: A method to read a file with interpolations
- ~~I agree that ERB is ugly for a lot of cases, but—since there is a one liner to write this in Ruby—I don't think it needs to be added to the core language.~~
_EDIT:_ After thinking about this for a while longer, I think this would be... -
09:41 PM Feature #12084: `Class#instance`
- This feature would solve a lot of problems I had while doing what should have been simple meta-programming (if there is such a thing as "simple" meta-programming...).
Something to consider is what happens with nested singleton classes... -
07:39 PM Bug #12163 (Rejected): New to redmine & ruby, cannot get it to install
- Installation output for redmine 3.2.0:
[root@localhost redmine]# /usr/local/bin/bundle install --without development test
/usr/local/share/gems/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/shell/basic.rb:356: warning: Insecure... -
03:25 PM Bug #12054: Remove block from Logger.add as it's not needed
- r53790 and r53844 were backported into `ruby_2_2` branch at r54072.
-
03:25 PM Revision 3d3ff04b (git): merge revision(s) 53790,53844: [Backport #12054]
- * lib/logger.rb: Remove block from Logger.add as it's not needed
patch provided by Daniel Lobato Garcia [fix GH-1240] [Bug #12054]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54072 b2dd03c8-39d4-4d8f-98ff-82... -
03:21 PM Bug #11495: [Documentation] Please improve documentation for Regexp.new() and clarify the 3 argument call
- r51006 and r53784 were backported into `ruby_2_2` branch at r54071.
-
03:20 PM Revision 3e7a554e (git): merge revision(s) 51006,53784: [Backport #11495]
- * re.c: Update documentation for Regexp class.
[fix GH-937][ci skip] Patch by @davydovanton
* re.c: Remove deprecated kcode argument from Regexp.new and compile
patch provided by Dylan Pulliam [Bug #11495]
... -
03:15 PM Bug #11877: Socket.gethostname will fail when the hostname length == RUBY_MAX_HOST_NAME_LEN
- Backported into `ruby_2_2` branch at r54070.
-
03:14 PM Revision f548ea1f (git): merge revision(s) 53677: [Backport #11877]
- * ext/socket/socket.c (sock_gethostname): support unlimited size
hostname.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:05 PM Bug #12162 (Third Party's Issue): OpenSSL::PKCS7 seems to create broken objects (nested asn.1 error)
- When trying to read previously created OpenSSL::PKCS7 object, it fails with 'nested asn.1 error'. Seems like object is broken.
Steps to reproduce:
1. Generate x.509 certificate (either from CLI or in Ruby) and store it in OpenSSL... -
02:01 PM Bug #11489: XMLRPC client cannot alter SSL options for _async calls
- Backported into `ruby_2_2` branch at r54069.
-
02:01 PM Revision eb4ed0ec (git): merge revision(s) 53318: [Backport #11489]
- * lib/xmlrpc/client.rb: Support SSL options in async methods of
XMLRPC::Client.
[Bug #11489]
Reported by Aleksandar Kostadinov. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54069... -
01:59 PM Bug #12011: honor Marshal.load post proc value for TYPE_LINK
- Backported into `ruby_2_2` branch at r54068.
-
01:58 PM Revision 6aad84e0 (git): merge revision(s) 53609: [Backport #12011]
- * marshal.c (r_object0): honor Marshal.load post proc
value for TYPE_LINK. by Hiroshi Nakamura <nahi@ruby-lang.org>
https://github.com/ruby/ruby/pull/1204 fix GH-1204
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra... -
01:46 PM Bug #11958: TCPSocket.getsockopt().bool raises a TypeError on windows
- Backported into `ruby_2_2` branch at r54067.
-
01:45 PM Revision 7d25771f (git): merge revision(s) 53561: [Backport #11958]
- * ext/socket/option.c (sockopt_bool): relax boolean size to be one
too not only sizeof(int). Winsock getsockopt() returns a single
byte as a boolean socket option. [ruby-core:72730] [Bug #11958]
git-svn-id: svn+ss... -
01:30 PM Revision 75b61aa3 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:42 PM Feature #12161 (Closed): Friendly BigDecimal#inspect
- Can BigDecimal's #inspect be more human-friendly? Even just `#<BigDecimal:b7ea1130,1234.5678,8(12)>` instead of `#<BigDecimal:b7ea1130,'0.12345678E4',8(12)>` will be much easy to read. But I think the best option is `1234.5678(#<BigDeci...
-
10:39 AM Revision 47c00f30 (git): common.mk: dependency of prelude.o
- * common.mk (prelude.o): fix missing dependency on iseq.h, for
rb_compile_option_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:24 AM Bug #12082: Tail-calling method can't catch exception raised by tail-called method
- Updating my patch, because it breaks such code:
~~~ruby
def errinfo
$!
end
RubyVM::InstructionSequence.compile(<<EOF, __FILE__, __FILE__, __LINE__, tailcall_optimization: true).eval
def test_rescue
raise "a"
rescue
... -
07:52 AM Revision 649736de (git): driver.rb: unused variable
- * benchmark/driver.rb (BenchmarkDriver.load): remove unused
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:49 AM Revision dc39baa9 (git): * benchmark/driver.rb: fix my last commit (syntax error).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:42 AM Revision a036c026 (git): * benchmark/driver.rb: fix output messages.
- * benchmark/memory_wrapper.rb: use respond_to? because
member? does not work well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:22 AM Revision a5ca1179 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:22 AM Revision 61aa2685 (git): * benchmark/driver.rb: support memory usage benchmark.
- use `--measure-target=[target]'.
Now, we can use the following targets:
* real (default): real time which returns process time in sec.
* peak: peak memory usage (physical memory) in bytes.
* size: last memory usage (physica... -
07:17 AM Revision 2d3a6ba6 (git): hash.c: COPY_DEFAULT
- * hash.c (COPY_DEFAULT): new macro to copy the default value/proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:17 AM Revision e6840690 (git): hash.c: SET_PROC_DEFAULT
- * hash.c (SET_PROC_DEFAULT): new macro to set the default proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:17 AM Revision 7522e064 (git): hash.c: SET_DEFAULT
- * hash.c (SET_DEFAULT): new macro to set the default value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:17 AM Revision 921d6e26 (git): hash.c: hash_dup for rb_hash_to_h
- * hash.c (rb_hash_to_h): share hash_dup to copy the contents and
the default value/proc only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:17 AM Revision 865a326d (git): hash.c: make duplicated hash WB protected
- * hash.c (hash_alloc_flags): allocate new hash with the flags and
the default value.
* hash.c (hash_dup): duplicate with the flags and the default
value.
* hash.c (rb_hash_dup): make the duplicated hash write-barrier
protected.
... -
06:09 AM Feature #12160 (Closed): Extract XMLRPC library to bundled gem
- XMLRPC library is no longer maintain actively.
I removed broken parsers in Mar. 2016. This issue opend at 2014.
No one handle between 2014 and 2016.
* https://bugs.ruby-lang.org/issues/9370
* https://bugs.ruby-lang.org/issues/9... - 06:05 AM Revision f937d32f (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:05 AM Revision 1228d134 (git): * benchmark/bm_vm3_gc_old_full.rb: add GC.start benchmark.
- * benchmark/bm_vm3_gc_old_immediate.rb: ditto.
* benchmark/bm_vm3_gc_old_lazy.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:02 AM Revision b0651410 (git): * benchmark/driver.rb: exit benchmarking if a benchmark process
- receives signals.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:14 AM Revision cccfe477 (git): test_hash.rb: tests for to_h
- * test/ruby/test_hash.rb: add tests for Hash#to_h, which copies
default value/proc but not instance variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:45 AM Revision d000891e (git): hash.c: tbl_update_func
- * hash.c (tbl_update_func): extract function typedef from the
declaration of tbl_update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:22 AM Revision e1e223a8 (git): memory_status.rb: independent of MiniTest
- * test/lib/memory_status.rb: make Memory::Status independent of
MiniTest::Skip.
* test/lib/test/unit/assertions.rb (assert_no_memory_leak): skip
if Memory::Status is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5... -
03:48 AM Revision b3f4db92 (git): memory_status.rb: remove unused values
- * test/lib/memory_status.rb: remove initial status values, which
are not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:43 AM Bug #12159: Thread::Backtrace::Location#path returns absolute path for files loaded by require_relative
- Usaku NAKAMURA wrote:
> I guess that it's intentional.
> ...
If so, I think it's better to write "Returns the file name or absolute path of this frame" in document.
http://docs.ruby-lang.org/en/2.3.0/Thread/Backtrace/Location.html#met... -
01:40 AM Bug #12159 (Assigned): Thread::Backtrace::Location#path returns absolute path for files loaded by require_relative
- I guess that it's intentional.
`absolute_path` guarantees to contain the absolute path, but `path` does not guarantee so.
It may contain the absolute path or may not.
note: not only in `require_relative` but also in `require`. -
01:27 AM Bug #12159 (Closed): Thread::Backtrace::Location#path returns absolute path for files loaded by require_relative
- I expected that Thread::Backtrace::Location#path always returns base filename, but returns absolute path for files loaded by require_relative.
Is it intentional? or a bug?
~~~
$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86... -
01:16 AM Bug #12156 (Assigned): TckImage.new broken after r53077 (2.3, trunk)
- 12:28 AM Revision 8f5cbc58 (git): * test/io/wait/test_io_wait.rb (test_wait_readwrite_timeout):
- select(2) in AIX returns "readable" for the write-side fd
of a pipe, so it is not possible to use a pipe to test
the read-write timeout of IO#wait on AIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54047 b2dd03c8-39d4-4d8f-98...
03/08/2016
- 11:00 PM Revision 96e0b7d4 (git): * win32/win32.c (rb_w32_write_console): remove unused variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:29 PM Feature #12142: Hash tables with open addressing
- Vladimir Makarov wrote:
>
> ...
Sorry, I made a mistake in calculations for given conditions. It should be 2*0.8 + 3*0.2 vs 2*0.9+4*0.1 or 2.2 vs 2.2. It is just an illustration of my thesis. The different collision probabilities... -
08:15 PM Feature #12142: Hash tables with open addressing
- Yura Sokolov wrote:
> > I don't like lists (through pointer or indexes). This is a disperse data structure hurting locality and performance on modern CPUs for most frequently used access patterns. The lists were cool long ago when a gap... -
05:39 PM Feature #12142: Hash tables with open addressing
- > I don't like lists (through pointer or indexes). This is a disperse data structure hurting locality and performance on modern CPUs for most frequently used access patterns. The lists were cool long ago when a gap between memory and CPU...
-
04:01 PM Feature #12142: Hash tables with open addressing
- Yura Sokolov wrote:
> I think, if your intention were to reduce table size when elements counts decreased, then you have error here:
> ...
I am aware of it therefore I put `???` in comments. I still think about strategy in changing tab... -
03:49 AM Feature #12142: Hash tables with open addressing
- I think, if your intention were to reduce table size when elements counts decreased, then you have error here:
https://github.com/vnmakarov/ruby/blob/1ec2199374015033277e7ed82e1a469df73f5b09/st.c#L506-L508
What if there were deleted ... -
02:16 AM Feature #12142: Hash tables with open addressing
- Vladimir Makarov wrote:
> *Still the community should decide about 32-bit hashes and indexes* because it is an important part of your patch and probably a big reason for your table size and speed improvements.
There is a Ruby comm... -
08:28 PM Bug #11885: [PATCH] IO#readpartial rejects bad args
- r51016(partially) and r53329 were backported into `ruby_2_2` branch at r54045.
-
08:12 PM Bug #11885: [PATCH] IO#readpartial rejects bad args
- rr54041 was reverted at r54044 because r54041 breaks some openssl tests.
-
07:14 PM Bug #11885: [PATCH] IO#readpartial rejects bad args
- Backported into `ruby_2_2` branch at r54041.
`ruby_2_2` branch also requires the same patch with r53932. -
08:27 PM Revision 83d705f6 (git): merge revision(s) 51016,53329: [Backport #11885]
- * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal):
do not process kwargs in blocking mode
* test/openssl/test_ssl.rb: test sysread
* io.c (io_getpartial): remove unused kwarg from template
* test/ruby... -
08:11 PM Revision e23a564a (git): revert r54041. it breaks openssl tests.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:46 PM Bug #11898: backport r53346-r53349
- r53346, r53347, r53348, r53349, r53391 and r53928 were backported into `ruby_2_2` branch at r54043.
-
07:45 PM Revision 055c3336 (git): merge revision(s) 53346,53347,53348,53349,53391,53928: [Backport #11898]
- * process.c: use rb_w32_uchdir() instead of plain chdir() on Windows.
reported by naruse via twitter.
* process.c (rb_execarg_addopt): need to convert to ospath.
* process.c (rb_execarg_parent_start1): need to... -
07:19 PM Bug #11945: [PATCH] stringio: binmode sets encoding to ASCII-8BIT
- Backported into `ruby_2_2` branch at r54042.
-
07:19 PM Revision ebacc098 (git): merge revision(s) 53435: [Backport #11945]
- * ext/stringio/stringio.c (strio_binmode): implement to set encoding
* test/stringio/test_stringio.rb (test_binmode): new test
[ruby-core:72699] [Bug #11945]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_... -
07:12 PM Revision 117fec74 (git): merge revision(s) 53329: [Backport #11885]
- * io.c (io_getpartial): remove unused kwarg from template
* test/ruby/test_io.rb (test_readpartial_bad_args): new
[Bug #11885]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54041 b2dd03c8-39d4-4d8f-98... -
07:03 PM Bug #11870: Eradication of typical misspellings
- Backported into `ruby_2_2` branch at r54040.
-
07:02 PM Revision 0df86c0b (git): merge revision(s) 53299: [Backport #11870]
- * cont.c, doc, man: fix common misspelling.
[ruby-core:72466] [Bug #11870]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:52 PM Bug #11862: [PATCH] ext/socket/init.c (rsock_init_sock): reject reserved FDs
- Backported into `ruby_2_2` branch at r54039.
-
06:51 PM Revision cb37e401 (git): merge revision(s) 53259: [Backport #11862]
- * ext/socket/init.c (rsock_init_sock): reject reserved FDs
[ruby-core:72445] [Bug #11862]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:50 PM Bug #11854: Socket.for_fd(-1) causes segmentaion fault on mingw32.
- r52605, r53231 and r53244 were backported into `ruby_2_2` branch at r54038.
-
06:49 PM Revision f429ee01 (git): merge revision(s) 52605,53231,53244: [Backport #11854]
- init.c: is_socket
* ext/socket/init.c (is_socket): extract predicate to see if the
given fd is a socket.
* ext/socket/init.c (rsock_init_sock): check FD after validating
* test/socket/test_basicsocket.rb (test... -
06:38 PM Revision d9166317 (git): * test/ruby/test_require.rb (test_require_with_loaded_features_pop):
- Only remove PATH so threads don't accidentally double-pop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:35 PM Bug #11825: MatchData#names returns ASCII-8BIT
- Backported into `ruby_2_2` branch at r54036.
-
06:34 PM Revision eb712553 (git): merge revision(s) 53167: [Backport #11825]
- * re.c (reg_names_iter): should consider encoding of regexp.
[ruby-core:72185] [Bug #11825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:29 PM Revision 6cde2d35 (git): vm_method.c: fix aliased original name
- * vm_method.c (rb_alias): the original name should be properly
available method_added method, set the name before calling the
hook.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:21 PM Revision 3c4ade20 (git): ruby 2.0.0 has ended
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:21 PM Revision 7b7c7b33 (git): ruby.c: extra comma
- * ruby.c (feature_option, debug_option, dump_option): remove an
extra comma from option lists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:07 PM Revision 7196266b (git): * 2016-03-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:07 PM Revision a435fae7 (git): logger.rb: kwd args
- * lib/logger.rb (Logger::LogDevice#initialize): define using
keyword arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:38 PM Revision 4c0e360d (git): test/ruby/test_array.rb: split permute + stack error tests out.
- * test/ruby/test_array.rb: split out the test for no stack error
on large input for test_permutation, test_repeated_permutation,
and test_repeated_combination, and make them all timeout:30.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub... -
02:25 PM Feature #2567: Net::HTTP does not handle encoding correctly
- Hello,
I'm gonna give my 50 cents:
~~~
class Net::HTTPResponse
def read_body(dest = nil, &block)
if @read
raise IOError, "#{self.class}\#read_body called twice" if dest or block
return @body
end
# F... -
09:15 AM Revision 1b49df0b (git): * intern.h (rb_divmod): assume compilers `/` and `%` comply C99
- and reduce branching. If a compiler doesn't comply, add #ifdefs.
* intern.h (rb_div): added for Ruby's behavior.
* intern.h (rb_mod): added for Ruby's behavior.
* insns.def (opt_div): use rb_div.
* insns.def (opt_mod): use rb_mod.
*... -
08:54 AM Bug #12158 (Closed): Fixnum#% doesn't show its name on ZeroDivisionError
- Applied in changeset r54028.
----------
* insns.def (opt_mod): show its method name on ZeroDivisionError.
[Bug #12158] -
08:54 AM Bug #12158 (Closed): Fixnum#% doesn't show its name on ZeroDivisionError
- ```
% ruby -ve'p 12345 % 0'
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-freebsd10.2]
-e:1:in `<main>': divided by 0 (ZeroDivisionError)
```
It should behave like
```
% ruby -ve'p 12345 / 0'
ruby 2.3.0p0 (2015-12-25 revisio... -
08:54 AM Revision 87adc59b (git): * insns.def (opt_mod): show its method name on ZeroDivisionError.
- [Bug #12158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:34 AM Revision b0b2df25 (git): * win32/win32.c (rb_w32_write_console): now no need to check
- ERROR_CALL_NOT_IMPLEMENTED because it is for old Win9X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:01 AM Bug #12147 (Rejected): Time::local returns incorrect ending of US DST
-
01:14 AM Bug #12147 (Closed): Time::local returns incorrect ending of US DST
- Ryan Mitchell wrote:
> So this isn't a bug per se and I'm happy to have it closed.
- 07:55 AM Revision 693b3353 (git): * win32/win32.c (rb_w32_write_console): stop the VT100 emulation if the
- console supports it natively.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:16 AM Feature #12157 (Closed): Is the option hash necessary for future Rubys?
- Option hashes were great before Ruby had named arguments, but with the addition of named arguments and the double splat operator are they still needed?
One can convert named arguments into an option hash by using the double splat oper... -
04:59 AM Bug #10708: In a function call, double splat of an empty hash still calls the function with an argument
- #12022 has some further exploration of this bug.
-
04:32 AM Bug #10708: In a function call, double splat of an empty hash still calls the function with an argument
- The inconsistency is even more serious. See #11860.
-
02:26 AM Bug #10708: In a function call, double splat of an empty hash still calls the function with an argument
- Adding to this, the current behavior results in the following inconsistent behavior: I can call an argless method using a double-splatted empty Hash directly, but this cannot be done via a delegating or overriding method. I'm encounterin...
-
04:32 AM Bug #11860: Double splat does not work on empty hash assigned via variable
- This bug is related to #10708.
-
02:23 AM Bug #12156 (Rejected): TckImage.new broken after r53077 (2.3, trunk)
- This simple test program fails with ruby2.3, but worked in previous versions:
```
require 'tk'
require 'tkextlib/tkimg'
root = TkRoot.new
canvas = TkCanvas.new root
canvas.grid :column => 0, :row => 0
img = TkPhotoImage.new :f...