marameters 4.0.0 → 4.0.1

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: b120830ab23db1facffaa30df5ddbc96557d37d9910a24c9b531dd7ad755c1e0
4
- data.tar.gz: ed8fa0e3aaed0a2ce8c7ad0a5954a8574eaa4242206c5aeff81fcfb5a2b5321b
3
+ metadata.gz: 1499010bf03407332bde415ad66e861d6ba68dbcd71c2612b8bb205ca9002e86
4
+ data.tar.gz: 0a019c4746630f7b5160468a69e1b1b944273ec6a5938d1a63816f25f3cdff7c
5
5
  SHA512:
6
- metadata.gz: 959d5a7edfafad4f1da16a02ea1a54fbfd23e3cb165230eb6239bd811b0d895e18f65a1d9b08fed8971e1cea6b306b87d095e3451e7c4ca4755a520e81722b93
7
- data.tar.gz: 5932395cedf488a17862bfe5f820972d4d92cce26f19ff384134d44393ac3ea35219160d9dfca6150e9096ae7e9e5b0de9ab2a6d1881441333bd6c959e66aeda
6
+ metadata.gz: be3f541897eabc80c899fe2f1a4c2e7d0c9ea78b6c75df0443d9f24c6123b684f0dacbe61061a86f0c5796eefb251b2fde9f69bd9fc533a973f82b40360e4460
7
+ data.tar.gz: a725045f723817c8c124699e1902063e689c09dcf8dbe44d46c48fd27191cf6b0f80379f8b8d4d5383d5cccf40a13cd4d41d52c33efc418f65358c947d4081cc
checksums.yaml.gz.sig CHANGED
Binary file
@@ -9,10 +9,7 @@ module Marameters
9
9
 
10
10
  def call parameters, arguments
11
11
  @record = model.new
12
-
13
- return record if arguments.empty?
14
-
15
- map parameters, arguments
12
+ map parameters, arguments.is_a?(Array) ? arguments : [arguments]
16
13
  end
17
14
 
18
15
  private
data/lib/marameters.rb CHANGED
@@ -16,7 +16,10 @@ module Marameters
16
16
  @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
17
17
  end
18
18
 
19
- def self.categorize(parameters, arguments) = Categorizer.new.call parameters, arguments
19
+ def self.categorize parameters, arguments
20
+ @categorize ||= Categorizer.new
21
+ @categorize.call parameters, arguments
22
+ end
20
23
 
21
24
  def self.of(...) = Probe.of(...)
22
25
 
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 = "4.0.0"
5
+ spec.version = "4.0.1"
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: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -34,7 +34,7 @@ cert_chain:
34
34
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
35
35
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
36
36
  -----END CERTIFICATE-----
37
- date: 2024-12-27 00:00:00.000000000 Z
37
+ date: 2024-12-28 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: refinements
metadata.gz.sig CHANGED
Binary file