virtus2 2.0.2 → 2.1.0

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: 841ced82c04c9a17b904f15c9afbbe0ef833cea1a50b321adfdd613d146591e6
4
- data.tar.gz: 24d8f67f1abdaa6a63b5b6e04a2088ce4ed55c1f37e63492ca4029a790f17e8e
3
+ metadata.gz: fd1e6b78617b2df64b1a43e95958bd409ea14c8b9209fec15f157a2d1cbf769a
4
+ data.tar.gz: 449900e332d50149793549949820ac2c0a3b43266ff6cd674482ce0058bc8904
5
5
  SHA512:
6
- metadata.gz: 77845a42756aa354f217ec353a422733121c13b3cada94d96b17576cabc2344980916933987338a4d7981f71e03483ef34a718a183eed54129e0acde47228b33
7
- data.tar.gz: 0abf44bdcc8e443b8e86db4643e36c52d490f1fc5a7200b8683b0f1d0ab85f4ce5f5d4848e489855b0e6100dbb4355cdc2b0e2fb9b8fc6513d2fbf7e4c9b8c42
6
+ metadata.gz: 4b3ae36a6a52b7fcf867f77ea557b20df8619e445f90626407d197d95d2a5760e954b75eb86a954c9dd45795261933e3cddbadfd8df183549d0b2d4dee0dc485
7
+ data.tar.gz: b388f3913ca960cc413df5ce51d6ae6e80fc900b1bf696429acc02a2a4d9c1a68b5ecfa54fae95efb7ae7e307b1cea7f44107d6f3796c3a8f078fc43e7910acd
data/Changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v2.1.0 2021-10-19
2
+ * [fixed] Arrays of custom Attributes should work now
3
+
1
4
  # v2.0.2 2021-09-30
2
5
  * [fixed] Support for ActiveSupport's HashWithIndifferentAccess
3
6
 
@@ -22,9 +22,10 @@ module Virtus
22
22
  if EmbeddedValue.handles?(member) || pending?(member)
23
23
  Type.new(primitive, member)
24
24
  else
25
+ member_type = member < Virtus::Attribute ? member : Axiom::Types.infer(member)
25
26
  klass.new {
26
27
  primitive primitive
27
- member_type Axiom::Types.infer(member)
28
+ member_type member_type
28
29
  }
29
30
  end
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module Virtus
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtus2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-30 00:00:00.000000000 Z
12
+ date: 2021-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: descendants_tracker