Project

General

Profile

Activity

From 05/28/2019 to 06/03/2019

06/03/2019

11:35 PM Revision 9a07915a (git): Add aliases for commands for changing text macro
aycabta (aycabta .)
11:33 PM Revision d950cade (git): azure-pipelines.yml: Upgrade Ruby for UseRubyVersion
to fix
https://dev.azure.com/rubylang/ruby/_build/results?buildId=1162&view=logs
k0kubun (Takashi Kokubun)
10:23 PM Revision 4b7213a8 (git): Implement transpose-words
aycabta (aycabta .)
10:15 PM Revision c9b74f9f (git): Pin keys in "compare by identity" hashes
Hashes that compare by identity care about the location of the object in
memory. Since they care about the memory location, we can't let them
move.
tenderlovemaking (Aaron Patterson)
08:38 PM Revision 790a1b17 (git): object id is stable now for all objects, so we can let hash keys move
tenderlovemaking (Aaron Patterson)
08:38 PM Revision 2de3d928 (git): allow objects in imemo envs to move
tenderlovemaking (Aaron Patterson)
08:38 PM Revision 4eb1c236 (git): Unpin objects that `proc` references
This commit adds compaction support to method and proc objects. It just
unpins references and implements the "compact" callback and updates
references.
tenderlovemaking (Aaron Patterson)
06:52 PM Revision ca22cccc (git): get rid of a warning of VC++
U.Nakamura
06:43 PM Feature #15896: Symbol#+
I agree with benoit and jeremy, also in regards to the use case description; even speed/cache considerations aside, matz
possibly may consider the proposal to not fit into/to class Symbol by default. It is actually already awesome that ...
shevegen (Robert A. Heiler)
05:34 PM Feature #15896: Symbol#+
I am against adding this to core. Symbols represent identifiers, not data/text. Strings should be used for data/text. I don't think we should add methods to Symbol that further blur the line between String and Symbol.
I would rather ...
jeremyevans0 (Jeremy Evans)
05:26 PM Feature #15896: Symbol#+
FWIW, there is no need for a cache, since Symbols are interned (and an explicit cache would leak memory).
I think Symbols are generally different than Strings, so #+ feels a bit out of place for me here.
Can you show a realistic use ...
Eregon (Benoit Daloze)
04:47 PM Feature #15896 (Rejected): Symbol#+
I've made this today
``` ruby
class Symbol
@@cache_add = Hash.new {|h1,k1| h1[k1] = Hash.new {|h2,k2| h2[k2] = :"#{k1}#{k2}"}}
def +(s) @@cache_add[self][s] end
end
:abc + :def
# => :abcdef
```
I thought it was so awesome ...
zeus (Zeus 81)
05:55 PM Bug #15886: return in rescue block breaks Timeout.timeout
jeremyevans0 (Jeremy Evans) wrote:
> However, I think it makes sense to expand the Timeout.timeout documentation to mention that you should not use it with blocks that you do not trust, with examples of things that can go wrong (such as...
jeremyevans0 (Jeremy Evans)
03:47 PM Bug #15886: return in rescue block breaks Timeout.timeout
moio (Silvio Moioli) wrote:
> jeremyevans0 (Jeremy Evans) wrote:
> ...
The documentation is technically accurate, so I would not classify this as a documentation bug. The exception is raised, but the code swallows it.
However, I thi...
jeremyevans0 (Jeremy Evans)
06:40 AM Bug #15886: return in rescue block breaks Timeout.timeout
jeremyevans0 (Jeremy Evans) wrote:
> moio (Silvio Moioli) wrote:
> ...
I understand your reasoning - but in this case I would suggest to clarify the method documentation to be more explicit about the limits of what Ruby guarantees here...
moio (Silvio Moioli)
04:52 PM Bug #15895 (Closed): String#gsub and String#sub should return original string if no substitution(s) have been made
ashmaroli (Ashwin Maroli)
04:10 PM Bug #15895: String#gsub and String#sub should return original string if no substitution(s) have been made
Thank you for pointing me to `CGI.escape_html`. I was not aware of it being faster than the `gsub` route. Moreover, you're right about the `gsub` usage not being a bottleneck in my codebase.
It simply resulted in numerous string alloc...
ashmaroli (Ashwin Maroli)
10:19 AM Bug #15895 (Feedback): String#gsub and String#sub should return original string if no substitution(s) have been made
I can understand why you want it, but that would be a breaking change for existing code which assumes that `gsub` always creates a new String instance and performs a destructive operation on the `gsub`'s return value. In that code the or... k0kubun (Takashi Kokubun)
09:18 AM Bug #15895 (Closed): String#gsub and String#sub should return original string if no substitution(s) have been made
Currently if one were to call `'Hello World'.gsub(/[<&>]/, html_entities_hash)` , a copy of 'Hello World' is allocated and returned. If such a call were to occur inside a loop, then that would cause numerous copies to be allocated simply... ashmaroli (Ashwin Maroli)
04:03 PM Revision 1a0b8221 (git): Upgrade benchmark-driver to fix deprecation warning
k0kubun (Takashi Kokubun)
03:36 PM Revision 9987f457 (git): Reflect behavior changes to argument name
0c459af7c233adb5f44022350bfe8fa132d8053e changed the meaning of
`detect_compile_error`, and this commit lets it follow the change.
k0kubun (Takashi Kokubun)
03:33 PM Revision fc7b4c70 (git): Simplify matching
nobu (Nobuyoshi Nakada)
03:32 PM Revision 0da9205f (git): Remove conflict resolution mistake [ci skip]
in de541fe1961370e64541d73c96cf790d30f28604 :bow: k0kubun (Takashi Kokubun)
03:29 PM Revision d21a6940 (git): Improve test_color to prevent regression
Actually de541fe1961370e64541d73c96cf790d30f28604 was still needed.
This commit would improve the test coverage using the branch.
k0kubun (Takashi Kokubun)
03:26 PM Revision de541fe1 (git): colorize_code must return escaped text
This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it
could be actually useless now. But I added this anyway just in case.
k0kubun (Takashi Kokubun)
03:20 PM Revision 6498c733 (git): * 2019-06-04
git[bot]
03:14 PM Revision 0c459af7 (git): Colorize error characters
* lib/irb/color.rb (IRB::Color.scan): ignore "incomplete end of
input" error only, to colorize invalid characters, e.g., control
characters, and invalid symbols, as errors.
nobu (Nobuyoshi Nakada)
01:01 PM Revision 928377d2 (git): Revert "common.mk: allow brace expansion for benchmark targets"
This reverts commit 4c0e21add7c87b70df27fbff81d8f192a467556d
because we're not using /bin/bash.
See 11d3986d6557eb3cfcecbdd0ef6e21b18c7c960b and
1b2b0e1f244b3e71812fa9859e8b87150ea30434 to know its context.
In short, 4c0e21add7c87b70df2...
k0kubun (Takashi Kokubun)
12:59 PM Revision 1b2b0e1f (git): Revert "common.mk is NOT working with /bin/sh anymore"
This reverts commit 11d3986d6557eb3cfcecbdd0ef6e21b18c7c960b.
Travis was broken by that.
k0kubun (Takashi Kokubun)
12:15 PM Revision 11d3986d (git): common.mk is NOT working with /bin/sh anymore
at least on Ubuntu.
The brace expansion does not work on Ubuntu /bin/sh (dash), and so
4c0e21add7c87b70df27fbff81d8f192a467556d effectively broke /bin/sh
compatibility of common.mk.
I guess he was using macOS whose /bin/sh is bash.
k0kubun (Takashi Kokubun)
11:47 AM Revision a4c5d234 (git): benchmark/time_strptime.yml does not work with miniruby
Since 72ad092960c413b6a5687c552747b20a5ed78b22, we cannot run full `make benchmark`
because default BENCH_RUBY is miniruby and it fails to require 'time'.
Using miniruby for benchmark by default seems reasonable for some cases,
but now ...
k0kubun (Takashi Kokubun)
11:09 AM Bug #15637: Backport RubyGems 3.0.3/2.7.9
@hsbt, sure. Thank you for the checking!
jaruga (Jun Aruga)
08:43 AM Bug #12961: Bad value for range using infinity for Date or Time
Ruby 2.6 supports endless range, and ruby 2.7 will support beginless range. znz (Kazuhiro NISHIYAMA)
08:24 AM Revision d7c3eb57 (git): Erase VI_OPERATORS
The operators are using @waiting_operator_proc in vi mode. aycabta (aycabta .)
06:40 AM Revision c2805192 (git): remove `rb_objspace_pinned_object_p()`
Nobody uses this function other than gc.c. We only need
RVALUE_PINNED().
ko1 (Koichi Sasada)
06:15 AM Revision c990b3c4 (git): Fix the error token on "invalid hex escape"
* parse.y (tok_hex): flush token after dispatching the "invalid
hex escape" parse error.
nobu (Nobuyoshi Nakada)
04:18 AM Bug #15866 (Feedback): [BUG] Segmentation fault at 0x0000000000000020
Could you try a newer version, such as 2.5.5, 2.6.3 or 2.7.0-preview1? jeremyevans0 (Jeremy Evans)
03:56 AM Revision 22da5d71 (git): `ruby -v` may no longer be ASCII-only on non-master branches
nobu (Nobuyoshi Nakada)
03:54 AM Revision 3102ca4c (git): Default GIT external encoding to UTF-8 🤷‍♂️
And dump the title as US-ASCII. nobu (Nobuyoshi Nakada)
03:51 AM Bug #15889 (Closed): Enumerator#each_slice size FloatDomainError with infinite enumerator
Applied in changeset commit:git|17af8bfce6508951edca8650155be5525a894f65.
----------
Make size on an infinite each_slice enumerator return Infinity
Fixes [Bug #15889]
jeremyevans (Jeremy Evans)
03:00 AM Revision 17af8bfc (git): Make size on an infinite each_slice enumerator return Infinity
Fixes [Bug #15889] jeremyevans (Jeremy Evans)
01:47 AM Revision f48aad7b (git): Add reline to doc/maintainers.rdoc
znz (Kazuhiro NISHIYAMA)
01:32 AM Revision 533070bf (git): Use lines instead of split
```
% cat ~/bench-split.yml
prelude: |
s = "foo\nbar\nbaz\n"
benchmark:
'/(?<=\n)/': |
s.split(/(?<=\n)/)
'/^/': |
s.split(/^/)
'lines': |
s.lines
Warming up --------------------------------------
/(?<=\n)/...
znz (Kazuhiro NISHIYAMA)

06/02/2019

07:17 PM Revision 182072b2 (git): The C-q is also quoted insert in emacs mode
aycabta (aycabta .)
06:41 PM Revision 5524de5c (git): Add aliases for commands for moving macro
aycabta (aycabta .)
06:38 PM Revision 1bfba99b (git): Close leaked file descripters in tests
aycabta (aycabta .)
06:29 PM Revision 34289224 (git): The ed_move_to_beg is different from vi_first_print
aycabta (aycabta .)
05:03 PM Revision 65fdb903 (git): Reline::LineEditor::ARGUMENTABLE is no longer used
nobu (Nobuyoshi Nakada)
04:36 PM Revision aeb3a2b3 (git): * 2019-06-03
git[bot]
04:35 PM Revision 3457ce44 (git): Fix ArgumentError in aliased macro
Closes: https://github.com/ruby/ruby/pull/2221 nobu (Nobuyoshi Nakada)
01:58 PM Revision f4b060d8 (git): Check conditional nestings in INPUTRC
Closes: https://github.com/ruby/ruby/pull/2222 nobu (Nobuyoshi Nakada)
01:58 PM Revision a1e6e453 (git): Prefer $INPUTRC over the default in the home
Closes: https://github.com/ruby/ruby/pull/2222 nobu (Nobuyoshi Nakada)
01:37 PM Revision 4fda39fc (git): Use simpler regexp
znz (Kazuhiro NISHIYAMA)
12:26 PM Bug #15637: Backport RubyGems 3.0.3/2.7.9
@jaruga
Sorry, my late response. your list is correct commits..
hsbt (Hiroshi SHIBATA)
12:01 PM Feature #8734 (Closed): irbに複数行履歴機能が欲しい
Maybe 2.7.0-preview1 resolved this feature request. hsbt (Hiroshi SHIBATA)
11:31 AM Revision d04ebc57 (git): Add true condition `Reline`
nobu (Nobuyoshi Nakada)
05:00 AM Bug #15890 (Closed): psych.so is not deterministic
hsbt merged the pull request, so this can be closed. jeremyevans0 (Jeremy Evans)
04:09 AM Bug #15890: psych.so is not deterministic
Psych is a default gem, it is managed on GitHub. I've added a pull request to implement this: https://github.com/ruby/psych/pull/403. Assigning this to hsbt as he is a psych maintainer and has done most of the recent maintenance.
For...
jeremyevans0 (Jeremy Evans)
04:59 AM Revision 06a25344 (git): Make psych.so deterministic
Fixes Ruby Bug #15890 jeremyevans (Jeremy Evans)
03:52 AM Misc #15893 (Assigned): open-uri: URI.open status
While the conversion from `open` or `Kernel.open` to `URI.open` is simple, this is likely to break a lot of existing Ruby code. However, I can see the security advantages of deprecating this, as having `open` implicitly open URIs is a s... jeremyevans0 (Jeremy Evans)
03:17 AM Misc #15723: Reconsider numbered parameters
Seems to me like there's some kind of consensus about making this feature available for one argument only.
I would echo the desire to go with `it`, in line with Ruby's principles of elegance. It seems most objections that have been ra...
joallard (Jonathan Allard)

06/01/2019

11:50 PM Revision 486a2c26 (git): Add Reline test for unknown macro
aycabta (aycabta .)
10:39 PM Revision e360688c (git): Add new test for Reline within pipe
aycabta (aycabta .)
10:28 PM Revision 28e01f00 (git): Add comments to key bindings vars of Reline::Config
aycabta (aycabta .)
10:21 PM Revision bfd26cc1 (git): Reline.readmultiline always needs block to confirm termination
aycabta (aycabta .)
08:07 PM Revision 7b1c1b94 (git): Suppress error of macro not found
aycabta (aycabta .)
05:52 PM Bug #11363 (Closed): Fix tests for String#crypt so they pass on OpenBSD
Applied in changeset commit:git|4b9869e7e04cbfb581f6f1b21ae17b310135c5e2.
----------
Update String#crypt tests to work on OpenBSD
Skip the webrick httpauth tests that use crypt when testing on
OpenBSD.
Fixes [Bug #11363]
jeremyevans (Jeremy Evans)
05:50 PM Revision 4b9869e7 (git): Update String#crypt tests to work on OpenBSD
Skip the webrick httpauth tests that use crypt when testing on
OpenBSD.
Fixes [Bug #11363]
jeremyevans (Jeremy Evans)
03:42 PM Revision 09c09eb0 (git): NEWS: move GC.compact
From "Implementation improvements" to "Core classes updates". nobu (Nobuyoshi Nakada)
03:42 PM Revision 3afae5b5 (git): NEWS: markup class and method names
nobu (Nobuyoshi Nakada)
03:36 PM Revision e814d2f8 (git): * 2019-06-02
git[bot]
03:34 PM Revision 8a041c1b (git): delegate.rb: markup method names
nobu (Nobuyoshi Nakada)
12:23 PM Revision 2bad001c (git): Ignore warnings about mismatched indentations.
hsbt (Hiroshi SHIBATA)
12:20 PM Revision 464e55f1 (git): Ignore warnings about argument prefix with operator symbol.
hsbt (Hiroshi SHIBATA)
12:07 PM Revision 3c77ef9a (git): Ignore warnings about ambiguous first argument with the negative integer.
hsbt (Hiroshi SHIBATA)
11:44 AM Revision 9eecd7a2 (git): Ignore warnings about ambiguous first argument of regexp with assert match.
hsbt (Hiroshi SHIBATA)
11:07 AM Revision f630359d (git): Add a benchmark using IRB::Color
I heard actually this part would not be a bottleneck for rendering
because writing anything to terminal takes way longer time anyway, but I
thought this benchmark script might be useful for benchmarking Ruby
itself.
k0kubun (Takashi Kokubun)
10:50 AM Revision 56660de3 (git): Merge rubygems master from upstream.
I picked the commit from 3c469e0da538428a0ddd94f99aa73c32da22e8ba hsbt (Hiroshi SHIBATA)
07:52 AM Revision 560cd5b1 (git): Add myself as OpenBSD platform maintainer
jeremyevans (Jeremy Evans)
07:47 AM Revision de01c4ec (git): Reset Config at Reline::Config::Test#teardown
aycabta (aycabta .)
07:09 AM Feature #15894: Remove support for IA64
@takano32 can you please let me know how you feel about this? ioquatix (Samuel Williams)
06:08 AM Feature #15894 (Closed): Remove support for IA64
There are many `#ifdef __ia64` in Ruby code base. At one point it must have been supported.
But as an architecture, it's EOL (Jan 30th 2019). Last CPU was released in 2017.
I can't even buy 2nd hand CPU for testing.
So, I propos...
ioquatix (Samuel Williams)
06:07 AM Revision 34727475 (git): Remove an unnecessary argument
aycabta (aycabta .)
05:57 AM Revision 3034d666 (git): Just use `File.readlines`
nobu (Nobuyoshi Nakada)
05:29 AM Misc #15893 (Closed): open-uri: URI.open status
On the one hand, Ruby 2.5's NEWS [stated](https://github.com/ruby/ruby/commit/bf287424fd00c0304c836525bb52d89fc1f4a84a#diff-ff4e2dc4962dc25a1512353299992c8dR298):
> URI.open method defined as an alias to open-uri's Kernel.open. open-u...
zverok (Victor Shepelev)
04:34 AM Revision b487b39b (git): * expand tabs.
git[bot]
04:15 AM Revision 65e63af3 (git): Make opt_aref instruction support Integer#[]
only when its receiver and the argument are both Integers.
Since 6bedbf4625, Integer#[] has supported a range extraction.
This means that Integer#[] now accepts multiple arguments, which made
the method very slow unfortunately.
This ch...
mame (Yusuke Endoh)
01:36 AM Misc #15874: DevelopersMeeting20190613Japan
* [Feature #15160] ArgumentError: year too big to marshal nobu (Nobuyoshi Nakada)
12:06 AM Revision 7df65ef6 (git): Use inputrc data for keystroke setting
aycabta (aycabta .)

05/31/2019

11:00 PM Misc #15892 (Closed): Appveyor - full MSYS2 update - 5:25
Thanks. I managed to pass the CI with the idea in https://github.com/ruby/ruby/pull/2217, but it added 8 minutes, not 5.
I'm slightly reluctant to add 8 minutes to msys2 build time, so I'll consider applying it when AppVeyor fails on ...
k0kubun (Takashi Kokubun)
09:42 PM Misc #15892: Appveyor - full MSYS2 update - 5:25
I used:
```
pacman -Syuu --noconfirm --noprogressbar --nodeps
pacman -Suu --noconfirm --noprogressbar --nodeps
```
With the current state of the Appveyor MSYS2 system, both are needed. The -y option updates the package database....
MSP-Greg (Greg L)
09:20 PM Misc #15892: Appveyor - full MSYS2 update - 5:25
Thanks to share. As the last appveyor.yml update has worked for only 3 days, the "full MSYS2 update" would be worth trying.
However, as I'm not familiar with MSYS2 and pacman that much, I don't know what exact code you imagine by "ful...
k0kubun (Takashi Kokubun)
06:47 PM Misc #15892 (Closed): Appveyor - full MSYS2 update - 5:25
Just tried a full MSYS2 update on Appveyor, and it took 5:25.
The most recent Ruby build (which finished within minutes of the MSYS2 update) took about 39 minutes, but it may have been waiting. Past builds occasionally take 45 to 50 ...
MSP-Greg (Greg L)
08:29 PM Bug #15876: 1.to_s.encoding != Encoding.default_internal
Hanmac (Hans Mackowiak) wrote:
> is there a way to see if two encoding objects are compatible or can that only be checked on the string?
`Encoding.compatible?` can take Encoding arguments too:
> Encoding.compatible?(Encoding::...
Eregon (Benoit Daloze)
05:37 PM Bug #15876: 1.to_s.encoding != Encoding.default_internal
There is `Encoding.compatible?` which might help to check if two strings/symbols has a common encoding
@naruse i don't know if you are the right contact person for this, but is there a way to see if two encoding objects are compatible...
Hanmac (Hans Mackowiak)
04:10 PM Bug #15876 (Feedback): 1.to_s.encoding != Encoding.default_internal
What is the problem you are actually troubled with?
If it is just a testing problem, I feel it should just use correct assertions.
But if there's a frequent pitfall, I may reconsider it.
naruse (Yui NARUSE)
07:31 PM Bug #15807: Range#minmax is slow and never returns for endless ranges
i had the same problem with minmax in Range.
I made a MR
https://github.com/ruby/ruby/pull/2216
mohsen (Mohsen Alizadeh)
05:44 PM Bug #15891 (Closed): FrozenError when assigning frozen class to constant
Applied in changeset commit:git|c1e52997870a63168835fde49562cb3c822c968a.
----------
Fix FrozenError when assigning frozen class to constant
* variable.c (set_namespace_path): modules/classes can get named
by assignment to constant, ...
nobu (Nobuyoshi Nakada)
01:25 PM Bug #15891 (Closed): FrozenError when assigning frozen class to constant
This code used to work in Ruby 2.6 and before: `C = Class.new.freeze`. Now it raises a FrozenError for class and module instances, while other frozen things seem to still work.
I am not sure if this is a bug or an intentional change. ...
flori (Florian Frank)
05:41 PM Revision c1e52997 (git): Fix FrozenError when assigning frozen class to constant
* variable.c (set_namespace_path): modules/classes can get named
by assignment to constant, even if frozen. [Bug #15891]
nobu (Nobuyoshi Nakada)
05:16 PM Revision aeb9a0ca (git): appveyor.yml again!
This issuse is caused by MSYS2 changing from using ncurses to pdcurses.
Appveyor's MSYS2 is so out-of-date that partial updates are 'troublesome'...
MSP-Greg (Greg L)
05:02 PM Revision 1d37cc19 (git): Update to ruby/spec@cfe908c
Eregon (Benoit Daloze)
05:02 PM Revision f97979ce (git): Update to ruby/mspec@a57a9af
Eregon (Benoit Daloze)
03:41 PM Revision 552c42f5 (git): Seprate raw keystroke config for each platforms
nobu (Nobuyoshi Nakada)
03:03 PM Revision 8fc552ad (git): * 2019-06-01
git[bot]
03:02 PM Revision 88770c2a (git): Support Home and End key to move to beg and end
aycabta (aycabta .)
02:24 PM Bug #15886: return in rescue block breaks Timeout.timeout
moio (Silvio Moioli) wrote:
> Well, as a Timeout.timeout user I would like to be able to wrap any code in a block and have a guarantee it will actually terminate after the specified number of seconds - no matter how the wrapped code loo...
jeremyevans0 (Jeremy Evans)
12:26 PM Bug #15886: return in rescue block breaks Timeout.timeout
Well, as a Timeout.timeout user I would like to be able to wrap any code in a block and have a guarantee it will actually terminate after the specified number of seconds - no matter how the wrapped code looks like and especially if it is... moio (Silvio Moioli)
01:53 PM Revision 21a43489 (git): Use IO#sync= instead of a monkey patch
aycabta (aycabta .)
01:33 PM Revision 73890d9d (git): Flush I/O immediately if RELINE_STDERR_TTY is set
aycabta (aycabta .)
01:15 PM Revision 913661cc (git): Bump irb version to 1.1.0.pre.1.
Becausee the current irb support reline and have many of changes. hsbt (Hiroshi SHIBATA)
12:58 PM Misc #15723: Reconsider numbered parameters
I prefer the single @ syntax as well. It will be a huge help since I don't like using the (&:method) syntax. I like avoiding syntax that intuitively makes code *unnecessarily* slower without much syntactical benefit, even for a languag... konsolebox (K B)
12:44 PM Misc #15723: Reconsider numbered parameters
@shevegen Please do not write such long comments, and express your opinion more concisely.
This helps everyone to read discussions faster and get the main point.
> This is based on the assumption that there has to be a "fix" at all i...
Eregon (Benoit Daloze)
12:16 PM Misc #15723: Reconsider numbered parameters
duerst (Martin Dürst) wrote:
> Can you tell us where and when that talk was given?
At the Ruby committer meeting before RubyKaigi.
Eregon (Benoit Daloze)
12:00 PM Misc #15723: Reconsider numbered parameters
> TBH, I wish the multi numbered parameters feature would not make it in
> ...
This is based on the assumption that there has to be a "fix" at all in the first place
to begin with; and if so, what the assumed "fix" would then be.
Na...
shevegen (Robert A. Heiler)
07:00 AM Misc #15723: Reconsider numbered parameters
Eregon (Benoit Daloze) wrote:
> * Here is a [link to the slides I presented](https://docs.google.com/presentation/d/1oNnZQaYj9yiGTzKV0MB13dxX3Z7_mOGfzhOJIucNfGg/edit?usp=sharing), which highlight most Rubyists who answered my poll disag...
duerst (Martin Dürst)
10:20 AM Revision 1457ad1e (git): [DOC] JIS X 0301 has been updated
[ruby-dev:50790]
* https://www.meti.go.jp/press/2019/05/20190520006/20190520006.html
* https://www.meti.go.jp/press/2019/05/20190520006/20190520006-2.pdf
[ci skip]
nobu (Nobuyoshi Nakada)
07:32 AM Revision 8b39df85 (git): Let irb use an empty file as irbrc
to get rid of side-effect by existing .irbrc file. nobu (Nobuyoshi Nakada)
07:32 AM Revision b632566d (git): UNIX domain socket name length has a certain limit
nobu (Nobuyoshi Nakada)
07:11 AM Bug #15887 (Closed): Process.argv0 can return bad values in Ruby 2.5
Applied in changeset commit:git|ea42423908ed055f9039b1dce6e9a232a3b2dd90.
----------
Keep vm->orig_progname alive
`vm->orig_progname` can be different from `vm->progname` when user
code assigns to `$0`. While `vm->progname` is kept ali...
alanwu (Alan Wu)
04:50 AM Bug #15887: Process.argv0 can return bad values in Ruby 2.5
I've reviewed and tested the pull request and it appears to be the correct fix to me. I confirmed this does crash immediately on 2.5.5, 2.6.3, 2.7.0-preview1, and trunk, and the fix makes it no longer crash. This fix should be backporte... jeremyevans0 (Jeremy Evans)
04:34 AM Bug #15887: Process.argv0 can return bad values in Ruby 2.5
Here's is a one line crasher: `ruby -e '$0 = "hi"; 4.times { GC.start }; Process.argv0.class'`
This crashes 2.5.5 and 2.6.3, but 2.4.6 seems to be immune. Bisect points to 478003f6df40dc79d33c6ec86919f2dde07284be.
I have a PR for this:...
alanwu (Alan Wu)
07:04 AM Revision b1aecef8 (git): Use UNALIGNED_MEMBER_PTR
* internal.h (UNALIGNED_MEMBER_ACCESS, UNALIGNED_MEMBER_PTR):
moved from eval_intern.h.
* compile.c iseq.c, vm.c: use UNALIGNED_MEMBER_PTR for `entries`
in `struct iseq_catch_table`.
* vm_eval.c, vm_insnhelper.c: use UNALIGNED_MEMB...
nobu (Nobuyoshi Nakada)
05:38 AM Revision ea424239 (git): Keep vm->orig_progname alive
`vm->orig_progname` can be different from `vm->progname` when user
code assigns to `$0`. While `vm->progname` is kept alive by the
global table, nothing marked `vm->orig_progname`.
[Bug #15887]
alanwu (Alan Wu)
05:29 AM Bug #15888 (Feedback): Segmentation fault at 0x000070000afc2450 ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18]
Could you try newer version, 2.5.5, 2.6.3 or 2.7.0-preview1? nobu (Nobuyoshi Nakada)
05:05 AM Revision 83f9183a (git): Also GCC 9 provides -Waddress-of-packed-member
nobu (Nobuyoshi Nakada)
04:50 AM Feature #15665: Cannot compile socket extension on Mojave
nobu (Nobuyoshi Nakada) wrote:
> Applied in changeset commit:git|fe3ff5afb07e171fd950623c69abfbabbb2762a3.
> ...
I have verified that the changeset works for 2.6 on my machine. It is currently in trunk, which would go to 2.7 eventually...
franklinyu (Franklin Yu)
01:55 AM Revision d2f663d6 (git): STATIC_ASSERT for VM_METHOD_TYPE_MINIMUM_BITS
nobu (Nobuyoshi Nakada)
01:55 AM Revision d180e405 (git): Add --limit option and default it to 20
nobu (Nobuyoshi Nakada)
01:55 AM Revision 1e9057b5 (git): Prefer the current branch or tag name
nobu (Nobuyoshi Nakada)
01:55 AM Revision fd658ec8 (git): Define RUBY_FULL_REVISION
Only if the short revision differs from the full revision. nobu (Nobuyoshi Nakada)
01:41 AM Bug #11512 (Closed): DelegateClass.#public_{instance_}methods are returning difference values.
Applied in changeset commit:git|e8c710b11a02c6ab82b358fc671a14f378cb1974.
----------
Fix visibility of some methods when using DelegateClass
Public instance methods added to a delegated class after the
creation of the delegate class we...
jeremyevans (Jeremy Evans)
01:41 AM Feature #15842 (Closed): Allow DelegateClass() to module_eval given block
Applied in changeset commit:git|1cd93f1cdfbe6f7e71b05b3f8e707f21d70e94ba.
----------
Allow DelegateClass() to module_eval given block
Methods that return classes often module_eval the given block
(e.g. Class.new and Struct.new). This ...
jeremyevans (Jeremy Evans)
01:34 AM Revision e8c710b1 (git): Fix visibility of some methods when using DelegateClass
Public instance methods added to a delegated class after the
creation of the delegate class were not returned by the
public_instance_methods class method of the delegate class.
Protected instance methods in the delegated class when the
...
jeremyevans (Jeremy Evans)
01:34 AM Revision 1cd93f1c (git): Allow DelegateClass() to module_eval given block
Methods that return classes often module_eval the given block
(e.g. Class.new and Struct.new). This allows DelegateClass to
work similarly. This makes it easier to use DelegateClass
directly without subclassing, so as not to create an ...
jeremyevans (Jeremy Evans)
12:44 AM Revision 856593cc (git): Fix typo :bug: [ci skip]
k0kubun (Takashi Kokubun)

05/30/2019

11:02 PM Bug #15890 (Closed): psych.so is not deterministic
psych.so is not binary identical across builds (it's hash changes), as the order of its sources is random.
You probably want to add a sort to
https://github.com/ruby/ruby/blob/6a5e89e23c433199f926d757481bc3c29fce7854/ext/psych/extcon...
hajma (hajma hajma)
10:31 PM Misc #15874: DevelopersMeeting20190613Japan
* [Misc #15723] Reconsider numbered parameters.
* To matz: Could you agree on Jeremy's single-argument patch?
Eregon (Benoit Daloze)
10:24 PM Revision 6a5e89e2 (git): Set git config to commit mjit-debug
As it failed to commit like:
https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cefd8a8105780001c4f2d5d?step=5cefdd1e48fad200077fa3f8
k0kubun (Takashi Kokubun)
10:19 PM Misc #15723: Reconsider numbered parameters
@matz Could @jeremyevans0 merge his patch for single argument?
* The original author proposed a single argument (#4475).
* Jeremy who proposed the currently implemented syntax [said](https://bugs.ruby-lang.org/issues/15723#note-91)...
Eregon (Benoit Daloze)
09:54 PM Revision cb40a21d (git): Warn compile_error only when input is finished
Let's say we are in progress to write `"foo"`:
```
irb> "fo
```
at this moment, nothing is wrong.
It would be just a normal way to write `"foo"`.
Prior to this commit, the `fo` part was warned because of
5b64d7ac6e7cbf759b859428f12553...
k0kubun (Takashi Kokubun)
09:21 PM Revision 6e052817 (git): Abstract away Ripper::Lexer#scan in IRB::Color#scan
because 5b64d7ac6e7cbf759b859428f125539e58bac0bd made it hard to
understand #colorize_code for me and this change is needed for my next
commit.
k0kubun (Takashi Kokubun)
08:53 PM Revision 8f83fe3b (git): Finish with ^D only when input is completely empty in vi insert mode
aycabta (aycabta .)
08:11 PM Revision a4161b76 (git): Update to ruby/spec@0ba5312
Eregon (Benoit Daloze)
08:11 PM Revision e935a322 (git): Update to ruby/mspec@3cc36d0
Eregon (Benoit Daloze)
07:08 PM Bug #15889 (Closed): Enumerator#each_slice size FloatDomainError with infinite enumerator
Calling `#size` on an infinite `each_slice` Enumerator results in a `FloatDomainError` exception:
``` ruby
1.step.size # => Infinity
1.step.each_slice(2).size # => FloatDomainError
```
```
Traceback (most recent call last):
.....
Freaky (Thomas Hurst)
05:05 PM Bug #15888 (Closed): Segmentation fault at 0x000070000afc2450 ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18]
This happens on a Ruby on Rails app which has recently been upgraded from Ruby version 1 to ruby version 2.5.1 iarobinson (ian robinson)
03:17 PM Feature #15797: Use realpath(3) instead of custom realpath implementation if available
I was able to run the benchmarks in a Linux virtual machine. This includes the benchmarks I added for `File.realdirpath` and for `File.realpath` where the paths that do not exist. `File.realdirpath` always uses the emulated code on Linu... jeremyevans0 (Jeremy Evans)
03:01 PM Revision c55db6aa (git): * 2019-05-31
git[bot]
03:00 PM Revision f7aa80b3 (git): Make the target name unique when BASERUBY=no
nobu (Nobuyoshi Nakada)
02:23 PM Revision ab0c8cc0 (git): Touch Unicode headers and the timestamp before packaging
Not to download Unicode data files at building from the packages. nobu (Nobuyoshi Nakada)
02:13 PM Bug #15884 (Rejected): Time module fails to identify timezone correctly
jeremyevans0 (Jeremy Evans)
12:16 PM Bug #15884: Time module fails to identify timezone correctly
Thanks for such a good explanation John! What you said makes perfect sense so I'm happy to close this as "invalid", or whatever is the most appropriate status. Unfortunately, I don't seem to be able to update the Status on this ticket. Anonymous
01:27 PM Revision f0945176 (git): Fix missing `gitcmd`
nobu (Nobuyoshi Nakada)
01:20 PM Revision 22cd4027 (git): vcs.rb support non-inplace build
naruse (Yui NARUSE)
01:03 PM Revision 92ecf58b (git): parse.y: adjust here-doc error token
* parse.y (here_document): adjust token to the here-doc identifier
in compile_error when a here-document misses the closing
identifier.
nobu (Nobuyoshi Nakada)
12:54 PM Revision b0e2b7a5 (git): Include stack elements left after errors
nobu (Nobuyoshi Nakada)
11:54 AM Revision 279c8e14 (git): Use rebuilt buffer data to rerender all
aycabta (aycabta .)
11:06 AM Revision 74a0e3ec (git): Use start_with? for escaped quote too
aycabta (aycabta .)
09:29 AM Revision ecd0f1d9 (git): Use negative lookahead and start_with?
aycabta (aycabta .)
09:21 AM Revision fcca39fa (git): Fix strange vertical cursor moving when adding a newline at bottom
aycabta (aycabta .)
09:14 AM Revision 39ee412b (git): merge revision(s) dcb6a6ae3e2b8a3e298e7f0d4a3e7f8ff102a30e:[Backport #15845]
Windows simply causes an error to open invalid path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@67709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:12 AM Revision 106843d8 (git): * expand tabs.
git[bot]
08:12 AM Revision 5fc9f000 (git): reorder bitmap clearing.
ko1 (Koichi Sasada)
08:10 AM Revision dd63d7da (git): move pinned_bits[] position in struct heap_page.
pinned_bits are not used frequently (only GC.compact use it) so
move it at the end of struct heap_page.
ko1 (Koichi Sasada)
07:52 AM Revision e15de865 (git): introduce `during_compacting` flag.
Usually PINNED_BITS are not needed (only for GC.compact need it)
so skip updating PINNED_BITS if the marking is not by GC.compact.
ko1 (Koichi Sasada)
06:50 AM Revision 70e87d96 (git): Do not rely on IRB.conf[:MAIN_CONTEXT] before initialize
so that we can colorize binding.irb source lines. k0kubun (Takashi Kokubun)
06:34 AM Revision 55c34b99 (git): Check the end token of heredoc correctly
aycabta (aycabta .)
06:19 AM Revision 5a229b0a (git): Calculate vertical position correctly when rerendering all lines
aycabta (aycabta .)
06:04 AM Revision 90014ddd (git): Fix broken rendering when the last line is auto-wrapped
aycabta (aycabta .)
05:19 AM Revision eae953ba (git): Rerender following lines when line number increased
aycabta (aycabta .)
05:04 AM Revision 1cf9f793 (git): Clear remaining lines when line number decreased
aycabta (aycabta .)
03:38 AM Revision 4a31c1e4 (git): parse.y: continue after heredoc error
* parse.y: continue parsing the rest of the here-document starting
line, after the terminator was not found.
nobu (Nobuyoshi Nakada)
03:29 AM Revision cb520e76 (git): Fix the auto-wrap behabior that was too buggy
aycabta (aycabta .)
01:40 AM Revision f0ded366 (git): Use Regexp#match instead of #match for 1.9 BASERUBY support
jeremyevans (Jeremy Evans)
01:03 AM Revision d2ba80b5 (git): Revert "Fix building with 1.8 BASERUBY"
This reverts commit 05bc14d81a1d7f6af826a92371aeff0c3fb2a67e.
We have decided that the cost of reintroducing support for 1.8
BASERUBY outweighs the benefit. If you are still using 1.8 and want
to build master/trunk, build and install t...
jeremyevans (Jeremy Evans)

05/29/2019

09:54 PM Bug #15887: Process.argv0 can return bad values in Ruby 2.5
Interesting. I just did Process.argv0 in irb and irb crashed right away.
If I put it into a .rb file it works fine. I haven't systematically tested
what causes the issue or whether my crash is related to the one here (I am
on linux ...
shevegen (Robert A. Heiler)
07:43 PM Bug #15887 (Closed): Process.argv0 can return bad values in Ruby 2.5
MacOS 10.14.5 on a clean (source, using ruby-install) installation of Ruby 2.5.5
```
$ ruby --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-darwin18]
$ gem install vault vcr virtus webmock webrick
$ echo Process.argv0 |...
joeym (Joey Marianer)
07:13 PM Revision 5867e51e (git): * 2019-05-30
git[bot]
07:12 PM Revision 814eaa25 (git): Do not use rb_iseq_path() while moving ISeq pointers
in GC.compact.
While `in_jit` is false, GC.compact is allowed to run and it may be
moving ISeq-related pointers. So calling rb_iseq_path() when `in_jit`
is true is illegal.
k0kubun (Takashi Kokubun)
03:24 PM Bug #15886 (Rejected): return in rescue block breaks Timeout.timeout
I don't believe this is a bug or specifically related to `Timeout` (or to the other issues you linked). If an exception is raised and an `ensure` or a `rescue` block does an explicit `return` (or a non-local exit such as `throw`), the e... jeremyevans0 (Jeremy Evans)
02:52 PM Bug #15886 (Rejected): return in rescue block breaks Timeout.timeout
Passing `Timeout.timeout` a block with a rescue clause that contains a return statement prevents `Timeout::Error` to be raised as expected.
Reproducer:
``` ruby
require 'timeout'
begin
Timeout.timeout(1) do
begin
...
moio (Silvio Moioli)
01:09 PM Revision 5b64d7ac (git): Colorize errors more
* lib/irb/color.rb (IRB::Color.colorize_code): colorize
`compile_error` part as same as `on_parse_error`.
nobu (Nobuyoshi Nakada)
12:59 PM Revision 12644e8b (git): Get rid of nested string interpolations
* lib/irb/color.rb (IRB::Color.colorize): get rid of nesting string
interpolations not to confuse ruby-mode.el
nobu (Nobuyoshi Nakada)
12:42 PM Revision 1da5c739 (git): parse.y: fix state after ivar/cvar
* parse.y (parse_atmark): return EXPR_END or EXPR_ENDFN, depending
on the previous state, even incomplete names consistently.
nobu (Nobuyoshi Nakada)
11:24 AM Revision 83e905eb (git): Revert "Use "require" just for essential"
This reverts commit ab7a6e1a1651d82d327d155b78a8e3af1d976707. aycabta (aycabta .)
11:21 AM Revision ab7a6e1a (git): Use "require" just for essential
The 559dca509d2a98584b09c7d9a6d74749ce793ad7 contains an excess range in
using "require".
aycabta (aycabta .)
10:29 AM Bug #15885 (Closed): Duplicated `:raise` tracepoint event when exception inside `load` call happens
Hi!
A long time ago, [this ruby-core change](https://github.com/ruby/ruby/commit/1998039ea4f867583d7e37ce200a88490707c330) broke a test in byebug related to post-mortem debugging. See https://github.com/deivid-rodriguez/byebug/issues/...
deivid (David Rodríguez)
09:52 AM Revision fafcbe0e (git): Use reversed get_screen_size correctly on Windows
aycabta (aycabta .)
09:21 AM Revision 5ceff480 (git): ripper: Ripper::Lexer#scan
* ext/ripper/lib/ripper/lexer.rb (Ripper::Lexer#scan): parses the
code and returns the result elements including errors.
[EXPERIMENTAL]
nobu (Nobuyoshi Nakada)
07:48 AM Revision 7c0639f3 (git): Never make a method call from MJIT worker
by showing line number only when it's Fixnum.
When it's not Fixnum, we need to call a method to know the line number.
k0kubun (Takashi Kokubun)
07:22 AM Revision ce7b1132 (git): Do not call FIX2INT while GC.compact may be running
because FIX2INT might crash by moving method entry pointer:
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2063412
k0kubun (Takashi Kokubun)
07:09 AM Revision 468b475e (git): .travis.yml: Minor reorder for shortening
k0kubun (Takashi Kokubun)
06:04 AM Revision 1a0c3d8d (git): Convert Enumerator to Array for Ruby 1.9.3
String#lines seems to return Enumerator in Ruby 1.9.3, and it does not
respond to #delete_if https://travis-ci.org/ruby/ruby/jobs/538559919
k0kubun (Takashi Kokubun)
05:57 AM Revision 5379ca92 (git): Skip spec broken since a66bc2c01194a9c017c874a30db5b3b6bd95e966
This has not worked since the merge https://travis-ci.org/ruby/ruby/jobs/538438184 k0kubun (Takashi Kokubun)
04:34 AM Revision 068d3275 (git): Colorize compile_error as same as on_parse_error
nobu (Nobuyoshi Nakada)
04:24 AM Revision cc66272e (git): parse.y: flush invalid char
nobu (Nobuyoshi Nakada)
04:24 AM Revision 8552e9d6 (git): Fix shorten-64-to-32 warning
nobu (Nobuyoshi Nakada)
04:16 AM Revision aee36bf1 (git): Fix Possible Control flow issues (DEADCODE)
Coverity Scan says `Execution cannot reach this statement: "poison_object(v);"`,
so do nothing when `ptr` is always 0 without address_sanitizer.
znz (Kazuhiro NISHIYAMA)
04:01 AM Revision e04d10b2 (git): test/rubygems/test_gem_stream_ui.rb (test_ask_for_password): extend the timeout
for Solaris.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190528T191908Z.fail.html.gz
mame (Yusuke Endoh)
03:30 AM Revision 8187ffa4 (git): Revert "Colorize error part more"
This reverts commit c7f3c222c9b82736c993419daa6bfb643e5c0793. ko1 (Koichi Sasada)
03:12 AM Revision c7f3c222 (git): Colorize error part more
Colorize `compile_error` parts as well as `on_parse_error` parts. nobu (Nobuyoshi Nakada)
03:09 AM Revision 34fe1f7d (git): Create empty revision.tmp if BASERUBY is not yes
nobu (Nobuyoshi Nakada)
01:04 AM Revision 3f132979 (git): Remove extra items because Reline::HISTORY is a sized queue
aycabta (aycabta .)
12:46 AM Revision c86d1fbe (git): Create empty revision.tmp if no BASERUBY
nobu (Nobuyoshi Nakada)
12:14 AM Revision f60a59ed (git): appveyor.yml - update for msys2 - pdcurses, force toolchain
Closes: https://github.com/ruby/ruby/pull/2208
Merging the PR for fixing AppVeyor msys2 failure related to GCC 9 like:
https://ci.appveyor.com/project/ruby/ruby/builds/24877992/job/ned5k4k5rwxnld5j
MSP-Greg (Greg L)
12:05 AM Revision 98ba116d (git): Revert 3b7862c8e88cd7838a53ec083ac5733386400956 causing various CI hangs
and dependent commits c67934b1c3b40dda5f170b032423e520511c68dd and
f0d1dc5cee87dfb023cb43a2db9bcdef5a8dee8f.
RubyCI and ci.rvm.jp are almost dead by timeout since this commit.
---
Revert "Skip a reline test hanging on Wercker since 3b...
k0kubun (Takashi Kokubun)

05/28/2019

11:56 PM Revision 797d7efd (git): Prevent MJIT compilation from running while moving
pointers.
Instead of 4fe908c1643c3f355edd787bb651aefb53b996c0, just locking the MJIT
worker may be fine for this case. And also we might have the same issue
in all `gc_compact_after_gc` calls.
k0kubun (Takashi Kokubun)
11:22 PM Revision 6b5e7123 (git): Make tool/vcs.rb compliant to BASERUBY
People seem to consider BASERUBY is either 1.8 or 1.9 now. Since this
file may be executed by BASERUBY from file2lastrev.rb, I think we should
not rely on Ruby 2.0 in this file for now.
k0kubun (Takashi Kokubun)
11:19 PM Revision e1f62d7f (git): Check the result of file2lastrev.rb if HAVE_BASERUBY
is yes.
We ignored the failure status of file2lastrev.rb on 73da429c36c, but it
was for an environment without BASERUBY. I think we should skip running
file2lastrev.rb on HAVE_BASERUBY=no, and run it and check the status on
HAVE_BASERUB...
k0kubun (Takashi Kokubun)
11:08 PM Revision f0d1dc5c (git): Skip a reline test hanging on Wercker since 3b7862c8e8
like https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cedad11105780001c4e7001?step=5cedaf6b48fad200076fe77b k0kubun (Takashi Kokubun)
11:04 PM Revision 67f75d5b (git): Add TESTOPTS=-v for Wercker test-all --jit-wait
because it's hard to identify which test causes a hang for now. k0kubun (Takashi Kokubun)
09:57 PM Revision 8d837431 (git): Use IO.copy_stream
aycabta (aycabta .)
09:57 PM Revision a4a682c4 (git): Check RUBY_YES_I_AM_NOT_A_NORMAL_USER env to access RubyVM doc
aycabta (aycabta .)
09:57 PM Revision d341bb28 (git): IRB never show RubyVM's doc
aycabta (aycabta .)
09:54 PM Revision d390af36 (git): Encode completed strings corecctly
aycabta (aycabta .)
09:45 PM Revision 3e54ff67 (git): Test BASERUBY: Ruby 1.9.3 on Travis
We have no clear assertion or check of BASERUBY requirement.
I want to make the current situation more explicit.
I'm NOT saying we should support Ruby 1.9.3 here,
but I'm just checking the situation as per 05bc14d81a1d7f6af826a92371aeff...
k0kubun (Takashi Kokubun)
09:15 PM Revision 91f5a8db (git): Update to ruby/spec@0c5c5c1
Eregon (Benoit Daloze)
08:58 PM Revision c67934b1 (git): Remove extra items because Reline::HISTORY is a sized queue
aycabta (aycabta .)
08:53 PM Revision 3b7862c8 (git): Use existing instances for LineEditor and Config
aycabta (aycabta .)
08:41 PM Revision a66bc2c0 (git): Update to ruby/spec@9a501a8
Eregon (Benoit Daloze)
08:27 PM Revision d070523e (git): Drop unused Travis config: universal-darwin17
This has been unused since b7f5c573ef20dbbf5534ee3a45625c7f9d45f2ec. k0kubun (Takashi Kokubun)
08:10 PM Revision 462a63c3 (git): Drop MJIT debug code from GC.compact
As ko1 added some improvements on GC.compact, I want to check if it
solved the problem too.
k0kubun (Takashi Kokubun)
03:37 PM Bug #15884: Time module fails to identify timezone correctly
I think this shows the logic behind what is occurring here.
On my system
Time.new(2002, 12, 1).zone
=> PST
(Time.new(2002, 12, 1) + 60 * 60 * 24 * 180).zone # Add 180 days
=> PDT
Time.new(2002, 12, 1).utc.zone
=> UTC
(Time...
wishdev (John Higgins)
03:05 PM Bug #15884 (Rejected): Time module fails to identify timezone correctly
I think the following snippet is the best summary of the problem I could write:
```
irb(main):001:0> Time.new(2012, 12, 1).utc?
=> false
irb(main):002:0> Time.new(2012, 12, 1).zone == 'UTC'
=> true
```
Anonymous
03:07 PM Revision abd55695 (git): * 2019-05-29
git[bot]
03:00 PM Revision c730c253 (git): parse.y: warn escaped whitespace
* parse.y (warn_space_char_code): warn whitespace characters
escaped with meta/control prefix.
nobu (Nobuyoshi Nakada)
02:46 PM Revision fb568fe7 (git): Added missing predicate macros
nobu (Nobuyoshi Nakada)
01:45 PM Feature #15799: pipeline operator
phluid61 (Matthew Kerwin) wrote:
> `a|:b` means `a | :b` and `a=:b` means `a = :b`
Yes I implied that a space is necessary for |: or =: to be distinguishable. It's better to have that requirement than have the three-character operat...
konsolebox (K B)
11:41 AM Feature #15799: pipeline operator
```ruby
1.. |> take 10 |> map {|x| x*2} |> (x)
```
I believe that the ONLY sane reason for the new operator is ending the long chain with "...and now, put it into variable". The rest is total mistery, however you look at it, e.g. wh...
zverok (Victor Shepelev)
09:33 AM Feature #15799: pipeline operator
`a|:b` means `a | :b` and `a=:b` means `a = :b` phluid61 (Matthew Kerwin)
07:37 AM Feature #15799: pipeline operator
konsolebox (K B) wrote:
> nobu (Nobuyoshi Nakada) wrote:
> ...
Or `=:` which is the reverse of Pascal's assignment operator. Personally I would want it to have it as an alias to `|:` than replace `|:` because `=:` would look good if i...
konsolebox (K B)
04:54 AM Feature #15799: pipeline operator
nobu (Nobuyoshi Nakada) wrote:
> duerst (Martin Dürst) wrote:
> ...
`|>=` looks heavy. Please consider `|:` instead.
konsolebox (K B)
11:26 AM Feature #10344: [PATCH] Implement Fiber#raise
Shortly after I started to work on a library implementing algebraic effects (https://github.com/dry-rb/dry-effects) I stumbled upon lack of `Fiber#raise`. From the user POV it is important to signal improper use of effects with a meaning... decuplet (Nikita Shilnikov)
09:54 AM Misc #15874: DevelopersMeeting20190613Japan
* [Feature #15777] `Module#autoload?(cname, inherit=true)`
* By default `autoload?` also check in the ancestors chain, such option would be consistent with `Module#const_defined?` and totally backward compatible.
* For more context...
byroot (Jean Boussier)
06:59 AM Bug #15880: Wrong precedence of the if modifier in pattern matching
It's clear that the order of evaluation has to be the way it is currently. But in this case, `if` just sounds wrong, not only because of examples such as `puts 1 if condition`, but also because of general English.
So I think changing ...
duerst (Martin Dürst)
06:57 AM Revision 8a2b497e (git): remove obsolete rb_gc_finalize_deferred().
rb_gc_finalize_deferred() is remained for compatibility with
C-extensions. However, this function is no longer working
from Ruby 2.4 (crash with SEGV immediately).
So remove it completely.
ko1 (Koichi Sasada)
05:38 AM Revision 2562b7d7 (git): Unify RELINE_TEST_ENCODING setting
nobu (Nobuyoshi Nakada)
05:38 AM Revision d5f40840 (git): Set read-only with attrib command
nobu (Nobuyoshi Nakada)
05:36 AM Revision 62b3d4c7 (git): Skip following all digits after `@@`
nobu (Nobuyoshi Nakada)
05:28 AM Feature #15879: Proposal: Time#to_i accepts :unit keyword
> In contrast to this, your proposal with Time#to_i seems to return rounded results even though the method name is to_i. I think this is confusing. Is this your intention?
It is not important whether the result is rounded or truncated...
joker1007 (Tomohiro Hashidate)
05:20 AM Revision 40e175b3 (git): Clean a garbage [ci skip]
nobu (Nobuyoshi Nakada)
03:55 AM Revision 05bc14d8 (git): Fix building with 1.8 BASERUBY
jeremyevans (Jeremy Evans)
02:44 AM Revision f3bddc10 (git): use malloc() instead of calloc().
Here malloc() is enough because all elements of the page_list
will be overwrite.
ko1 (Koichi Sasada)
02:44 AM Revision f9401d5d (git): should skip T_ZOMBIE here.
ko1 (Koichi Sasada)
02:44 AM Revision 2229acaa (git): should use heap_eden->total_pages.
The size of page_list is heap_eden->total_pages, but
init_cursors() assumes the size of page_list is `heap_allocated_pages`.
This patch fix it.
ko1 (Koichi Sasada)
02:38 AM Revision 72333286 (git): Fix typos in Ripper::Lexer#inspect and Ripper::Lexer#pretty_print
nobu (Nobuyoshi Nakada)
02:03 AM Revision ccfb12d7 (git): Fix condition..."and" is lowest priority operator, than "="
aycabta (aycabta .)
01:31 AM Revision 7f211bfe (git): use only eden_heaps on GC.compact.
`heap_pages_sorted` includes eden and tomb pages, so we should not
use tomb pages for GC.compact (or we should move all of tomb pages
into eden pages). Now, I choose only eden pages. If we allow to
move Zombie objects (objects waiting fo...
ko1 (Koichi Sasada)
01:31 AM Revision cfd839c1 (git): Suppress warning (uninitialized variable).
ko1 (Koichi Sasada)
01:24 AM Revision fa7a768f (git): Removed inconsistency file from upstream repository of rubygems.
followed up ae2a904ce9bffedee7d110dc60fd51c0a2879a5b hsbt (Hiroshi SHIBATA)
01:07 AM Revision 165ddfda (git): * remove trailing spaces.
git[bot]
01:07 AM Revision ae2a904c (git): Update the certificate files to make the test pass on Debian 10
The old certificate files (for example, test/rubygems/ca_cert.pem) were
signed by SHA1. This message digest is considered too weak and rejected
by OpenSSL 1.1.1 or later. Because of this, the test suite does not
pass on Debian 10.
htt...
mame (Yusuke Endoh)
01:02 AM Revision cf904d9f (git): Avoid doubly building Travis and AppVeyor
but on "master" branch.
For Pull Request, I changed the approach from
d9b338a53f520b2dbb05555f18b8de8072300f40 and
277e68825a8e4d0e6503a32e41f8b1b6c078b567.
k0kubun (Takashi Kokubun)
12:57 AM Feature #15883 (Closed): Include inspect value of object in FrozenError messages
`FrozenError#receiver` was added recently for getting the related object programmatically. However, there are cases where FrozenError is raised and not handled, and in those cases the resulting error messages lack detail, which makes de... jeremyevans0 (Jeremy Evans)
12:06 AM Feature #14683 (Closed): IRB with Ripper
aycabta (aycabta .)
12:06 AM Feature #14787 (Closed): Show documents when completion
aycabta (aycabta .)
12:00 AM Revision 1cdaa17a (git): parse.y: numbered parameter symbol
* parse.y (parse_atmark): numbered parameter name is not allowed
as a symbol regardless the context.
nobu (Nobuyoshi Nakada)
 

Also available in: Atom