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

7122 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 1c7e303b26
Constified unusable chars 2019-06-21 23:04:34 +09:00
aycabta 50841eca43 Support irregular auto indent
v =
    if true
      3
    end # this "end" is auto-indented correctly
2019-06-21 21:35:25 +09:00
Espartaco Palma 4149fd6078
Fix small typo on block_scanf example [ci-skip]
Closes: https://github.com/ruby/ruby/pull/2247
2019-06-21 15:29:29 +09:00
Jeremy Evans 4a5e07d8e1 Avoid verbose warning when using Net::POP3 with SSL
Patch from Jos Kamphorst.

Fixes [Bug #14822]
2019-06-20 10:22:01 -07:00
Hiroshi SHIBATA 93356576fe Revert "Removed needless file with the upstream repository."
This reverts commit 5bbfca7b1d.
2019-06-20 22:27:06 +09:00
Hiroshi SHIBATA 5bbfca7b1d Removed needless file with the upstream repository. 2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA 45e939f5ad Added gemspec of racc generated from upstream for the default gems.
1.4.16.pre.1 is the teemporary version. It may be changed 1.5.0 or others.
2019-06-20 16:11:03 +09:00
aycabta c4c47b792d Disable auto indent when move cursor up or down
This commit suppresses a strange behavior below:

  if true
    1[cursor]
  end

and press down key

  if true
  1
  end
2019-06-20 16:00:30 +09:00
git b93508b32c * remove trailing spaces, append newline at EOF. 2019-06-19 18:19:20 +09:00
Hiroshi SHIBATA 4cca8c4d20 Use Test::Unit instead of Minitest and fixed test error with ruby repo.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2019-06-19 18:17:53 +09:00
Hiroshi SHIBATA 1a2546c2be Backport racc-1.4.15 from upstream. 2019-06-19 18:17:25 +09:00
aycabta d009e321a0 Use IRB.conf[:AUTO_INDENT] setting in multiline mode 2019-06-19 09:19:41 +09:00
aycabta 85ff2d74a2 Avoid auto indent in prompt when dynamic auto indent 2019-06-19 08:28:00 +09:00
aycabta 84903b31c8 Fix auto indent crash when blank input 2019-06-18 21:58:05 +09:00
aycabta 32e65e9e5a Print starting debug message with RELINE_STDERR_TTY 2019-06-18 21:58:05 +09:00
aycabta 235e72f17e Implement auto indent for multiline 2019-06-18 20:58:18 +09:00
aycabta 2fb1564c02 Implement line_no correctly 2019-06-16 14:46:28 +09:00
Nobuyoshi Nakada aa32465ab3
irb.rb: [DOC] the default prompt includes :PROMPT_N [ci skip] 2019-06-14 15:31:03 +09:00
aycabta 9402d019a5 Remove debug print 2019-06-14 08:45:52 +09:00
aycabta d0e5564140 Set allow_escape_code for prompt 2019-06-14 08:45:35 +09:00
aycabta f80771f0a9 Use Reline.prompt_proc in IRB 2019-06-14 08:26:06 +09:00
aycabta 64310b2573 Add Reline.prompt_proc 2019-06-14 07:42:53 +09:00
Takashi Kokubun 1808029061
make sync-default-gems GEM=irb
Upgrade IRB to 41ea43a4a7

Mostly backport changes.
2019-06-13 00:32:20 +09:00
Nobuyoshi Nakada 9593e76ac2
Ripper::Lexer: fallback parse error token to the previous one 2019-06-12 15:25:06 +09:00
aycabta 8354cfd03b Treat "begin rescue end" correctly 2019-06-12 11:00:25 +09:00
Nobuyoshi Nakada 880204cf55
irb/cmd/help.rb: return nil after the redefinition 2019-06-10 21:45:46 +09:00
Nobuyoshi Nakada 976c689ad4
irb: defer requiring rdoc to improve the start up time 2019-06-10 21:18:56 +09:00
Hiroshi SHIBATA 57ccea6232 Revert to change for filelist of bundler gemspec. 2019-06-09 12:44:23 +09:00
Hiroshi SHIBATA 8f37629519 Merge bundler master from upstream.
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0
2019-06-09 12:44:10 +09:00
Jeremy Evans 6650899248 Make Resolv::DNS#each_name accept Resolv::IPv{4,6} arguments
These arguments were previously documented as supported, but not
actually supported.

Patch from Toru Iwase

Fixes [Bug #15900]
2019-06-08 20:31:12 -07:00
Nobuyoshi Nakada 5a840517ae
Fix broken `gem unpack`
* lib/rubygems/commands/unpack_command.rb: 'rubygems/package' is
  required here, to fix broken `gem unpack` command.
2019-06-08 18:44:18 +09:00
Hiroshi SHIBATA 3776c48cf4 Revert "require rubygems/package where used"
This reverts commit b76630f73e.

  It fails with `make test-bundler BUNDLER_SPECS=runtime/setup_spec.rb:1204`
2019-06-08 13:49:37 +09:00
Nobuyoshi Nakada b76630f73e
require rubygems/package where used
* lib/rubygems/commands/unpack_command.rb: 'rubygems/package' is
  required.  fix the failure of `gem unpack` command.

* lib/rubygems/source/local.rb: ditto.

* lib/rubygems/source/specific_file.rb: ditto.
2019-06-07 22:48:45 +09:00
Nobuyoshi Nakada 6566919176
ripper_state_lex.rb: chomp CR
* lib/rdoc/parser/ripper_state_lex.rb (RDoc::Parser::RipperStateLex):
  chomp newline, including CR, from here document terminator.

Closes: ruby/rdoc#694
Closes: ruby/rdoc#697
Closes: ruby/rdoc#705
2019-06-07 18:57:58 +09:00
Kazuhiro NISHIYAMA fcc36d767b
Revert "Stop `circular require` warning"
This reverts commit c2a9c35024.

It cannot stop `circular require` warning.
2019-06-06 16:49:40 +09:00
Kazuhiro NISHIYAMA c2a9c35024
Stop `circular require` warning 2019-06-06 15:41:55 +09:00
Yusuke Endoh 861b50d81d lib/rubygems.rb: Stop "Leaked file descriptor" warning
Bundler.setup changes Gem::DefaultUserInteraction.ui and does not close
it.  This change makes sure that it is closed.
2019-06-06 15:25:18 +09:00
aycabta 02880d1f4a Skip transpose-words if less than 2 word 2019-06-06 04:57:52 +09:00
aycabta c75a3356b3 Move I/O access from Reline::KeyStroke to Reline 2019-06-05 11:29:59 +09:00
Jeremy Evans 96d6527424 Add some documentation to Timeout#timeout about possible issues
Documentation requested in [Bug #15886].
2019-06-04 19:19:37 -07:00
aycabta 9a07915ae2 Add aliases for commands for changing text macro 2019-06-04 08:35:01 +09:00
aycabta 4b7213a85a Implement transpose-words 2019-06-04 07:23:36 +09:00
Takashi Kokubun 9987f45765
Reflect behavior changes to argument name
0c459af7c2 changed the meaning of
`detect_compile_error`, and this commit lets it follow the change.
2019-06-04 00:36:51 +09:00
Nobuyoshi Nakada fc7b4c7018
Simplify matching 2019-06-04 00:33:56 +09:00
Takashi Kokubun de541fe196
colorize_code must return escaped text
This was needed before 0c459af7c2 but it
could be actually useless now. But I added this anyway just in case.
2019-06-04 00:26:02 +09:00
Nobuyoshi Nakada 0c459af7c2
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.
2019-06-04 00:14:55 +09:00
aycabta d7c3eb570b Erase VI_OPERATORS
The operators are using @waiting_operator_proc in vi mode.
2019-06-03 17:24:49 +09:00
aycabta 182072b211 The C-q is also quoted insert in emacs mode 2019-06-03 04:17:52 +09:00
aycabta 5524de5ca0 Add aliases for commands for moving macro 2019-06-03 03:41:40 +09:00
aycabta 3428922437 The ed_move_to_beg is different from vi_first_print 2019-06-03 03:29:34 +09:00