irb 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/irb.rb +1 -1
- data/lib/irb/context.rb +0 -6
- data/lib/irb/extend-command.rb +1 -1
- data/lib/irb/ruby-lex.rb +2 -2
- data/lib/irb/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f07d42a212577323f5b522af715546bf0aa4f50403191e8bfea72c264cd55fd
|
4
|
+
data.tar.gz: 642aee0475b00876e5a9b4c0ad7dc55b4e84ee215c2e7f664aad689a4103660e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/irb/context.rb
CHANGED
@@ -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
|
data/lib/irb/extend-command.rb
CHANGED
@@ -32,7 +32,7 @@ module IRB # :nodoc:
|
|
32
32
|
|
33
33
|
# Displays current configuration.
|
34
34
|
#
|
35
|
-
#
|
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
|
data/lib/irb/ruby-lex.rb
CHANGED
@@ -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
|
data/lib/irb/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reline
|