roda-endpoints 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d220ea238a9e1f5f64480a2c22bde112c58bfc5
|
|
4
|
+
data.tar.gz: 8b964273d51c74a1a9dd446d95c317fc4e05ddce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 219c52fdfa1a3a8201b3e90e28c08cfa5c35be25437b428237893e5edf9720455f31ced6bfb7c48488ce2062d7bc68db606c8fa1170ef3278c1e368e26346039
|
|
7
|
+
data.tar.gz: 6bbeeb8441720f459f2d477a60f9c24c9c73b1c2b894e05491a0ee520e536b31221b1b03a93d4c2a5662ec79dd2fdc0f4f468d66c500f4fffd83d956e87337c0
|
|
@@ -47,9 +47,11 @@ class Roda
|
|
|
47
47
|
|
|
48
48
|
# @return [Symbol]
|
|
49
49
|
def type
|
|
50
|
-
@type ||= Inflecto.underscore(
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
@type ||= Inflecto.underscore(
|
|
51
|
+
Inflecto.demodulize(
|
|
52
|
+
name || superclass.name
|
|
53
|
+
)
|
|
54
|
+
).to_sym
|
|
53
55
|
end
|
|
54
56
|
|
|
55
57
|
# @param [Symbol] verb
|
|
@@ -174,7 +174,6 @@ class Roda
|
|
|
174
174
|
# @param [Dry::Container::Mixin, #register, #resolve, #merge] container
|
|
175
175
|
# @param [Roda::Endpoints::Endpoint] parent
|
|
176
176
|
# @param [Hash] kwargs
|
|
177
|
-
# rubocop:disable Metrics/ParameterLists
|
|
178
177
|
def endpoint(name:,
|
|
179
178
|
type:,
|
|
180
179
|
container: roda_class.opts[:endpoints][:container],
|