active_orm 5.0.2 → 5.0.3

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
  SHA1:
3
- metadata.gz: 3fdf817c387fde608b683a47a0fdd032281affb7
4
- data.tar.gz: 73cc8283c6d500173524ac7ef5e3b18b2e41c3f0
3
+ metadata.gz: 7ef9683edfd6554107a0af7c49156aa99b0fd9dd
4
+ data.tar.gz: d0c59616f7c6c3a2420782f1b3508e778db70ba1
5
5
  SHA512:
6
- metadata.gz: 25bdcab020ff6866d76b88c0771aca1fb7c23928d137befff52cba08836e9a51caa2bb819b779c6c29e3866cbe482bf58485ae0c46bb7d8e4fce0904d30225a6
7
- data.tar.gz: 524468fdd8187d9487310e0bfad176673cf5aea9169ca3f951c93de38f5d3571ccff229e1fa0d8c871c2fc6bfeb2bd00e9036f86f3c1869436f27db3b3463679
6
+ metadata.gz: 656761b1f7eb5b4e34a2e6e2d170f2e937d350487728addbd6820b5b45832bffb6fb6b4e53b160ad83ec25b3688e9ad40256c6f822edce6ca2e293a4f4b9ed02
7
+ data.tar.gz: '001973e722fe4ae231b4bdb6070d83d23494206d9cf47dffc7b094d1df3dcf31803e05d208e60ed1543c19d58511a101d16644e40a521106fac9953eb9ddd2a3'
@@ -43,6 +43,8 @@ class ActiveOrm::Redis::Base
43
43
  end
44
44
 
45
45
  def metamorph_array(datum)
46
+ datum = metaform(datum)
47
+
46
48
  case datum.first.class.name
47
49
  when 'Array' then datum.map { |arr| metaform_array(arr) }
48
50
  when 'Hash' then datum.map { |hsh| metaform_hash(hsh) }
@@ -51,6 +53,8 @@ class ActiveOrm::Redis::Base
51
53
  end
52
54
 
53
55
  def metamorph(datum)
56
+ datum = metaform(datum)
57
+
54
58
  case datum.class.name
55
59
  when 'Array' then metamorph_array(datum)
56
60
  when 'Hash' then metaform_hash(datum)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveOrm
4
- VERSION ||= '5.0.2'
4
+ VERSION ||= '5.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_orm
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez