marameters 3.9.0 → 3.10.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/lib/marameters/builder.rb +2 -1
- data/lib/marameters.rb +2 -0
- data/marameters.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72e522d6b0e294687fe361c583d0c35d50287843e927e772ed4ce2c9e99cb122
|
4
|
+
data.tar.gz: 5c70165bfd8b9036982b01dd45926daeeb349b9fcbc880cf330d6635b4511ec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c43d9e5016ee8436764959892a642ecaac2a22ec66d2439b673f1646e9fc93b9e030f6b07304a6c936db4edd2c4687a268c2569fb73d487f39c3144e962886e2
|
7
|
+
data.tar.gz: 18ab62e24d33a6a03b34e2c01cacb1c6b2b844a245062a0db0e79e0fd66560b2c30b6f28829cc9ed0a2389dc6281bc546ac435692ffd41f466f9bf9591f31418
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/marameters/builder.rb
CHANGED
@@ -7,11 +7,12 @@ module Marameters
|
|
7
7
|
@defaulter = defaulter
|
8
8
|
end
|
9
9
|
|
10
|
-
def call kind, name, default: nil
|
10
|
+
def call kind, name = nil, default: nil
|
11
11
|
case kind
|
12
12
|
when :req then name
|
13
13
|
when :opt then "#{name} = #{defaulter.call default}"
|
14
14
|
when :rest then "*#{name}"
|
15
|
+
when :nokey then "**nil"
|
15
16
|
when :keyreq then "#{name}:"
|
16
17
|
when :key then "#{name}: #{defaulter.call default}"
|
17
18
|
when :keyrest then "**#{name}"
|
data/lib/marameters.rb
CHANGED
@@ -10,6 +10,8 @@ end
|
|
10
10
|
|
11
11
|
# Main namespace.
|
12
12
|
module Marameters
|
13
|
+
KINDS = %i[req opt rest nokey keyreq key keyrest block].freeze
|
14
|
+
|
13
15
|
def self.loader registry = Zeitwerk::Registry
|
14
16
|
@loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
|
15
17
|
end
|
data/marameters.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marameters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.10.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-10-
|
38
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: refinements
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.5.
|
116
|
+
rubygems_version: 3.5.22
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: A dynamic method parameter inspector.
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
�sՉ^��e�й;��&C
|
2
|
+
��%G�t�U}rߴ�6g�GKA���*��3��hG���I�]A��t������,��!
|
3
|
+
I6`��!��./��
|