irb 1.9.0 → 1.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 810aa12a1fbfdbd0ff9f9c4d5c4ac71e62e8241f87cb1a306be1ff81aaef08cb
4
- data.tar.gz: 781d169232ac355b9723e8dc03d6c0de4c16327b4a4a3339cd1e90bad7e1c0b1
3
+ metadata.gz: 0ed98e2ce49cea18e608a64f8e5f5e310064a373b944de0474d49e21613b5be6
4
+ data.tar.gz: 679dea24c5f90242c1f0f427b42bc0d90caafb6ad8ec73da6d11181bb5645f9f
5
5
  SHA512:
6
- metadata.gz: 51d97e80d977c6ce100f66cc0ad4becae17600d36653be88cc7c2f1e6cd0b7127cec01344bc69b04de1b043f8d45a1d07f6b4b8ad3fad4584585aca269cfa65f
7
- data.tar.gz: a197cf8c07a1ea728a3c9d0d70fdd28a2a5b9a4e9ebf72a8fd8d6495627cf4c369e6831879a766c5dd8819438bb1f126b0d4d669becc4c63a7ad6c4ea51a3a79
6
+ metadata.gz: 41a6d57dc51eb6d17c6aa3c7a635d576d4d21d3e5b6eab92becb3862060fae0fdbd34cc0975bca219a7cc6c5808657b417f5aae1dc9606649fe4f82bcce8c467
7
+ data.tar.gz: d7499712f5310d00f6a47b8581749c1e34a69fe3984cb3efbe9d1ce1825d65dcfd471e17831cee56ca3dda7d0a17cabc5b36f6511f151c1b7472b9042e9c173f
data/Gemfile CHANGED
@@ -18,8 +18,6 @@ gem "test-unit"
18
18
  gem "test-unit-ruby-core"
19
19
  gem "debug", github: "ruby/debug"
20
20
 
21
- gem "racc"
22
-
23
21
  if RUBY_VERSION >= "3.0.0"
24
22
  gem "rbs"
25
23
  gem "prism", ">= 0.17.1"
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.
@@ -210,16 +210,16 @@ module IRB
210
210
  end
211
211
 
212
212
  when /^([^\}]*\})\.([^.]*)$/
213
- # Proc or Hash
213
+ # Hash or Proc
214
214
  receiver = $1
215
215
  message = $2
216
216
 
217
217
  if doc_namespace
218
- ["Proc.#{message}", "Hash.#{message}"]
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
- select_message(receiver, message, proc_candidates | hash_candidates)
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] = :regexp
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
@@ -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
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module IRB # :nodoc:
8
- VERSION = "1.9.0"
8
+ VERSION = "1.9.1"
9
9
  @RELEASE_VERSION = VERSION
10
- @LAST_UPDATE_DATE = "2023-11-11"
10
+ @LAST_UPDATE_DATE = "2023-11-21"
11
11
  end
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.0
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-10 00:00:00.000000000 Z
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.5.0.dev
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).