Activity
From 12/18/2019 to 12/24/2019
12/24/2019
-
11:41 PM Revision 8e6d51e0 (git): Sync did_you_mean
-
11:24 PM Revision 2b2be71c (git): Add did_you_mean's promotion to the NEWS
-
10:28 PM Bug #16449 (Assigned): Bundler is 2.1.1 in master, not 2.1.2 ?
-
05:04 PM Bug #16449 (Closed): Bundler is 2.1.1 in master, not 2.1.2 ?
- NEWS mentions that Bundler has been updated to 2.1.2, but lib/bundler/version.rb
https://github.com/ruby/ruby/blob/5220145ea289d9eb955b373f31773fab2d4f0271/lib/bundler/version.rb
is showing 2.1.1. Normally I think I've seen NEWS d... -
10:28 PM Revision 1857b442 (git): Merge Bundler 2.1.2 from bundler/bundler.
- [Misc #16449][ruby-core:96458]
-
09:13 PM Revision da0a0bae (git): NEWS: add meaning of "CoW" ("copy-on-write")
-
08:50 PM Revision ceba5b70 (git): [DOC] Fix typo in Time#inspect
-
07:54 PM Revision f3067deb (git): Revert "Add NEWS entry about Module#name performance (#2779)" (#2781)
- This reverts commit 3e9221d94a12b54c1285923b642364acdbc31c7e.
-
07:02 PM Revision 3e9221d9 (git): Add NEWS entry about Module#name performance (#2779)
-
05:37 PM Feature #15973: Let Kernel#lambda always return a lambda
- more aggressive proposal is obsolete `lambda` call, and use `->` (maybe it is too aggressive).
-
05:35 PM Feature #15973: Let Kernel#lambda always return a lambda
- This is one idea: how about to prohibit `lambda(&...)` method call? (block literal is always prohibited)
3.0: deprecation warning and show 3.1 will raise exception for `lambda(&...)`
3.1: raise exception for `lambda(&...)`
same as... -
04:51 PM Feature #14912: Introduce pattern matching syntax
- Thanks @mame for explanation and response.
That kinda make sense with the `Point[]`. Is this universal for any class?
I was playing with it and could not make it, for example when I have implemented my own class with `deconstruct_... -
04:34 PM Revision 5220145e (git): add debug_counter access functions.
- These functions are enabled only on USE_DEBUG_COUNTER=1.
- 04:00 PM Revision 9b617ffa (git): * 2019-12-25 [ci skip]
-
03:57 PM Revision 3679023d (git): [DOC] Fix typo and language
-
01:31 PM Revision 8c017824 (git): Added entry for json-2.3.0
-
12:39 PM Revision 1cd2ebed (git): Update the news entries for RubyGems and Bundler
-
12:22 PM Revision 05b0410f (git): [ruby/irb] Fix typo
- https://github.com/ruby/irb/commit/4bb1340687
-
12:01 PM Revision 54083fd4 (git): [DOC] Fix grammar in Process module docs
-
12:01 PM Revision 66e518f7 (git): [DOC] Fix typo
-
09:53 AM Revision 4ba93475 (git): `Object#=~` warning also obeys `Warning[:deprecated]`
-
09:53 AM Revision a3c5dbf2 (git): Scale sleeping times to wait for the OS operations
-
09:39 AM Revision 7758849c (git): Remove unused variable
-
09:34 AM Revision 42e2a322 (git): The delete-char-or-list shows completed list when called at end of line
- It doesn't behave the same as the delete-char.
-
09:02 AM Revision b03aea62 (git): NEWS: fix method references for Range#{cover?,include?}
-
08:49 AM Revision 44a1f516 (git): NEWS: improve sections for warning option / Warning
-
08:03 AM Revision 27b4f477 (git): [DOC] Improve docs for Enumerator.produce, Enumerator.new
-
07:34 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- I've updated my pull request to update [the article of Ruby 3's keyword argument separation](https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/).
https://github.com/ruby/www.ruby-l... -
07:23 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- @naruse also approved. Thank you for quick replies.
-
07:10 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- Approved.
Matz.
-
07:06 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- @marcandre
You have to wait for matz and naruse's approvals! I'll ask them. -
07:19 AM Bug #11878: Comparison of prepended modules
- > I think no user expects that the "subclass relation" is different than the order of ancestors, isn't it?
Regardless whether users know or not, they are actually different. Consider:
```ruby
module M; end
class C; prepend M; en... -
06:56 AM Feature #15605: json library needs more frequent releases
- >s it that releases of the json gem will be done from the ruby/ruby repository?
No. We can merge commits from ruby/ruby to flori/json and release it. -
06:48 AM Revision 81504e83 (git): Synchronize with a Queue instead of sleeping
-
06:38 AM Revision 47ad57f2 (git): Revert "Scale sleeping times"
- This reverts commit e57d6194218efc73c30f3fed9dd321d2e357030b.
Test fails:
http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sky1/2518563
http://ci.rvm.jp/results/trunk-gc_compact@silicon-docker/2518533 -
05:57 AM Revision c4710669 (git): NEWS: added references to warning option [ci skip]
-
05:56 AM Revision e57d6194 (git): Scale sleeping times
-
05:04 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- nobu (Nobuyoshi Nakada) wrote:
> * I see the word "unuseful" in some online dictionaries.
Yes, but that doesn't mean it's best. As an example, "unuseful" shows up on Google about 363,000 times, but "useless" shows up on Google abou... -
01:47 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- And as I added fixing typos in ChangeLog file taking from git-notes, the file in the next package will be fixed.
-
01:31 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- Thank you, yes, "exapmle" in test/openssl/test_x509name.rb is intentional to test malformed RDN by a typo.
And for others:
* Fixed the typos in debug_counter.h and error.c.
* I see the word "unuseful" in some online dictionaries.
* `... -
04:24 AM Revision adf498b8 (git): Moved warning option section and added a reference [ci skip]
-
04:12 AM Revision 302e8968 (git): Added warning.rb to .document
-
03:11 AM Revision 3739ddc3 (git): Added `-W:experimental` to `--help` [Feature #16420]
-
02:54 AM Bug #16398: Active Support unit test error since caac5f777ae288b5982708b8690e712e1cae0cf6
- This issue has been addressed by https://github.com/rails/rails/pull/38069 .
-
02:50 AM Feature #12655: Accessing the method visibility
- Sorry, I've forgotten completely.
Updated the [patch](https://github.com/ruby/ruby/pull/2778), but it is sorry to be too late for 2.7. -
02:28 AM Revision d0f1eb3e (git): Separated command line option in NEWS [ci skip]
-
02:14 AM Revision 5a62fb12 (git): Mentioned `-W:` command option in NEWS [ci skip]
-
02:00 AM Revision f2e1e6cb (git): Enhance explanations for beginless range and #clamp, and add missing feature
-
01:39 AM Feature #15373: Proposal: Enable refinements to `#method` and `#instance_method`
- https://docs.google.com/document/u/1/d/1W_wrFsFxxU1MepA6HBpfl-9h-nLD8EBsgMsS7yTDvHE/pub
-
01:33 AM Revision e954be14 (git): Get rid of false positive misspellings
- [Bug #16437]
-
01:33 AM Revision 992aa2cd (git): enc/x_emoji.h: fixed dead-links [ci skip]
- English version pages seem no longer provided.
-
01:30 AM Revision f09a4ff2 (git): Added NEWS for Feature 15373
-
01:25 AM Revision 360f153f (git): remove "experimental" from numbered parameter.
- Numbered parameter is not an experimental feature,
confirmed by Matz.
https://twitter.com/yukihiro_matz/status/1209271452798607361 -
01:17 AM Misc #16444 (Closed): What is the reason for the warning of IRB?
- The IRB maintainer @aycabta has determined to remove the message. https://github.com/ruby/ruby/commit/0e528ae9cb5c1078e4d07287e403cb548e97f0a3
-
12:56 AM Revision 5e17834f (git): [ruby/reline] Version 0.1.0
- https://github.com/ruby/reline/commit/55d4dfec1e
-
12:56 AM Revision 8316b330 (git): [ruby/irb] Version 1.2.1
- https://github.com/ruby/irb/commit/8da0c74640
-
12:56 AM Revision 0e528ae9 (git): [ruby/irb] Remove warning message to bundle on Ruby 2.7.0
- https://github.com/ruby/irb/commit/d9a7844f50
12/23/2019
-
11:13 PM Revision 02316619 (git): [DOC] Fix wording in Math::E documentation
-
11:04 PM Revision 30c5e8c4 (git): [ruby/rdoc] Version 6.2.1
- https://github.com/ruby/rdoc/commit/c65e14d112
-
10:58 PM Revision 2bf0743e (git): Update parsers of RDoc that are generated by Racc
-
10:58 PM Revision adc9b3ca (git): [ruby/rdoc] Support newline in the middle of constant definition
- https://github.com/ruby/rdoc/commit/74d3984324
-
10:58 PM Revision e50e5526 (git): [ruby/rdoc] Treat Proc#call syntax sugar for constant correctly
- https://github.com/ruby/rdoc/commit/957d041ae0
-
10:12 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
- sawa (Tsuyoshi Sawada) wrote:
> wishdev (John Higgins) wrote:
> ...
Nothing wrong with that at all - but I think adding a :reverse options to the methods would accomplish a right to left search feature.
As I said - declaring what y... -
09:52 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
- wishdev (John Higgins) wrote:
>I prefer simpler examples
> ...
My intention of including two `0`s in the example was to show that there remains an asymmmetry; the search is done from the left, not from the right. In principle, we can s... -
08:29 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
- The answer here is simplicity (declarative) as opposed to wordsmithing.
We need to add an drop_until and take_until to handle 5-8 and drop_while and take_while handle 1-4
All 4 methods get a new parameter "bucket" which determines wher... -
03:14 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
- I have not thought about the proposal here quite much so far, sorry (and admittedly I may need
to do so on a fresh morning as I am a bit tired).
Just two brief comments:
- Some of the examples remind me a bit of .select/.reject/.... -
08:26 AM Feature #16446 (Rejected): Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
- #16441 led me to think about the issue more generally. When we want to split a series of iterations by the first element that satisfies (or dissatisfies) a condition, we have three factors to consider.
(1) Whether we want the conditio... -
09:49 PM Feature #16289 (Closed): Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- Great, thanks.
Pushed. -
05:47 PM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- I'm fine with @marcandre's changes.
-
12:51 PM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- Sounds clearer to me with @marcandre's changes.
-
11:49 AM Feature #16289 (Assigned): Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- @marcandre , thank you for creating a pull request.
Your proposal:
old: The last argument is used as keyword parameters; maybe ** should be added to the call
new Using the last argument as keyword parameters is deprecated; maybe *... -
07:37 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
- I'm glad this was merged in, but disappointed the error message still doesn't mention that this is a deprecation warning.
Wouldn't it be cleared with https://github.com/ruby/ruby/pull/2776 ? - 09:47 PM Revision 819b6040 (git): Reword keyword arguments warning messages to convey these are deprecation warnings
-
09:41 PM Revision df6f5c44 (git): [DOC] Fix invalid code to make it syntax highlighted
-
09:07 PM Revision a7b50184 (git): [DOC] Use capitalized "Ruby"
-
09:04 PM Revision ba9ccef8 (git): [DOC] Various fixes in bug triaging guide
- 07:17 PM Revision aa01441f (git): * 2019-12-24 [ci skip]
-
07:16 PM Revision f2017000 (git): move a NEWS entry about inline method cache
-
04:41 PM Bug #11878: Comparison of prepended modules
- Re `obj.is_a?(mod)` we can consider it as `obj.singleton_class.ancestors.include?(mod)` or even `obj.class.ancestors.include?(mod)` in this case.
That's consistent with `ancestors`. -
04:38 PM Bug #11878 (Open): Comparison of prepended modules
- At the very least it's inconsistent with the order of Module#ancestors:
```ruby
module M; end
class C; prepend M; end
> C.ancestors
=> [M, C, Object, JSON::Ext::Generator::GeneratorMethods::Object, PP::ObjectMixin, Kernel, BasicOb... -
03:57 PM Bug #11878 (Rejected): Comparison of prepended modules
- The current behavior is consistent. The rdoc of `Module#<` says:
```
call-seq:
mod < other -> true, false, or nil
Returns true if <i>mod</i> is a subclass of <i>other</i>.
```
Note that subclass is not directly related ... -
02:29 PM Feature #12655: Accessing the method visibility
- mri/2.x.0/internal.h:1363:11: error: conflicting types for โrb_st_copyโ
1363 | st_table *rb_st_copy(VALUE obj, struct st_table *orig_tbl);
looks like this has changed in ruby 2.7
we would have appreciated the public methods from ... -
02:02 PM Revision 16fddfe3 (git): [DOC] Improve readability of requirements for <=>
-
02:01 PM Bug #16448: regex global variables are working differently depending on scope
- It is very unexpected.(
Thank you. -
01:47 PM Bug #16448: regex global variables are working differently depending on scope
- `$~` is not a global variable, but a kind of local variable. `String#gsub` assigns the match data to `$~` of its caller. `data.gsub(/test/, &f1)` assigns `$~` of the scope of `check`. The lambda `f1` reads `$~` of the toplevel scope, ...
-
01:31 PM Bug #16448 (Closed): regex global variables are working differently depending on scope
- Hi, everyone.
I am trying to write a code similar to this
``` ruby
#!/usr/bin/env ruby
def check(f1)
f2 = ->(match) { p match; p $~ }
data = "hello test test test"
data.gsub(/test/, &f1)
data.gsub(/test/, &f... -
01:46 PM Revision 9a42e0c7 (git): NEWS: add reference for [Feature #14405]
-
01:46 PM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- Yes, your mentioned types of false positives are often found and I had tried to eliminate them before. Some nevertheless overseen ones are now also excluded. Additionally the mentioned sub-directories of external gems are now also exclud...
-
01:45 PM Revision de1a4624 (git): NEWS: revise grammar, language, markup, etc.
-
12:56 PM Feature #15605: json library needs more frequent releases
- hsbt (Hiroshi SHIBATA) wrote:
> We will handle the new feature of JSON with ruby/ruby repo in the future.
I'm not sure what you mean, could you clarify?
Is it that releases of the json gem will be done from the ruby/ruby repository? -
11:15 AM Feature #15605 (Closed): json library needs more frequent releases
- naruse did release json-2.3.0 from the current master branch of ruby/ruby.
We will handle the new feature of JSON with ruby/ruby repo in the future. -
12:00 PM Feature #5481: Gemifying Ruby standard library
- @marcandre
You can pick the commits from ruby/* repository like this.
```
# git clone from the upstream repository and copy from the upstream repository with cp -rf. It's lost the git commits.
ruby tool/sync_default_gems.rb rubyg... -
12:33 AM Feature #5481: Gemifying Ruby standard library
- @hsbt is your tool to do this published somewhere?
In particular I noticed that some `gemspec` files are not in the same spot (e.g. `lib/matrix/matrix.gemspec` vs `lib/ostruct.gemspec`).
I'm moving one in the main repo, but it's no... -
11:14 AM Misc #16447 (Assigned): Merge JSON doc updates?
- Thank you for contributing.
I and naruse got the approval for releasing the new version of JSON from flori.
So, I can merge and release them. But It's too late for releasing Ruby 2.7. I'm going to handle it in 2020. -
09:54 AM Misc #16447 (Closed): Merge JSON doc updates?
- Sorry for bothering the core tracker.
I understand (though, only partially) that JSON standard library is in a weird state "it is kinda maintained but we can't contact maintaner" (is there no way to just move the project's main repo und... -
08:57 AM Feature #16274: Transform hash keys by a hash
- knu (Akinori MUSHA) wrote:
> Which does `hash1.transform_keys(hash2)` iterate over, hash1's keys or hash2's keys?
My intention of including the key `:author` in `hash` was to show that the iteration is done over the receiver (your `... -
08:54 AM Feature #16274: Transform hash keys by a hash
- As for the behavior when both a hash argument and a block are given, I suggested in the issue to have the block applied after the hash has applied:
**Original proposal**
```ruby
hash.transform_keys({created: :created_at, updated: :u... -
04:53 AM Feature #16274: Transform hash keys by a hash
- matz (Yukihiro Matsumoto) wrote:
> FYI, we do not accept a similar change to `transform_values`.
Matz - Do you mean "we reject a similar change to `transform_values`", or do you mean "we have not yet accepted a similar change to `t... -
08:46 AM Revision bbde77cd (git): NEWS: fix some typos, grammar, and language
-
08:04 AM Revision 100fc275 (git): fix wmap_finalize.
- wmap_finalize expects id2ref() returns a corresponding object
even if the object is dead. Make id2ref_obj_tbl() for this
purpose. -
07:31 AM Revision 9eeaae43 (git): add more debug counters to count numeric objects.
-
07:15 AM Bug #16445 (Closed): Time#inspect shows a fractional number
- This is intentional. There was no way to distinguish Time objects that differ in a fraction of a second.
The behavior of Time#to_s kept unchanged for compatibility.
Matz.
-
02:18 AM Bug #16445 (Closed): Time#inspect shows a fractional number
- `Time#inspect` shows a fractional number.
```
irb(main):001:0> Time.at(0.5)
=> 1970-01-01 09:00:00.5 +0900
irb(main):002:0> Time.at(0.1)
=> 1970-01-01 09:00:00 3602879701896397/36028797018963968 +0900
```
Is this intentional? - 06:59 AM Revision 7779ade4 (git): NEWS: Fix issue reference [#15807] [DOC]
- 06:55 AM Revision dadf1255 (git): README: Add Range#minmax to the list of potential incompatibilities [#15929] [DOC]
- 06:48 AM Revision 3e1adf57 (git): README: Improve wording [DOC]
- 06:40 AM Revision 7df2503b (git): NEWS: Hint at potential incompatibility with Range#minmax [#15807]
-
06:04 AM Revision a96f8cec (git): ObjectSpace._id2ref should check liveness.
- objspace->id_to_obj_tbl can contain died objects because of lazy
sweep, so that it should check liveness. -
05:47 AM Revision 672a61b9 (git): Port https://github.com/ruby/did_you_mean/commit/dd1dd86e6c3188c36224d5dd4389676e6653a727
-
04:23 AM Revision 92d09582 (git): FrozenError.new accepts :receiver instead of 2nd argument [ci skip]
- [ruby-core:96227] [Feature #16419]
-
03:07 AM Revision 3142a6be (git): Revert "Changed behavior on windows platforms too [ci skip]"
- This reverts commit 1bf8d5e9797f6304b2e27cb7f42d467f84de0ff4.
Because 204dc3f39f12b4e2640555306bd1dd4530344277 reverts 61aff0cd189e67fa6f2565639ad0128fa33b88fc - 02:54 AM Revision 204dc3f3 (git): Revert "Should return "." for File.extname("file.") also on Windows"
- We want to introduce consistency and better compatibility with unixen,
but the Windows APIs doues not have consistency fundamentally and
we can not found any logical way...
This reverts commit 61aff0cd189e67fa6f2565639ad0128fa33b88fc. - 02:48 AM Revision 048f797b (git): [ruby/prime] Bump version
- 02:48 AM Revision 446c243d (git): [ruby/ostruct] Bump version
- 02:48 AM Revision 9be3295d (git): [ruby/ostruct] Create OpenStruct::VERSION
- 02:48 AM Revision 49d94248 (git): [ruby/ostruct] Move gemspec
- 02:48 AM Revision 48d1acdf (git): [ruby/matrix] Bump version
-
02:08 AM Revision 1ed87dd3 (git): Add NEWS about Warning.[] [Feature #16345] [ci skip]
-
01:37 AM Revision 5de284ec (git): Fixed a typo in an exception class name
-
01:10 AM Revision 5f18635a (git): make-snapshot: fixed mode
- "X" must be used in conjunction with "+".
-
12:52 AM Misc #15843: Make "trunk" a symbolic-ref of "master" on git.ruby-lang.org
- Reminder to everyone:
> 2020 1/1: trunk branch cannot be git fetched and git pushed anymore.
The ruby.git's "trunk" branch will be deleted within 10 days. -
12:29 AM Revision 80d5d220 (git): Fix typo in commit logs by log-fix notes
-
12:21 AM Feature #14912: Introduce pattern matching syntax
- docx (Lukas Dolezal) wrote:
> I wonder what do you think about only allowing curly brackets for hash pattern, and only square brackets for array pattern?
The rationale of the current design I've heard from @ktsj is to fit the pattern... -
12:07 AM Revision 4de2297d (git): Re-apply f85e8d2a8b keeping characters < 80
-
12:02 AM Revision f156f70b (git): Revert "Fixed misspellings"
- This reverts commit f85e8d2a8b2a37740334db4fd92ef820f05ddbc5.
It violated the limit of width (> 80) and caused the test failure
12/22/2019
-
11:41 PM Revision f85e8d2a (git): Fixed misspellings
- Fixed misspellings reported at [Bug #16437]
-
11:36 PM Revision a4b99f97 (git): Fix typos of previous docs PR
- In #2612 I made two typos (extra ,, and copy-pasted
same line of code instead of showing two different
ones), fixing them. -
11:30 PM Revision c1bd1bf2 (git): Document Module#const_source_location
-
11:21 PM Revision ade6543f (git): Adjust sentence in doc [ci skip]
-
10:33 PM Feature #14912: Introduce pattern matching syntax
- Hi, I was playing with the type/hash patterns (2.7.0-preview3), and I find this confusing and non-intuitive:
while generic hash pattern uses curly brackets e.g.
```in {id: id, name: "Bob"}```
when added type to it, it has to b... -
09:36 PM Revision bb05cdcd (git): [DOC] Improve documentation for Enumerable#tally
-
06:46 PM Revision 7c37f2cb (git): Some fixes in Enumerator::Lazy docs
- * fix list in #flat_map
* fix wrong indentation in #filter_map and #with_index
* other small fixes -
05:11 PM Revision 679bc4f9 (git): [ruby/reline] Use IO#raw to read one byte
- https://github.com/ruby/reline/commit/be17740e82
-
04:10 PM Misc #16444: What is the reason for the warning of IRB?
- A patch to suppress the warning when started as `console`.
```diff
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index 2af872fd03..464b33ae03 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -31,6 +31,8 @@
@TRACER_INI... -
02:03 PM Misc #16444: What is the reason for the warning of IRB?
- I guess we may provide an API to hide or alter the message for rails console and other tools. Pull request is welcome to ruby/irb.
-
11:02 AM Misc #16444: What is the reason for the warning of IRB?
- Thanks for your feedback. OK. I understood that too late to discuss and a message is as expected.
I think it would be good if the message could be configurable, but I will also consider expanding the options on the library side. Th... -
08:07 AM Misc #16444: What is the reason for the warning of IRB?
- I believe that it is too late to discuss "opt-in or opt-out?".
IMO, the quality of the new IRB is not so low. But it highly depends upon environments (OS, terminal, how to use, etc.), so we want people to use the new version, give fe... -
06:12 AM Misc #16444: What is the reason for the warning of IRB?
- Agreed for compatibility - may be better to retain the old behaviour as-is.
I believe it was not a deliberate change but an oversight since the author
of reline here on the issue tracker also mentioned compatibility being
an importa... -
05:39 AM Misc #16444 (Closed): What is the reason for the warning of IRB?
- Ruby 2.7 always shows a warning when starting IRB. Why is this necessary?
Of course, ways to suppress the warning have been suggested.
However, libraries that extend IRB, such as `rails console` and `aruba`, may not receive argumen... - 03:17 PM Revision 3a18e43c (git): * 2019-12-23 [ci skip]
-
03:16 PM Revision 1bf8d5e9 (git): Changed behavior on windows platforms too [ci skip]
- at 61aff0cd189e67fa6f2565639ad0128fa33b88fc [Bug #15267]
-
02:17 PM Revision d339de9d (git): Enhance docs for Module#deprecate_constant
-
02:17 PM Revision 5a0102cb (git): Enhance Range docs
- * Change === docs to mention it uses cover?
* Add different example to === docs to showcase
behavior better
* Change include? docs to mention cover?
and clarify the difference -
02:17 PM Revision 49888431 (git): Actualize Time#inspect docs
-
02:17 PM Revision 5fa9c2ee (git): Actualize Method#inspect docs
-
02:17 PM Revision d78fcfb7 (git): Fix FrozenError#receiver and #initialize docs
-
02:17 PM Revision e568bb56 (git): Update private visibility explanation
-
02:15 PM Revision 03b983d5 (git): Document numbered block parameters
-
02:12 PM Revision 890c834e (git): Enhancements for ENV doc
- 02:01 PM Revision 54be15f3 (git): [Doc] Fix sample in Encoding#names
- 02:01 PM Revision 9654241d (git): [Doc] Fix wrong example in Encoding.aliases
-
01:53 PM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- jschleus (Jens Schleusener) wrote:
> There was now also a check done for Ruby master but since the according tarball isn't embedded into the Fossies standard services a test folder was used:
> ...
Some are not misspells (a part of path... -
10:37 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- There was now also a check done for Ruby master but since the according tarball isn't embedded into the Fossies standard services a test folder was used:
https://fossies.org/linux/test/ruby-master.tar.gz/codespell.html
(https://foss... -
01:49 PM Revision cc87037f (git): Fixed misspellings
- Fixed misspellings reported at [Bug #16437], missed and a new
typo. -
12:38 PM Bug #16331: fails to build with BSD make when any -j option is given (including -j 1)
- Does this log mean the following libraries are stopped by `make` due to the first failure in `cxxanyargs` or in yet another branch?
> ```
> ...
> ``` -
10:02 AM Bug #16331: fails to build with BSD make when any -j option is given (including -j 1)
- I executed following shell script on my FreeBSD test environment and got attached log file.
``` shell
#!/bin/sh
LANG=C
(
echo System Information:
echo --------------------------------------------------------------------... -
10:39 AM Revision 7c33ee5d (git): Move version guard outside to make it clear the method was added in Ruby 2.5
-
06:18 AM Revision d76c8cfe (git): RDoc of Warning.[] and .[]= [Feature #16345] [ci skip]
-
05:45 AM Revision d2ac6d4d (git): Manage deprecation warning by the flag
-
04:55 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- At least as of Ruby 2.6.5, I get a different output from above for at least one of the examples:
```ruby
N = 0
module A
module B
def self.f; N; end
end
N = 1
end
N = 0
A::B.f # => 1
``` -
04:52 AM Revision 58527a79 (git): [ruby/io-console] bump up to 0.5.3
-
02:55 AM Revision ced4c5da (git): add NEWS about cache improvement [ci skip]
-
02:46 AM Revision efd4a11a (git): Support multibyte input
12/21/2019
-
09:29 PM Revision cf59e147 (git): fix a thread test.
- * Use Queue for synchronization.
* Don't use `sleep 0.2` and use `th.join` because created thread
can raise an exception after 0.2 seconds. -
09:09 PM Feature #15973: Let Kernel#lambda always return a lambda
- @matz Is it OK to warn for this in the next Ruby version?
I think it's going to highlight wrong usages (good) and I would expect there are very few usages of `lambda(&existing_proc)`.
The warnings were implemented in https://github... -
08:35 PM Revision fa1bf8ab (git): [ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_word
- https://github.com/ruby/reline/commit/e98ad3b486
-
08:20 PM Revision 644336ee (git): add a NEWS entry for [Feature #16163]
-
06:35 PM Bug #16442 (Closed): Segmentation fault when calling a method with array splat and empty kwargs splat
- Applied in changeset commit:git|75acbd5f0076970d48bc423c2b058adbdb5da9e8.
----------
compile.c: avoid newarraykwsplat for arguments
`foo(*rest, post, **empty_kw)` is compiled like
`foo(*rest + [post, **empty_kw])`, and `**empty_kw` is ... -
06:09 PM Bug #16442: Segmentation fault when calling a method with array splat and empty kwargs splat
- same as: `p(*nil, nil, **{})`
```
(gdb) bt
#0 0x00005555557d6de0 in CALLER_REMOVE_EMPTY_KW_SPLAT (cfp=0x7ffff6bc4fa0, calling=<optimized out>, calling=<optimized out>, ci=0x555555c4e6e0)
at /home/ko1/src/ruby/trunk/vm_insnhelp... -
04:38 PM Bug #16442 (Closed): Segmentation fault when calling a method with array splat and empty kwargs splat
- `a=[1];b(*a, 2, **{})`
~~~
$ ruby -e "a=[1];b(*a, 2, **{})"
-e:1: [BUG] Segmentation fault at 0x0000000000000005
ruby 2.7.0preview3 (2019-11-23 master b563439274) [x86_64-darwin19]
~~~
~~~
$ ./miniruby -e "a=[1];b(*a, 2, **{}... -
06:35 PM Revision 75acbd5f (git): compile.c: avoid newarraykwsplat for arguments
- `foo(*rest, post, **empty_kw)` is compiled like
`foo(*rest + [post, **empty_kw])`, and `**empty_kw` is removed by
"newarraykwsplat" instruction.
However, the method call still has a flag of KW_SPLAT, so "post" is
considered as a keyword ... -
06:27 PM Misc #16443 (Closed): GC.compact is not documented
- See https://docs.ruby-lang.org/en/master/GC.html#method-c-compact
Typically, I'd just submit a documentation PR, but I am not sure I can properly explain what it does and when it should be used. -
05:51 PM Revision 3a29f05b (git): Move stats under a dict
- 05:42 PM Revision 61aff0cd (git): Should return "." for File.extname("file.") also on Windows
- But not changes another cases, such as "file.rb."
[Bug #15267] - 04:58 PM Revision 29ea228e (git): * 2019-12-22 [ci skip]
-
04:57 PM Revision 0835a971 (git): Remove TODO comment
-
04:57 PM Revision 616f1357 (git): [ruby/irb] Make nesting level up for `1.times do`
- Follow up of the previous commit
https://github.com/ruby/irb/commit/ab207353d3 -
04:57 PM Revision a3cc2a2f (git): [ruby/irb] Fix auto-indent for `1.times do`
- Fixes #47
https://github.com/ruby/irb/commit/6b8eca4635 -
04:57 PM Revision ec1de789 (git): [ruby/reline] Preserve the input buffer across cursor_pos
- The old version of cursor_pos discards the input buffer, which made IRB
ignore the input immediately after IRB is invoked.
This change keeps the input before cursor_pos by using ungetc.
https://github.com/ruby/reline/commit/4a8cca331f -
04:57 PM Revision 7fd6077d (git): [ruby/reline] Consider Reline::ANSI.input at prep
- https://github.com/ruby/reline/commit/b111cde3c3
-
04:52 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
- I just inadvertently made a dup of this issue (#16430) and would like to throw my hat in the ring as supporting this change.
Honestly, this literally the first time since I started ruby that I encountered something in the language th... -
04:12 PM Feature #16441: Enumerable#take_while_after
- This is of course only my personal opinion, but I believe that long
names can be somewhat problematic. Now I myself use really very
long method names, but for ruby as a "basic building block" (that
is the core parts), I think the shor... -
02:01 PM Feature #16441: Enumerable#take_while_after
- Flip-flop is the winner!!!
-
01:22 PM Feature #16441 (Rejected): Enumerable#take_while_after
- The method is just like `#take_while`, but also includes the item where condition became true.
Examples of usefulness:
```ruby
str = <<DOC
prologue
<<
1
2
3
>>
epilogue
DOC
```
Imagine we want to take everything starti... -
03:25 PM Bug #16440: Date range inclusion behaviors are inconsistent
- > Does a Date range represent a series of individual days between May 1st and May 31th, like `[2019-05-01 00:00:00, 2019-05-02 00:00:00..... 2019-05-31 00:00:00]` ? Or it represents a continuous time range that starts from May 1st's 00:0...
-
03:05 PM Bug #16440: Date range inclusion behaviors are inconsistent
- To: wishdev (John Higgins)
> (and in fact on my system - the to_time option returns false instead of true).
Sorry that I accidentally tested my code in a Rails console instead of pure irb. The result for that case should be `false`... -
03:51 AM Bug #16440: Date range inclusion behaviors are inconsistent
- I have no strong opinion either way but I can understand the
assumption by st0012 to some extent. For example, I personally
always seem to think more about .include? than .cover?, largely
because I simply use .include? a lot more. I ... -
02:09 PM Feature #16420: Warning[:experimental]=false
- Changing the flag at runtime causes problems, mainly editors' syntax highlighting, `ruby -c` etc.
How about a new "magic comment" pragma?
```ruby
# -*- experimental-syntax: true -*-
```
or, more strictly
```ruby
# -*- experiment... -
02:09 PM Bug #15620 (Closed): Block argument usage affects lambda semantic
- Applied in changeset commit:git|85a337f986fe6da99c7f8358f790f17b122b3903.
----------
Kernel#lambda: return forwarded block as non-lambda proc
Before this commit, Kernel#lambda can't tell the difference between a
directly passed literal... -
02:08 PM Revision 85a337f9 (git): Kernel#lambda: return forwarded block as non-lambda proc
- Before this commit, Kernel#lambda can't tell the difference between a
directly passed literal block and one passed with an ampersand.
A block passed with an ampersand is semantically speaking already a
non-lambda proc. When Kernel#lambd... -
02:08 PM Revision ddb6023d (git): Add spec for capturing Kernel#lambda with Kernel#method
-
02:08 PM Revision e0b336c8 (git): Add specs for calling into Kernel#lambda with super
-
01:45 PM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
- mame (Yusuke Endoh) wrote:
> If you want to request a feature, please research the old tickets. I've found #6810.
Ok, thanks. I tried searching before submitting this, but I apparently didn't use the right terms. -
03:52 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
- If you want to request a feature, please research the old tickets. I've found #6810.
-
02:27 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
- Fixed small bug in initial description.
-
02:25 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
- sawa (Tsuyoshi Sawada) wrote:
> What is the purpose of writing the code in three different files? It only looks to me that it is making things more complicated.
I was trying to offer a minimal (non)-working example. The benefit arise... -
02:23 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
- mame (Yusuke Endoh) wrote:
> It is by design. See "Scope" section of https://github.com/ruby/ruby/blob/master/doc/syntax/modules_and_classes.rdoc
Ok, I see that, but is this a good design? I would argue not and am therefore changing... -
01:06 AM Revision ea405ee8 (git): test/ruby/test_pattern_matching.rb: suppress "unused variable" warning
12/20/2019
-
06:47 PM Revision 9eded024 (git): Add Array#minmax, Range#minmax, and Proc#ruby2_keywords to NEWS
-
05:55 PM Bug #16440: Date range inclusion behaviors are inconsistent
- `Range#include?` works as `#to_a.include?`. E.g. this:
```ruby
(may1..may31).include? noon_of_may3
# => false
```
Is equivalent to this:
```ruby
dates = (may1..may31).to_a # => each Date between May 1 and 31
dates.include? noon_... -
05:28 PM Bug #16440: Date range inclusion behaviors are inconsistent
- Nothing strange with your example - but that doesn't mean it totally works right.
First your example is a DATE range - so adding this line
`(may1..may31).each { |x| puts x }`
That shows that your set is each day within the range... -
04:22 PM Bug #16440 (Rejected): Date range inclusion behaviors are inconsistent
- It's weird that a Date range can include Time and DateTime objects that were converted from a Date object. But it can't include a newly generated DateTime object. For example:
```
may1 = Date.parse("2019-05-01")
may3 = Date.parse("2... -
03:07 PM Feature #16420 (Closed): Warning[:experimental]=false
- Applied in changeset commit:git|07e595fdbd75ed44473073cdf8cd758572d11709.
----------
Added `experimental` warning category
[Feature #16420] - 03:07 PM Revision 63ce7792 (git): * 2019-12-21 [ci skip]
-
02:51 PM Revision 484c1be8 (git): Added `-W:experimental` command line option
- [Feature #16420]
-
02:48 PM Revision 07e595fd (git): Added `experimental` warning category
- [Feature #16420]
-
02:43 PM Revision dd7f0c87 (git): Hoisted out new_case3
-
02:33 PM Bug #8841: Module#included_modules and prepended modules
- > Module#included is not called when the module is prepended
I think that's fine, because it calls `Module#prepended`.
> ...
That yes:
```ruby
class Base
end
module A
end
module B
end
Base.prepend(A)
Base.include(B... -
12:56 AM Bug #8841: Module#included_modules and prepended modules
- Summary:
* `Module#include?` and `Module#included_modules` regard prepended modules as `included` (not well documented)
* `Module#included` is not called when the module is prepended
Is this right? -
02:19 PM Feature #16345 (Closed): Don't emit deprecation warnings by default.
- Applied in changeset commit:git|a84ad24386d27269b90794146c2a351c1d79471b.
----------
Added -W: command line option
To manage `Warning[category]` flags. Only `-W:deprecated` and
`-W:no-deprecated` are available now. [Feature #16345] -
02:10 PM Feature #15915 (Closed): `@1` cannot be achieved in meta-programming
- I think this issue resolved by changing from `@1` to `_1`.
-
02:05 PM Revision a84ad243 (git): Added -W: command line option
- To manage `Warning[category]` flags. Only `-W:deprecated` and
`-W:no-deprecated` are available now. [Feature #16345] -
01:58 PM Revision 6876aa38 (git): Added `FEATURE_SET_RESTORE` macro
-
01:02 PM Bug #16439 (Closed): Resolv::DNS: timeouts if multiple IPv6 name servers are given and address contains leading zero
- Hi,
Resolv::DNS does not return any results under those conditions:
- there are at least two name servers (in /etc/resolv.conf).
- The name servers have IPv6 addresses containing leading zeros.
Example resolv.conf:
nameserver 20... -
12:37 PM Revision 1fea3a76 (git): NEWS: Update the explanation of pattern matching
- Add an example of "<expr> in <pattern>", an example of
NoMatchingPatternError, and mention that the slides are slightly
obsolete. -
10:41 AM Revision f7aee584 (git): vm_args.c: rephrase the warning message of keyword argument separation
- (old)
test.rb:4: warning: The last argument is used as the keyword parameter
test.rb:1: warning: for `foo' defined here; maybe ** should be added to the call?
(new)
test.rb:4: warning: The last argument is used as keyword parameters; ma... -
08:39 AM Bug #16406: `(lambda_proc << normal_proc).lambda?` should return false
- It was discussed and Matz approved to fix it after Ruby 2.7 release.
-
08:12 AM Feature #10463 (Rejected): :~@ and :!@ are not parsed correctly
- I don't see the practical benefit of this proposal. Besides that incompatibility is a clear drawback.
Matz.
-
07:50 AM Feature #14183: "Real" keyword argument
- @jeremyevans0 It's OK to merge the patch to the master after the 2.7 release, to see how big the influence is.
Matz.
-
07:31 AM Feature #16274: Transform hash keys by a hash
- I understand. Accepted.
FYI, we do not accept a similar change to `transform_values`.
Matz.
-
07:28 AM Feature #16274: Transform hash keys by a hash
- Which does `hash1.transform_keys(hash2)` iterate over, hash1's keys or hash2's keys?
-
07:15 AM Feature #16264 (Closed): Real "callable instance method" object.
- We have suspended the idea of `.:` operator, so this proposal is no longer meaningful. We may revisit the method reference operator in the future. We have to remember this PR as well. FYI, we have numbered parameters now, so the proposed...
-
06:09 AM Revision 2b2030f2 (git): Refined the warning message for $, and $;
- [Bug #16438]
-
06:00 AM Bug #16438: Check warning messages for Ruby 2.7
- At developer's meeting, the followings are proposed. They will be merged into Ruby 2.7 RC2.
```ruby
def foo(**kw)
end
foo({})
# current:
#=> test.rb:4: warning: The last argument is used as the keyword parameter
# test.rb:... -
05:38 AM Bug #16438 (Closed): Check warning messages for Ruby 2.7
- Applied in changeset commit:git|a8bddb3a189545a2bef8ee7cffdb328d8de7974c.
----------
Refined the warning message for numbered-parameter like variables
[Bug #16438] -
02:56 AM Bug #16438: Check warning messages for Ruby 2.7
- > pls check current master.
Sorry, became warning. -
02:50 AM Bug #16438: Check warning messages for Ruby 2.7
- ```ruby
$SAFE = 1
#=> t.rb:1: warning: $SAFE will become a normal global variable in Ruby 3.0
```
> # no warning
pls check current master. -
02:00 AM Bug #16438: Check warning messages for Ruby 2.7
- >
```ruby
def _1; end
#=> test.rb:1: warning: `_1' is used as numbered parameter
```
~~Warn by parameter name instead of method name.~~
Became warning.
```ruby
# warning: `_1' is used as numbered parameter
def _1; end
#... -
01:50 AM Bug #16438 (Closed): Check warning messages for Ruby 2.7
- Please check Ruby 2.7 new introduced warning messages.
* deprecation warning
```ruby
def foo(**kw)
end
foo({}) #=> test.rb:4: warning: The last argument is used as the keyword parameter
# test.rb:1: warning: for `fo... -
05:58 AM Revision 7a94225e (git): Refined the warning message for numbered-parameter like variables
- [Bug #16438]
-
05:34 AM Revision a8bddb3a (git): Refined the warning message for numbered-parameter like variables
- [Bug #16438]
-
05:18 AM Feature #16419 (Closed): FrozenError.new ignores receiver:
- Applied in changeset commit:git|435a4ca2a38f3be1f5d2db0f71487a52c8285e9c.
----------
Makes the receiver to FrozenError.new a keyword parameter
[Feature #16419] -
05:18 AM Revision 435a4ca2 (git): Makes the receiver to FrozenError.new a keyword parameter
- [Feature #16419]
-
05:10 AM Revision 216b62aa (git): use UTC to use previous day in midnight
-
04:39 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- You can see a list of the upstream with https://github.com/ruby/ruby/blob/master/doc/maintainers.rdoc#default-gems-maintainers
-
03:33 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- Fixed for ruby core, standard libraries, default gems and rubyspec.
Could you report other upstreams (rubygems, bundler, minitest, rake, test-unit, and unicode.org)?
BTW, I'm unsure what word is appropriate to the variable for the โr... -
12:36 AM Bug #16437 (Closed): Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- Applied in changeset commit:git|db166290088fb7d39d01f68b9860253893d4f1a7.
----------
Fixed misspellings
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec. -
03:19 AM Revision e68999c8 (git): Fixed misspellings
- Fixed misspellings reported at [Bug #16437], for default gems.
-
03:18 AM Misc #16436: hash missing #last method, make it not so consistent (it has #first)
sawa (Tsuyoshi Sawada) wrote:
> What is this issue? Is it just a note to everyone, or are you claiming this to be a bug, or is it a feature request?
Sorry, this issue not a bug, i knew Hash#first come from Enumerable, the reason i ...-
12:37 AM Misc #16436: hash missing #last method, make it not so consistent (it has #first)
- sawa wrote:
> What is this issue? Is it just a note to everyone, or are you
> ...
I think it could only possibly be a feature request since it
is not a bug. But you are uite right that it is difficult to
infer from the issue descri... -
02:50 AM Revision e672494c (git): Merge RubyGems 3.1.2
-
02:22 AM Misc #16393: DevelopersMeeting20191220Japan
- * [Feature #16432] Using `_1` inside `binding.irb` will cause unintended behavior(osyo)
* Calling `binding.irb` in a block that uses `_1` and using `_1` in `irb` will cause unintended behavior.
* Should it be a runtime error?
-
02:15 AM Misc #16393: DevelopersMeeting20191220Japan
- I'd like to discuss about type signature integration for Ruby3. I plan to discuss in this meeting but not trying to make some decisions today. Asking for feedbacks to make a concrete proposal for the next meeting or else.
A doc is av... -
01:39 AM Misc #16393: DevelopersMeeting20191220Japan
- * [Bug #11014] String#partition doesn't return correct result on zero-width match (mame)
* I'd like to confirm if the current behavior is inteneded. -
01:29 AM Misc #16393: DevelopersMeeting20191220Japan
- [Bug #10929] NilClass#to_proc and & don't mix? (mame)
* I think it is not worth adding. -
01:22 AM Misc #16393: DevelopersMeeting20191220Japan
- * [Bug #10388] Operator precedence problem in multiple assignment (massign) (mame)
* "`a, b = c = 1, 2` is currently taken as `a, b = (c = 1), 2`; I'd expect it to be taken as `a, b = (c = 1, 2)`." Jeremy gave a try to implement but ... -
01:06 AM Misc #16393: DevelopersMeeting20191220Japan
- * [Bug #9815] attr_reader doesn't warn on a uninitialized instance variable (mame)
* A reader method defined by `attr_reader :foo` is not warned as "instance variable @foo not initialized". Is it intentional? -
01:02 AM Misc #16393: DevelopersMeeting20191220Japan
- * [Bug #8841] Module#included_modules and prepended modules (mame)
* `Module#include?` and `Module#included_modules` regard prepended modules as included (not well documented); `Module#included` is not called when the module is prepen... -
01:19 AM Feature #16433: Proposal: Output warning if `_1` is used in parameter name
- Thanks!
-
01:05 AM Feature #16432: Using `_1` inside `binding.irb` will cause unintended behavior
- Thanks comments :)
> This is because the eval code is executed at the current context exactly.
> ...
Yes, and if `_1` is nested, a syntax error will occur.
```ruby
proc {
_1
# error: numbered parameter is already used in
... -
01:03 AM Feature #8026: Need Module#prepended_modules
- Now I'm unsure if the feature is worth adding. It was accepted six years ago, but not implemented yet. I've never heard any actual trouble due to the lack.
-
12:51 AM Feature #8026: Need Module#prepended_modules
- matz (Yukihiro Matsumoto) wrote:
> But according to the slide, the optional `include_ancestors` is true, but it does mean cherry-picking prepended modules from ancestor list. I cannot think of any use case of this behavior.
I guess ... -
12:40 AM Revision fac60be3 (git): shell.rb is no longer bundled [ci skip]
-
12:32 AM Revision db166290 (git): Fixed misspellings
- Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
12/19/2019
-
11:28 PM Bug #8507 (Rejected): Keyword splat does not convert arg to Hash
- As far as I understand, no one showed any actual use case that justifies adding `nil.to_h #=> {}`.
I agree with matz, it would be better to remove `nil.to_a #=> []` instead of adding `nil.to_h #=> {}` for this issue. I don't think it... -
11:18 PM Revision 2898367b (git): Warn also numbered parameter like methods
-
10:24 PM Bug #16437 (Feedback): Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- Is there anyone who is interested in this? I'd be happy if anyone could look through the result and create a patch. Contribution is welcome.
@jschleus Thanks. If possible, could you apply the checker to master? In the tarballs, th... -
05:46 PM Bug #16437 (Closed): Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
- The FOSS server fossies.org offers a new feature "Source code misspelling reports":
https://fossies.org/features.html#codespell
Although such reports are normally only generated on request, as Fossies administrator I have just cre... -
07:46 PM Bug #16288: Segmentation fault with finalizers, threads
```
--- a/thread.c
+++ b/thread.c
@@ -682,7 +682,7 @@ thread_do_start(rb_thread_t *th)
else {
args_ptr = RARRAY_CONST_PTR(args);
}
-
+ rb_funcallv(NULL, idInspect, 0, 0);
th->valu...-
04:40 PM Revision 3816cd94 (git): Add `URI#open` to warning message
-
04:37 PM Feature #16433 (Closed): Proposal: Output warning if `_1` is used in parameter name
- Applied in changeset commit:git|27ddb6e99848c397a415b785315896ab50308076.
----------
Warn also numbered parameter like parameters
[Feature #16433] -
01:27 PM Feature #16433 (Closed): Proposal: Output warning if `_1` is used in parameter name
- Currently, output warning if local variable name is `_1`.
```ruby
# warning: `_1' is used as numbered parameter
_1 = 42
```
However, if parameter name is `_1`, no output warning is issued.
```ruby
# Actual behavior
# no war... - 04:37 PM Revision 844f1fad (git): * 2019-12-20 [ci skip]
-
04:37 PM Misc #16436: hash missing #last method, make it not so consistent (it has #first)
- What is this issue? Is it just a note to everyone, or are you claiming this to be a bug, or is it a feature request?
-
04:27 PM Misc #16436: hash missing #last method, make it not so consistent (it has #first)
- `Hash` doesn't have `#first` either :)
```ruby
Hash.instance_method(:first)
# => #<UnboundMethod: Hash(Enumerable)#first(*)>
# ^^^^^^^^^^
```
The `first` method existence is just because of hash being a... -
04:21 PM Misc #16436 (Open): hash missing #last method, make it not so consistent (it has #first)
- ``` ruby
(pry):main(0)> h = {x:1, y:2, z:3}
{
:x => 1,
:y => 2,
:z => 3
}
(pry):main(0)> h.first
[
:x,
1
]
(pry):main(0)> h.first.first
:x
(pry):main(0)> h.first.last
1
```
last method not exist.
... -
04:25 PM Revision 27ddb6e9 (git): Warn also numbered parameter like parameters
- [Feature #16433]
-
04:01 PM Feature #16435 (Rejected): Array#to_proc
- The idea is obvious, but I couldn't find it discussed anywhere on tracker before. Please point me at the previous discussions if any.
```ruby
class Array
def to_proc
proc { |v| v.dig(*self) }
end
end
# Or, alternatively,... -
02:35 PM Bug #16434 (Third Party's Issue): rails c crashed
- Thank you for the report.
Maybe https://github.com/brianmario/mysql2/issues/1075 seems related. Anyway, the issue seems to occur in mysql2 library. Cloud you ask them first? -
02:31 PM Bug #16434: rails c crashed
- Although it is unclear without the backtrace by ruby itself, it seems caused by a wrong argument to `Mysql2::Client#connect`.
https://github.com/brianmario/mysql2/blob/785969fbceadd96d495ec9fecc67efee03d0056c/ext/mysql2/client.c#L438
T... -
02:19 PM Bug #16434 (Third Party's Issue): rails c crashed
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file u...-
02:15 PM Feature #16432: Using `_1` inside `binding.irb` will cause unintended behavior
- It is same as the following code without irb.
```ruby
proc {
p eval("(1..10).map{_1+_1}") #=> [84, 84, 84, 84, 84, 84, 84, 84, 84, 84]
_1
}.call(42)
```
This is because the `eval` code is executed at the current context ex... -
01:26 PM Feature #16432 (Closed): Using `_1` inside `binding.irb` will cause unintended behavior
- ## Summary
Calling `binding.irb` in a block that uses `_1` and using `_1` in `irb` will cause unintended behavior.
## Steps to reproduce
1. Use `_1` in block
2. Use `binding.irb` in block
3. Use block with `_1` in `binding.i... -
12:13 PM Feature #15306 (Closed): Generate prelude.c using miniruby
-
12:13 PM Feature #15306: Generate prelude.c using miniruby
- prelude.c is not anymore [1], so I'm closing this specific ticket.
However, I'll be happy if the discussion is remembered for future.
[1]: https://github.com/ruby/ruby/commit/9c2807b2df14984e3c81d72a381d9a4d288b3fbe -
09:44 AM Bug #16427: Revert did_you_mean promotion to default gem.
- vo.x (Vit Ondruch) wrote:
> Nevertheless it does not address the "disk consumption" concern. I also previously forgot to mention possible increased network bandwidth required to build and distribute the cloud image.
By how much does ... -
09:31 AM Feature #16260 (Open): Symbol#to_proc behaves like lambda, but doesn't aknowledge it
- I agree with @zverok here, a method behaves as a lambda, and doesn't unpack arguments (except a few special methods that specifically do that).
@nobu I think we should merge your PR. Could you show an example of a Symbol#to_proc Proc ... -
09:23 AM Feature #16260: Symbol#to_proc behaves like lambda, but doesn't aknowledge it
- > As a symbol proc cannot know the method to be invoked, so now I think it cannot be lambda.
> ...
@nobu, I am not sure I get it right. Can you please show when it is not true?..
For as far as I can understand, there are two distinctio... -
03:26 AM Feature #16260: Symbol#to_proc behaves like lambda, but doesn't aknowledge it
- Just curious: How do you want to use the result of `lambda?`? Even if it returns true, we may pass an arbitrary number of arguments: `lambda {|*a| ... }`. I think that `lambda?` is useless except debugging.
-
03:15 AM Feature #16260 (Rejected): Symbol#to_proc behaves like lambda, but doesn't aknowledge it
- As a symbol proc cannot know the method to be invoked, so now I think it cannot be lambda.
In the case `:+`, it looks like a lambda, but it is not always true. -
08:30 AM Feature #15982: Remove y2racc and racc2y
- I will try to remove it at racc-1.5 in the next year.
-
06:47 AM Feature #16039: Array#contains? to check if one array contains another array
- JustJosh (Joshua Stowers) wrote:
> @sawa - I 100% agree with what you are saying. I did a poor job expressing my concerns.
> ...
I understand your point. If that is a concern, then we can simply not allow the abbreviated form for `Arra... -
04:52 AM Feature #16039: Array#contains? to check if one array contains another array
- @sawa - I 100% agree with what you are saying. I did a poor job expressing my concerns.
I am nervous that singling out array arguments in the abbreviated form could result in confusion and misuse. This is not a problem for `Range#cove... -
12:28 AM Feature #16039: Array#contains? to check if one array contains another array
- JustJosh (Joshua Stowers) wrote:
> I do not think we should use the name `cover?` because the types of arguments accepted by `Range#cover?` would be incompatible with this use case.
> ...
When the argument is an array, it should be und... -
02:04 AM Misc #16393: DevelopersMeeting20191220Japan
- @alanwu
Please add `(alanwu)` in the next time. My agenda generator overlooks your post. -
12:52 AM Revision c6c67254 (git): Added rb_warn_deprecated
-
12:52 AM Revision 7aa8a786 (git): Manage deprecation warnings about keyword argument
-
12:52 AM Revision 9bf9de3d (git): Made the warning for deprecated constants follow the category flag
-
12:52 AM Revision 76035e5b (git): Adjusted the format
12/18/2019
-
07:29 PM Bug #16427: Revert did_you_mean promotion to default gem.
- I think the issue is that the filing is about reverting the promotion to
default gems, which is different to the use case of making it (or what a
ruby user wants to use) more flexible.
The ideal scenario would be to have a fully cus... -
12:49 PM Bug #16427: Revert did_you_mean promotion to default gem.
- rbjl (Jan Lelis) wrote:
> Then, a good configuration for the cloud could be this?
> ...
It should probably be `$ RUBYOPT=--disable-did_you_mean ruby -e "p defined? DidYouMean" # => nil` because env variables are typically easier to con... -
12:36 PM Bug #16427: Revert did_you_mean promotion to default gem.
- > But all these applications have to pay for longer startup time, higher memory and disk consumption. All these are not negligible in the age of cloud. I am pretty sure there is also performance hit during exception handling.
Then, a ... -
11:09 AM Bug #16427: Revert did_you_mean promotion to default gem.
- mame (Yusuke Endoh) wrote:
> But it's just like saying that "ruby cannot start when I remove lib/rubygems.rb".
Speaking of which is problematic by itself. But the difference is that 99% of Ruby applications needs RubyGems for their r... -
04:27 AM Bug #16427 (Rejected): Revert did_you_mean promotion to default gem.
- It does not make sense at all.
In Ruby 2.6, did_you_mean was a bundled gem, which may be uninstalled by a user. As it is not always able to require, gem_prelude.rb did `require "did_you_mean" rescue LoadError`.
In Ruby 2.7, did_you_... -
07:19 PM Feature #16431: Optionally load did_you_mean (and RubyGems)
- While I agree on the situation at hand (being able to use did you mean
or disable it at the discretion of the user), I think there was a wrong
filing in the linked issue in that the suggestion of the linked in
thread was "Revert did_y... -
02:20 PM Feature #16431 (Closed): Optionally load did_you_mean (and RubyGems)
- I just have opened PR [1], which allows Ruby to run when did_you_mean is not available. As I previously discussed in #16427, there are cases when speed, memory, disk or network bandwidth is a concern and did_you_mean is not useful for ru...
-
07:11 PM Feature #16039: Array#contains? to check if one array contains another array
- # *#cover?*
I do not think we should use the name `cover?` because the types of arguments accepted by `Range#cover?` would be incompatible with this use case.
For example:
```ruby
(1..3).cover?(2) # true
```
But if Array's implem... - 05:08 PM Revision e732e007 (git): * 2019-12-19 [ci skip]
-
05:08 PM Revision 1e88f6eb (git): Refactor free page insertion
- I am trying to fix this error:
http://ci.rvm.jp/results/trunk-gc_compact@silicon-docker/2491596
Somehow we have a page in the `free_pages` list that is full. This
commit refactors the code so that any time we add a page to the
`free... -
03:48 PM Bug #14755 (Feedback): Aborted (core dumped)
- Sorry, I don't think we can do anything for this report.
Did you manually build ruby and install it to /usr/local? If so, I'm unsure why chromebrew invokes it.
I presume you are using a ruby package from Linux distribution or chrome... -
03:38 PM Bug #15551 (Rejected): The behavior of FIX2INT and FIX2UINT differs by platform
- It is by design. doc/extension.rdoc says:
```
T_FIXNUM can be converted to a C integer by using the
FIX2INT() macro or FIX2LONG(). Though you have to check that the
data is really FIXNUM before using them, they are faster.
```
... -
02:53 PM Bug #12015 (Closed): Improving code coverage visibility
- Closing as it is not a bug.
Now you can see unified coverage reports for Ruby's C and Ruby code in https://rubyci.org/coverage. It is measured under GitHub Actions: https://github.com/ruby/actions/blob/master/.github/workflows/covera... -
02:51 PM Bug #16410: Spec failure - "File.utime allows Time instances in the far future to set mtime and atime"
- Could you check the path of `@file1` in that file, and the filesystem of that volume?
-
02:44 PM Bug #16410: Spec failure - "File.utime allows Time instances in the far future to set mtime and atime"
- BTW preciously, I was testing against 053f78e139 where the bug had not been present yet.
-
02:42 PM Bug #16410: Spec failure - "File.utime allows Time instances in the far future to set mtime and atime"
- ~~~
$ cat /etc/os-release
NAME=Fedora
VERSION="32 (Rawhide)"
ID=fedora
VERSION_ID=32
VERSION_CODENAME=""
PLATFORM_ID="platform:f32"
PRETTY_NAME="Fedora 32 (Rawhide)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fe... -
02:30 PM Bug #9312: Build the ruby executable in bin/
- Note that `make runnable` makes links in `bin/`, which might be able to run if configured with `--enable-load-relative` option.
-
12:28 PM Bug #9312 (Rejected): Build the ruby executable in bin/
- Closing as it is not a bug.
A ruby binary that is built but not installed is half-baked. It is very hacky to run it without installation; it requires setting library paths, GEM_HOME, etc and etc. In the build process, the half-baked... -
02:06 PM Bug #9693 (Rejected): \x{} in regexp
- `"\x{00000020}"` ใๆธใใชใใใใชใฎใงใใจใใใใ็พ่กใฎๆๅใฏๆๅณ็ใงใใใจ่ใใพใใ้ใซใ`/\x{00000020}/` ใ่จฑใใชใ `"\x{00000020}"` ใ่จฑใใญใฐใใฃใฆใใจใซใชใใฎใงใฏใชใใงใใใใใใใใใไปๆงๅคๆดใซๆ่ฆใฏใชใใงใใใBug ใงใฏใชใใใใจใใใใจใง้ใใพใใ
`ONIG_SYN_OP_ESC_X_BRACE_HEX8` ใฏๅฎ่ฃ ่ฉณ็ดฐใชใใงใ็ดใใใใฃใใๆ็ฌใใใฎ่จใใจใใใซใใใใใใใใฏupstreamใ็ด... -
02:03 PM Bug #15177: ่ตทๅใใๅพใซTZใๅคๆดใใใจTime#utcใใใใใใจใใใ
- minirubyใ ใจไธ่ดใใใฎใฏใrubygemsใใญใผใใใฆใใชใใใใฎใใใงใใ
```
$ TZ=Asia/Tokyo ./bin/ruby --disable=gems -ve "ENV['TZ']='right/Asia/Tokyo';t=Time.at(2<<30);p t;p t.utc"
ruby 2.7.0dev (2019-12-18T05:53:19Z master efbc0d499c) [x86_64-linux]
2038-01-... -
08:34 AM Bug #15177: ่ตทๅใใๅพใซTZใๅคๆดใใใจTime#utcใใใใใใจใใใ
- @naruse ใใไฝใใฉใFeedbackใชใใงใใ๏ผใใใพใงใฎใใใจใใ ใจ @znz ใฏ่ฆๆฑใใใฆใใๆ ๅ ฑใๆขใซใใใชใ็ญใใฆใใใจใใ่ชญใใพใใใใ
-
01:41 PM Bug #16159: rubyspec about time fails in Asia/Kuala_Lumpur timezone
- ruby_2_6 r67836 merged revision(s) d6a2bce64a7fa1099e507e1d36b5f1533f42f60f,c687be4bc01c9ce52ea990945d9304d6fe59fe9b.
-
01:41 PM Revision 650c45dc (git): merge revision(s) d6a2bce64a7fa1099e507e1d36b5f1533f42f60f,c687be4bc01c9ce52ea990945d9304d6fe59fe9b: [Backport #16159]
- time.c (find_time_t): fix round-to-zero bug
`find_time_t` did not work correctly for year older than the Epoch
because it used C's integer division (which rounds negative to zero).
For example, `TIme.new(1933)` ... -
10:26 AM Bug #9291 (Rejected): array splatting a nil works, but hash splatting a nil does not
- Closing as it is by design. If you want the change, please open a feature request ticket with a use case.
-
08:10 AM Bug #16426 (Third Party's Issue): error generating scaffold
- Following log indicates that the SEGV happens inside of ffi.
> -- Control frame information -----------------------------------------------
> ...
and
> 759d3cd000-759d3fa000 r-xp 00000000 00:26 266588 /home... -
06:50 AM Feature #16428: Add Array#uniq?, Enumerable#uniq?
- Following a suggestion of `Enumerable#uniq?`, I also added `Enumerable#uniq?` to my patch.
`Array#uniq?` is left because it is faster than `Enumerable#uniq?`. -
05:02 AM Feature #16428: Add Array#uniq?, Enumerable#uniq?
- I seem to member that many years ago, I made the same proposal, and Nobu created a patch, but unfortunately, I didn't find any traces anymore on this tracker or in my mail.
Anyway, I support this proposal. It's definitely an useful fu... -
05:53 AM Revision efbc0d49 (git): Merge bundler-2.1.1 from bundler/bundler
-
05:38 AM Bug #16384: Cannot cross-compile 2.7: undefined method `each_builtin' for RubyVM:Class (NoMethodError)
- I confirmed that the problem was fixed in cf948a3d3f and 2.7.0-rc1. Thank you for the fix!
-
04:49 AM Bug #16384 (Closed): Cannot cross-compile 2.7: undefined method `each_builtin' for RubyVM:Class (NoMethodError)
- could you try on current master? It was fixed.
40026a408d -
05:14 AM Revision fa7fa5c8 (git): delete rb_vm_call()
- Nobody uses it any longer.
-
05:14 AM Revision dcb603bb (git): describe mc_miss_reuse_call [ci skip]
-
04:35 AM Revision fcd8bafd (git): Use a temporary file for chown test
- Errno::EROFS may occur when the source tree is placed in a
read-only filesystem. -
04:30 AM Revision c147eeff (git): [ruby/io-console] Skip Interrupt test on Linux
- Hangs up only in ruby/ruby on Travis-CI.
https://github.com/ruby/io-console/commit/de39aa6dd6 -
03:52 AM Revision f054f11a (git): per-method serial number
- Methods and their definitions can be allocated/deallocated on-the-fly.
One pathological situation is when a method is deallocated then another
one is allocated immediately after that. Address of those old/new method
entries/definitions ... -
03:07 AM Feature #14912: Introduce pattern matching syntax
- How long is the current pattern matching expected to stay experimental before becoming stabilized? (And thanks for the work so far on it!)
-
01:33 AM Revision 77e3078e (git): [ruby/io-console] Set raw mode strictly same as cfmakeraw
- * Default VMIN and VTIME to minimum input.
* Disable parity check bits explicitly.
* Disable all bits for flow control on input.
Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
https://github.com/ruby/io-console/commit/5ce201a686 -
01:20 AM Feature #16430 (Rejected): Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
- It is by design. See "Scope" section of https://github.com/ruby/ruby/blob/master/doc/syntax/modules_and_classes.rdoc
-
12:08 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
- What is the purpose of writing the code in three different files? It only looks to me that it is making things more complicated.
A::B.foo and A::C.foo are undefined, and return a NoMethodError, as expected. If you meant A::B#foo and A... -
12:11 AM Feature #16419: FrozenError.new ignores receiver:
- I added this to https://bugs.ruby-lang.org/issues/16393
-
12:07 AM Misc #16393: DevelopersMeeting20191220Japan
- * [Feature #16419] FrozenError.new ignores receiver: (znz)
* It seems that no one have strong opinion. So I want matz to decide.
* [Feature #16420] Warning[:experimental]=false (znz)
* I heard many warnings may make users trying p...