irb-kit 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/irb-kit.gemspec +2 -2
- data/lib/irb/kit/{loader.rb → register.rb} +4 -4
- data/lib/irb/kit.rb +2 -2
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15accafe31ab7cb223b9834b9aef76c4c679b477ab86a4162f982c1898ded7d0
|
4
|
+
data.tar.gz: fb848a6e23e410ff5b56ef599dc15461da438f41b1db1601eb67851ec632ebe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fa630824a739de421dc7b1c62e287c6e1e5a8a8956b35b0e8fce7e89e7ce78e4f64f0dbbb6aef50e2e2494eebf78774a465f428be25277f1ccfcddaaf4dfd01
|
7
|
+
data.tar.gz: d85759da520eece308b4a29b245cc2be093cb1d56560b0751b7b107b7f162659b3a9895bfbb672d64489505888f0d40893020041b92e0b822f40ba6603348788
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/irb-kit.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "irb-kit"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.5.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/irb-kit"
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.3"
|
26
|
-
spec.add_dependency "irb", "~> 1.
|
26
|
+
spec.add_dependency "irb", "~> 1.14"
|
27
27
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
28
28
|
|
29
29
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module IRB
|
4
4
|
module Kit
|
5
5
|
# Loads extensions for namespace.
|
6
|
-
class
|
6
|
+
class Register
|
7
7
|
ALL = [:all].freeze
|
8
8
|
|
9
9
|
def initialize registrar, namespace, all: ALL
|
@@ -12,15 +12,15 @@ module IRB
|
|
12
12
|
@all = all
|
13
13
|
end
|
14
14
|
|
15
|
-
def call(*monikers) = monikers == all ?
|
15
|
+
def call(*monikers) = monikers == all ? maximum : only(*monikers)
|
16
16
|
|
17
17
|
private
|
18
18
|
|
19
19
|
attr_reader :registrar, :namespace, :all
|
20
20
|
|
21
|
-
def
|
21
|
+
def maximum = constants.each { |helper| registrar.register helper::MONIKER, helper }
|
22
22
|
|
23
|
-
def
|
23
|
+
def only(*monikers)
|
24
24
|
constants.select { |helper| monikers.include? helper::MONIKER }
|
25
25
|
.then { |selected| monikers.zip selected }
|
26
26
|
.each { |moniker, helper| registrar.register moniker, helper }
|
data/lib/irb/kit.rb
CHANGED
@@ -17,9 +17,9 @@ module IRB
|
|
17
17
|
@loader ||= registry.loaders.find { |loader| loader.tag == "irb-kit" }
|
18
18
|
end
|
19
19
|
|
20
|
-
def self.register_commands(*) =
|
20
|
+
def self.register_commands(*) = Register.new(IRB::Command, :Commands).call(*)
|
21
21
|
|
22
|
-
def self.register_helpers(*) =
|
22
|
+
def self.register_helpers(*) = Register.new(IRB::HelperMethod, :Helpers).call(*)
|
23
23
|
|
24
24
|
def self.prompt = @prompt ||= Prompter.new.call
|
25
25
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irb-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-
|
38
|
+
date: 2024-08-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: irb
|
@@ -43,14 +43,14 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.14'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.14'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: zeitwerk
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,8 +91,8 @@ files:
|
|
91
91
|
- lib/irb/kit/helpers/edit_source.rb
|
92
92
|
- lib/irb/kit/helpers/paste.rb
|
93
93
|
- lib/irb/kit/helpers/search.rb
|
94
|
-
- lib/irb/kit/loader.rb
|
95
94
|
- lib/irb/kit/prompter.rb
|
95
|
+
- lib/irb/kit/register.rb
|
96
96
|
homepage: https://alchemists.io/projects/irb-kit
|
97
97
|
licenses:
|
98
98
|
- Hippocratic-2.1
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.5.
|
122
|
+
rubygems_version: 3.5.17
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Extends IRB by providing additional productivity enhancements.
|
metadata.gz.sig
CHANGED
Binary file
|