irbtools 4.0.7 → 4.0.8

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: 921be54058cd551adc718fbea2668bac91f1112655a4edc5502ccb798e396577
4
- data.tar.gz: 3ff42ba9be09e022ca4fcd319692b5ca6e05de2e7f22e303c6b402965ee66b0d
3
+ metadata.gz: f02f8b065c2b36a4d9caf761f36d2776d8c19dbae0c3d3754db802c7ac4a6c60
4
+ data.tar.gz: 36df7068fc8cfc9a767f6d07b252d094acf675c808047dbaa382772371004357
5
5
  SHA512:
6
- metadata.gz: 046a80dec5e4e069642d45ace90de4d703ca7922769eef766cdaa4da0d24cf18c33f41e868987b62272e42d54a6b6dd52f0b5598ef80b7cb9f8cc74249e2f9e9
7
- data.tar.gz: 741334f7032264d72844ecfe1a52a0bee3d2e7eecd7084099a955fbbec3b56af436bd946b396b6ffa7697eccaef73d36b0b0e6b20e8ba1bed5272de76ce3402b
6
+ metadata.gz: 6bc115e8be4396db8a372ff3725c1ba2857e029b4ea2088e55b2d8d215731eeaebf27820ec998382d75c20bcb27c2342c8bc5a410bfadb48971bdeabd225cb11
7
+ data.tar.gz: fa6fb6d62b9542ec75f1e9af7be27692b596da6be3f704c2e03b0492c3422403f899bc4354ad60d44ce6dbbd5f73b5e1758f34570b0a2b8fa9656bbd6c8fb649
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Irbtools Changelog
2
2
 
3
+ ## 4.0.8
4
+
5
+ * Require IRB 1.11
6
+ * Fix "NameError: uninitialized constant IRB::ExtendCommand::Nop"
7
+ * Bump core_docs gem
8
+
3
9
  ## 4.0.7
4
10
 
5
11
  * Allow clipboard gem v2
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- irbtools (4.0.7)
4
+ irbtools (4.0.8)
5
5
  clipboard (>= 1.4, < 3.0)
6
6
  code (>= 0.9.4, < 2.0)
7
7
  coderay (~> 1.1)
8
- core_docs (~> 0.9.9)
8
+ core_docs (~> 0.9.11)
9
9
  debugging (~> 2.1)
10
10
  every_day_irb (~> 2.2)
11
11
  fancy_irb (~> 2.1)
12
12
  hirb (~> 0.7, >= 0.7.3)
13
13
  interactive_editor (~> 0.0, >= 0.0.12)
14
- irb (~> 1.8)
14
+ irb (>= 1.11, < 1.13)
15
15
  looksee (~> 5.0)
16
16
  methodfinder (~> 2.2, >= 2.2.5)
17
17
  object_shadow (~> 1.1)
@@ -30,7 +30,7 @@ GEM
30
30
  coderay (~> 1.1)
31
31
  method_source (>= 0.9, < 2.0)
32
32
  coderay (1.1.3)
33
- core_docs (0.9.9)
33
+ core_docs (0.9.11)
34
34
  yard (~> 0.9.11)
35
35
  debugging (2.1.0)
36
36
  paint (>= 0.9, < 3.0)
@@ -45,22 +45,22 @@ GEM
45
45
  hirb (0.7.3)
46
46
  interactive_editor (0.0.12)
47
47
  spoon (~> 0.0.6)
48
- io-console (0.6.0)
49
- irb (1.8.1)
48
+ io-console (0.7.2)
49
+ irb (1.12.0)
50
50
  rdoc
51
- reline (>= 0.3.8)
51
+ reline (>= 0.4.2)
52
52
  looksee (5.0.0)
53
53
  method_source (1.0.0)
54
54
  methodfinder (2.2.5)
55
55
  object_shadow (1.1.1)
56
56
  os (1.1.4)
57
57
  paint (2.3.0)
58
- psych (5.1.0)
58
+ psych (5.1.2)
59
59
  stringio
60
60
  rake (13.0.6)
61
- rdoc (6.5.0)
61
+ rdoc (6.6.3.1)
62
62
  psych (>= 4.0.0)
63
- reline (0.3.9)
63
+ reline (0.5.2)
64
64
  io-console (~> 0.5)
65
65
  rspec (3.12.0)
66
66
  rspec-core (~> 3.12.0)
@@ -79,7 +79,7 @@ GEM
79
79
  ruby_version (1.0.2)
80
80
  spoon (0.0.6)
81
81
  ffi
82
- stringio (3.0.8)
82
+ stringio (3.1.0)
83
83
  unicode-display_width (2.5.0)
84
84
  webrick (1.7.0)
85
85
  wirb (2.2.2)
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Irbtools [![[version]](https://badge.fury.io/rb/irbtools.svg)](https://badge.fury.io/rb/irbtools) [![[ci]](https://github.com/janlelis/irbtools/workflows/Test/badge.svg)](https://github.com/janlelis/irbtools/actions?query=workflow%3ATest)
2
2
 
3
- ## Irbtools 4.0 for IRB 1.8+
3
+ ## Irbtools 4 for Current IRB
4
4
 
5
- The current version of Irbtools requires [IRB 1.8+](https://github.com/ruby/irb) ([which Ruby version bundles which IRB?](https://stdgems.org/irb/)). Please use Irbtools 3 for earlier versions of IRB.
5
+ The current version of Irbtools requires [IRB 1.11+](https://github.com/ruby/irb) ([which Ruby version bundles which IRB?](https://stdgems.org/irb/)). Please use Irbtools 3 for earlier versions of IRB.
6
6
 
7
7
  ## Description
8
8
 
data/irbtools.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  # Dependencies
21
21
 
22
22
  # Core Functionality
23
- s.add_dependency %q<irb>, "~> 1.8"
23
+ s.add_dependency %q<irb>, ">= 1.11", "< 1.13"
24
24
  s.add_dependency %q<every_day_irb>, "~> 2.2"
25
25
  s.add_dependency %q<fancy_irb>, "~> 2.1"
26
26
  s.add_dependency %q<wirb>, "~> 2.0", ">= 2.2.1"
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
37
37
  s.add_dependency %q<looksee>, "~> 5.0"
38
38
  s.add_dependency %q<object_shadow>, "~> 1.1"
39
39
  s.add_dependency %q<code>, ">= 0.9.4", "< 2.0"
40
- s.add_dependency %q<core_docs>, "~> 0.9.9"
40
+ s.add_dependency %q<core_docs>, "~> 0.9.11"
41
41
  s.add_dependency %q<methodfinder>, "~> 2.2", ">= 2.2.5"
42
42
  s.add_dependency %q<ruby_version>, "~> 1.0"
43
43
  s.add_dependency %q<ruby_engine>, "~> 2.0"
@@ -1,8 +1,8 @@
1
- require "irb/cmd/nop"
1
+ require "irb"
2
2
 
3
3
  module IRB
4
- module ExtendCommand
5
- class Code < Nop
4
+ module Command
5
+ class Code < Base
6
6
  category "Introspection"
7
7
  description "Shows the syntax-highlighted source code of a method"
8
8
 
@@ -1,8 +1,8 @@
1
- require "irb/cmd/nop"
1
+ require "irb"
2
2
 
3
3
  module IRB
4
- module ExtendCommand
5
- class Howtocall < Nop
4
+ module Command
5
+ class Howtocall < Base
6
6
  category "Introspection"
7
7
  description "Displays method signatures based on Method#parameters"
8
8
 
@@ -1,8 +1,8 @@
1
- require "irb/cmd/nop"
1
+ require "irb"
2
2
 
3
3
  module IRB
4
- module ExtendCommand
5
- class Look < Nop
4
+ module Command
5
+ class Look < Base
6
6
  category "Introspection"
7
7
  description 'Method list and lookup path inspection based on looksee gem'
8
8
 
@@ -1,8 +1,8 @@
1
- require "irb/cmd/nop"
1
+ require "irb"
2
2
 
3
3
  module IRB
4
- module ExtendCommand
5
- class Shadow < Nop
4
+ module Command
5
+ class Shadow < Base
6
6
  category "Introspection"
7
7
  description 'Method list and lookup path inspection based on object shadow gem'
8
8
 
@@ -1,8 +1,8 @@
1
- require "irb/cmd/nop"
1
+ require "irb"
2
2
 
3
3
  module IRB
4
- module ExtendCommand
5
- class Sys < Nop
4
+ module Command
5
+ class Sys < Base
6
6
  category "Misc"
7
7
  description 'Run a system command'
8
8
 
@@ -1,5 +1,4 @@
1
1
  require_relative 'version'
2
2
 
3
3
  require_relative 'implementation'
4
- require_relative "commands"
5
4
  require_relative 'libraries' unless Irbtools.minimal
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Irbtools
4
- VERSION = "4.0.7"
4
+ VERSION = "4.0.8"
5
5
  end
data/lib/irbtools.rb CHANGED
@@ -1,5 +1,7 @@
1
- require_relative 'irbtools/configure'
2
- require 'irb'
1
+ require_relative "irbtools/configure"
2
+ require_relative "irbtools/commands"
3
+
4
+ require "irb"
3
5
 
4
6
  # # # # #
5
7
  # Load: start
@@ -5,17 +5,17 @@ describe "irbtools commands" do
5
5
  describe "howtocall / code" do
6
6
  it "support ri Syntax like String.name or String#gsub" do
7
7
  expect(
8
- IRB::ExtendCommand::Howtocall.transform_args("String.name")
8
+ IRB::Command::Howtocall.transform_args("String.name")
9
9
  ).to eq "String, :name"
10
10
 
11
11
  expect(
12
- IRB::ExtendCommand::Code.transform_args("String#gsub")
12
+ IRB::Command::Code.transform_args("String#gsub")
13
13
  ).to eq "String, String.instance_method(:gsub)"
14
14
  end
15
15
 
16
16
  it "supports question-mark methods" do
17
17
  expect(
18
- IRB::ExtendCommand::Howtocall.transform_args("String#ascii_only?")
18
+ IRB::Command::Howtocall.transform_args("String#ascii_only?")
19
19
  ).to eq "String, String.instance_method(:ascii_only?)"
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.7
4
+ version: 4.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: irb
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '1.8'
22
+ version: '1.13'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.11'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '1.8'
32
+ version: '1.13'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: every_day_irb
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -234,14 +240,14 @@ dependencies:
234
240
  requirements:
235
241
  - - "~>"
236
242
  - !ruby/object:Gem::Version
237
- version: 0.9.9
243
+ version: 0.9.11
238
244
  type: :runtime
239
245
  prerelease: false
240
246
  version_requirements: !ruby/object:Gem::Requirement
241
247
  requirements:
242
248
  - - "~>"
243
249
  - !ruby/object:Gem::Version
244
- version: 0.9.9
250
+ version: 0.9.11
245
251
  - !ruby/object:Gem::Dependency
246
252
  name: methodfinder
247
253
  requirement: !ruby/object:Gem::Requirement
@@ -369,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
375
  - !ruby/object:Gem::Version
370
376
  version: '0'
371
377
  requirements: []
372
- rubygems_version: 3.5.3
378
+ rubygems_version: 3.5.9
373
379
  signing_key:
374
380
  specification_version: 4
375
381
  summary: Irbtools happy IRB.