marameters 2.1.1 → 3.1.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/categorizer.rb +2 -2
- data/lib/marameters/probe.rb +1 -1
- data/marameters.gemspec +3 -3
- data.tar.gz.sig +0 -0
- metadata +6 -9
- 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: eddad0b36e6b51b6d2790944d894fe60a82092c49c55df3c73ab20dacbbfa5ad
|
4
|
+
data.tar.gz: df99fe00399e5940a98a43bc2d47220a208a76d05d2867abdc65906550961bc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7af77065ad7723f0ea2a09ebd364f850ad66adab2a4fae5caab3446d1a8d49f6143feff5555c823946aad6b6b16ae0cbb0b25ec047da66108af4a1b2a3822ef8
|
7
|
+
data.tar.gz: 64dfe2d0a6a2a9fe94e114a875794f17ae582faff3f7136248f27219fc21fbc23ea80385fd855315f8e9a6525d7cb2d4ce5f28fae9c77f094699c08d9f4213bf
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Marameters
|
6
6
|
# Builds the primary argument categories based on method parameters and arguments.
|
7
7
|
class Categorizer
|
8
|
-
using Refinements::
|
8
|
+
using Refinements::Struct
|
9
9
|
|
10
10
|
def initialize parameters, model: Splat
|
11
11
|
@parameters = parameters
|
data/lib/marameters/probe.rb
CHANGED
@@ -70,7 +70,7 @@ module Marameters
|
|
70
70
|
|
71
71
|
def define_variable category, kinds
|
72
72
|
parameters.filter_map { |kind, name| next name if kinds.include? kind }
|
73
|
-
.then { |collection| instance_variable_set "@#{category}", collection }
|
73
|
+
.then { |collection| instance_variable_set :"@#{category}", collection }
|
74
74
|
end
|
75
75
|
end
|
76
76
|
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 = "
|
5
|
+
spec.version = "3.1.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/marameters"
|
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.signing_key = Gem.default_key_path
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
|
-
spec.required_ruby_version =
|
26
|
-
spec.add_dependency "refinements", "~>
|
25
|
+
spec.required_ruby_version = "~> 3.3"
|
26
|
+
spec.add_dependency "refinements", "~> 12.0"
|
27
27
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
28
28
|
|
29
29
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
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
|
+
version: 3.1.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:
|
38
|
+
date: 2024-02-20 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: refinements
|
@@ -43,14 +43,14 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '12.0'
|
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: '
|
53
|
+
version: '12.0'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: zeitwerk
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,10 +101,7 @@ require_paths:
|
|
101
101
|
- lib
|
102
102
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- - "
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: '3.2'
|
107
|
-
- - "<="
|
104
|
+
- - "~>"
|
108
105
|
- !ruby/object:Gem::Version
|
109
106
|
version: '3.3'
|
110
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -113,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
110
|
- !ruby/object:Gem::Version
|
114
111
|
version: '0'
|
115
112
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
113
|
+
rubygems_version: 3.5.6
|
117
114
|
signing_key:
|
118
115
|
specification_version: 4
|
119
116
|
summary: A dynamic method parameter inspector.
|
metadata.gz.sig
CHANGED
Binary file
|