Age | Commit message (Collapse) | Author |
|
|
|
To enable implementation-defined output processing, for the
compatibility with readline. [Bug #16509]
https://bugs.ruby-lang.org/issues/16509
https://github.com/ruby/io-console/commit/8c8b0b6757
|
|
This breaks tests using this path on JRuby because the `jruby`
executable turns into `jjruby` after the sub.
https://github.com/ruby/io-console/commit/e5951aa34c
|
|
https://github.com/ruby/io-console/commit/73e7b6318a
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2844
|
|
There is no active maintainer for cygwin. The CI failure is too noisy.
[Misc #16407]
|
|
It was found that a feature to check and add ruby2_keywords flag to an
existing Hash is needed when arguments are serialized and deserialized.
It is possible to do the same without explicit APIs, but it would be
good to provide them as a core feature.
https://github.com/rails/rails/pull/38105#discussion_r361863767
Hash.ruby2_keywords_hash?(hash) checks if hash is flagged or not.
Hash.ruby2_keywords_hash(hash) returns a duplicated hash that has a
ruby2_keywords flag,
[Bug #16486]
Notes:
Merged: https://github.com/ruby/ruby/pull/2818
|
|
It is useful for a program that dumps and load arguments (like drb).
In future, they should deal with both positional arguments and keyword
ones explicitly, but until ruby2_keywords is deprecated, it is good to
support the flag in marshal.
The implementation is similar to String's encoding; it is dumped as a
hidden instance variable.
[Feature #16501]
Notes:
Merged: https://github.com/ruby/ruby/pull/2830
|
|
|
|
internal/rational.h needs internal/warnings.h with Apple clang,
for `UNALIGNED_MEMBER_ACCESS`.
|
|
patch from https://travis-ci.org/ruby/ruby/jobs/638231960
|
|
|
|
|
|
patch from https://travis-ci.org/ruby/ruby/jobs/638226493
|
|
|
|
|
|
|
|
[DOC] [ci skip] [Bug #8841]
|
|
|
|
|
|
|
|
[Feature #16432]
|
|
|
|
[Feature #16484][ruby-core:96682]
|
|
Split with the matched part when the separator matches the empty
part at the beginning. [Bug #11014]
|
|
|
|
`String#sub` with a string pattern defers creating a `Regexp`
until `MatchData#regexp` creates a `Regexp` from the matched
string. `Regexp#last_match(group_name)` accessed its content
without creating the `Regexp` though. [Bug #16508]
|
|
|
|
and NEWS is deleted
|
|
fix up 98ef38ada43338c073f50a0093196f0356284625
|
|
[Feature #8948] [Feature #16377]
Since Regexp literals always reference the same instance,
allowing to mutate them can lead to state leak.
Notes:
Merged: https://github.com/ruby/ruby/pull/2705
|
|
|
|
Add a description about optional hash objects for GC.stat and
GC.latest_gc_info. [Bug #14408]
The patch is provided by sho-h (Sho Hashimoto).
Thank you so much.
|
|
|
|
|
|
The command prompt on Windows always uses Unicode to take input and print
output but most Reline implementation depends on Encoding.default_external.
This commit introduces an abstracted structure about the encoding of Reline.
|
|
https://github.com/ruby/irb/issues/55
If we had put multiple open braces on a line the with no closing brace
spaces_of_nest array keeps getting '0' added to it. This means that when
we pop off of this array we are saying that we should be in position zero
for the next line. This is an issue because we don't always want to be
in position 0 after a closing brace.
Example:
```
[[[
]
]
]
```
In the above example the 'spaces_of_nest' array looks like this after
the first line is entered: [0,0,0]. We really want to be indented 4
spaces for the 1st closing brace 2 for the 2nd and 0 for the 3rd. i.e.
we want it to be: [0,2,4].
We also saw this issue with a heredoc inside of an array.
```
[<<FOO]
hello
FOO
```
https://github.com/ruby/irb/commit/80c69c8272
|
|
This commit fixes the check_newline_depth_difference method to multiple
open braces on one line into account. Before this change we were
subtracting from the depth in check_newline_depth_difference on
every open brace. This is the right thing to do if the opening and
closing brace are on the same line. For example in a method definition we
have an opening and closing parentheses we want to add 1 to our depth,
and then remove it.
```
def foo()
end
```
However this isn't the correct behavior when the brace spans multiple
lines. If a brace spans multiple lines we don't want to subtract from
check_newline_depth_difference and we want to treat the braces the same
way as we do `end` and allow check_corresponding_token_depth to pop the
correct depth.
Example of bad behavior:
```
def foo()
[
]
puts 'bar'
end
```
Example of desired behavior:
```
def foo()
[
]
puts 'bar'
end
```
https://github.com/ruby/irb/commit/7dc8af01e0
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2837
|
|
|
|
If this value is less than zero, then the mask check is guaranteed to
fail as well, so we might as well rely on that.
Notes:
Merged: https://github.com/ruby/ruby/pull/2808
|
|
This will usually receive a fixnum so we should check that first instead
of the more expensive rb_check_string_type check.
Notes:
Merged: https://github.com/ruby/ruby/pull/2808
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2808
|
|
ref b25e27277dc39f25cfca4db8452d254f6cc8046e
|
|
|
|
`shell: bash` runs bash on msys which prefers git on msys too,
then checked out in CRLF mode. Cygwin sed doesn't consider the CR
a part of EOL code, though.
|
|
USE_DEBUG_COUNTER is enabled
Notes:
Merged: https://github.com/ruby/ruby/pull/2834
|
|
|
|
ar_talbe (Hash representation for <=8 size) can use transient heap
and the memory area can move. So we need to restore `pair' ptr after
`func` call (which can run any programs) because of moving.
|
|
|