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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d54fbc1c5dafddb6d0cd08445f1c8d34cf9e3ab56532d606f773a06a5706862
4
- data.tar.gz: 3283113491a276388ad171c1364e7a1f71a3bb9ed6ec70efa9cdfe7cc1b11b1d
3
+ metadata.gz: 649401804f347161d0bc0d0895c0cf3cb6bbc923c251cea4af80e1b878dbcbac
4
+ data.tar.gz: 6db5c35c8e7def6cf94535cdaef30ab1bfd09fef4610d652418651eb6fbcccd8
5
5
  SHA512:
6
- metadata.gz: de140ec999832c80332b96c9be76e4a8f6947bb85cc885a879597d480b0c94cad064ddefe1d9ec78dae43ebb385a95c16d21f7272e092e2e20ccb50368261835
7
- data.tar.gz: 3f2b50815dfa7687f23c59421fc91bccc1c0b7f4db8cba9aacd54ff1b53e9f7eba1ade96727c7c556d1671166f5fbdf056bc514e83b503dbacb128e7d5773a36
6
+ metadata.gz: a341cf1b03501ce765571aa6db35ddfb93cff491a96342e26fc0b8ecbb1f64f5b60b28ce2a15cd058f3b1faaa57dab6741d1b0b4c996171b648f3e8274771681
7
+ data.tar.gz: 60bd74ab4df9a7dec5d46f3d374c13d1a1bd3034ff32aa05937e0ddbe91d9ed1636099b4b922096e98d3eb08e10231aaaa8198989994b1f18dc069414b685268
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do | spec |
2
2
 
3
3
  spec.name = 'dynamicschema'
4
- spec.version = '1.0.0'
4
+ spec.version = '1.0.1'
5
5
  spec.authors = [ 'Kristoph Cichocki-Romanov' ]
6
6
  spec.email = [ 'rubygems.org@kristoph.net' ]
7
7
 
@@ -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
@@ -98,7 +98,7 @@ module DynamicSchema
98
98
  end
99
99
 
100
100
  def class
101
- ::DynamicSchema::Schema::Resolver
101
+ ::DynamicSchema::Resolver
102
102
  end
103
103
 
104
104
  def is_a?( klass )
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.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-06-06 00:00:00.000000000 Z
10
+ date: 2025-07-28 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rspec