Activity
From 12/03/2019 to 12/09/2019
12/09/2019
-
11:24 PM Bug #16409 (Closed): Ruby User's Guide 404
- https://github.com/ruby/www.ruby-lang.org is the repository of the web site. I've created a pull request https://github.com/ruby/www.ruby-lang.org/pull/2304
Thanks! -
05:04 PM Bug #16409: Ruby User's Guide 404
- I think the tracker is ok since it is the official ruby-site. "Bug", though, usually
refers to ruby itself (e. g. MRI ruby written in C and compiled); might be put
into Misc here, but it's not really that important either way. -
04:02 PM Bug #16409 (Closed): Ruby User's Guide 404
- On the webpage https://www.ruby-lang.org/en/documentation/ , when you click on the "Ruby User's Guide" (which is a link to http://www.rubyist.net/~slagell/ruby/), the page gives you a 404 error.
I apologize if this is not the proper ... -
11:20 PM Feature #16411: Safer keyword argument extension
- Dan0042 (Daniel DeLorme) wrote:
> Yeah, `**!?` in itself was a joke placeholder intended to mean "insert funky new syntax here but I'm not sure what exactly"
> ...
Actually, if you want safe keyword extension, you can do so for new met... -
11:07 PM Feature #16411: Safer keyword argument extension
- Yeah, `**!?` in itself was a joke placeholder intended to mean "insert funky new syntax here but I'm not sure what exactly"
It's true that one rationale of keyword argument separation was to allow safe keyword extension. This would ha... -
09:21 PM Feature #16411: Safer keyword argument extension
- I don't think adding **!? would be a good idea. I'd also ideally keep
the complexity in ruby less, when possible; it's (to me) interesting
to see that keywords add to the complexity. Ideally it should be so
simple for everyone to unde... -
05:26 PM Feature #16411 (Open): Safer keyword argument extension
- The problem of safe keyword extension has been [described like this](https://bugs.ruby-lang.org/issues/14183#note-29):
```ruby
#We have an existing method
def debug(*args)
args.each {|arg| puts arg.inspect }
end
#It can be in... -
11:12 PM Bug #15027: When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
- In general, optimization should be invisible from users (except performance). This kind of redefinition checks in VM are carefully designed to be invisible.
Apparently, `Struct#select` is defined for the sake of performance improveme... -
02:01 PM Bug #15027: When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
- In the case that a method is overridden _only_ for optimization's sake, the override check is simply the equivalent of deoptimizing when a required constraint doesn't hold. This is pretty common in a VM right?
-
10:18 AM Bug #15027 (Assigned): When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
- Matz, do you accept the suggested patch?
To be honest, I'm negative against this patch. It brings false consistency. The current behavior is very easy to explain; `Struct#select` is just overridden. A redefinition check is a magic. -
10:07 PM Revision 6a22b2a0 (git): Support completion with case-insensitive fashion
- Reline performs completion in a case-insensitive fashon if
Readline.completion_case_fold or completion-ignore-case of .inputrc are set
"on". -
09:18 PM Feature #15605: json library needs more frequent releases
- I can build and push the json gem for JRuby any time. I'm on the ruby-lang slack today, just tell me what repo/branch needs to be pushed out!
-
08:18 PM Feature #9758: Allow setting SSLContext#extra_chain_cert in Net::HTTP
- This change is still blocking X509 certificate presentation with Net::HTTP, specifically when an intermediate certificate is required. The current workaround is to create a mixin for the Net::HTTP module (see the blog post linked in the ...
-
06:38 PM Bug #16399: TracePoint.stat disappeared in Ruby-2.7.0-preview3
- Thank you for taking the time to test out 2.7.0-preview3!
-
04:37 PM Feature #15982: Remove y2racc and racc2y
- @hsbt Would you mind to reconsider as we are getting closer to the release?
-
04:26 PM Bug #16410 (Closed): Spec failure - "File.utime allows Time instances in the far future to set mtime and atime"
- I observe the following spec error:
~~~
$ make test-all TESTS="spec/ruby/core/file/utime_spec.rb" MSPECOPT="-fs"
./revision.h unchanged
ruby 2.7.0dev (2019-12-09 master c2dc27d643) [x86_64-linux]
... -
04:22 PM Bug #15794: Can not start Puma with Rails after bundle install
- dportalesr (Daniel Portales) wrote:
> dohaibac (Bac Do) wrote:
> ...
After install memcached i got the message ../../active_record/connection_adapters/postgresql_adapter.rb:651: bla bla bla
I tried update ruby from 2.3.7 to 2.4.X... -
03:11 PM Feature #16404 (Closed): Add Proc#ruby2_keywords
- Committed at commit:f45c0dc23980d7fd8167d290ea7c354cf2cdb500.
-
06:59 AM Feature #16404: Add Proc#ruby2_keywords
- It is ugly, and I personally don't want to add it to the language. But I have to admit it solves the real-world issues in some cases. So I accept. This might be removed sometime in Ruby3.x (after proper deprecation process).
Matz.
- 03:10 PM Revision 562fd754 (git): * 2019-12-10 [ci skip]
-
03:10 PM Revision f45c0dc2 (git): Add Proc#ruby2_keywords
- This allows passing keywords through a normal argument splat in a
Proc. While needing ruby2_keywords support for methods is more
common, there is code that delegates keywords through normal
argument splats in procs, including code in Ra... -
02:51 PM Misc #16396: What is the reason for this behaviour of Find.find?
- From what I remember of Windows, `Find.find('D:')` would search in the current directory of D:
My guess is that you're actually executing the first script from `D:\Downloads\Ruby 2.5.3\rbL\comp\` and the second script from `D:\` (or may... -
06:55 AM Misc #16396: What is the reason for this behaviour of Find.find?
- > pp Dir['/tmp/**/**/']
Hello, I loved your alternative, from now on I'll use Dir.
Regarding the "bug" of Find I think I can prove it one of these days I report it. -
12:57 PM Bug #16361: TestEnv#test_fetch failure
- And I can trigger different errors:
~~~
$ make test-all TUST="" TESTS="test/optparse/test_did_you_mean.rb test/ruby/test_env.rb"
fatal: not a git repository (or any of the parent directories): .git
./revision.h unchanged
Run optio... -
12:54 PM Bug #16361: TestEnv#test_fetch failure
- This is shorter reproducer:
~~~
$ make test-all TESTS="test/optparse/test_did_you_mean.rb test/ruby/test_env.rb"
fatal: not a git repository (or any of the parent directories): .git
./revision.h unchanged
Run options: "--ruby=./mi... -
12:50 PM Bug #16361: TestEnv#test_fetch failure
- Ah, finally I understand where does the issue comes from. I execute the test suite via:
~~~
$ ./configure && make -j && make test-all TESTS="-v "
~~~
(actually this is the specific command [1]) and apparently the `TESTS` comes fr... -
12:25 PM Bug #15780: Module#const_defined?(String) executes autoloads
- ruby_2_6 r67831 merged revision(s) 7d805e67f3275aef066d77aa9c32bef715c362ed.
-
12:25 PM Revision 00f4c13e (git): merge revision(s) 7d805e67f3275aef066d77aa9c32bef715c362ed: [Backport #15780]
- Avoid triggering autoload in Module#const_defined?(String)
[Bug #15780]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:07 PM Bug #15875: const_defined? behavior inconsistency in 2.6.x series
- ruby_2_6 r67830 merged revision(s) e1b592b508c72a56ae012869d97fe1580ff87246,d10451f3fd51f577e704db770de48d05044eb45c.
-
12:06 PM Bug #15758: Object.const_defined?(name) falsely returns true on classes that are not defined
- ruby_2_6 r67830 merged revision(s) e1b592b508c72a56ae012869d97fe1580ff87246,d10451f3fd51f577e704db770de48d05044eb45c.
-
12:06 PM Revision 15eba4ed (git): merge revision(s) e1b592b508c72a56ae012869d97fe1580ff87246,d10451f3fd51f577e704db770de48d05044eb45c: [Backport #15758]
- test_module.rb: fix a typo
* test/ruby/test_module.rb (TestModule#test_nested_get): fix a
typo. nested module's name is a qualified path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67471 b2dd03c8-39d4-... -
11:48 AM Revision c2dc27d6 (git): fix typo of 54072e329cab7207fba133caba4fc12b45add8f9
-
11:23 AM Feature #5180 (Closed): net/http の接続時に用いる IP アドレスの指定
- Applied in changeset commit:git|54072e329cab7207fba133caba4fc12b45add8f9.
----------
Add ipaddr optional parameter to Net::HTTP#start
to replace the address for TCP/IP connection [Feature #5180]
There're 3 layers of hostname:
* host a... -
11:17 AM Feature #5180 (Open): net/http の接続時に用いる IP アドレスの指定
-
11:23 AM Feature #15215 (Closed): HTTPS server name indication (SNI): explicit server_name in Net::HTTP
- Applied in changeset commit:git|54072e329cab7207fba133caba4fc12b45add8f9.
----------
Add ipaddr optional parameter to Net::HTTP#start
to replace the address for TCP/IP connection [Feature #5180]
There're 3 layers of hostname:
* host a... -
11:17 AM Feature #15215: HTTPS server name indication (SNI): explicit server_name in Net::HTTP
- Duplicated with #5180.
Since there're 3 layers:
* host address for TCP/IP
* TLS server name
* HTTP Host header
In this use case, I think you wan to set different value for IP layer.
If you forget to change HTTP Host header, it wi... -
11:21 AM Revision 54072e32 (git): Add ipaddr optional parameter to Net::HTTP#start
- to replace the address for TCP/IP connection [Feature #5180]
There're 3 layers of hostname:
* host address for TCP/IP
* TLS server name
* HTTP Host header value
To test DNS round robin or check server certificate from server local,
peop... -
10:54 AM Bug #15177 (Feedback): 起動した後にTZを変更するとTime#utcがずれることがある
-
10:21 AM Bug #15044: ENV encoding not UTF-8 by default
- The assigned value to `ENV` are stored in the process's environment variable.
The encoding of `ENV[key]` is set as locale.
You can get the locale encoding by `Encoding.find("locale")` which is decided based on `Encoding.locale_charma... -
10:20 AM Bug #15044 (Closed): ENV encoding not UTF-8 by default
- It is intentional according to naruse. The encoding of ENV depends on the environment variable LANG.
-
10:17 AM Revision 19432794 (git): Added workaround for CoreAssertions used by ruby/logger.
-
10:17 AM Revision 4b36832b (git): Merge the upstream changes for test-unit on ruby/logger.
- This commits are based with:
https://github.com/ruby/logger/commit/f067f7d1aa743b467d633ec6d1790bd93ed9e25b
https://github.com/ruby/logger/commit/86058f420d8f6909500cccceb24f58bef0597b4d
https://github.com/ruby/logger/commit/... -
10:17 AM Revision ff7cc0dc (git): [ruby/logger] 1.4.1
- https://github.com/ruby/logger/commit/5987f518d1
-
10:17 AM Revision 895f86c8 (git): [ruby/logger] Fixes #38
- https://github.com/ruby/logger/commit/31efbb29ff
-
10:17 AM Revision 0fe1b050 (git): [ruby/logger] 1.4.0
- https://github.com/ruby/logger/commit/8127ce0b56
-
10:17 AM Revision 6158e28f (git): [ruby/logger] Avoid creating [] and "" when logging an Exception that has no backtrace
- https://github.com/ruby/logger/commit/75fd308053
-
10:17 AM Revision 0aafc329 (git): [ruby/logger] frozen_string_literal: true
- https://github.com/ruby/logger/commit/a057eede7b
-
10:17 AM Revision 22548195 (git): [ruby/logger] Fix typo
- https://github.com/ruby/logger/commit/5f70168ac5
-
09:57 AM Bug #15033 (Closed): Encoding fallback uses wrong character when multiple conversions are required
- It is feature.
What it does when it's specified `xml: :text` is just like below:
```ruby
"\u016f".encode('ISO-2022-JP', fallback: proc { |c| "&\#x#{c.encode('UTF-8').ord.to_s(16)};" }).encode('UTF-8')
``` -
07:08 AM Revision 8395a6a9 (git): Add badge of Cygwin
-
07:08 AM Revision a5e6a50c (git): Add cache of cygwin packages
-
07:08 AM Revision ea8f03e8 (git): Remove unused branch name
-
07:08 AM Revision 801eafcc (git): Split cygwin-chocolatey cache
-
07:08 AM Revision c19e62dd (git): Remove debug print
-
06:55 AM Feature #16379: Backporting ... to Ruby 2.4 - 2.6 and pass_keywords
- As a general principle, I agree with Jeremy. But for this case only, @Eregon's "90% compatibility" sounds too tempting.
When we need to ask upgrading Ruby versions, it's far easier for users to upgrade within 2.5 or 2.6 than to 2.7 (or 3... -
06:22 AM Revision 156fb72d (git): vm_args.c (rb_warn_check): Use iseq_unique_id instead of its pointer
- (This is the second try of 036bc1da6c6c9b0fa9b7f5968d897a9554dd770e.)
If iseq is GC'ed, the pointer of iseq may be reused, which may hide a
deprecation warning of keyword argument change.
http://ci.rvm.jp/results/trunk-test1@phosphorus... -
05:21 AM Revision 07664f3a (git): Remove workaround encoding modification
-
05:21 AM Revision a14c0144 (git): Fix encoding compatibility checking of completion correctly
-
04:49 AM Revision 3cdb37d9 (git): Revert "vm_args.c (rb_warn_check): Use iseq_unique_id instead of its pointer"
- This reverts commit 036bc1da6c6c9b0fa9b7f5968d897a9554dd770e.
This caused a failure on iseq_binary mode.
http://ci.rvm.jp/results/trunk-iseq_binary@silicon-docker/2474587
Numbering iseqs is not trivial due to dump/load. -
04:49 AM Revision 39c7230a (git): Revert "vm_args.c (rb_warn_check): Use unique_id * 2 instead of unique_id"
- This reverts commit 751a9b32e5a53336768eb878de1827245a3292bf.
-
04:46 AM Revision 8b07c122 (git): Stop pool threads in test/rinda too
-
03:47 AM Feature #14183: "Real" keyword argument
- @koic, would this not be good enough for your case?
```ruby
str = 'Hello, %<foo>s, %<bar>s'
ary = [foo: 'foo', bar: 'bar']
ary.each do |h|
format(str, **h)
end
```
But I have to say this would not even have been an issue ... -
03:30 AM Revision 751a9b32 (git): vm_args.c (rb_warn_check): Use unique_id * 2 instead of unique_id
- The function assumed that the LSB of `callee` was 0.
-
03:04 AM Revision 036bc1da (git): vm_args.c (rb_warn_check): Use iseq_unique_id instead of its pointer
- If iseq is GC'ed, the pointer of iseq may be reused, which may hide a
deprecation warning of keyword argument change.
http://ci.rvm.jp/results/trunk-test1@phosphorus-docker/2474221
```
1) Failure:
TestKeywordArguments#test_explicit_s... -
02:36 AM Bug #15856: Performance of redundant `Kernel.require` is slow when many gems are activated
- A quick search yields the following files that have both a rb and so version:
```
/opt/ruby/2.7/lib/ruby/gems/2.7.0/gems/redcarpet-3.5.0/lib
redcarpet.so
/opt/ruby/2.7/lib/ruby/gems/2.7.0/gems/debug_inspector-0.0.3/lib
de... -
02:13 AM Bug #16402: UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
- Submitted a question to httpclient on https://github.com/nahi/httpclient/issues/413
12/08/2019
-
10:26 PM Feature #14183: "Real" keyword argument
- With pattern matching added I would expect the next step to be "advanced" argument destructuring, i.e. applying PM for method arguments. For me, this seems to be a fair replacement for keyword unpacking.
```ruby
.select { |{paragraph... -
11:22 AM Feature #14183: "Real" keyword argument
- > In most cases a Hash#[] approach will be more concise since you don't have to repeat the keys. For example:
```ruby
.select { |h| h[:paragraph_id] > 0 && !h[:text].include?('foo') }
.map { |h| {at: h[:timestamp].to_i, content: "#{... -
06:30 PM Misc #16408 (Open): Ruby docs list incorrect method signatures for PTY::getpty/PTY::spawn
- Ruby documentation says the method signature for `PTY::getpty`/`PTY::spawn` is
```
* PTY.spawn(command_line) { |r, w, pid| ... }
* PTY.spawn(command_line) => [r, w, pid]
* PTY.spawn(command, arguments, ...) { |r, w, pid| ... -
03:22 PM Misc #16407 (Closed): Add .github/workflows/cygwin.yml
-
03:45 AM Misc #16407 (Closed): Add .github/workflows/cygwin.yml
- I would like to propose cygwin.yml for x86_64-cygwin CI.
Result (local branch): https://github.com/fd00/ruby/runs/337808124
- 03:13 PM Revision 0e71fbc1 (git): * 2019-12-09 [ci skip]
-
03:12 PM Revision 963b84a5 (git): Separate steps
-
03:12 PM Revision 5e65e65b (git): Set PATH at once
-
03:12 PM Revision d00349f9 (git): Fixed the checking out source
-
03:12 PM Revision 689e7448 (git): Add .github/workflows/cygwin.yml
-
09:29 AM Revision 0d63a210 (git): Skip completion tests for Editline
-
02:24 AM Feature #16374: Object#nullify to provide scalars with the effect similar to Enumerable#reject
- This is a duplicate of #13807, which I have proposed and withdrawn. I have proposed an alternative #15557.
12/07/2019
-
11:35 PM Revision c38bc172 (git): Fix encoding of completed list
- 11:10 PM Revision 2eb67437 (git): * 2019-12-08 [ci skip]
-
11:01 PM Revision c9b06d4a (git): Add test_simple_completion for Readline
-
07:38 PM Feature #16374: Object#nullify to provide scalars with the effect similar to Enumerable#reject
- This is an interesting idea. It is like a generalized version of Active Support's [`Object#presence`](https://api.rubyonrails.org/classes/Object.html#method-i-presence).
However, I agree that the name reads awkwardly. What about `O... -
07:21 PM Feature #16379: Backporting ... to Ruby 2.4 - 2.6 and pass_keywords
- Eregon (Benoit Daloze) wrote:
> I've heard quite a few people saying that backporting `...` to Ruby 2.4-2.6 would be a good way to do migration for keyword arguments.
To me, as a gem maintainer, this sounds like the most appealing op... -
01:48 PM Bug #16406 (Closed): `(lambda_proc << normal_proc).lambda?` should return false
- Consider:
```ruby
plus = proc { |a, b| a + b }
mult_two = ->(x) { x * 2 }
composed = mult_two << plus
p [composed. lambda?, composed.call([1, 2])]
```
I think this ought to print `[false, 6]` instead of `[true, 6]`, as the call ... -
01:02 PM Revision be13b897 (git): Show failed commits only when exists
-
12:56 PM Revision 0ff84eda (git): [ruby/irb] Version 1.2.0
- https://github.com/ruby/irb/commit/da6577a88c
-
12:56 PM Revision 2e595c2d (git): [ruby/irb] New IRB needs Ruby 2.5 or later
- https://github.com/ruby/irb/commit/4be3158358
-
12:55 PM Revision ad6837dd (git): [ruby/irb] Revert "Reidline mode needs Reline what needs String#grapheme_clusters"
- This reverts commit 2b0b19b87c60d2cdb329979acbb96e12a1f940e7.
New IRB parser needs new Ripper what has lex_state too. The new Ripper is
adopted by Ruby 2.5 or later.
https://github.com/ruby/irb/commit/9ab6e35a2c -
11:01 AM Revision c2afddcc (git): [ruby/irb] Reidline mode needs Reline what needs String#grapheme_clusters
- https://github.com/ruby/irb/commit/2b0b19b87c
-
11:01 AM Revision e72ffc55 (git): [ruby/reline] Support Ruby 2.5 or later for String#grapheme_clusters
- https://github.com/ruby/reline/commit/33e8c8f15b
-
04:16 AM Revision ebbc7783 (git): test/ruby/test_file_exhaustive.rb: shorten the name of temporary dir
- ```
1) Error:
TestFileExhaustive#test_socket_p:
ArgumentError: too long unix socket path (109bytes given but 108bytes max)
/export/home/users/chkbuild/cb-sunc/tmp/build/20191207T024036Z/ruby/test/ruby/test_file_exhaustive.rb:155:in... -
02:35 AM Feature #14922: Resolv getaddresses ignores AAAA records for IPv6
- I was recently bit by this as well. The documentation at https://ruby-doc.org/stdlib-2.6.5/libdoc/resolv/rdoc/Resolv/DNS.html clearly states that getaddresses will return IPv6 addresses, but doesn't list any conditions. Based on this I...
-
12:19 AM Feature #14183: "Real" keyword argument
- zverok (Victor Shepelev) wrote:
> The problem with blocks is indeed Array/Enumerable (and similar code). I am not sure how widespread this approach is, but in our production code (lots of small hashes, too many and to short-living to wr...
12/06/2019
-
11:14 PM Feature #14183: "Real" keyword argument
- > I think everyone agrees that keyword argument separation is disruptive, but it is no more disruptive to blocks than it is to method calls in general.
(inb4, I am obviously not saying "the change is bad, undo! undo!" Just trying to t... -
10:59 PM Feature #14183: "Real" keyword argument
- zverok (Victor Shepelev) wrote:
> So, there is no way to use block's keyword arguments to unpack a hash with symbol keys when passing it to the block?.. That's very disruptive change, this technique is super-useful when working with com... -
10:44 PM Feature #14183: "Real" keyword argument
- So, there is no way to use block's keyword arguments to unpack a hash with symbol keys when passing it to the block?.. That's very disruptive change, this technique is super-useful when working with complex structured data :(
-
09:26 PM Feature #14183: "Real" keyword argument
- koic (Koichi ITO) wrote:
> I have a question because my understanding is not enough. A kwarg warning is displayed with the following code:
> ...
No. This is expected, as `ary = [foo: 'foo', bar: 'bar']` is short for `ary = [{foo: 'foo... -
09:13 PM Feature #14183: "Real" keyword argument
- I have a question because my understanding is not enough. A kwarg warning is displayed with the following code:
```ruby
# example.rb
str = 'Hello, %<foo>s, %<bar>s'
ary = [foo: 'foo', bar: 'bar']
ary.each do |foo:, bar:|
form... -
08:21 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
- As I faced `stack level too deep (SystemStackError)` in `socket.rb:897` in `ip_address_list` on only the Travis ppc64le environment, I am debugging it with `strace` command on my forked repository enabling Travis ppc64le here.
https:/... -
04:20 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
- I found someone's pull-request adding s390x in Travis CI, and the result (Travis) is succeeded. Someone could you check and merge this?
Adding s390x support for Travis build
https://github.com/ruby/ruby/pull/2727
-
01:02 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
- Thank you, Rei Odaira. I appreciate your work.
I can work to send a pull-request to add ppc64le and s390x cases to (Travis) CI.
However it's up to you. Feel free to take the task.
-
06:48 PM Bug #15856: Performance of redundant `Kernel.require` is slow when many gems are activated
- I tracked it back to the initial commit in the ruby-spec repo:
https://github.com/ruby/spec/blob/6c1c34a6bbf28b55e59bc6a97a1211718082d3e7/1.8/core/kernel/require_spec.rb#L122-L126
That is from May 2008 and there's no history in git... - 04:28 PM Revision dcf89b20 (git): * 2019-12-07 [ci skip]
- 04:27 PM Revision 544431e0 (git): Adding s390x support (#2727)
-
03:54 PM Feature #16363 (Closed): Promote did_you_mean to default gem
-
01:26 PM Feature #16363: Promote did_you_mean to default gem
- I think we should go rather in opposite direction. Move all gems to "bundled" gems. Especially "did_you_mean" gem does not provide any benefit to **end user** of application and it should not be used in runtime. It is just perfectly fine...
-
01:34 PM Feature #16345: Don't emit deprecation warnings by default.
- In the context of this ticket, I have to reference my proposal #16018: "Add a way to deprecate methods"
-
07:03 AM Revision 2f6a8baa (git): Test interfaces include localhost
- When interfaces do not include localhost,
some other tests may fail. -
03:28 AM Bug #16405: [BUG] Segmentation fault at 0x007ffeef650000
- ありがとうございます。version upで対応して見ます
-
03:14 AM Bug #16405: [BUG] Segmentation fault at 0x007ffeef650000
- Rails も 4.0 と Ruby 同様にサポートされていないバージョンなので、5.2 ないし 6.0 で合わせて再現するかを確認することをお勧めします。
-
03:12 AM Bug #16405 (Third Party's Issue): [BUG] Segmentation fault at 0x007ffeef650000
- - まず2.1.1というのはずいぶん古いバージョンのrubyで、すでにこちらのサポートは切れているという状況です。最近のバージョンに更新するというのが教科書的なご対応になるかと思います。
- エラーを添付していただきありがとうございます。この出力によると問題はmysql2、あるいはそれが内部的に使っているライブラリ(libmysqlclient等)で発生しているようです。ruby本体の側でできることは少ないです。mysql2のバグとしてしかるべき場所に報告されると良い... -
02:41 AM Bug #16405 (Third Party's Issue): [BUG] Segmentation fault at 0x007ffeef650000
- RailsからMySQL接続するさいエラーが出ます。
Googleで調べてもわからなかったため、ご連絡差し上げた次第でございまう。
ご確認していただけると非常に助かります。
OS:Mac Catalia 1.15.1
ruby -v:ruby 2.1.10p492 (2016-04-01 revision 54464) [x86_64-darwin19.0]
rails -v :Rails 4.0.0
mysql --version:mysql Ver... -
02:00 AM Bug #16402 (Third Party's Issue): UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
- PikachuEXE (Pikachu Leung) wrote:
> Thanks for your answer
> ...
Well that's... complicated. There are lots of debates as to how to know network remote content's content type. Though not a direct answer, issue #2567 can be interestin... -
01:29 AM Bug #16402: UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
- Thanks for your answer
But I actually encounter this when processing text input from remote data source
And would not be using `File.read`
``` ruby
text = HTTPClient.new.get(
data_feed_url,
follow_redirect: true,
).tap do |r...
12/05/2019
-
11:54 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
- I'm happy to work for ppc64le and s390x. In the last few years, the number of the platform-specific issues that showed up in ppc64le and s390x Ruby has been between 5 and 10 every year, so I assume the same pace for my obligation as a m...
-
05:17 AM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
- Rei Odaira will work as best effort for both ppc64le and s390x.
https://twitter.com/ReiOdaira/status/1202383090611556353
So it's interesting to add them to CI. -
09:37 PM Revision 2c8d186c (git): Introduce an "Inline IVAR cache" struct
- This commit introduces an "inline ivar cache" struct. The reason we
need this is so compaction can differentiate from an ivar cache and a
regular inline cache. Regular inline caches contain references to
`VALUE` and ivar caches just co... -
07:20 PM Feature #16404 (Closed): Add Proc#ruby2_keywords
- While the need is not as common as for methods, procs could benefit from supporting ruby2_keywords, and there are cases in Rails where keywords are passed through procs using a normal argument splat [1]. If we don't add this, such cases...
- 03:13 PM Revision 38b7f947 (git): * 2019-12-06 [ci skip]
-
03:12 PM Revision 693cba1a (git): Detect started threads when require only
-
03:12 PM Revision 173b8646 (git): Do not start thread when `require 'drb/drb'` only
-
02:46 PM Revision 6477d98e (git): test/lib/jit_support.rb: Update the regexp for icc
- MJIT_CC is always an absolute path.
-
01:51 PM Bug #16403 (Rejected): Unavailable protected methods through `Symbol#to_proc`
- `Proc` by `Symbol#to_proc` calls the method on its argument in an isolated context, so the receiver does not exist.
-
01:34 PM Bug #16403 (Rejected): Unavailable protected methods through `Symbol#to_proc`
- Hello!
I've faced with a bug (I guess):
``` ruby
# protected.rb
# frozen_string_literal: true
class Foo
def initialize(text, *children)
@text = text
@children = children
end
def via_each
@children.red... -
01:37 PM Revision d43b9eb2 (git): lib/drb/drb.rb: suppress warning: instance variable @pool_proxy not initialized
-
01:24 PM Revision f4d9daf2 (git): coroutine/ucontext/Context.c: define __EXTENSIONS__ explicitly
- instead of ruby/config.h, per samuel's request.
https://github.com/ruby/ruby/commit/dbfd4b780e3914a3f27e92c2248254452bf0fd6b#diff-7fd78c3cc8a19b7e0637502983ec26ff -
09:23 AM Revision c3abbc1b (git): ext/openssl/extconf.rb: check with -Werror=deprecated-declarations
- This reverts commit 0d7d8b2989e1738dd902d354cc41186899e6b71e,
but restore `$warnflags` without the flag, to get rid of using
deprecated functions. -
09:18 AM Revision 4c88107c (git): Fix `warning: already initialized constant DidYouMean::VERSION`
- ```
.../gems/did_you_mean-1.3.1/lib/did_you_mean/version.rb:2: warning: already initialized constant DidYouMean::VERSION
.../lib/did_you_mean/version.rb:2: warning: previous definition of VERSION was here
``` -
08:57 AM Revision 75b64435 (git): ext/psych/extconf.rb: braced VPATH is for nmake only
-
07:56 AM Revision 0bca34dd (git): test/io/console/test_io_console.rb: add a memo for the mysterious hack
-
07:29 AM Revision 264d5aff (git): Change encoding of completion list...for more tests
-
06:57 AM Revision ee579200 (git): move an interrupt point.
- `args_ptr` can be corrupted by interrupt handlers.
Pointed by nagachika <https://ruby-trunk-changes.hatenablog.com/entry/ruby_trunk_changes_20191204>. -
06:53 AM Revision b40bb27e (git): test/io/console/test_io_console.rb: Try the hack for Solaris
- I'm not entirely sure why, but test_set_winsize_console gets stuck on
Solaris (and if I recall, macOS). I found a hack for FreeBSD, so I want
to give it a try on Solaris too. -
06:25 AM Revision fa1db8f9 (git): Add missing dependency
- https://travis-ci.org/ruby/ruby/jobs/620972117
-
06:18 AM Revision 72cff5f3 (git): MJIT_CC and MJIT_SUPPORT are not a prefix
- 0b19e15a1239bff9ae854f522f954206ec910cf8 was also for "MJIT_SUPPORT"
too. -
06:16 AM Revision 5fbb4555 (git): Prefer using MJIT_CC for JIT support check
- because Solaris might have CC=cc and we'd like to check full path
MJIT_CC=/opt/developerstudio12.5/bin/cc instead. -
06:05 AM Bug #16402 (Feedback): UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
- I bet your locale setting is UTF-8? Hence the error message. You have to be explicit then. `File.read("u.txt", mode: "rb:bom|utf-16")` Would give you a correct String instance.
-
05:58 AM Bug #16402 (Third Party's Issue): UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
- ``` shell
$ ruby -e 'File.binwrite("u.txt", "\xff\xfe\x00\x01")'
$ file u.txt
u.txt: Little-endian UTF-16 Unicode text, with no line terminators
$ ruby -e 'p /\w+/.match?(File.read("u.txt"))'
Traceback (most recent call last):
1:... -
05:51 AM Revision 199bd851 (git): parse.y: suppress "set but not used" warnings on ripper.y
-
05:47 AM Revision edb80dfe (git): add additional CF info for CI env
- Introduce new RUBY_DEBUG option 'ci' to inform Ruby interpreter
that an interpreter is running on CI environment.
With this option, `rb_bug()` shows more information includes
method entry information, local variables information for eac... -
05:47 AM Revision c88afd53 (git): fix parameter
-
05:45 AM Revision 0d7d8b29 (git): ext/openssl/extconf.rb: do not use -Werror=deprecated-declarations
- It fails to build on Solaris:
```
ossl_cipher.c: 関数 ‘ossl_cipher_init’ 内:
ossl_cipher.c:228:2: エラー: ‘EVP_md5’ is deprecated [-Werror=deprecated-declarations]
228 | EVP_BytesToKey(EVP_CIPHER_CTX_cipher(ctx), EVP_md5(), iv,
| ^~... - 05:17 AM Revision c0d118f4 (git): Fix "cannot find the function: strcpy()" error on arm32 on Travis CI. (#2686)
- This issue happened when `libc.so` and `libm.so` path were not found
and `ldd ruby` command also failed to print the shared dependencies
in `test/fiddle/helper.rb`.
See https://travis-ci.org/ruby/ruby/jobs/611483288#L3018
/home/travis/b... -
04:28 AM Revision ed5d032e (git): debug.rb: expand filenames in breakpoints
- When debugging some local code, specifying a breakpoint to a local
filename does not work, i.e.
break lib/foo.rb:10
Expanding the filename makes it work. FWIW byebug has the same behavior. -
04:06 AM Revision 20031f8b (git): Change encoding of completion list
-
03:49 AM Bug #16392: test-all failure Windows - TestEncoding#test_nonascii_library_path
- I haven't found what's different between the MinGW CI in ruby/ruby and ruby-loco. The above shows a test that fails in ruby-loco, but passes in ruby/ruby.
But, commit df76f2c5 'Make TracePoint.stat a singleton method again (#2726)' f... -
02:02 AM Bug #16399 (Closed): TracePoint.stat disappeared in Ruby-2.7.0-preview3
- Applied in changeset commit:git|df76f2c577b6567b617be2df9451123cc450d1cc.
----------
Make TracePoint.stat a singleton method again (#2726)
[Bug #16399] -
02:02 AM Revision df76f2c5 (git): Make TracePoint.stat a singleton method again (#2726)
- [Bug #16399]
-
01:05 AM Bug #10466 (Closed): rb_eval_string_wrap does not actually wrap in a module binding
- Applied in changeset commit:git|e4db0443bcfc94f9183e8ea72fb4ab560aa005bf.
----------
Make rb_eval_string_wrap specify a cref so constant setting works correctly
Fixes [Bug #10466] -
01:04 AM Revision e4db0443 (git): Make rb_eval_string_wrap specify a cref so constant setting works correctly
- Fixes [Bug #10466]
-
12:55 AM Revision 18d3b5a9 (git): Do not attempt to call methods on the receiver if it is a basic object
-
12:44 AM Revision 88ee375d (git): Revert "Add debug option to check ci failures on solaris"
- This reverts commit f289e3994bbc6560e2e4e5905b52c35c829c972d.
-
12:10 AM Bug #16389: Unexpected tINTEGER in conditional expression
- codinganarchy (Matthew Tanous) wrote:
> Just to clarify, if you don't mind, is this also due to the difference between `.>` (a method) and `>` (an operator)? I ask as `foo unless (@bar&.nil? && @baz > 15)` does not result in a syntax er... - 12:03 AM Revision fbf10ed5 (git): * 2019-12-05 [ci skip]
-
12:02 AM Revision e3587ed8 (git): Support disable-completion
-
12:02 AM Revision ad8fbf44 (git): Fix variable catch
12/04/2019
-
11:32 PM Feature #16255: Make `monitor.rb` built-in
- Thanks for your response! I understood the support policy.
-
04:42 AM Feature #16255: Make `monitor.rb` built-in
- I fixed `new_cond` before `mon_initialize` problem c6e3db0c66312af1e932c21006437419efa9ac75
> https://github.com/rails/rails/blob/461aae05f194f775e6367be9add4dda37746bd5c/activesupport/lib/active_support/concurrency/load_interlock_awa... -
09:10 PM Bug #16239: Crash when accessing postgresql-12
- @jeremyevans0 is correct. This is a fatal interaction between the PostgreSQL 12 client libraries and the GSS implementation provided by macOS. This is being tracked in the pg gem at https://github.com/ged/ruby-pg/issues/311.
An immedi... -
05:28 PM Bug #16331: fails to build with BSD make when any -j option is given (including -j 1)
- Are there plan to merge this fix to ruby_2_6 branch?
-
05:11 PM Misc #16396: What is the reason for this behaviour of Find.find?
- I can not say whether this is the case or not (I work only on Linux), also due to me
using Dir[] preferentially instead. With Dir[] I always make sure to have a trailing
'/' token if I wish to work with directories, and subdirectories,... -
04:10 PM Bug #16389: Unexpected tINTEGER in conditional expression
- mame (Yusuke Endoh) wrote:
> I don't think that your expectation is wrong, but due to parser limitation, we cannot place a non-parenthesized method call as an argument of `&&`. It is a good practice to write parentheses for method call... -
04:09 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
- Yusuke Endoh, I've tested using the following code:
```ruby
loop do
break if rand < 0
break while true
next if rand < 0
break until false
return if rand < 0
break while true
raise if rand < 0
break until... -
09:26 AM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
- There is a workaround for everyone wants to use lines coverage only with 2.6.5 version (recommended by Jeremy Evans):
```ruby
# Workaround for https://bugs.ruby-lang.org/issues/15980
require "coverage"
Coverage.module_eval do
... -
01:41 AM Bug #15980 (Closed): Coverage shows while/until after raise if/unless as uncovered line
- Applied in changeset commit:git|f9e5c74cd24025a5aa19e318e8fecabf207f1b7b.
----------
compile.c: stop wrong peephole optimization when covearge is enabled
jump-jump optimization ignores the event flags of the jump instruction
being skip... -
01:19 AM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
- I talked with @ko1, and decide to introduce a stopgap measurement: stop the optimization in question only when coverage measurement is enabled. This is because this issue is critical in coverage measurement, but minor in TracePoint.
... -
12:53 AM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
- jeremyevans0 (Jeremy Evans) wrote:
> My idea for a hacky workaround: As the correct result is shown when branch coverage is enabled, always run with branch coverage enabled, even if the branch results will not be used.
This issue is ... -
03:25 PM Bug #16400 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries
- Ruby crashed while loading the mysql2 gem. You will probably want to report this to the mysql2 developers: https://github.com/brianmario/mysql2/issues. Be sure to check for existing issues when reporting, as from a brief look this may ...
-
09:34 AM Bug #16400 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries
- 913 /usr/local/rvm/gems/ruby-2.4.4@retailhq/gems/nokogiri-1.8.4/lib/nokogiri/html/element_description.rb
914 /usr/local/rvm/gems/ruby-2.4.4@retailhq/gems/nokogiri-1.8.4/lib/nokogiri/html/element_description_defaults.rb
915 /usr/l... -
02:19 PM Bug #16401 (Closed): [BACKPORT] Disable _FORTIFY_SOURCE on mingw
- The latest version of mingw gcc on cygwin doesn't work with `_FORTIFY_SOURCE`.
The following commits need to be backported to build.
* a7b9f085ff952fcb18f82de39b3bf9ab7e5ba3e7
* 9165fcdfa309052a2adc3c6100ab24204de6c2d1
* e42d9d8df8... -
12:55 PM Bug #16391 (Closed): Dir.pwd, Dir[] pathname case inconsistency
- Applied in changeset commit:git|fb11e6089dbe9d995510977def038a21882bcffe.
----------
[DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip] -
12:46 PM Bug #16391: Dir.pwd, Dir[] pathname case inconsistency
- `Dir.pwd` returns `'C:/Users/...'`, not `'C:/users/...'` for me.
> Unfortunately, `File.fnmatch` seems to be case sensitive,
> ...
`File::Constants` has two constants for `File.fnmatch`
* `FNM_CASEFOLD`:
Makes `File.fnmatch` pa... -
12:52 PM Revision fb11e608 (git): [DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip]
-
11:59 AM Revision dbfd4b78 (git): coroutine/ucontext/Context.c: Include "ruby/config.h" for Solaris
- getcontext, makecontext, and swapcontext seem to be available only when
`__EXTENSION__` is defined on Solaris. -
11:57 AM Revision a0bc0e1b (git): Fix thread leak in drb
-
07:35 AM Bug #16399 (Closed): TracePoint.stat disappeared in Ruby-2.7.0-preview3
- `TracePoint.stat` method that existed in Ruby 2.6 (including 2.7.0-preview2) no longer exists in Ruby 2.7.0-preview3, but instead, `TracePoint#stat` method that did not exist so far has been added.
Test Script:
```ruby
#!/usr/bin/... -
06:52 AM Bug #16353: Backport 2a477e0e444de6344048101466fb9189b9defddc
- ruby_2_5 r67829 merged revision(s) 2a477e0e444de6344048101466fb9189b9defddc.
- 06:52 AM Revision dcc0a529 (git): merge revision(s) 2a477e0e444de6344048101466fb9189b9defddc: [Backport #16353]
- test_ftp.rb: loosen timeout for Travis osx
https://travis-ci.org/ruby/ruby/jobs/454798071
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
git-svn-id: svn+ssh://ci.ruby-lang.... -
06:32 AM Revision 00bbdf44 (git): implement Range#count
- As matz requested in [Bug #16366].
-
04:36 AM Revision c6e3db0c (git): new_cond before mon_initialize
- MonitorMixin#new_cond can be called before mon_initialize, so we
need to initialize `@monitor` before it.
https://bugs.ruby-lang.org/issues/16255#note-4 -
03:01 AM Bug #16382: SystemStackError thrown when running `LC_ALL="C" RUBYLIB=".:" ruby -E cp932:utf-8 aaa.rb` from where the current dir contains Japanese characters
- same issue with 2.6.5 [x86_64-linux].
I think backport 2.6 is REQUIRED.
```
~/tmp/テスト$ echo "puts 'ok'" > aaa.rb
~/tmp/テスト$ ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
~/tmp/テスト$ LC_ALL="C" RUBYLIB=".:" ruby... -
02:25 AM Bug #16398: Active Support unit test error since caac5f777ae288b5982708b8690e712e1cae0cf6
- This is due to refactoring of `Monitor` class. Ref: https://bugs.ruby-lang.org/issues/16255#note-3
-
12:48 AM Bug #16398 (Closed): Active Support unit test error since caac5f777ae288b5982708b8690e712e1cae0cf6
- This issue has been originally reported at https://github.com/rails/rails/issues/37676 . According to git bisect of ruby repository, this error reproduces since https://github.com/ruby/ruby/commit/caac5f777ae288b5982708b8690e712e1cae0cf6...
-
01:41 AM Bug #16397 (Closed): Line coverage is broken for until and while after guard clause
- Applied in changeset commit:git|f9e5c74cd24025a5aa19e318e8fecabf207f1b7b.
----------
compile.c: stop wrong peephole optimization when covearge is enabled
jump-jump optimization ignores the event flags of the jump instruction
being skip... -
01:40 AM Revision f9e5c74c (git): compile.c: stop wrong peephole optimization when covearge is enabled
- jump-jump optimization ignores the event flags of the jump instruction
being skipped, which leads to overlook of line events.
This changeset stops the wrong optimization when coverage measurement is
neabled and when the jump instruction... -
01:10 AM Revision 5a404efd (git): [ruby/io-console] Fixed `intr: false` mode on Windows
- https://github.com/ruby/io-console/commit/4c172c01aa
-
01:06 AM Bug #16339 (Closed): Forwardable#def_delegator warns and is incorrect on trunk when passed keyword arguments
- Fixed by commit:9fa0166a580e72adf02562b7d60672c6c362d4b7.
-
01:04 AM Bug #15188 (Closed): Incorrect warning "assigned but unused variable" when using ripper with $VERBOSE = true
- Applied in changeset commit:git|447d583536274a2489efc8792653ad35d6f7128a.
----------
Silence incorrect assigned but unused variable warnings in ripper
To only emit the warnings in correct cases would require tracking
local variable usa... -
01:04 AM Revision 447d5835 (git): Silence incorrect assigned but unused variable warnings in ripper
- To only emit the warnings in correct cases would require tracking
local variable usage in ripper, which ripper currently does not do.
Fixes [Bug #15188] -
12:48 AM Bug #16383: TracePoint does not report calls to attribute reader methods
- I'm not sure if skipping tracing for these methods is on purpose for performance reasons or not, but I agree it would be useful to be able to trace such method calls. Attached is a patch that implements tracing for `attr_reader`/`attr_w...
12/03/2019
-
11:59 PM Misc #16393: DevelopersMeeting20191220Japan
- * [Feature #14183] "Real" keyword argument (jeremyevans0)
* Is it OK to merge branch to remove deprecated support for positional hash <-> keyword conversion after 2.7 released?
* [Bug #11022] opening an eigenclass does not change the... -
12:04 PM Misc #16393: DevelopersMeeting20191220Japan
- **NOTE: Please follow the comment format strictly!**
I've created a script to automatically create an markdown-style agenda.
https://gist.github.com/mame/b0390509ce1491b43610b9ebb665eb86
We may ignore a comment that violates the... -
10:40 AM Misc #16393: DevelopersMeeting20191220Japan
- * [Bug #6087] How should inherited methods deal with return values of their own subclass? (mame)
* Matz said "We will fix this (to consistently return Arrays) in 3.0." seven years ago. Now is the time. Final confirmation. -
10:34 AM Misc #16393: DevelopersMeeting20191220Japan
- Carry over:
* [Feature #16264] Real "callable instance method" object. .:method to be a first-class thing, instead of Symbol#to_proc trick (zverok)
* This proposal would make sense only if .: would not be reverted (which, to the be... -
10:33 AM Misc #16393 (Closed): DevelopersMeeting20191220Japan
- Please comment on your favorite ticket numbers you want to ask to discuss with your *SHORT* comment or summary.
(your summary/comment will help us because we don't need to read all of the ticket comments)
*DO NOT* discuss then on thi... -
11:45 PM Feature #14183: "Real" keyword argument
- Shortly after the release of 2.7.0, I would like to merge the branch at https://github.com/jeremyevans/ruby/tree/r3, which fully separates positional and keyword arguments. I've been maintaining this branch for a couple months now and u...
-
10:02 AM Feature #14183: "Real" keyword argument
- I've written a draft of a note about this change in https://github.com/ruby/www.ruby-lang.org/pull/2293.
-
11:35 PM Bug #15629 (Closed): super_method fails on binded/unbinded/cloned methods
- Applied in changeset commit:git|a91637c516779d9ecee5f323e211f0ed71eb06ad.
----------
Make {Method,UnboundMethod}#super_method handle clone/bind/unbind
This wasn't working previously because the iclass entry wasn't
being copied, and wit... -
11:35 PM Revision a91637c5 (git): Make {Method,UnboundMethod}#super_method handle clone/bind/unbind
- This wasn't working previously because the iclass entry wasn't
being copied, and without an iclass entry, super_method returns
nil.
Fixes [Bug #15629] -
11:22 PM Revision f9754f0e (git): compile.c: trivial refactoring
- Use `for` instead of `while` to make it explicit that it is a traverse
of bytecode. -
10:44 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
- mame (Yusuke Endoh) wrote:
> I think of some options to fix:
> ...
My idea for a hacky workaround: As the correct result is shown when branch coverage is enabled, always run with branch coverage enabled, even if the branch results will... -
10:32 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
- Oops, I overlooked this issue. Sorry.
This is a tough problem. The compiler produces the following code:
```
0006 branchunless 13
...
0013 jump 17 (Line 2)
...
0017 putnil (Line 3)
```
The peephole opt... -
10:05 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
- Hello. This thing affects both `return`, `break` and `raise` guard clauses. I want to insist on covering this issue with tests, `test_line_coverage_for_multiple_lines` is too weak. I will try to prepare tests.
Unfortunately this bug w... -
10:38 PM Bug #14119: IPAddr#include? does not seem to support the subnet mask
- As ipaddr has been moved to a gem, I have submitted a pull request for this: https://github.com/ruby/ipaddr/pull/22
-
09:43 PM Bug #16397 (Closed): Line coverage is broken for until and while after guard clause
- Hello. I was working on [ruby gem](https://github.com/andrew-aladev/ruby-zstds) and received a bug with [simplecov](https://github.com/colszowka/simplecov/issues/764). See the following [coverage report](https://codecov.io/gh/andrew-alad...
-
09:41 PM Feature #13083 (Closed): Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
- Applied in changeset commit:git|8852fa876039ed177fd5e867f36177d8a9ff411c.
----------
Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"
This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf.
Revert [Fea... -
01:34 PM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
- It's not my intention to suffer users. Let's cancel the change.
Matz.
-
08:57 AM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
- Eregon (Benoit Daloze) wrote:
> > I believe many of us have got used to the original behavior, that is, methods of a Regexp object work permissively and accept nil, and we know we've migrated many pieces of code from `/re/ =~ nilable` /... -
09:40 PM Revision 8852fa87 (git): Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"
- This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf.
Revert [Feature #13083] -
09:40 PM Revision 08074eb7 (git): Revert "Revert nil error and adding deprecation message"
- This reverts commit 452bee3ee8d68059fabd9b1c7a75661b14e3933e.
-
09:40 PM Revision a705f647 (git): Revert "Improve warning message"
- This reverts commit 31110d820cc1258cbc84b46ecc65b254c7d5529a.
-
09:40 PM Revision 34a66b1f (git): Revert "Fix warnings in Regexp#{match,match?} specs"
- This reverts commit 782d1b8fb0a039cedef9ad9c94f432dad51901e6.
-
09:18 PM Bug #15613 (Closed): Enumerator::Chain#each doesn't relay block signature
- Applied in changeset commit:git|a029b54ec716812ade37fef1f857c49f821a8cc8.
----------
Make Enumerator::Chain#each treat lambdas as lambda
Previously, lambdas were converted to procs because of how
rb_block_call works. Switch to rb_func... -
09:18 PM Revision a029b54e (git): Make Enumerator::Chain#each treat lambdas as lambda
- Previously, lambdas were converted to procs because of how
rb_block_call works. Switch to rb_funcall_with_block, which
handles procs as procs and lambdas as lambdas.
Fixes [Bug #15613] -
03:58 PM Bug #10495 (Closed): Attaching lldb to a program running `sleep` hangs the VM
- I tried the process on Ubuntu, but I couldn't reproduce the issue. Maybe it is already fixed? Tentatively closing. Let me know if you still see the issue.
AFAIK there is no committer that daily uses `lldb` for ruby. Contribution i... -
03:44 PM Bug #10453 (Rejected): NUM2CHR() does not perform additional bounds checks
- See #15460. `String#setbyte` has accepted not only 0..255 but also any integers. Once it had been limited only to 0..255, but it caused a compatibility issue, and eventually was reverted.
I don't think that this is a good idea in te... -
03:38 PM Bug #16394 (Third Party's Issue): libmysqlclient20 5.7.28-0ubuntu0.18.04.4 causes segmentation fault
- This happens while loading the mysql2 gem:
```
/opt/chef/embedded/lib/libruby.so.2.3(sigsegv+0x3e) [0x7f4ad936d22e] signal.c:890
/lib/x86_64-linux-gnu/libc.so.6 [0x7f4ad8e58f20]
/lib/x86_64-linux-gnu/libc.so.6 [0x7f4ad8f83d76]
/op... -
10:51 AM Bug #16394: libmysqlclient20 5.7.28-0ubuntu0.18.04.4 causes segmentation fault
- duthmanek (Tim Dithmer) wrote:
> OS: Ubuntu 18.04
> ...
Gem Versions:
mysql (2.9.1)
mysql2 (0.5.2) -
10:49 AM Bug #16394 (Third Party's Issue): libmysqlclient20 5.7.28-0ubuntu0.18.04.4 causes segmentation fault
- OS: Ubuntu 18.04
Update from libmysqlclient20 to 5.7.28-0ubuntu0.18.04.4 causes segmentation fault while using mysql- and mysql2-gem.
Stacktrace is in attached log -
03:32 PM Bug #11055 (Closed): autoload resets private_constant
- Applied in changeset commit:git|47c97e1e843159c3c4d57f8c5e22daea57c3ffe1.
----------
Do not lose existing constant visibility when autoloading
This copies the private/deprecate constant visibility across the
autoload. It still is back... -
03:31 PM Revision 47c97e1e (git): Do not lose existing constant visibility when autoloading
- This copies the private/deprecate constant visibility across the
autoload. It still is backwards compatible with setting the
private/deprecate constant visibility in the autoloaded file.
However, if you explicitly set public constant in... -
03:28 PM Bug #13688 (Closed): Thread overflow hangs ruby (not responding ^C)
- Applied in changeset commit:git|5c2c3966851ed074eb468ad36d8d75e53b8eab6c.
----------
Check interrupts before starting thread
Fixes a hang when Thread.new calls Thread.new in a loop.
Fixes [Bug #13688] - 03:27 PM Revision b96d559c (git): * 2019-12-04 [ci skip]
-
03:27 PM Revision 5c2c3966 (git): Check interrupts before starting thread
- Fixes a hang when Thread.new calls Thread.new in a loop.
Fixes [Bug #13688] -
03:25 PM Bug #10250 (Rejected): User-Agent HTTP header not being set on CONNECT requests
- I think that this is not a bug, but a request for a feature to set HTTP headers for a proxy server instead of endpoint.
My survey:
* golang has a dedicated API, ProxyConnectHeader, to specify HTTP headers for a proxy server: https:... -
03:09 PM Bug #16265: Test (spec) failure using current MSYS2 tools, related to -fstack-protector and possibly D_FORTIFY_SOURCE=2
- PR https://github.com/ruby/ruby/pull/2718 shows this issue, and also properly updates MSYS2/MinGW gcc.
-
01:52 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
- shyouhei (Shyouhei Urabe) wrote:
> Hello. It is definitely a good idea to enhance our CI. But that alone does not improve the code quality. We need someone to fix issues.
> ...
Hello. I agree with it.
Someone, do you have any ide... -
01:26 PM Bug #16395: .any? and .all? methods, flawed.
- > The dynamics of the script is simple, no explanations needed, look for yourselves:
I do not think that this can be a useful issue description because there may be
secondary aspect to consider for when requesting changes, including ... -
12:21 PM Bug #16395 (Rejected): .any? and .all? methods, flawed.
- @Hanmac is right.
```
ary = [1, 2, 3, 4, 5]
result = ary.any? {|n| p n; n == 3 } #=> 1, 2, 3
p result #=> true
result = ary.all? {|n| p n; n != 3 } #=> 1, 2, 3
p result #=> false
```
You may want to use `each` instead of ... -
12:10 PM Bug #16395: .any? and .all? methods, flawed.
- your problem is that `.any?` and `.all?` wants a value returned for the block which is truly or falsely
puts returns nil which is falsely, in the second example count += 1 returns an integer which is truly
EDIT: it looks like yo... -
12:01 PM Bug #16395 (Rejected): .any? and .all? methods, flawed.
- The dynamics of the script is simple, no explanations needed, look for yourselves:
``` ruby
# 100E1 312A3 8B64 282F C4A B28F
result = '99E2E403100E1A685A63312A308B6478282F2B2C4A34B28F7E'
virus = ['100E1',... -
01:03 PM Misc #16396 (Open): What is the reason for this behaviour of Find.find?
- When I have a script at `D:\Downloads\Ruby 2.5.3\rbL\comp\codeShort.rb` with few other files in the same folder, the following searches only the folder where the `.rb` script is located:
``` ruby
Find.find('D:')
```
When I have a... -
10:50 AM Revision 7f2cd2ae (git): fix typo
-
08:56 AM Revision a1f98cd4 (git): vm_args.c: make the keyword deprecation message helpful
- ```
$ ./miniruby -e 'def foo(kw: 1); end; h = {kw: 1}; foo(h)'
-e:1: warning: The last argument is used as the keyword parameter
-e:1: warning: for `foo' defined here; maybe ** should be added to the call?
``` -
08:27 AM Bug #5577: test/testunit/test_parallel.rb causes NoMethodError when file descriptor is limited to 30.
- いまmacOSで試してみましたが、特に刺さるようなことはありませんでした。閉じておきます。
-
08:26 AM Bug #5577 (Closed): test/testunit/test_parallel.rb causes NoMethodError when file descriptor is limited to 30.
- Applied in changeset commit:git|409e4ab740de3852c3667217bcf41b55040f638f.
----------
tool/lib/test/unit/parallel.rb: fail explicitly when failing to get io
`(ulimit -n 30; make test-tool)` fails with unexplicit message:
"undefined meth... -
08:26 AM Revision 409e4ab7 (git): tool/lib/test/unit/parallel.rb: fail explicitly when failing to get io
- `(ulimit -n 30; make test-tool)` fails with unexplicit message:
"undefined method `write' for nil:NilClass" due to lack of stdout.
This change makes it explicit. [Bug #5577] -
05:51 AM Revision e42d9d8d (git): Fixed the inverted condition
-
05:46 AM Revision 9165fcdf (git): Wrap statements in AS_IF properly
-
05:40 AM Feature #16374: Object#nullify to provide scalars with the effect similar to Enumerable#reject
- I think I've proposed `Object#not` (and `Object#!`) for this purpose.
-
05:16 AM Feature #16374: Object#nullify to provide scalars with the effect similar to Enumerable#reject
- IMO, `[1, 2].nullify(&:empty?)&.then(&:join)` is just cryptic.
BTW, why do you write `&.then(&:join)`? I'm afraid you have been corrupted by `&:sym`. -
04:25 AM Bug #16392 (Closed): test-all failure Windows - TestEncoding#test_nonascii_library_path
- ruby-loco build failed, so ran the test locally using runner.rb. Failed on both of the below builds. The new test is valid, but the fix in 14a17063a1 doesn't seem to be working...
```
ruby 2.7.0dev (2019-12-02T23:51:50Z master 14a1... -
04:02 AM Revision 027e847c (git): Fix auto-indent behavior correctly
-
01:16 AM Bug #16382 (Closed): SystemStackError thrown when running `LC_ALL="C" RUBYLIB=".:" ruby -E cp932:utf-8 aaa.rb` from where the current dir contains Japanese characters
- Applied in changeset commit:git|14a17063a11a01d518b4bbaf0eb967330aec3984.
----------
Fixed stack overflow [Bug #16382]
Get rid of infinite recursion in expanding a load path to the real
path while loading a transcoder. -
12:36 AM Bug #16389 (Rejected): Unexpected tINTEGER in conditional expression
-
12:14 AM Bug #16389 (Closed): Unexpected tINTEGER in conditional expression
- You need to parenthesize the argument 15.
```
foo unless (@bar&.nil? && @baz&.>(15))
```
I don't think that your expectation is wrong, but due to parser limitation, we cannot place a non-parenthesized method call as an argument o...