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

7142 Коммитов

Автор SHA1 Сообщение Дата
aycabta 2fd03fd7e6 EXPR_LABEL also indicates non-continuation line
Example:

  [
    1, # this is not continuation line
    2
  ]
2019-06-27 16:03:43 +09:00
Kazuhiro NISHIYAMA c86a9e6592
bc mode is already removed [ci skip] 2019-06-27 11:18:02 +09:00
aycabta d6bcf36793 EXPR_CMDARG also indicates the end of an expression 2019-06-27 10:59:26 +09:00
aycabta 24c4e6dec1 Increase indent of continuation line
v =
    3 # auto indent
2019-06-27 01:26:14 +09:00
aycabta 72bfc52de6 Decrease indent by closing token correctly 2019-06-27 01:21:06 +09:00
aycabta ba17127e99 Decrease nesting level when closing token comes at a non-first token of line 2019-06-26 18:44:27 +09:00
Nobuyoshi Nakada fe0ddf0e58
`ensure` is not a continuos line 2019-06-26 15:01:01 +09:00
Nobuyoshi Nakada a3d1cacda6
Decrease indent at "elsif" too 2019-06-26 10:49:23 +09:00
Nobuyoshi Nakada ea8bc6822d
Remove other debug prints 2019-06-26 10:49:23 +09:00
aycabta cfa1a18431 Remove debug print...sorry 2019-06-26 08:07:58 +09:00
aycabta 57e1a69ea3 Treat auto indent with newline correctly 2019-06-25 22:07:32 +09:00
aycabta 0b57f9b25d Decrease indent when "else", "rescue", "ensure", "when", or "in" come 2019-06-25 22:02:31 +09:00
Jeremy Evans d118c84b0b Fix IO#scanf on pipes on Windows
IO.seek on a pipe on Windows raises Errno::EINVAL instead of
Errno::ESPIPE.

Fixes Ruby Bug #15199
2019-06-25 15:56:20 +09:00
David Rodríguez e572ff2f95 Require version file relatively 2019-06-25 15:56:20 +09:00
SHIBATA Hiroshi 083fda8490 Bump version to 1.2.0. 2019-06-25 15:56:20 +09:00
aycabta 9c19cd5222 Refactor calculation of corresponding token depth 2019-06-25 00:18:55 +09:00
Rob c6229e7c69 Adds WebAssembly MIME type 2019-06-24 10:11:56 +09:00
Nobuyoshi Nakada 11a60f9bdb Remove extraneous spaces at the end of status line
Remove extraneous spaces after the status code that is
non-compliant with RFC, i.e `HTTP 200 OK `, to unnecessary
confusion for WEBrick users, by a risk that WEBrick instances in
the wild will have server responses flagged as suspicious or
malicious due to a similar bug in [Cobalt Strike
misconfiguration].

Reported by Matt Tennis <mtennis@paloaltonetworks.com>

[Cobalt Strike misconfiguration]: https://blog.fox-it.com/2019/02/26/identifying-cobalt-strike-team-servers-in-the-wild/
2019-06-24 10:11:47 +09:00
aycabta c79131df28 Treat closing token with starting token at head of 2nd line correctly
v =
  if true # starting token at head of 2nd line
    3
  end # closing token
2019-06-22 00:31:42 +09:00
aycabta 5e2088665b Do auto indent only when closing token at first of line
if true
    3; end # this isn't auto-indented
2019-06-22 00:31:42 +09:00
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