Граф коммитов

8922 Коммитов

Автор SHA1 Сообщение Дата
aycabta 7b354cf67b [ruby/irb] Enable to reassign a new block with "measure" command
https://github.com/ruby/irb/commit/b444573aa2
2021-02-06 21:09:31 +09:00
aycabta 5704b5fe5e [ruby/irb] Allow "measure" command to take block
https://github.com/ruby/irb/commit/20f1ca23e9
2021-02-06 20:45:08 +09:00
ima1zumi b79d443482 [ruby/irb] Add info.rb to gemspec
https://github.com/ruby/irb/commit/adbba19adf
2021-02-04 21:12:54 +09:00
Nobuhiro IMAI b0fb208218 [ruby/irb] follow up the actual line number
https://github.com/ruby/irb/commit/7aed8fe3b1
2021-02-03 00:09:32 +09:00
Nobuyoshi Nakada f6387ae073 Fix absolute path predicate on Windows
A path starts with '/' is not an absolute path on Windows, because
of drive letter or UNC.
2021-01-29 10:26:18 +09:00
Nobuhiro IMAI e80e5a2f89 [ruby/irb] use `RubyLex::TerminateLineInput` appropriately [Bug #17564]
* using the appropriciate exception instead of `break` so that the session
  can be continue after the `irb_source` and `irb_load` commands
* suppress extra new line due to one more `#prompt` call

https://github.com/ruby/irb/commit/bdefaa7cfd
2021-01-27 15:02:05 +09:00
Nobuhiro IMAI 5b05b85d85 [ruby/irb] add `IRB::FileInputMethod.open` to ensure closing associated File
* tweak some methods not to raise exception after `#close`
* use it in `IRB::IrbLoader#{source_file,load_file}

https://github.com/ruby/irb/commit/ec2947acbd
2021-01-27 15:01:57 +09:00
Nobuyoshi Nakada 19e6d27126 [ruby/rdoc] Support iso-strict format in git-log
https://github.com/ruby/rdoc/commit/2a6c22da63
2021-01-25 18:33:33 +09:00
Nobuyoshi Nakada 7fe22152fc [ruby/rdoc] Support other date formats in git-log
https://github.com/ruby/rdoc/commit/ad8cf37d72
2021-01-25 18:33:31 +09:00
Nobuyoshi Nakada fd6d5c803a Clear each test own temporary directories 2021-01-25 12:51:18 +09:00
Nobuyoshi Nakada 30f11e73c4
Revert "Remove temporary directory properly"
This reverts commit 80bad36989,
because a few CI machines fail continuously.
2021-01-24 23:26:11 +09:00
Nobuyoshi Nakada 80bad36989 Remove temporary directory properly
For each `make check`, rubygems test makes "tmp" directory and
some "gem_generate_index..." directories remain there.

* Do not create a (fixed name) directory in the current working
  directory
* Should remove its own temporary directory
2021-01-24 19:30:02 +09:00
Nobuyoshi Nakada 52ebaf718e [ruby/rdoc] Skip non-date logs by git-log
`RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by
git-log, because of too heuristic `Time.parse`.

For instance, "commit 8187228de0142d3ac7950b7d977c2849e934c637"
results in "8187-08-16", that is, day 228 in the year 8187.

https://github.com/ruby/rdoc/commit/9711e6f6d9
2021-01-24 16:46:27 +09:00
Nobuyoshi Nakada d5d1c41728 [ruby/rdoc] Sort by CommitDate if available
https://github.com/ruby/rdoc/commit/455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada fa048a0f85 [ruby/rdoc] Add links to the commits
https://github.com/ruby/rdoc/commit/1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada f3f1a666c7 [ruby/rdoc] Shorten commit hashes
https://github.com/ruby/rdoc/commit/5d3e153963
2021-01-24 16:46:21 +09:00
Nobuyoshi Nakada 127f735c1e [ruby/rdoc] Tweak log entry markdown
* add 3 levels to headings
* prefix commit log to labels to make unique IDs

https://github.com/ruby/rdoc/commit/5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada b88d1e6b44 [ruby/rdoc] Make each commit entries h3
https://github.com/ruby/rdoc/commit/11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada bb570ce6d8 [ruby/rdoc] Support ChangeLog generated by `git log`
https://github.com/ruby/rdoc/commit/5e0a123ca1
2021-01-24 16:46:15 +09:00
Dorian Marié 68e7dc532d [ruby/rdoc] Fix failing test by adding gettext as a development dependency
The failing test was:

========================================================================================
rdoc/test/rdoc/test_rdoc_i18n_locale.rb:35:in `rescue in test_load_existent_po'
Omission: gettext gem is not found [test_load_existent_po(TestRDocI18nLocale)]
========================================================================================

https://github.com/ruby/rdoc/commit/e5f85839e1
2021-01-24 16:46:11 +09:00
aycabta 743c44ee21 [ruby/irb] Indent correctly with method calling with receiver
https://github.com/ruby/irb/commit/e7c68e74a0
2021-01-24 14:35:34 +09:00
aycabta fc54af8aa1 [ruby/irb] Indent correctly with keyword "for" and "in"
https://github.com/ruby/irb/commit/47c83ea724
2021-01-24 14:35:26 +09:00
Gannon McGibbon 37258b64c7
[ruby/net-http] Replace "iff" with "if and only if"
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.

https://github.com/ruby/net-http/commit/ffb87cad32
2021-01-23 10:20:28 +09:00
Gannon McGibbon 1def8a6004 [rubygems/rubygems] Replace "iff" with "whether" and "if and only if"
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
or "whether" should suffice.

https://github.com/rubygems/rubygems/commit/88318ebc6d
2021-01-23 09:50:47 +09:00
aycabta fb33ec0119 [ruby/irb] Delete a doodle-level memo comment...
https://github.com/ruby/irb/commit/fc3e1d9e0c
2021-01-22 08:15:31 +09:00
Gannon McGibbon 871b4612b0 [ruby/matrix] Replace "iff" with "whether" [doc]
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "whether"
when describing return values should suffice.
2021-01-21 13:22:25 -05:00
Felix Wolfsteller e34f51fe60 [ruby/matrix] Add `Matrix#rotate_entries` [#19]
Co-authored-by: Marc-André Lafortune <github@marc-andre.ca>
2021-01-21 13:22:25 -05:00
Takashi Kokubun 724c289b5c [ruby/erb] Version 2.2.2
https://github.com/ruby/erb/commit/3d84ea83bc
2021-01-21 15:29:40 +09:00
Takashi Kokubun b12bd451af [ruby/erb] Let ERB.version just return a version
and deprecate ERB::Revision.

`'$Date::                           $'` has not been working since Git
migration from SVN. I'm sorry.

Because it has been already broken, I'd like to take this opportunity to
make `ERB.version` compatible with `Gem::Version.new`.

https://github.com/ruby/erb/commit/2b4182eb10
2021-01-21 15:26:55 +09:00
Takashi Kokubun e0d92d5e5d [ruby/erb] Version 2.2.1
https://github.com/ruby/erb/commit/c8aa019c26
2021-01-21 14:52:20 +09:00
Takashi Kokubun 3e8ca51b3b
Fix the relative path for Ruby core 2021-01-20 21:45:34 -08:00
Takashi Kokubun 5f7df72b56
[ruby/erb] Unify ERB version definitions
https://github.com/ruby/erb/commit/5df06b8473
2021-01-20 21:43:05 -08:00
Takashi Kokubun 084662dc9f
[ruby/erb] Make styles consistent throught the project
https://github.com/ruby/erb/commit/c68c9470b0
2021-01-20 21:36:23 -08:00
Takashi Kokubun 922989fa0f [ruby/erb] Warn safe_level and later args even without -w
because, when Ruby 3.1 is released, Ruby 2.5, the last version with the
old method signature, will have been EOL. Therefore we can safely warn
the old interface from Ruby 3.1.

https://github.com/ruby/erb/commit/c3a753f49f
2021-01-21 13:52:02 +09:00
Gannon McGibbon 9e0075a3d9 Replace "iff" with "if and only if"
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.
2021-01-19 12:06:45 -08:00
Takashi Kokubun 1f87725cae [ruby/irb] Rescue Errno::EINVAL on IRB pp
http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20210119T070008Z.log.html.gz
is caused by:

/export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline/ansi.rb:157:in `winsize': Invalid argument - <STDIN> (Errno::EINVAL)
        from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline/ansi.rb:157:in `get_screen_size'
        from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline.rb:168:in `get_screen_size'
        from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/forwardable.rb:238:in `get_screen_size'
        from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/irb/color_printer.rb:7:in `pp'
        from -e:1:in `<main>'

https://github.com/ruby/irb/commit/1719514598
2021-01-19 08:57:50 -08:00
Takashi Kokubun 82386f21b9 [ruby/irb] Use a real screen size for pp by default
https://github.com/ruby/irb/commit/9b9300dec2
2021-01-18 22:52:44 -08:00
Hiroshi SHIBATA 5741236a0c
Use real-case version number for the result of `gem list` 2021-01-19 11:51:39 +09:00
Nobuyoshi Nakada 21d2463fbc Added empty ruby2_keywords gem to suffice dependencies 2021-01-19 01:19:57 +09:00
Hiroshi SHIBATA bb5747e18a
Added ruby2_keywords for Ruby 2.5 and 2.6 2021-01-18 20:41:33 +09:00
aycabta 9f7876ab0f [ruby/irb] Version 1.3.2
https://github.com/ruby/irb/commit/a7699026cc
2021-01-18 02:13:07 +09:00
Nobuhiro IMAI d290a02bd7 [ruby/irb] handle repeated exception separately
https://github.com/ruby/irb/commit/fcf6b34bc5
2021-01-18 02:12:53 +09:00
Nobuhiro IMAI 3f0b4665df [ruby/irb] handle `__ENCODING__` as a keyword as well
https://github.com/ruby/irb/commit/a6a33d908f
2021-01-18 02:12:43 +09:00
aycabta edafde6844 [ruby/irb] [ruby/irb] [ruby/reline] Version 0.2.2
https://github.com/ruby/reline/commit/dfb710946f

https://github.com/ruby/irb/commit/1a1cdf9628

https://github.com/ruby/irb/commit/fe99faf8bd
2021-01-18 02:10:02 +09:00
aycabta e1449ae74f [ruby/reline] Reline::Windows.erase_after_cursor erases attributes too
https://github.com/ruby/reline/commit/68b961dfc7
2021-01-18 02:09:53 +09:00
aycabta 05df7e0d4a [ruby/reline] Support for change in Windows-specific behavior at eol
The behavior of automatically moving the cursor to the next line when
displaying a char at the eol on Windows suddenly disappeared.

https://github.com/ruby/reline/commit/cad4de6ee8
2021-01-18 02:09:43 +09:00
aycabta 1aba1a5103 [ruby/reline] Initialize a variable just in case
https://github.com/ruby/reline/commit/29b10f6e98
2021-01-18 02:07:37 +09:00
Nobuyoshi Nakada 562b97e2f0 [ruby/fileutils] Removed code for dead versions
https://github.com/ruby/fileutils/commit/1f707d8cc6
2021-01-17 12:20:57 +09:00
Nobuyoshi Nakada 905f58dc87 [ruby/fileutils] Drop support for dead old versions
https://github.com/ruby/fileutils/commit/4526148c67
2021-01-17 12:20:55 +09:00
Nobuyoshi Nakada 5307fab661
[ruby/time] Use Time#strftime to format
https://github.com/ruby/time/commit/6b8cc4799e
2021-01-15 19:04:33 +09:00
Nobuyoshi Nakada 1cb0c5ac49
[ruby/time] No document for private methods
https://github.com/ruby/time/commit/44a55daa70
2021-01-15 12:43:28 +09:00
Nobuyoshi Nakada 7f3c5e65c6
mkmf.rb: remove exts.mk at distclean 2021-01-14 00:17:23 +09:00
Marc-Andre Lafortune 30a35420e6 [ruby/ostruct] Bump version 2021-01-13 01:09:29 -05:00
Marc-Andre Lafortune f48edc28dd Fix method protection for modules in the ancestry chain.
[Fixes ruby/ostruct#23]
2021-01-12 23:29:39 -05:00
aycabta 0e44247508 [ruby/reline] Version 0.2.1
https://github.com/ruby/reline/commit/a3b3c6ee60
2021-01-13 01:12:54 +09:00
aycabta eb5a094fc0 [ruby/reline] Move the cursor correctly when deleting at eol
This fixes ruby/reline#246.

https://github.com/ruby/reline/commit/07a73ba601
2021-01-13 01:12:54 +09:00
aycabta 44817db28b [ruby/reline] Handle ed_search_{prev,next}_history in multiline correctly
The current line was being handled incorrectly when displaying the hit
history, so it has been fixed to be correct.

https://github.com/ruby/reline/commit/a3df4343b3
2021-01-13 01:12:54 +09:00
aycabta 9fa478e38a [ruby/irb] Version 1.3.1
https://github.com/ruby/irb/commit/c230d08911
2021-01-13 01:12:54 +09:00
Marc-André Lafortune d8c8b79d24
[ruby/matrix] Fix 0-th power [Bug #17521] (#4047) 2021-01-10 16:21:10 -05:00
Takashi Kokubun 98bd7e87a0 [ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.pp
The incompatible interface is not helpful, again if you want to use it
as a standalone library, falling it back to PP.

Original PP.pp also ends with `out << "\n"`.

https://github.com/ruby/irb/commit/4c74c7d84c
2021-01-07 22:43:40 -08:00
Takashi Kokubun d6b2b5bd47 [ruby/irb] Add missing require
This is useful if you want to use IRB::ColorPrinter as a library like:

```
begin
  require 'irb/color_printer'
  IRB::ColorPrinter.pp(obj)
rescue LoadError
  pp(obj)
end
```

https://github.com/ruby/irb/commit/f8461691c7
2021-01-07 22:35:12 -08:00
aycabta 6cbb3fd142 [ruby/irb] Fix comment, irb gem supports 2.5.0 or older
https://github.com/ruby/irb/commit/36118015ba
2021-01-08 13:32:10 +09:00
aycabta a8f4cbeece [ruby/reline] Add acknowledgments and license for rb-readline
https://github.com/ruby/reline/commit/19df59b916
2021-01-08 13:25:18 +09:00
aycabta 01235f800f [ruby/reline] Suppress auto indent for adding newlines in pasting
Co-authored-by: Juanito Fatas <me@juanitofatas.com>

https://github.com/ruby/reline/commit/074bb017a7
2021-01-08 13:25:18 +09:00
aycabta 76c9a3c8c6 [ruby/reline] Suppress crashing when dynamic_prompt_proc returns a broken prompt list
Co-authored-by: Juanito Fatas <me@juanitofatas.com>

https://github.com/ruby/reline/commit/558f7be168
2021-01-08 13:25:18 +09:00
aycabta 88af5085db [ruby/reline] Suppress crashing when auto_indent_proc returns broken indent info
Co-authored-by: Juanito Fatas <me@juanitofatas.com>

https://github.com/ruby/reline/commit/7c24276275
2021-01-08 13:25:18 +09:00
aycabta ea75aed98e [ruby/reline] Correct var names in Reline were different from vi-*-mode-string
https://github.com/ruby/reline/commit/8255fc93b9
2021-01-08 13:25:18 +09:00
aycabta 54c1dcba2b [ruby/reline] Update cursor correctly when just cursor moving
This fixes ruby/reline#236 and ruby/reline#239.

https://github.com/ruby/reline/commit/3e3c89d00b
2021-01-08 13:25:18 +09:00
aycabta 559f844bf4 irb: Drop lines from backtrace for tests in Ruby repository 2021-01-08 13:25:18 +09:00
aycabta 111fddd543 [ruby/irb] Fix BACK_TRACE_LIMIT logic
https://github.com/ruby/irb/commit/30dc5d43fe
2021-01-08 13:25:18 +09:00
aycabta 917050220a [ruby/irb] Use Exception#full_message to show backtrace in the correct order
[Bug #17466]

https://github.com/ruby/irb/commit/1c76845cca
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI ed3264d37a [ruby/irb] refactoring an error handling in `IRB::Inspector`
* moved rescue clause to `#inspect_value` to catch all failures in inspectors
* test with all (currently five kind of) inspect modes
  - tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject`

https://github.com/ruby/irb/commit/9d112fab8e
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI f594775230 [ruby/irb] do not escape a predicate method for doc namespace
* Fixes #88

https://github.com/ruby/irb/commit/d431a30af4
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI 4bb683a570 [ruby/irb] fix typo in `IRB::Irb#convert_invalid_byte_sequence`
https://github.com/ruby/irb/commit/d09d3c3d68
2021-01-08 13:25:18 +09:00
Igor Zubkov ee1e690a2d
We don't need "require 'uri'" after "require 'net/http'". 2021-01-07 13:40:42 +09:00
Marc-Andre Lafortune a0a6293e78 [ruby/ostruct] Bump version 2021-01-05 18:35:56 -05:00
Adam Hess e13f41e02d
[ruby/ostruct] Allow ostruct to return a value on super (#4028)
This fixes cases where you can super in something that inherits from OpenStruct

Co-authored-by: John Hawthorn <john@hawthorn.email>
2021-01-05 18:34:45 -05:00
Nobuyoshi Nakada 903af74bbd [ruby/irb] Ensure to restore $VERBOSE
https://github.com/ruby/irb/commit/cef474a76a
2021-01-05 18:07:18 +09:00
aycabta 0123bc9d38 [ruby/irb] Use error tokens if there are no correct tokens in the same place
For example, the broken code "%www" will result in only one error token.

https://github.com/ruby/irb/commit/9fa39a7cf3
2021-01-05 18:06:43 +09:00
aycabta 5a1866caff [ruby/irb] Use Ripper::Lexer#scan to take broken tokens
ref. https://github.com/ruby/reline/pull/242

https://github.com/ruby/irb/commit/54f90cb6c9
2021-01-05 18:06:34 +09:00
aycabta 505e01fe12 [ruby/irb] Heredoc may contain multiple newlines in a single token
Use the start token as the indentation criteria so that it works properly in
heredoc.

ref. https://github.com/ruby/reline/pull/242

https://github.com/ruby/irb/commit/9704808dfd
2021-01-05 18:06:26 +09:00
aycabta 5012512398 [ruby/irb] Handle indentations related to keyword "do" correctly
This fixes ruby/irb#158.

https://github.com/ruby/irb/commit/964643400b
2021-01-05 18:06:10 +09:00
aycabta e72a6ed45f [ruby/irb] Escape invalid byte sequence in Exception
This fixes ruby/irb#141.

https://github.com/ruby/irb/commit/0815317d42
2021-01-05 18:05:06 +09:00
aycabta cce72a2411 [ruby/irb] Newline in oneliner def doesn't reset indent
This closes ruby/irb#132.

https://github.com/ruby/irb/commit/43456dcf5e
2021-01-05 18:04:45 +09:00
aycabta 515d6b47ad [ruby/irb] Stringify when a non-object is passed to PP#text
If a nested object is passed to #pp, it may be sometimes passed to the #text
method as an object without being stringified.

This is fixed on the Ruby main repository;
433a3be86a
but it was a bug of Ripper so still needs this workaround for using irb
as a gem on Ruby 3.0.0 or earlier.

Co-authored-by: k0kubun <takashikkbn@gmail.com>

https://github.com/ruby/irb/commit/8d13df22ee
2021-01-04 20:14:31 -08:00
Hiroshi SHIBATA 69ed64949b Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20 2021-01-04 13:14:43 +09:00
Hiroshi SHIBATA 5537adf719 Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20 2021-01-04 13:14:43 +09:00
Nobuyoshi Nakada bc4c862a76 [ruby/timeout] Removed deprecated names that had been warned for 5 years
https://github.com/ruby/timeout/commit/f9a9758a41
2021-01-03 20:19:30 +09:00
Nobuyoshi Nakada 4b6fd8329b
mkmf.rb: always try_compile as try_header
Get rid of "present but cannot be compiled" headers, on some
multi-architecture platforms.
2021-01-02 12:11:02 +09:00
Nobuyoshi Nakada d57c5a7b61 transcode-tblgen.rb: make silent a little when just -v 2020-12-29 17:45:19 +09:00
Takashi Kokubun 6d07785127 [ruby/irb] Remove unnecessary ignore_error in dispatch_seq
Just forgotten in a5804c3560

https://github.com/ruby/irb/commit/e42e548793
2020-12-28 23:29:29 -08:00
Takashi Kokubun f30a3a0629
[ruby/irb] Do not colorize partially-correct inspect
This is to prevent a yellow-mixed output for ActiveSupport::TimeWithZone.

Follows up https://github.com/ruby/irb/pull/159 and https://github.com/ruby/ruby/pull/3967.

a5804c3560
2020-12-28 23:29:08 -08:00
Nobuhiro IMAI 9b7ceb6765
irb: add more syntax errors colorizing support (#3967) 2020-12-28 23:07:20 -08:00
Takashi Kokubun f9e80af28a [ruby/irb] Add color_printer.rb to gemspec
https://github.com/ruby/irb/commit/b4df0fd8b2
2020-12-28 23:01:01 -08:00
Takashi Kokubun c715fb46c2 [ruby/irb] Enhance colored inspect output
https://github.com/ruby/irb/commit/dffcdb5269
2020-12-28 23:01:00 -08:00
Hiroshi SHIBATA a0d1152d2e [ruby/drb] Removed needless files from Gem::Specification#files
https://github.com/ruby/drb/commit/61c49af71b
2020-12-28 18:41:02 +09:00
Hiroshi SHIBATA e6fee2b64f [ruby/pp] Removed needless files from Gem::Specification#files
https://github.com/ruby/pp/commit/272d4befeb
2020-12-28 16:20:37 +09:00
Hiroshi SHIBATA 8b387bcfba [ruby/pp] Drop to support < Ruby 2.7
https://github.com/ruby/pp/commit/e92228964b
2020-12-28 16:19:42 +09:00
Kenta Murata 441cd156e0 [ruby/csv] Fix typo [ci skip]
https://github.com/ruby/csv/commit/117bcf311e
2020-12-27 15:27:46 +09:00
Sutou Kouhei cd2c726bc0 [ruby/csv] Bump version
https://github.com/ruby/csv/commit/5855c017ef
2020-12-27 15:26:24 +09:00
Hiroshi SHIBATA bb04856bca [ruby/racc] Bump version to 1.5.2
https://github.com/ruby/racc/commit/ce0d7b9cde
2020-12-26 15:10:49 +09:00
Hiroshi SHIBATA 533bf6f19d [ruby/racc] Use Racc::VERSION for gemspec
https://github.com/ruby/racc/commit/30f5760d85
2020-12-26 15:10:28 +09:00
aycabta 523b520b44 [ruby/reline] 0.2.0
https://github.com/ruby/reline/commit/064664c8f9
2020-12-25 01:29:18 +09:00
aycabta 32616229e3 [ruby/irb] Version 1.3.0
https://github.com/ruby/irb/commit/ec83280e66
2020-12-25 01:29:18 +09:00
aycabta 9a7647d9eb [ruby/reline] Doesn't contain terminate spaces by cw
This closes ruby/reline#233.

https://github.com/ruby/reline/commit/4c3f2e2eae
2020-12-24 23:26:22 +09:00
aycabta 78421319d0 [ruby/reline] Use #bytesize for vi_replace_char
This closes ruby/reline#228.

https://github.com/ruby/reline/commit/8205fa0b00
2020-12-24 23:26:22 +09:00
aycabta 0db9842b2c [ruby/reline] Delete the last char of a line by dw
This closes ruby/reline#229.

https://github.com/ruby/reline/commit/3f0ae689c4
2020-12-24 23:26:22 +09:00
aycabta 8d5d139afa [ruby/reline] Suppress crashing when boken prompt_list is given
https://github.com/ruby/reline/commit/922d087e7a
2020-12-24 23:26:22 +09:00
aycabta 634b231f33 [ruby/reline] Discard prompt cache by changing mode icon
https://github.com/ruby/reline/commit/bfeda8a79b
2020-12-24 23:26:22 +09:00
aycabta 167dc37632 [ruby/irb] Try not to register the exact same measuring method twice
https://github.com/ruby/irb/commit/cc66b5573e
2020-12-24 23:26:22 +09:00
aycabta 28e9344fa4 [ruby/irb] Change StdioInputMethod#eof? to non-blocking
This fixes --inf-ruby-mode.

https://github.com/ruby/irb/commit/0e4a818955
2020-12-23 22:08:30 +09:00
aycabta 31bd172185 [ruby/irb] Suppress "shadowing outer" warning
https://github.com/ruby/irb/commit/8b83fbef69
2020-12-23 21:26:25 +09:00
Kazuhiro NISHIYAMA 082114da05
[DOC] Add doc to sharing_detection= [ci skip]
Before:
```
$ ri sharing_detection=
= .sharing_detection=
(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
  sharing_detection=(b)
------------------------------------------------------------------------
Returns the sharing detection flag as a boolean value. It is false by
default.
```

After:
```
$ ri sharing_detection=
= .sharing_detection=

(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
  sharing_detection=(b)

------------------------------------------------------------------------

Sets the sharing detection flag to b.
```
2020-12-23 11:13:50 +09:00
Hiroshi SHIBATA 339227363c Merge RubyGems 3.2.3 and Bundler 2.2.3 2020-12-23 10:17:41 +09:00
aycabta 841d22ea47 [ruby/reline] [ruby/irb] Handle multiple newlines in a token correctly
Co-authored-by: manga_osyo <manga.osyo@gmail.com>
Co-authored-by: ima1zumi <mariimaizumi5@gmail.com>

https://github.com/ruby/irb/commit/c59a9be82f

https://github.com/ruby/reline/commit/a7922da16b
2020-12-23 06:06:07 +09:00
Takeru Naito be5faa2519 [ruby/irb] Make it possible to use measure even if it is installed as gem
Include the file that implements this command in the irb gem.

Co-Authored-By: scivola <scivola@users.noreply.github.com>

https://github.com/ruby/irb/commit/d8dfea5b57
2020-12-23 06:06:07 +09:00
ima1zumi 53510d1e8a [ruby/reline] [ruby/reline] Remove unused `attr_writer`
https://github.com/ruby/reline/commit/ecdc1b7116

https://github.com/ruby/reline/commit/a7922da16b
2020-12-22 23:45:43 +09:00
ima1zumi 299f5708a2 [ruby/reline] Fixed an exception occurred when ambiguous width character was passed to `#calculate_width` [Bug #17405]
https://github.com/ruby/reline/commit/f79b4c857f
2020-12-22 23:45:43 +09:00
aycabta b52bc4a9c2 [ruby/reline] Support isearch-terminators
https://github.com/ruby/reline/commit/a7922da16b
2020-12-22 23:45:43 +09:00
aycabta 294552ca6c [ruby/reline] Render refreshed prompt just after i-search finished
https://github.com/ruby/reline/commit/0d3188fe34
2020-12-22 23:45:43 +09:00
aycabta 0b14abe8e7 [ruby/irb] Suppress "shadowing outer" warning
https://github.com/ruby/irb/commit/27b149c599
2020-12-22 23:45:43 +09:00
aycabta fbcdcbff0d [ruby/irb] Version 1.2.9
https://github.com/ruby/irb/commit/9668e5fe6b
2020-12-22 23:45:43 +09:00
aycabta 4131cd05be [ruby/irb] Support arg for measure command
https://github.com/ruby/irb/commit/b43f35d8f3
2020-12-22 23:45:43 +09:00
aycabta 47b26795d0 [ruby/irb] Change variables handling for compatibility
https://github.com/ruby/irb/commit/26fd1a75cf
2020-12-22 23:45:43 +09:00
Koichi Sasada cae8bbfe62 pp is ractor-ready.
`@sharing_detection` is only one obstruction to support pp on
non-main ractors, so make it ractor-local.
2020-12-22 23:32:18 +09:00
Hiroshi SHIBATA 9b9cbbbc17
Update library versions of the default gems.
They are followed up with
  8fb02b7a97
2020-12-22 21:45:28 +09:00
Akinori MUSHA 96b8816793 Import set 1.0.1
- Eliminate warnings
- Convert rdoc to markdown
2020-12-22 21:41:44 +09:00
Yuki Nishijima 95acd3c030 Sync did_you_mean 2020-12-22 14:42:32 +09:00
Akinori MUSHA 3fa4bd8292 Import set 1.0.0
- SortedSet has been removed for dependency and performance reasons.
- Set#join is added as a shorthand for `.to_a.join`.
- Set#<=> is added.

https://github.com/ruby/set/blob/v1.0.0/CHANGELOG.md
2020-12-22 12:20:21 +09:00
Hiroshi SHIBATA 95ce5c0ee9 [ruby/rdoc] Bump version to 6.3.0
https://github.com/ruby/rdoc/commit/3d3616cb94
2020-12-21 16:22:08 +09:00
Kazuhiro NISHIYAMA 63849a1cd9
Fix misspellings [ci skip] 2020-12-21 10:54:24 +09:00
Nobuyoshi Nakada 4b6e3f7b82
irb: Define extension command on the given object 2020-12-20 19:35:59 +09:00
Nobuyoshi Nakada feea436feb
irb: Define extension command only on the given object
Not to interfer in class variables.
2020-12-20 18:26:38 +09:00
aycabta 24fcbc92b4 [ruby/irb] Version 1.2.8
https://github.com/ruby/irb/commit/bcd96834c7
2020-12-20 16:23:59 +09:00
aycabta a7cacd33cc [ruby/reline] Version 0.1.10
https://github.com/ruby/reline/commit/723c6e191a
2020-12-20 16:23:59 +09:00
aycabta 9f08e3c703 [ruby/irb] Add measure command
You can use "measure" command to check performance in IRB like below:

  irb(main):001:0> 3
  => 3
  irb(main):002:0> measure
  TIME is added.
  => nil
  irb(main):003:0> 3
  processing time: 0.000058s
  => 3
  irb(main):004:0> measure :off
  => nil
  irb(main):005:0> 3
  => 3

You can set "measure :on" by "IRB.conf[:MEASURE] = true" in .irbrc, and, also,
set custom performance check method:

  IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |context, code, line_no, &block|
    time = Time.now
    result = block.()
    now = Time.now
    puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE]
    result
  }

https://github.com/ruby/irb/commit/3899eaf2e2
2020-12-20 16:23:59 +09:00
aycabta 8b6aaeaddf [ruby/irb] Handle rest of tokens correctly if no newline at last
https://github.com/ruby/irb/commit/f3c8edad2a
2020-12-20 16:23:58 +09:00
Kazuki Tsujimoto 67ee1cbdd5
Remove unnecessary files from .document
* ruby:ext/rbconfig/exts.mk
* ruby:ext/rbconfig/sizeof/Makefile
* ruby:ext/rbconfig/sizeof/depend
* ruby:ext/rbconfig/sizeof/mkmf.log
* ruby:ext/win32/depend
* ruby:ext/win32/exts.mk
* ruby:ext/win32/resolv/depend
* ruby:lib/racc/pre-setup
2020-12-20 16:00:13 +09:00
Hiroshi SHIBATA 349e79bae0
Try to test with rake-13.0.2 again.
[ruby/fileutils] Make verbose output go to stdout instead of stderr

  This reverts commit 510df47f5f.
2020-12-19 16:53:18 +09:00
aycabta c2a5594e27 [ruby/reline] Use cached prompt list when just moved the cursor
https://github.com/ruby/reline/commit/cfe619460b
2020-12-19 02:12:11 +09:00
aycabta d4257c6152 [ruby/reline] Yank by em-kill-region correctly
This closes ruby/reline#106.

https://github.com/ruby/reline/commit/2549a52e15
2020-12-19 02:12:11 +09:00
aycabta af2c81e10c [ruby/reline] Bind yank-pop correctly
https://github.com/ruby/reline/commit/3c74beac65
2020-12-19 02:12:11 +09:00
aycabta 671f2762fb [ruby/reline] Add Enumerable to KillRing for debugging
https://github.com/ruby/reline/commit/d208874152
2020-12-19 02:12:11 +09:00
aycabta dc61affd67 [ruby/reline] [ruby/irb] Call ripper only once when generating dynamic prompt
https://github.com/ruby/irb/commit/babb122a48

https://github.com/ruby/reline/commit/e6dbcb3b42
2020-12-19 02:12:11 +09:00
Hiroshi SHIBATA 0e40cc9b19 Merge RubyGems 3.2.2 and Bundler 2.2.2 2020-12-18 13:33:18 +09:00
Marc-Andre Lafortune 980f994b3b [ruby/irb] Change context-mode's default to new mode 4.
This new mode uses a copy of the TOPLEVEL_BINDING. This is compatible with refinements (contrary to mode 3), while keeping nested IRB sessions separate

https://github.com/ruby/irb/commit/25c731cb2f
2020-12-17 20:24:08 +09:00
Jeremy Evans 753222d72c [ruby/irb] Enable deprecation warnings when using -W or -w
Requested in Ruby Bug 17377

https://github.com/ruby/irb/commit/698f6eb34a
2020-12-17 20:23:49 +09:00
Nobuyoshi Nakada b5effe07bd [ruby/irb] Fixed a typo in a comment [ci skip]
https://github.com/ruby/irb/commit/ce373417f3
2020-12-17 20:22:55 +09:00
Nobuhiro IMAI cbf6a7f906 [ruby/irb] workaround for lack of tokens from `Ripper.lex`
* Fixes #38

https://github.com/ruby/irb/commit/905fb8e52e
2020-12-17 20:22:29 +09:00
Robert Schulze 422e2c7274 [ruby/reline] Use plus operator to create unfrozen string
https://github.com/ruby/reline/commit/ca274b0d37
2020-12-17 20:20:07 +09:00