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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7606dc2ae5b229a62afef737d7e5ced158c9c0cb49cd2ea1dc5dcb90d82e2c72
4
- data.tar.gz: 055dc360d709822f1cc49157faedde426a6ba6e4f393aa7e0f6adbb0ec10784d
3
+ metadata.gz: 72e522d6b0e294687fe361c583d0c35d50287843e927e772ed4ce2c9e99cb122
4
+ data.tar.gz: 5c70165bfd8b9036982b01dd45926daeeb349b9fcbc880cf330d6635b4511ec9
5
5
  SHA512:
6
- metadata.gz: 4da9a50704be5f6f8380d7e5f47c7296392b0786d64f72600a0931b7717d16318e722350c79efd233d5357be4a68682f067e73bba3197799a6252c7e2416623d
7
- data.tar.gz: d17300ba62b53036f7eb999dc50f41e847de43caf52fbb3c2561f8c803fbbc50af69c590181c1eb88d84c38d7c5fe291ef4950a7bd4dd370bc907e24974fa9c3
6
+ metadata.gz: c43d9e5016ee8436764959892a642ecaac2a22ec66d2439b673f1646e9fc93b9e030f6b07304a6c936db4edd2c4687a268c2569fb73d487f39c3144e962886e2
7
+ data.tar.gz: 18ab62e24d33a6a03b34e2c01cacb1c6b2b844a245062a0db0e79e0fd66560b2c30b6f28829cc9ed0a2389dc6281bc546ac435692ffd41f466f9bf9591f31418
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "marameters"
5
- spec.version = "3.9.0"
5
+ spec.version = "3.10.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/marameters"
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.9.0
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-13 00:00:00.000000000 Z
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.21
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
- �HqtF�Jg}���zH��һ��먹H��E�H/�~>��EC����׆� �f�3�?��"��ns�"��؁�����.��|�|���v��$-/��{��V��������y09jX ��W'We�R�X����k_�E��]�_��>�3�}j�\I�4`oE��hZ��e�S�����$:�!��̰D[MDt��y`%�7ʙ�s��߂`A���>��!���Bғʫx M��r������g�vWEU�9���+���!
2
- r��p��9˷���L86�Z�#�����C~y*�e�ۏ{FP�̔|��&�Jg86!} ��Kv�6ҷ�����~�s,I��[� �|mB��{�XJ��p�fg~^)-�sH�
1
+ sՉ^��e�й;��&C
2
+ ��%GtU}rߴ�6gGKA���*��3��hG���I�]A��t������,��!
3
+ I6`��!��./��