summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-18[ruby/io-console] bump up to 0.5.5Nobuyoshi Nakada
2020-01-18[ruby/io-console] Set `OPOST` when `intr` is trueNobuyoshi Nakada
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
2020-01-18[ruby/io-console] Filter Ruby engine name rather than just /ruby/Charles Oliver Nutter
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
2020-01-18[ruby/io-console] Update the minimum requirement of Ruby versionHiroshi SHIBATA
https://github.com/ruby/io-console/commit/73e7b6318a
2020-01-17Update documentation for Array/Hash Argument section of methods.rdocAdam Isom
Notes: Merged: https://github.com/ruby/ruby/pull/2844
2020-01-17.github/workflows/cygwin.yml: RemovedYusuke Endoh
There is no active maintainer for cygwin. The CI failure is too noisy. [Misc #16407]
2020-01-17hash.c: Add a feature to manipulate ruby2_keywords flagYusuke Endoh
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
2020-01-17marshal.c: Support dump and load of a Hash with the ruby2_keywords flagYusuke Endoh
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
2020-01-17Added test for f38b3e8c707ebdcad05aa9485cf1760640b74fbbNobuyoshi Nakada
2020-01-17Update dependenciesNobuyoshi Nakada
internal/rational.h needs internal/warnings.h with Apple clang, for `UNALIGNED_MEMBER_ACCESS`.
2020-01-17Update dependencies in makefiles againKazuhiro NISHIYAMA
patch from https://travis-ci.org/ruby/ruby/jobs/638231960
2020-01-17rb_rational_raw: convert num and den by to_intKenta Murata
2020-01-17rb_rational_raw: make a denominator always positiveKenta Murata
2020-01-17Update dependencies in makefilesKazuhiro NISHIYAMA
patch from https://travis-ci.org/ruby/ruby/jobs/638226493
2020-01-17internal/rational.h: insert assertions in RATIONAL_SET_{NUM,DEN}Kenta Murata
2020-01-17rational.c: remove nurat_s_newKenta Murata
2020-01-17Make RATIONAL_SET_{NUM,DEN} static inline functionsKenta Murata
2020-01-16Clarify documentation for Module#included_modules and Module#included?Marc-Andre Lafortune
[DOC] [ci skip] [Bug #8841]
2020-01-17* 2020-01-17 [ci skip]git
2020-01-17Implement vi_insert_at_bol and vi_add_at_eolaycabta
2020-01-17Add tests for vi_insert and vi_addaycabta
2020-01-16Separate numbered parameter scope in evalNobuyoshi Nakada
[Feature #16432]
2020-01-16Fixed the location of args node with numbered parameterNobuyoshi Nakada
2020-01-16Removed xmlrpc and net-telnet from the bundled gems.Hiroshi SHIBATA
[Feature #16484][ruby-core:96682]
2020-01-16Fix `String#partition`Nobuyoshi Nakada
Split with the matched part when the separator matches the empty part at the beginning. [Bug #11014]
2020-01-16* 2020-01-16 [ci skip]git
2020-01-16`Regexp` in `MatchData` can be `nil`Nobuyoshi Nakada
`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]
2020-01-15NEWS.md: mention "Freeze Regexp literals" [Feature #8948]Yusuke Endoh
2020-01-15NEWS.md: converted from NEWSYusuke Endoh
and NEWS is deleted
2020-01-15Update version guardKazuhiro NISHIYAMA
fix up 98ef38ada43338c073f50a0093196f0356284625
2020-01-15Freeze Regexp literalsJean Boussier
[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
2020-01-15* 2020-01-15 [ci skip]git
2020-01-15Add option hash doc for GC stats.Koichi Sasada
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.
2020-01-14Use Reline.encoding_system_needs if existsaycabta
2020-01-14Remove an unused setting variableaycabta
2020-01-14Introduce an abstracted structure about the encoding of Relineaycabta
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.
2020-01-14[ruby/irb] Fix crashing when multiple open braces per lineBen
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
2020-01-14[ruby/irb] Fix newline depth with multiple bracesBen
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
2020-01-14Remove s390x from allow_failuresJun Aruga
Notes: Merged: https://github.com/ruby/ruby/pull/2837
2020-01-14* 2020-01-14 [ci skip]git
2020-01-13Simplify obj2ubits checksJohn Hawthorn
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
2020-01-13Avoid rb_check_string_type in month_argJohn Hawthorn
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
2020-01-13Store "UTC" and "" fstring as globals in time.cJohn Hawthorn
Notes: Merged: https://github.com/ruby/ruby/pull/2808
2020-01-13Mention new feature of Hash#transform_keys [Feature #16273]Kazuhiro NISHIYAMA
ref b25e27277dc39f25cfca4db8452d254f6cc8046e
2020-01-13test-bundled-gems.rb: Use real paths for symlinksNobuyoshi Nakada
2020-01-13Checkout with git on cygwin for EOL codeNobuyoshi Nakada
`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.
2020-01-13Fix syntax error in obj_free with hash size debug counter when ↵Lourens Naudé
USE_DEBUG_COUNTER is enabled Notes: Merged: https://github.com/ruby/ruby/pull/2834
2020-01-13* 2020-01-13 [ci skip]git
2020-01-13reload AR table body for transient heap.Koichi Sasada
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.
2020-01-12Clean generated ChangeLog [ci skip]Nobuyoshi Nakada