irb 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/README.md +1 -0
- data/lib/irb/completion.rb +4 -4
- data/lib/irb/init.rb +1 -1
- data/lib/irb/input-method.rb +3 -0
- data/lib/irb/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ed98e2ce49cea18e608a64f8e5f5e310064a373b944de0474d49e21613b5be6
|
4
|
+
data.tar.gz: 679dea24c5f90242c1f0f427b42bc0d90caafb6ad8ec73da6d11181bb5645f9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a6d57dc51eb6d17c6aa3c7a635d576d4d21d3e5b6eab92becb3862060fae0fdbd34cc0975bca219a7cc6c5808657b417f5aae1dc9606649fe4f82bcce8c467
|
7
|
+
data.tar.gz: d7499712f5310d00f6a47b8581749c1e34a69fe3984cb3efbe9d1ce1825d65dcfd471e17831cee56ca3dda7d0a17cabc5b36f6511f151c1b7472b9042e9c173f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -314,6 +314,7 @@ irb(main):002> a.first. # Completes Integer methods
|
|
314
314
|
|
315
315
|
- `NO_COLOR`: Assigning a value to it disables IRB's colorization.
|
316
316
|
- `IRB_USE_AUTOCOMPLETE`: Setting it to `false` disables IRB's autocompletion.
|
317
|
+
- `IRB_COMPLETOR`: Configures IRB's auto-completion behavior, allowing settings for either `regexp` or `type`.
|
317
318
|
- `VISUAL`: Its value would be used to open files by the `edit` command.
|
318
319
|
- `EDITOR`: Its value would be used to open files by the `edit` command if `VISUAL` is unset.
|
319
320
|
- `IRBRC`: The file specified would be evaluated as IRB's rc-file.
|
data/lib/irb/completion.rb
CHANGED
@@ -210,16 +210,16 @@ module IRB
|
|
210
210
|
end
|
211
211
|
|
212
212
|
when /^([^\}]*\})\.([^.]*)$/
|
213
|
-
#
|
213
|
+
# Hash or Proc
|
214
214
|
receiver = $1
|
215
215
|
message = $2
|
216
216
|
|
217
217
|
if doc_namespace
|
218
|
-
["
|
218
|
+
["Hash.#{message}", "Proc.#{message}"]
|
219
219
|
else
|
220
|
-
proc_candidates = Proc.instance_methods.collect{|m| m.to_s}
|
221
220
|
hash_candidates = Hash.instance_methods.collect{|m| m.to_s}
|
222
|
-
|
221
|
+
proc_candidates = Proc.instance_methods.collect{|m| m.to_s}
|
222
|
+
select_message(receiver, message, hash_candidates | proc_candidates)
|
223
223
|
end
|
224
224
|
|
225
225
|
when /^(:[^:.]+)$/
|
data/lib/irb/init.rb
CHANGED
@@ -76,7 +76,7 @@ module IRB # :nodoc:
|
|
76
76
|
@CONF[:USE_SINGLELINE] = false unless defined?(ReadlineInputMethod)
|
77
77
|
@CONF[:USE_COLORIZE] = (nc = ENV['NO_COLOR']).nil? || nc.empty?
|
78
78
|
@CONF[:USE_AUTOCOMPLETE] = ENV.fetch("IRB_USE_AUTOCOMPLETE", "true") != "false"
|
79
|
-
@CONF[:COMPLETOR] =
|
79
|
+
@CONF[:COMPLETOR] = ENV.fetch("IRB_COMPLETOR", "regexp").to_sym
|
80
80
|
@CONF[:INSPECT_MODE] = true
|
81
81
|
@CONF[:USE_TRACER] = false
|
82
82
|
@CONF[:USE_LOADER] = false
|
data/lib/irb/input-method.rb
CHANGED
@@ -312,6 +312,9 @@ module IRB
|
|
312
312
|
return nil if result.nil? or pointer.nil? or pointer < 0
|
313
313
|
|
314
314
|
name = doc_namespace.call(result[pointer])
|
315
|
+
# Use first one because document dialog does not support multiple namespaces.
|
316
|
+
name = name.first if name.is_a?(Array)
|
317
|
+
|
315
318
|
show_easter_egg = name&.match?(/\ARubyVM/) && !ENV['RUBY_YES_I_AM_NOT_A_NORMAL_USER']
|
316
319
|
|
317
320
|
options = {}
|
data/lib/irb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aycabta
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-11-
|
12
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: reline
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
155
|
+
rubygems_version: 3.4.10
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Interactive Ruby command-line tool for REPL (Read Eval Print Loop).
|