Project

General

Profile

Activity

From 03/18/2017 to 03/24/2017

03/24/2017

11:38 PM Bug #13236: Ruby segfault
nobu (Nobuyoshi Nakada) wrote:
> Could you enable debugging?
So I *think* I have managed to bisect the segfault. When I comment a specific test I never see the segfault, but when I uncomment it I get (sometimes) the segfault. The tes...
Gondolin (Damien Robert)
11:30 PM Bug #13358: OpenStruct overriding allocate
Eregon (Benoit Daloze) wrote:
> But not only, after all it is a public and well-known method (many hits on GitHub code search).
> ...
Methods of constructed objects will be used more than construction usually.
> but also various lib...
nobu (Nobuyoshi Nakada)
04:48 PM Bug #13358: OpenStruct overriding allocate
nobu (Nobuyoshi Nakada) wrote:
> For what purpose?
> ...
But not only, after all it is a public and well-known method (many hits on GitHub code search).
Many deserializing libraries will use it,
but also various libraries which need ...
Eregon (Benoit Daloze)
02:01 PM Bug #13358: OpenStruct overriding allocate
Eregon (Benoit Daloze) wrote:
> Lots of Ruby code calls Class#allocate.
> ...
For what purpose?
It should be used by `Class#new`, `Kernel#dup`, `Kernel#clone`, and `Marshal.load`.
> Why another patch? It seems more hacky and less p...
nobu (Nobuyoshi Nakada)
01:11 PM Bug #13358: OpenStruct overriding allocate
nobu (Nobuyoshi Nakada) wrote:
> Note that `OpenStruct.allocate` is intended to be used by only psych.
> ...
Lots of Ruby code calls Class#allocate.
Of course, #initialize should be called directly after or some other way to initializ...
Eregon (Benoit Daloze)
12:16 PM Bug #13358 (Closed): OpenStruct overriding allocate
Applied in changeset r58077.
----------
ostruct.rb: fix OpenStruct.allocate
* lib/ostruct.rb (OpenStruct.allocate): initialize an instance
variable directly, without calling `intialize` method which may
be overridden in a subclass....
nobu (Nobuyoshi Nakada)
08:14 AM Bug #13358: OpenStruct overriding allocate
Note that `OpenStruct.allocate` is intended to be used by only psych.
Not only `OpenStruct`, `Class#allocate` is not intended to be called directly.
nobu (Nobuyoshi Nakada)
06:20 PM Feature #13303: String#any? as !String#empty?
mame (Yusuke Endoh) wrote:
> if h and h["value"].present?
I think `foo.present?` semantically should be the same as `!foo.nil?` ("is the object present?" = "does the object exist?"), which probably wouldn't make much sense as a m...
stomar (Marcus Stollsteimer)
03:14 PM Feature #13303: String#any? as !String#empty?
duerst (Martin Dürst) wrote:
> [].any? is always true.
No, it is always false. I agree that `String#any?` is a bad name for the behavior, anyway.
I think that what Naruse-san really wants is, still, `Object#present?`.
if h...
mame (Yusuke Endoh)
12:47 PM Feature #13303: String#any? as !String#empty?
Maybe String#filled? or String#filled_in? ? rosenfeld (Rodrigo Rosenfeld Rosas)
08:46 AM Feature #13303: String#any? as !String#empty?
`any?` would definitely be the wrong name, because for Arrays, [].any? is always true.
Of the names proposed so far, I think `not_empty?` looks best. An alternative may be `unempty?`, but that may sound decidedly unenglish :-). Anothe...
duerst (Martin Dürst)
08:18 AM Feature #13303: String#any? as !String#empty?
matz (Yukihiro Matsumoto) wrote:
> Use-case?
For example https://github.com/ruby/ruby/commit/0256fa889039295742448ad72634fec4ea638684#diff-9199d649a7165e719f0209c3c789f1bbR482
> ...
naruse (Yui NARUSE)
02:30 PM Bug #13361 (Feedback): Can't build Ruby trunk with i386 arch on macOS 10.12
Does this work?
```diff
diff --git a/configure.in b/configure.in
index 1cec2e33ac..dcd56ba2f7 100644
--- a/configure.in
+++ b/configure.in
@@ -1100,6 +1100,12 @@ AS_CASE(["$target_os"],
],
[macosx_10_5=yes], [maco...
nobu (Nobuyoshi Nakada)
09:24 AM Bug #13361: Can't build Ruby trunk with i386 arch on macOS 10.12
The build error is occurred on i386 only. watson1978 (Shizuo Fujita)
07:07 AM Bug #13361: Can't build Ruby trunk with i386 arch on macOS 10.12
Only i386 but not x86_64? nobu (Nobuyoshi Nakada)
02:18 AM Bug #13361 (Closed): Can't build Ruby trunk with i386 arch on macOS 10.12
Ruby uses deprecated function and it causes build error.
Here is reproduce operation.
~~~
$ svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby
$ cd ruby
$ autoconf
$ ./configure --with-arch=i386
$ make
CC = clang
LD = ld
...
watson1978 (Shizuo Fujita)
02:06 PM Revision 33334546 (git): merge revision(s) 58078:
export_changelog must specify the branch's url
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:05 PM Revision 8d1dacb2 (git): export_changelog must specify the branch's url
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:16 PM Revision cd911b93 (git): ostruct.rb: fix OpenStruct.allocate
* lib/ostruct.rb (OpenStruct.allocate): initialize an instance
variable directly, without calling `intialize` method which may
be overridden in a subclass. [ruby-core:80292] [Bug #13358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
10:39 AM Bug #13360 (Closed): MinGW svn 58071 Build broken! Appears unicode related...
MSP-Greg (Greg L) wrote:
> Please close.
Done.
duerst (Martin Dürst)
03:53 AM Bug #13360: MinGW svn 58071 Build broken! Appears unicode related...
Note to self - always check appveyor and travis files
make touch-unicode-files
Please close.
MSP-Greg (Greg L)
12:46 AM Bug #13360 (Closed): MinGW svn 58071 Build broken! Appears unicode related...
As mentioned previously, I've been building and using trunk for several months. Last build I did that was fine was 2017-03-22 svn 58055.
Today, I tried svn 58071, and it stopped before completing a build for both i686 and x86_64. I ...
MSP-Greg (Greg L)
07:29 AM Revision 7142f5b5 (git): logger: remove redundant opt_str_freeze use
Strings in "when" statements are allocation-free, so there's
never any reason to uglify the code to use opt_str_freeze over
the normal putobject instructions, here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58076 b2dd03c8-39d4-4...
Eric Wong
05:51 AM Feature #13362 (Closed): [PATCH] socket: avoid fcntl for read/write_nonblock on Linux
On platforms where MSG_DONTWAIT works reliably on all sockets
(so far, I know of Linux), we can avoid fcntl syscalls and
implement IO#write_nonblock and IO#read_nonblock in terms of the
socket-specific send and recv family of syscalls...
normalperson (Eric Wong)
04:37 AM Revision 7cdf09ca (git): Do not update Unicode headers
* common.mk (name2ctype.h, casefold.h): use as checked out unless
ALWAYS_UPDATE_UNICODE=yes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:42 AM Revision cf94bb9a (git): Don't download from Unicode.org
* tool/make-snapshot: use checked out headers for Unicode, to get
rid of downloading data files from Unicode.org.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:44 AM Revision f5e26594 (git): common.mk: touch-unicode-files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:10 AM Revision 489c1e33 (git): Make Unicode data directory
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:37 AM Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
1.3.1 still had the problem, but 1.3.2 worked, thanks! It would still be nice if this was ported over to 2.4.x abezzub (Andrew Bezzub)
12:27 AM Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
You can install and use bigdecimal-1.3.1 via standalone gem with Ruby 2.4 hsbt (Hiroshi SHIBATA)

03/23/2017

11:55 PM Revision 96069e95 (git): Don't download from Unicode.org
* .travis.yml, appveyor.yml: use checked out headers for Unicode,
to get rid of downloading data files from Unicode.org.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:52 PM Bug #13359 (Third Party's Issue): ruby-2.4.1/bin/ruby_executable_hooks: [BUG] Segmentation fault at 0x00000000000000
Seems a pg gem's issue. nobu (Nobuyoshi Nakada)
03:50 PM Bug #13359 (Third Party's Issue): ruby-2.4.1/bin/ruby_executable_hooks: [BUG] Segmentation fault at 0x00000000000000
crashed after rspec spec
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
arek-natu (Arkadiusz Poczobut)
08:32 PM Feature #13303: String#any? as !String#empty?
Actually the name .nonempty? is easier to understand than .any? in this
context, or non-empty strings.
I think the only problem is that "nonempty" reads very ... strangely.
I can not come up with a good name either though.
~~~ ...
shevegen (Robert A. Heiler)
03:55 PM Revision e1e5857c (git): enc-unicode.rb: fix version matching
* tool/enc-unicode.rb (data_foreach): version comments do not
include sub directory names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:49 PM Revision 81ab4132 (git): fix GraphemeBreakProperty.txt
* tool/downloader.rb: download to the file given in ARGV.
* tool/enc-unicode.rb (parse_GraphemeBreakProperty): fix data file
path as $(UNICODE_PROPERTY_FILES) in common.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58069 b2dd...
nobu (Nobuyoshi Nakada)
03:47 PM Revision de418173 (git): * 2017-03-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:47 PM Revision a7b8741e (git): common.mk: updating name2ctype.h
* common.mk (name2ctype.h): update if ALWAYS_UPDATE_UNICODE = yes,
as well as casefold.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:27 PM Bug #13358: OpenStruct overriding allocate
I agree making OpenStruct.allocate an alias of Class#new is not a great idea and easily problematic.
We had a problem due to this in TruffleRuby (now fixed by renaming all our internal allocate methods).
The fix we came up with seems...
Eregon (Benoit Daloze)
01:15 PM Bug #13358 (Closed): OpenStruct overriding allocate
In https://github.com/ruby/ruby/commit/15960b37e82ba60455c480b1c23e1567255d3e05 OpenStruct gained
~~~ruby
class << self # :nodoc:
alias allocate new
end
~~~
Which is rather severely conflicting with expected behavior as...
sitter (Harald Sitter)
11:08 AM Bug #13357 (Closed): Improve Time#+ & Time#- performance
Improve Time#+ & Time#- performance
Time#+ & Time#- will be faster around 15%.
If internal values would have Fixnum,
optimized function improves performance.
### Before
~~~
user system total real
T...
watson1978 (Shizuo Fujita)
08:28 AM Feature #13355 (Closed): [PATCH] compile.c: optimize literal String range in case/when dispatch
This seems obvious, and manages to pass existing tests.
Earlier, I found myself writing code like:
case RUBY_VERSION
when '2.0.0',
'2.1.0'..'2.1.9',
'2.2.0'..'2.2.6',
'2.3.0'..'2.3.3',
...
normalperson (Eric Wong)
07:59 AM Revision d77214e8 (git): enc-unicode.rb: ifdef blocks
* tool/enc-unicode.rb (Unifdef#ifdef): enclose conditional blocks
in blocks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:59 AM Revision 8083a359 (git): enc-unicode.rb: uniname2ctype_offset
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:53 AM Revision 12b80586 (git): update name2ctype.h
* enc/unicode/9.0.0/name2ctype.h: update due to merger of Onigmo
6.0.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:44 AM Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
I can reproduce this in 2.4.1. Is this going to be fixed in 2.4.2? This is a significant issue that makes it hard to upgrade to Ruby 2.4. abezzub (Andrew Bezzub)
04:38 AM Bug #13286: Segfault when using rb_debug_inspector_open / rb_debug_inspector_frame_binding_get with Fiddle, but not when directly from C extension
Here's a link to a c-library extension that has been working great for us:
https://github.com/shreeve/bindings
shreeve (Steve Shreeve)
02:00 AM Bug #13222: Array#sum inconsistency when init value is non-numeric
I confirmed this behavior appears not only 2.5.0dev but also 2.4.x.
~~~
$ docker run ruby:2.4.1 ruby -e "p [0].sum('a')"
"a"
~~~
~~~
$ docker run ruby:2.4.0 ruby -e "p [0].sum('a')"
"a"
~~~
Should we backport the patch?
mtsmfm (Fumiaki Matsushima)
12:49 AM Bug #13352: RegExp infinite looping
Thank' to @naruse
> https://regex101.com/
Your's workaround is fine.
It OK that "Somewhere in my regular expression was bad".
The RegExp include "Catastrophic backtracking".
A similar regular expression does not fall into an...
jumnichi_kose (小瀬 淳一)

03/22/2017

08:23 PM Bug #13306 (Closed): [DOC] rdoc for IO#puts
Applied in changeset r58062.
----------
io.c: [DOC] expand docs for IO#puts
[ruby-core:80081] [Bug #13306]
stomar (Marcus Stollsteimer)
08:23 PM Revision df97d4e7 (git): * 2017-03-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:23 PM Revision 5f5f648c (git): io.c: [DOC] expand docs for IO#puts
[ruby-core:80081] [Bug #13306]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stomar (Marcus Stollsteimer)
08:17 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
Noticed after Ruby 2.4.1 upgrade today (Wed 2017.03.22) performance is generally a bit slower. jzakiya (Jabari Zakiya)
03:55 PM Bug #13354 (Closed): Improve Time#<=> performance
Time#<=> will be faster around 60%.
If internal values would have Fixnum,
optimized function improves performance.
(https://github.com/ruby/ruby/blob/9b69e9fafc329aaa540d5adeb55124f020abfe3c/time.c#L57-L67)
### Before
~~~
...
watson1978 (Shizuo Fujita)
02:26 PM Bug #13253: SIGSEGV in parser_heredoc_dedent()
ruby_2_3 r58061 merged revision(s) 56020,57717. nagachika (Tomoyuki Chikanaga)
02:26 PM Revision ddd7dd0f (git): merge revision(s) 56020,57717: [Backport #13253]
parse.y: heredoc token
* parse.y (parser_heredoc_identifier): gather branches by quote
char.
parse.y: indent at invalid identifier
* parse.y (parser_heredoc_identifier): set indent only when valid
...
nagachika (Tomoyuki Chikanaga)
02:13 PM Bug #13242: SIGSEGV in rb_bigzero_p()
ruby_2_3 r58060 merged revision(s) 57688,57689. nagachika (Tomoyuki Chikanaga)
02:13 PM Revision 10e0fc1b (git): merge revision(s) 57688,57689: [Backport #13242]
rational.c: infinity in power
* rational.c (nurat_expt): return Infinity due to overflow.
[ruby-core:79686] [Bug #13242]:
rational.c: infinity in power
* rational.c (nurat_expt): return 0 due to overfl...
nagachika (Tomoyuki Chikanaga)
02:06 PM Revision 028bd4ae (git): stringio.gemspec: requires ruby 2.2
* ext/stringio/stringio.gemspec: bump up required ruby version to
2.2, which exports rb_get_kwargs() first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:01 PM Bug #13076: SEGV in io.c when reading closed stream in Thread
ruby_2_3 r58058 merged revision(s) 57199,57202,57206,57224. nagachika (Tomoyuki Chikanaga)
02:01 PM Revision b866e34f (git): merge revision(s) 57199,57202,57206,57224: [Backport #13076]
io.c: fix race between read and close
* io.c (io_fillbuf): fix race between read and close, in the case
the IO gets closed before the reading thread achieve the lock.
[ruby-core:78845] [Bug #13076]
th...
nagachika (Tomoyuki Chikanaga)
01:55 PM Revision 0130bb01 (git): stringio.c: RB_INTEGER_TYPE_P
* ext/stringio/stringio.c (RB_INTEGER_TYPE_P): fallback definition
for 2.3 or earlier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:46 PM Bug #13015: Segfault when using super and underscore parameters
ruby_2_3 r58056 merged revision(s) 57024. nagachika (Tomoyuki Chikanaga)
01:46 PM Revision 4e1f1ec1 (git): merge revision(s) 57024: [Backport #13015]
vm.c: check type of hash to merge
* vm.c (core_hash_merge): check the type of the target hash to
merge. [ruby-core:78536] [Bug #13015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58056 b2dd03c8-39d4...
nagachika (Tomoyuki Chikanaga)
01:27 PM Bug #13352 (Rejected): RegExp infinite looping
323字目の * を削ってください。
```
(?=\W)\W?(?:(?:(?:\/\*<)?[\'\"]?([\w_\$]+)[\'\"]?(?:>\*\/\s+this)?|(this))\.(\$scope|json)|([\'\"](?:\$scope|json)[\'\"]))((\.)(inputObjects)|(\.)(spreadSheets)(?:\.[\'\"]?([^\.\'\"\|\s,]+)[\'\"]?|\[[\'\"]?((?:...
naruse (Yui NARUSE)
10:55 AM Bug #13352: RegExp infinite looping
I haven't yet had time to analyze the regular expression in detail. Are you sure this is really an infinite loop, and not just a case of exponentially slow processing (e.g. similar to stackoverflow.com/questions/16580665/node-js-regex-en... duerst (Martin Dürst)
05:36 AM Bug #13352: RegExp infinite looping
正規表現ライブラリの共通的な問題かもしれないが、皆さんの影響力を行使して、改善されることを希望します。
少なくともrexEx.compileでは、与えた正規表現の不正を摘出して欲しいと思います。
jumnichi_kose (小瀬 淳一)
05:32 AM Bug #13352 (Rejected): RegExp infinite looping
ruby entered an infinite loop with the following three steps.
~~~ ruby
r = /(?=\W)\W?(?:(?:(?:\/\*<)?[\'\"]?([\w_\$]+)[\'\"]?(?:>\*\/\s+this)?|(this))\.(\$scope|json)|([\'\"](?:\$scope|json)[\'\"]))((\.)(inputObjects)|(\.)(spreadShee...
jumnichi_kose (小瀬 淳一)
12:27 PM Revision eaf4f2ec (git): Use https URL instead of http URL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:22 AM Bug #13347 (Feedback): bug in the Ruby interpreter or extension libraries when using rails s
hsbt (Hiroshi SHIBATA)
10:21 AM Bug #13347 (Rejected): bug in the Ruby interpreter or extension libraries when using rails s
hsbt (Hiroshi SHIBATA)
12:49 AM Bug #13347 (Feedback): bug in the Ruby interpreter or extension libraries when using rails s
Please show us the full console log since the Control-C. The parts shown in the screenshot does not seem to include any problem. shyouhei (Shyouhei Urabe)
10:21 AM Bug #13345 (Rejected): bug in the Ruby interpreter or extension libraries
hsbt (Hiroshi SHIBATA)
10:21 AM Bug #13346 (Rejected): bug in the Ruby interpreter or extension libraries
hsbt (Hiroshi SHIBATA)
06:15 AM Bug #13353 (Closed): Backport stringio fixes
nobu (Nobuyoshi Nakada)
06:14 AM Bug #13353 (Closed): Backport stringio fixes
Backport r58040 and r58041.
nobu (Nobuyoshi Nakada)
06:00 AM Revision 20c72dc8 (git): ruby tool/update-deps --fix
Onigumo 6 (r57045) introduced new onigumo.h header file, which is
required from quite much everywhere. This commit adds necessary
dependencies.
Note: ruby/oniguruma.h now includes onigumo.h,
ruby/io.h includes oniguruma.h,
...
shyouhei (Shyouhei Urabe)
05:54 AM Revision 7e811007 (git): merge revision(s) 58040,58041:
stringio.c: check character code
* ext/stringio/stringio.c (strio_ungetc): check if the character
code is valid in the encoding. reported by Ahmad Sherif
(ahmadsherif) at https://hackerone.com/reports/209593...
naruse (Yui NARUSE)
05:42 AM Bug #13349: Ruby unable to open files in /dev on AIX if compiled on AIX 7.1 or later
That's AIX's bug. Please contact the vendor and fix your OS. kosaki (Motohiro KOSAKI)
03:29 AM Bug #13349 (Feedback): Ruby unable to open files in /dev on AIX if compiled on AIX 7.1 or later
It is rather AIX-specific issue.
`O_CLOEXEC` is defined on BSDs and mac OS, and `O_NOINHERIT` is defined on Windows.
So your patch is not acceptable as-is.
And do operations on regular files (not device files) succeed?
If so, it sh...
nobu (Nobuyoshi Nakada)
01:58 AM Revision 6969f355 (git): * 2017-03-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:58 AM Revision 120dfdd5 (git): gemify stringio
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

03/21/2017

09:44 PM Feature #12921: Retrieve user and password for proxy from env
If the user write a code this is also a user's problem. Programming language should be able to solve problems easily. Isn't it?
Monkey-patching is not a solution.
wolfer (Sergey Fedosov)
09:02 PM Feature #12921: Retrieve user and password for proxy from env
If the user wants to set its password inside a env variable, it is the user's problem. It is the widely used way to use it.
For those that need a quick fix:
~~~ ruby
class Net::HTTP
def proxy_user
if @proxy...
luizluca (Luiz Angelo Daros de Luca)
08:46 PM Bug #13351 (Closed): net/http: Net::HTTP.start sets wrong default arg value
Hello,
`start` is defined as:
~~~ruby
def HTTP.start(address, *arg, &block) # :yield: +http+
arg.pop if opt = Hash.try_convert(arg[-1])
port, p_addr, p_port, p_user, p_pass = *arg
port = https_default_port...
luizluca (Luiz Angelo Daros de Luca)
04:39 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
FYI for general interest and curiosity.
In Ruby 2.4.0 the 3 implementations below of Newton's general nth-root method all produce
correct results, using an initial root value that's 1-bit larger than the actual value.
Using **benc...
jzakiya (Jabari Zakiya)
04:28 PM Bug #13350 (Closed): File.read :newline option not respected on Linux
## Reproducable in irb
All examples run with:
`
Encoding.default_external = 'utf-8'
Encoding.default_internal = nil
`
### on Linux (unexpected behavior)
Prepare a file with CRLF newline characters
`
File.write("crlf.txt"...
larskanis (Lars Kanis)
04:22 PM Revision 93e44f88 (git): Bump up version to 2.4.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:24 PM Bug #13349: Ruby unable to open files in /dev on AIX if compiled on AIX 7.1 or later
Clarified that the supplied patch applies to ruby-2.0.0p468 0x6373 (Christian Schwabl)
03:20 PM Bug #13349: Ruby unable to open files in /dev on AIX if compiled on AIX 7.1 or later
fixed syntax 0x6373 (Christian Schwabl)
02:18 PM Bug #13349 (Closed): Ruby unable to open files in /dev on AIX if compiled on AIX 7.1 or later
In io.c there are 2 Linux specific flags (`O_CLOEXEC` and `O_NOINHERIT`) which are set regardless of the operating system it is compiled on.
Since AIX 7.1 /usr/include/fcntl.h defines `O_CLOEXEC` with the following statement:
~~~ c...
0x6373 (Christian Schwabl)
02:12 PM Bug #13339: Assertion Failed: string.c:2061:rb_str_change_terminator_length:capa >= len
ruby_2_4 r58046 merged revision(s) 58042. naruse (Yui NARUSE)
05:28 AM Bug #13339 (Closed): Assertion Failed: string.c:2061:rb_str_change_terminator_length:capa >= len
Applied in changeset r58042.
----------
string.c: use the usable size
* string.c (rb_str_change_terminator_length): when called after
the content has been copied, old terminator length no longer
makes sense. use the whole usable s...
nobu (Nobuyoshi Nakada)
02:11 PM Revision 3cdf4f05 (git): merge revision(s) 58042: [Backport #13339]
string.c: use the usable size
* string.c (rb_str_change_terminator_length): when called after
the content has been copied, old terminator length no longer
makes sense. use the whole usable size instead of ca...
naruse (Yui NARUSE)
02:05 PM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
ruby_2_4 r58045 merged revision(s) 57192,57464,58016,58018,58019. naruse (Yui NARUSE)
02:04 PM Revision 539ab305 (git): merge revision(s) 57192,57464,58016,58018,58019: [Backport #12705]
[Bug #12705]
add a ticket number.
test_lambda.rb: refine test
* test/ruby/test_lambda.rb (test_lambda_as_iterator): refine a
test for the intention of the original report.
[ruby-core:61340] [...
naruse (Yui NARUSE)
01:46 PM Bug #13348 (Closed): win32/README.win32 のアイコンがリンク切れ
@nifty の @homepage サービスが終了した影響で、win32/README.win32 に書いてある
```
* ((<URL:http://homepage1.nifty.com/a_nakata/ruby/>)) or
((<icon itself|URL:http://homepage1.nifty.com/a_nakata/ruby/RubyIcon.ico>))
```
がリンク切れになってしまっているようです。
znz (Kazuhiro NISHIYAMA)
08:03 AM Revision 6411b4a4 (git): Download Unicode data by appveyor [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:48 AM Bug #13347 (Closed): bug in the Ruby interpreter or extension libraries when using rails s
when using rails s that time server was starting completely but when i was check the localhost for my application and click on any menu tab manu fewer time display and then connection was lost.
=> Booting Puma
=> Rails 5.0.2 applica...
Reyan (Reyan Patil)
07:23 AM Bug #13346 (Rejected): bug in the Ruby interpreter or extension libraries
bug in the Ruby interpreter or extension libraries
please give me proper command to solve this issue
Reyan (Reyan Patil)
07:21 AM Bug #13345 (Rejected): bug in the Ruby interpreter or extension libraries
bug in the Ruby interpreter or extension libraries Reyan (Reyan Patil)
07:19 AM Revision 3805c444 (git): tool/downloader.rb: dryrun option [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:28 AM Revision f0e6e479 (git): string.c: use the usable size
* string.c (rb_str_change_terminator_length): when called after
the content has been copied, old terminator length no longer
makes sense. use the whole usable size instead of capacity
without terminator. [ruby-core:80257] [Bug #1...
nobu (Nobuyoshi Nakada)
05:23 AM Misc #13329: Creating a German ruby mailinglist on ruby-lang.org?
I'm ready to help out managing the new list if this helps with it's creation.
The existence of ruby-fr is an interesting precedent, but I'd like to note that http://lists.ruby-lang.org/pipermail/ruby-fr/ says: "No messages have been p...
duerst (Martin Dürst)
04:24 AM Feature #13333: block to yield
Out of curiosity: What's the use case(s)? duerst (Martin Dürst)
03:15 AM Revision c8d66b5d (git): stringio.c: check range
* ext/stringio/stringio.c (strio_ungetc): raise RangeError instead
of TypeError at too big value, as well as IO#ungetc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:15 AM Revision 853ab866 (git): stringio.c: check character code
* ext/stringio/stringio.c (strio_ungetc): check if the character
code is valid in the encoding. reported by Ahmad Sherif
(ahmadsherif) at https://hackerone.com/reports/209593.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58040...
nobu (Nobuyoshi Nakada)
03:00 AM Bug #13344 (Closed): Improve performance of Array#sort with block
Array#sort with block will be ~10% faster.
Seems that a performance was reduced at
https://github.com/ruby/ruby/blob/976becf7eb18aa1592c703ac4d86a2cf9dfa701e/vm_eval.c#L1042-L1046
So by this patch, a small argument will be given direc...
watson1978 (Shizuo Fujita)
12:49 AM Bug #13343 (Closed): Improve Hash#merge performance
Hash#merge will be faster around 60%.
### Before
~~~
user system total real
Hash#merge 0.160000 0.020000 0.180000 ( 0.182357)
~~~
### After
~~~
user system tot...
watson1978 (Shizuo Fujita)
12:47 AM Feature #13342 (Open): Improve yielding block performance
The yielding block will be faster around 9%.
This patch ensures that expand to inline codes in where invoke yielding block.
### Environment
* macOS 10.12.3
* clang 8.0.0 in Xcode 8.2
### Before
~~~
user ...
watson1978 (Shizuo Fujita)
12:45 AM Bug #13341 (Closed): Improve performance of implicit type conversion
At least, Array#flatten will be faster around 20%.
Seems that strncmp() & strcmp() in convert_type() are slightly heavy to look up the method's id for type conversion.
(https://github.com/ruby/ruby/blob/4f2db15b42d7b8eb5b304a92ba229663...
watson1978 (Shizuo Fujita)
12:42 AM Bug #13340 (Closed): Improve performance of Array#sort with float elements
Array#sort with float elements will be over 2 times faster.
### Before
~~~
user system total real
5.650000 0.020000 5.670000 ( 5.661151)
~~~
### After
~~~
user system total ...
watson1978 (Shizuo Fujita)
12:14 AM Bug #13338: MinGW SEGV in test/ruby/test_keyword.rb svn 58034, ok in svn 58021.
I recently changed my build system from a dual core notebook to a quad core desktop. On the notebook, I never recall a SEGV that occurred in test-all that did not occur in the test pulled from the framework. On my desktop, I changed th... MSP-Greg (Greg L)
12:11 AM Revision d3cd2e61 (git): link to README.win32 instead of mentioning it in plain text
[Fix GH-1538][ci skip]
Author: Rouan Wilsenach <Rouan.Wilsenach@tesglobal.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)

03/20/2017

08:30 PM Bug #10944 (Closed): Documentation of Array.new w.r.t. element index available to a block
Applied in changeset r58037.
----------
docs for creating arrays
* array.c: [DOC] add example for Array.new with block and index.
Reported by Don Cruickshank. [ruby-core:68442] [Bug #10944]
stomar (Marcus Stollsteimer)
08:17 PM Bug #10944: Documentation of Array.new w.r.t. element index available to a block
Although it's already documented in Array.new, an additional example in the class documentation cannot hurt; so I'll add one. stomar (Marcus Stollsteimer)
08:30 PM Revision d6a197ca (git): * 2017-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:30 PM Revision 56abb1cd (git): docs for creating arrays
* array.c: [DOC] add example for Array.new with block and index.
Reported by Don Cruickshank. [ruby-core:68442] [Bug #10944]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stomar (Marcus Stollsteimer)
08:28 PM Bug #13339 (Closed): Assertion Failed: string.c:2061:rb_str_change_terminator_length:capa >= len
This makes ruby 2.4.0 crash on my system (log attached):
```ruby
('a' * 23).encode('utf-16').encode!('utf-8')
```
If you change the length of the string (from 23 to 22 or 24), everything's fine.
buehmann (Andreas Bühmann)
07:42 PM Bug #13338 (Closed): MinGW SEGV in test/ruby/test_keyword.rb svn 58034, ok in svn 58021.
In a MinGW / MSYS2 64 bit build, the following line generates a SEGV in svn 58034 [test/ruby/test_keyword.rb:L373](https://github.com/ruby/ruby/blob/57d6dd5a461202f9824c3d1b8d3e5304aca2d21c/test/ruby/test_keyword.rb#L373). With 373 comm... MSP-Greg (Greg L)
07:30 PM Bug #13321: String#codepoints for one-byte encodings
Thanks! InfraRuby (InfraRuby Vision)
06:36 PM Bug #13337 (Closed): Eval and Later Defined Local Variables
I've noticed the following behavior with eval:
~~~ ruby
def example
eval("foo") # => nil, but would expect a NameError
eval("bar") # => NameError
foo = 1
end
~~~
I'm assuming this behavior is expected, since "eval" exec...
faraz (Faraz Yashar)
05:34 PM Bug #13336 (Closed): Default Parameters don't work
```ruby
def funny(a = true, b: nil)
p a
end
funny([1,2,3]) # => [1,2,3]
funny({k:1}) # => in `funny': unknown keyword: k (ArgumentError)
```
herbert.bonaffini@gmail.com (Herbert Bonaffini)
12:26 PM Bug #12405: Queue doesn't work inside of trap
ruby_2_3 r58036 merged revision(s) 57477,57478,57479. nagachika (Tomoyuki Chikanaga)
12:26 PM Revision e120cc91 (git): merge revision(s) 57477,57478,57479: [Backport #12405]
use TRUE/FALSE.
define rb_thread_sleep_deadly_allow_spurious_wakeup().
* thread.c, thread_sync.c: define new function
rb_thread_sleep_deadly_allow_spurious_wakeup() and use it instead of
using sleep_...
nagachika (Tomoyuki Chikanaga)
11:45 AM Bug #13326: Forwarding methods to :method_missing produces a warning
Ah, hadn't known about `respond_to_missing?`, thanks for the advise. ojab (ojab ojab)
07:07 AM Feature #13335 (Closed): Gemify mathn
Applied in changeset r58035.
----------
Added initial gemspec for mathn.
[Feature #13335]
hsbt (Hiroshi SHIBATA)
07:05 AM Feature #13335 (Closed): Gemify mathn
mathn is deprecated [Feature #10169] from 2 years ago.
We should extract from stdlib at Ruby 2.5.0.
hsbt (Hiroshi SHIBATA)
07:07 AM Revision 719262ee (git): Added initial gemspec for mathn.
[Feature #13335]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:07 AM Feature #10169 (Assigned): It might be better to make Mathn class deprecated
hsbt (Hiroshi SHIBATA)
07:06 AM Feature #13334 (Assigned): Removed deprecated mathn extentions.
hsbt (Hiroshi SHIBATA)
06:57 AM Feature #13334 (Closed): Removed deprecated mathn extentions.
`mathn/complex` and `mathn/rational` is deprecated from 2008. We should remove it before Ruby 3.0 release.
https://github.com/ruby/ruby/pull/1542/files
hsbt (Hiroshi SHIBATA)
04:53 AM Feature #13333 (Open): block to yield
Currently, blocks can take a block by `do |&block| end` construct.
But the only way to pass a block or a bloc argument is making a `Proc` and calling `Proc#call` with a blockarg.
I think `yield` should take a block or a block argument ...
nobu (Nobuyoshi Nakada)
01:36 AM Revision 57d6dd5a (git): Avoid integer overflow in sprintf()
merged https://github.com/mruby/mruby/commit/ff03a9a61c62340cff62f8e0fdc1a1e8775b6f17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:33 AM Revision f31bb33a (git): sprintf.c: string limits
* sprintf.c (ruby__sfvwrite): use long instead of size_t due to
string limits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/19/2017

11:48 PM Bug #13326 (Rejected): Forwarding methods to :method_missing produces a warning
When you define `method_missing` method, you should define `respond_to_missing?` method too. nobu (Nobuyoshi Nakada)
01:39 AM Bug #13326: Forwarding methods to :method_missing produces a warning
It would need a special care, I think. nobu (Nobuyoshi Nakada)
11:26 PM Feature #13332: Forwardable#def_instance_delegator nil
I wonder how common such case is.
And you can override delegator/accessor methods by yourself.
nobu (Nobuyoshi Nakada)
10:52 PM Feature #13332 (Feedback): Forwardable#def_instance_delegator nil
I'd like to suggest an extension to the signature of stdlib Forwardable#def_instance_delegator
currently (ruby 2.3.3) it is declared as:
```ruby
def_instance_delegator(accessor, method, ali = method)
```
I'd like to add a ni...
eike.rb (Eike Dierks)
09:48 PM Bug #13190: [DOC] Fix error for escape sequences in string literals
ruby_2_3 r58032 merged revision(s) 57517. nagachika (Tomoyuki Chikanaga)
09:48 PM Revision 26b9fb47 (git): merge revision(s) 57517: [Backport #13190]
doc: Fix error for escape sequences in string literals
Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...
nagachika (Tomoyuki Chikanaga)
09:47 PM Bug #13189: [DOC] Restore class documentation for Struct
ruby_2_3 r58031 merged revision(s) 57522. nagachika (Tomoyuki Chikanaga)
09:46 PM Revision 6781722a (git): merge revision(s) 57522: [Backport #13189]
doc: restore class documentation for Struct
* struct.c: restore class documentation for Struct
that disappeared with r46663.
Due to r46663, the class documentation for Struct disappeared.
(The revision...
nagachika (Tomoyuki Chikanaga)
09:45 PM Bug #13161: [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
ruby_2_3 r58030 merged revision(s) 57434. nagachika (Tomoyuki Chikanaga)
09:45 PM Revision b334883c (git): merge revision(s) 57434: [Backport #13161]
Enumerable#{min,min_by,max,max_by} [ci skip]
* enum.c: [DOC] Enumerable#{min,min_by,max,max_by} return a sorted
array when +n+ argument is used.
* enum.c: Small typo : minimum -> maximum
[Bug #13161]
...
nagachika (Tomoyuki Chikanaga)
09:43 PM Bug #11900: broken encoding of commandline on Windows
ruby_2_3 r58029 merged revision(s) 54785. nagachika (Tomoyuki Chikanaga)
09:43 PM Revision ce6fdd55 (git): merge revision(s) 54785: [Backport #11900]
* ruby.c (process_options): convert -e script to the encoding
given by a command line option on Windows. assume it is the
expected encoding. [ruby-dev:49461] [Bug #11900]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nagachika (Tomoyuki Chikanaga)
09:36 PM Bug #13306: [DOC] rdoc for IO#puts
I very much think the _output_ record separator was meant, and I suggest the following:
``` diff
diff --git a/io.c b/io.c
index cd615fb..fabd5d5 100644
--- a/io.c
+++ b/io.c
@@ -7185,15 +7185,17 @@ io_puts_ary(VALUE ary, VALUE ou...
stomar (Marcus Stollsteimer)
09:33 PM Bug #11752: Bug in Rational documentation
ruby_2_3 r58028 merged revision(s) 57539. nagachika (Tomoyuki Chikanaga)
09:33 PM Revision 0844dbdc (git): merge revision(s) 57539: [Backport #11752]
rational.c: fix rdoc [ci skip]
* rational.c (rb_rational_plus): [DOC] fix an example.
A patch by Trygve Flathen <at.ruby-lang AT flathen.net> in
[ruby-core:71755]. [Bug #11752]
git-svn-id: svn+ssh://ci.ruby...
nagachika (Tomoyuki Chikanaga)
09:22 PM Bug #8996: pthread_mutex_lock EINVAL
ruby_2_3 r58027 merged revision(s) 57595. nagachika (Tomoyuki Chikanaga)
09:22 PM Revision 84ccd55a (git): merge revision(s) 57595: [Backport #8996]
check thread deadness correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
09:07 PM Bug #12741: Timeout with specified exception class sets cause on error if timeout block is handling an exception when timeout occurs
ruby_2_3 r58026 merged revision(s) 56125,56150. nagachika (Tomoyuki Chikanaga)
09:07 PM Revision 63818379 (git): merge revision(s) 56125,56150: [Backport #12741]
* thread.c (rb_threadptr_raise): set cause from the called thread,
but not from the thread to be interrupted.
[ruby-core:77222] [Bug #12741]
* test/ruby/test_exception.rb: fix thread issues.
* use Q...
nagachika (Tomoyuki Chikanaga)
08:38 PM Bug #10403: `puts` documentation fix
ruby_2_3 r58025 merged revision(s) 57767,57944. nagachika (Tomoyuki Chikanaga)
08:38 PM Revision 250fa1cb (git): merge revision(s) 57767,57944: [Backport #10403]
io.c: documentation for puts
* io.c: [DOC] clarify that the 'record separator' between
arguments passed to 'puts' is always a newline.
Based on a patch by Mark Amery. [ruby-core:65801] [Misc #10403]
i...
nagachika (Tomoyuki Chikanaga)
06:55 PM Bug #13331 (Closed): Inconsistent conversion of Float into Decimal
One would reasonably expect the equality 1.to_d * f == f.t_d to hold for every Float value f, i.e. multiplying by DigDecimal's unit can be viewed as an alternative way of casting Float into Decimal; or simply one could expect that BigDec... msatkiewicz (Maciej Satkiewicz)
03:01 PM Bug #9127 (Closed): URI::Generic#normalize documentation is vague.
Applied in changeset r58023.
----------
improve docs for URI::Generic
* lib/uri/generic.rb: [DOC] expand docs for URI::Generic#normalize
to clarify what normalization means here.
Reported by Robert Gleeson. [ruby-core:58430] [Bug ...
stomar (Marcus Stollsteimer)
03:01 PM Revision f956ed10 (git): * 2017-03-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision 58c3935e (git): improve docs for URI::Generic
* lib/uri/generic.rb: [DOC] expand docs for URI::Generic#normalize
to clarify what normalization means here.
Reported by Robert Gleeson. [ruby-core:58430] [Bug #9127]
* lib/uri/generic.rb: [DOC] fix indent for correct code block de...
stomar (Marcus Stollsteimer)
02:29 PM Bug #13325: Block is not passed to Symbol proc if using refinements
ruby_2_4 r58022 merged revision(s) 58015. naruse (Yui NARUSE)
02:29 PM Revision dd6be57d (git): merge revision(s) 58015: [Backport #13325]
vm_args.c: pass block
* vm_args.c (refine_sym_proc_call): pass block to the method when
using refinements. [ruby-core:80219] [Bug #13325]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58022 b2dd03c8-3...
naruse (Yui NARUSE)
12:46 PM Revision f30ed02b (git): sprintf.c: use FILL
* sprintf.c (rb_str_format): use FILL and FILL_ macros instead of
while loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:20 AM Bug #13330: Array.include? is slow for symbols
Created PR with a fix https://github.com/ruby/ruby/pull/1540 pawelniewie (Pawel Niewiadomski)
11:19 AM Bug #13330 (Closed): Array.include? is slow for symbols
Looking at the code I noticed that [:test].include?(:test) goes through a general path instead using an optimised version making searching slower than for strings:
Benchmark available at https://github.com/pawelniewie/benchmark-set-ar...
pawelniewie (Pawel Niewiadomski)
09:56 AM Bug #10936: Error in Rubydoc for DateTime#rfc3339
Fixed. The actually used format is "%FT%T%:z". stomar (Marcus Stollsteimer)
09:51 AM Bug #10936 (Closed): Error in Rubydoc for DateTime#rfc3339
Applied in changeset r58020.
----------
date_core.c: fix error in DateTime docs
* ext/date/date_core.c: [DOC] fix format string for DateTime#rfc3339.
Reported by Andreas Rayo Kniep. [ruby-core:68418] [Bug #10936]
* ext/date/date_co...
stomar (Marcus Stollsteimer)
09:51 AM Revision d8bf1785 (git): date_core.c: fix error in DateTime docs
* ext/date/date_core.c: [DOC] fix format string for DateTime#rfc3339.
Reported by Andreas Rayo Kniep. [ruby-core:68418] [Bug #10936]
* ext/date/date_core.c: [DOC] ditto for DateTime#iso8601 and
DateTime#xmlschema; other small impro...
stomar (Marcus Stollsteimer)
08:11 AM Misc #13329 (Closed): Creating a German ruby mailinglist on ruby-lang.org?
Hi everyone,
I have emailed webmaster@ruby-lang.org and opened [a ticket on the website's GitHub repo](https://github.com/ruby/www.ruby-lang.org/issues/1551) without a reply, so I'll try it here again. The main German Ruby forum [goes...
Quintus (Marvin Gülker)
05:10 AM Feature #11302: Dir.entries and Dir.foreach without [".", ".."]
red (Arnaud Rouyer) wrote:
> Basing myself on the GNU ls util, I propose supporting an `:ignore` key in the optional hash argument.
I very much like this. I just ran into this issue myself today having to remove `.` and `..` from `Di...
olivierlacan (Olivier Lacan)
05:05 AM Bug #13235: [BUG] Segmentation fault at 0x00000000000038
If required...
~~~
~/Library/Logs/DiagnosticReports $ cat ruby_2017-03-19-084425_Geordees-MacBook-Pro.crash
Process: ruby [23949]
Path: /usr/local/Cellar/ruby/2.4.0/bin/ruby
Identifier: ru...
geordee (Geordee Naliyath)
04:58 AM Bug #13235: [BUG] Segmentation fault at 0x00000000000038
I can confirm the same error. Ruby 2.4.0, Mongo 2.4.1, Darwin. While looping through CSV file to load data into MongoDB. geordee (Geordee Naliyath)
01:44 AM Bug #13276 (Assigned): Dir.glob returns empty array when OS has no more file handles (expected exception)
This bug predates 1.0, so it will be fixed by 2.5 but won't be backported. nobu (Nobuyoshi Nakada)
01:37 AM Bug #13328 (Third Party's Issue): Implement OpenSSL::SSL::SSLContext#initialize_copy
Please open an issue at https://github.com/ruby/openssl when reporting bugs of ext/openssl.
This is however not a bug. Cloning OpenSSL::SSL::SSLContext have never worked properly and left the copy in an inconsistent state in previous ...
rhenium (Kazuki Yamaguchi)
01:34 AM Bug #13327 (Third Party's Issue): Segfault on OSX when using ffi-aspell
A bug in ffi-aspell or (less probably) aspell library.
FFI can very easily cause segfault.
nobu (Nobuyoshi Nakada)
01:11 AM Bug #12705 (Closed): yielding args to a lambda uses block/proc rather than lambda/method semantics
Applied in changeset r58019.
----------
vm_args.c: arity check of lambda
* vm_eval.c (rb_yield_lambda): new function which yields an array
to a proc and splat to a lambda. mainly for Enumerable only.
* vm_args.c (setup_parameters_c...
nobu (Nobuyoshi Nakada)
01:11 AM Revision 976becf7 (git): vm_args.c: arity check of lambda
* vm_eval.c (rb_yield_lambda): new function which yields an array
to a proc and splat to a lambda. mainly for Enumerable only.
* vm_args.c (setup_parameters_complex): remove special lambda
splatting for [Bug #9605]. [ruby-core:770...
nobu (Nobuyoshi Nakada)

03/18/2017

08:48 PM Bug #13328 (Third Party's Issue): Implement OpenSSL::SSL::SSLContext#initialize_copy
Starting in Ruby 2.4, an `OpenSSL::SSL::SSLContext` cannot be dup'ed or cloned:
```
[1] pry(main)> require 'openssl'
=> true
[2] pry(main)> OpenSSL::SSL::SSLContext.new.dup
NoMethodError: undefined method `initialize_copy' for #<O...
kylekyle (Kyle King)
06:43 PM Bug #13327 (Third Party's Issue): Segfault on OSX when using ffi-aspell
Issue: Segfault on OSX when using ffi-aspell set method
Reproducable test case:
~~~ ruby
require 'ffi/aspell';speller = ::FFI::Aspell::Speller.new('en_US');speller.set('mode', 'html');puts speller.correct?('foo');
~~~
Expected...
petems (Peter Souter)
04:00 PM Bug #13326 (Rejected): Forwarding methods to :method_missing produces a warning
Since 2.4 forwarding methods to private methods is deprecated (https://bugs.ruby-lang.org/issues/12782) and `method_missing` is private one, so something like
```ruby
require 'forwardable'
class PostOffice
def method_missing(*a...
ojab (ojab ojab)
03:58 PM Revision a9d575e5 (git): test_lambda.rb: remove duplcate tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:30 PM Revision a633115f (git): * 2017-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:30 PM Revision 1de013b3 (git): test_lambda.rb: refine test
* test/ruby/test_lambda.rb (test_lambda_as_iterator): refine a
test for the intention of the original report.
[ruby-core:61340] [Bug #9605]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:22 PM Bug #13325 (Closed): Block is not passed to Symbol proc if using refinements
Applied in changeset r58015.
----------
vm_args.c: pass block
* vm_args.c (refine_sym_proc_call): pass block to the method when
using refinements. [ruby-core:80219] [Bug #13325]
nobu (Nobuyoshi Nakada)
02:14 PM Bug #13325 (Closed): Block is not passed to Symbol proc if using refinements
The following code raises a `LocalJumpError` at the last line on 2.4 and trunk.
2.3 and earlier work fine.
```ruby
module M
refine String do # or any class
end
end
class C
def call(a, x, &b)
b.call(a, &x)
end
end...
nobu (Nobuyoshi Nakada)
02:22 PM Revision 49455d6c (git): vm_args.c: pass block
* vm_args.c (refine_sym_proc_call): pass block to the method when
using refinements. [ruby-core:80219] [Bug #13325]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:15 PM Revision adb3f250 (git): vm.c: fix up r58012
* vm.c (invoke_iseq_block_from_c): fix stack region length.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:50 PM Bug #13276: Dir.glob returns empty array when OS has no more file handles (expected exception)
Bump? floehopper (James Mead)
12:04 PM Bug #13198: Tempfile#size is nil when nothing is written, expected 0
ruby_2_4 r58013 merged revision(s) 57972. naruse (Yui NARUSE)
12:02 PM Revision 8be9bd48 (git): merge revision(s) 57972: [Backport #13198]
Fix bug of Tempfile#size if nothing is written [Bug #13198]
* lib/tempfile.rb (Tempfile#size): Fix its behavior when nothing
is written. Tempfile#size should return 0 in this case.
The patch is from nobu <nob...
naruse (Yui NARUSE)
11:29 AM Revision 7768312c (git): vm.c: guard arguments [EXPERIMENTAL]
* vm.c (invoke_iseq_block_from_c): guard arguments on stack, not
to be clobbered during splatting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:37 AM Revision 655aa318 (git): .gdbinit: suppress gdb message [ci skip]
* .gdbinit (rp): check number of instance variables to get rid of
"Invalid number 0 of repetitions." message at an empty object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:19 AM Revision c85cdc12 (git): .gdbinit: RArray in history [ci skip]
* .gdbinit (rp): put the contents of RArray in value history, for
later use.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:50 AM Bug #13321: String#codepoints for one-byte encodings
InfraRuby (InfraRuby Vision) wrote:
> Please update the documentation for `String#codepoints` too.
That says "This is a shorthand for `str.each_codepoint.to_a`".
> ...
Well, yes, and for almost all encodings, the returned values a...
duerst (Martin Dürst)
01:35 AM Revision a5330fa9 (git): fix accidental reversal of r57997 in r58000
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
 

Also available in: Atom