irb 1.3.0 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +7 -0
- data/irb.gemspec +1 -44
- data/lib/irb.rb +76 -46
- data/lib/irb/cmd/info.rb +25 -0
- data/lib/irb/cmd/ls.rb +83 -0
- data/lib/irb/cmd/measure.rb +10 -4
- data/lib/irb/cmd/nop.rb +10 -4
- data/lib/irb/cmd/show_source.rb +86 -0
- data/lib/irb/cmd/whereami.rb +20 -0
- data/lib/irb/color.rb +20 -4
- data/lib/irb/color_printer.rb +47 -0
- data/lib/irb/completion.rb +84 -14
- data/lib/irb/ext/loader.rb +46 -19
- data/lib/irb/ext/save-history.rb +15 -5
- data/lib/irb/extend-command.rb +21 -4
- data/lib/irb/init.rb +11 -1
- data/lib/irb/input-method.rb +19 -2
- data/lib/irb/inspector.rb +12 -14
- data/lib/irb/lc/help-message +6 -6
- data/lib/irb/ruby-lex.rb +232 -43
- data/lib/irb/version.rb +2 -2
- data/lib/irb/workspace.rb +2 -1
- metadata +7 -2
data/lib/irb/version.rb
CHANGED
data/lib/irb/workspace.rb
CHANGED
@@ -128,6 +128,7 @@ EOF
|
|
128
128
|
def filter_backtrace(bt)
|
129
129
|
return nil if bt =~ /\/irb\/.*\.rb/
|
130
130
|
return nil if bt =~ /\/irb\.rb/
|
131
|
+
return nil if bt =~ /tool\/lib\/.*\.rb|runner\.rb/ # for tests in Ruby repository
|
131
132
|
case IRB.conf[:CONTEXT_MODE]
|
132
133
|
when 1
|
133
134
|
return nil if bt =~ %r!/tmp/irb-binding!
|
@@ -174,7 +175,7 @@ EOF
|
|
174
175
|
body = (start_pos..end_pos).map do |current_pos|
|
175
176
|
sprintf(fmt, pos == current_pos ? '=>' : '', current_pos + 1, lines[current_pos])
|
176
177
|
end.join("")
|
177
|
-
"\nFrom: #{file} @ line #{pos + 1} :\n\n#{body}#{Color.clear}\n"
|
178
|
+
"\nFrom: #{file} @ line #{pos + 1} :\n\n#{body}#{Color.clear if use_colorize}\n"
|
178
179
|
end
|
179
180
|
|
180
181
|
def IRB.delete_caller
|
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.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keiju ISHITSUKA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reline
|
@@ -75,12 +75,17 @@ files:
|
|
75
75
|
- lib/irb/cmd/chws.rb
|
76
76
|
- lib/irb/cmd/fork.rb
|
77
77
|
- lib/irb/cmd/help.rb
|
78
|
+
- lib/irb/cmd/info.rb
|
78
79
|
- lib/irb/cmd/load.rb
|
80
|
+
- lib/irb/cmd/ls.rb
|
79
81
|
- lib/irb/cmd/measure.rb
|
80
82
|
- lib/irb/cmd/nop.rb
|
81
83
|
- lib/irb/cmd/pushws.rb
|
84
|
+
- lib/irb/cmd/show_source.rb
|
82
85
|
- lib/irb/cmd/subirb.rb
|
86
|
+
- lib/irb/cmd/whereami.rb
|
83
87
|
- lib/irb/color.rb
|
88
|
+
- lib/irb/color_printer.rb
|
84
89
|
- lib/irb/completion.rb
|
85
90
|
- lib/irb/context.rb
|
86
91
|
- lib/irb/easter-egg.rb
|