irb 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30fc838baf1c1769c8ff1b3cc064e8c443dceb16fb997d6f7e53845b981990dd
4
- data.tar.gz: 48abb8ba8d3af2b3705cdbaddb47fc74dcaece6b5f074f655dfb426002e15c3c
3
+ metadata.gz: 5f07d42a212577323f5b522af715546bf0aa4f50403191e8bfea72c264cd55fd
4
+ data.tar.gz: 642aee0475b00876e5a9b4c0ad7dc55b4e84ee215c2e7f664aad689a4103660e
5
5
  SHA512:
6
- metadata.gz: 29150c7100e2bc250281771a7c268073fd80c49fc80244945e7c067ff3cd4ff02cf09aa5b0f0efb2c701e4e62291c47978375293622e7deddeb64c11453eca42
7
- data.tar.gz: e5216092d990b27d4390f2b80470edb7c2aefb955f4ef6ffa118270335761f15df5acbdcc6e00205e930be0d8b596aae50cc88249675cacb320b62adec91672e
6
+ metadata.gz: b9466d40cc08ee522b64dee832ce98059b21ed0f6d9cbd3b656ebd05c198c8027c342b9c9c708927662768a3351b0c709f0c7ce373ee3ad68207c8b907644c40
7
+ data.tar.gz: 5e0a8c523e31fb349e934a25079347619f3e901756ef3cdd8375bd7fd2823e1f2d09054acf42945596fcae2181f20693f220ae8fc283b88e9aaed62851922f04
data/lib/irb.rb CHANGED
@@ -319,7 +319,7 @@ require "irb/version"
319
319
  # # check if Foo#foo is available
320
320
  # irb(main):005:0> Foo.instance_methods #=> [:foo, ...]
321
321
  #
322
- # # change the active sesssion
322
+ # # change the active session
323
323
  # irb(main):006:0> fg 2
324
324
  # # define Foo#bar in the context of Foo
325
325
  # irb.2(Foo):005:0> def bar
@@ -83,12 +83,6 @@ module IRB
83
83
  when nil
84
84
  if STDIN.tty? && IRB.conf[:PROMPT_MODE] != :INF_RUBY && !use_singleline?
85
85
  # Both of multiline mode and singleline mode aren't specified.
86
- puts <<~EOM
87
- This version of IRB is drastically different from the previous version.
88
- If you hit any issues, you can use "irb --legacy" to run the old version.
89
- If you want to just erase this message, please use "irb --multiline" or
90
- add `IRB.conf[:USE_MULTILINE] = true` to your ~/.irbrc file.
91
- EOM
92
86
  @io = ReidlineInputMethod.new
93
87
  else
94
88
  @io = nil
@@ -32,7 +32,7 @@ module IRB # :nodoc:
32
32
 
33
33
  # Displays current configuration.
34
34
  #
35
- # Modifing the configuration is achieved by sending a message to IRB.conf.
35
+ # Modifying the configuration is achieved by sending a message to IRB.conf.
36
36
  def irb_context
37
37
  IRB.CurrentContext
38
38
  end
@@ -293,7 +293,7 @@ class RubyLex
293
293
  next if index > 0 and @tokens[index - 1][3].allbits?(Ripper::EXPR_FNAME)
294
294
  case t[2]
295
295
  when 'do'
296
- if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
296
+ if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN | Ripper::EXPR_ARG)
297
297
  # method_with_block do; end
298
298
  indent += 1
299
299
  else
@@ -336,7 +336,7 @@ class RubyLex
336
336
  next if index > 0 and @tokens[index - 1][3].allbits?(Ripper::EXPR_FNAME)
337
337
  case t[2]
338
338
  when 'do'
339
- if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
339
+ if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN | Ripper::EXPR_ARG)
340
340
  # method_with_block do; end
341
341
  depth_difference += 1
342
342
  else
@@ -11,7 +11,7 @@
11
11
  #
12
12
 
13
13
  module IRB # :nodoc:
14
- VERSION = "1.2.0"
14
+ VERSION = "1.2.1"
15
15
  @RELEASE_VERSION = VERSION
16
- @LAST_UPDATE_DATE = "2019-12-07"
16
+ @LAST_UPDATE_DATE = "2019-12-24"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keiju ISHITSUKA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-07 00:00:00.000000000 Z
11
+ date: 2019-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reline