dynamicschema 1.0.0 → 1.0.1
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 +4 -4
- data/dynamicschema.gemspec +1 -1
- data/lib/dynamic_schema/receiver.rb +4 -1
- data/lib/dynamic_schema/resolver.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 649401804f347161d0bc0d0895c0cf3cb6bbc923c251cea4af80e1b878dbcbac
|
4
|
+
data.tar.gz: 6db5c35c8e7def6cf94535cdaef30ab1bfd09fef4610d652418651eb6fbcccd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a341cf1b03501ce765571aa6db35ddfb93cff491a96342e26fc0b8ecbb1f64f5b60b28ce2a15cd058f3b1faaa57dab6741d1b0b4c996171b648f3e8274771681
|
7
|
+
data.tar.gz: 60bd74ab4df9a7dec5d46f3d374c13d1a1bd3034ff32aa05937e0ddbe91d9ed1636099b4b922096e98d3eb08e10231aaaa8198989994b1f18dc069414b685268
|
data/dynamicschema.gemspec
CHANGED
@@ -131,11 +131,14 @@ module DynamicSchema
|
|
131
131
|
"The attribute '#{name}' should have at most #{required_count + 1} arguments but " \
|
132
132
|
"#{count} was given." \
|
133
133
|
if count > required_count + 1
|
134
|
+
|
134
135
|
result = {}
|
136
|
+
|
135
137
|
required_arguments&.each_with_index do | name, index |
|
136
138
|
result[ name.to_sym ] = arguments[ index ]
|
137
139
|
end
|
138
|
-
|
140
|
+
arguments.slice!( 0, required_arguments.length ) if required_arguments
|
141
|
+
|
139
142
|
last = arguments.last
|
140
143
|
case last
|
141
144
|
when ::Hash
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamicschema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristoph Cichocki-Romanov
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-07-28 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rspec
|