transmutation 0.3.0 → 0.3.1

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: a1184809d63cb5abaad091e433a5e150579f5ca634a5522c57b7dd49c3465a3c
4
- data.tar.gz: a0e2bddde883737a82369d14cd4bc75235ea1dee366c7a0234a262e29930a74c
3
+ metadata.gz: 3f47031b9ba7f42582eb94bf4656a767ab0d80571cac2dbab539586ee1026717
4
+ data.tar.gz: bf8324685ee7b78dce729d5d9d3862f252516d3601078029936ed16cfc193a17
5
5
  SHA512:
6
- metadata.gz: ee23262517dba8436c182542b02bd3e1b15df0225b84eae7dedb106c4d155cf6dd78db791e9a98d44c57654dcf87d9aa8110e87cde6bface0943952199f8e2a5
7
- data.tar.gz: 8b23bfbd305587fde6d6fef4a714840a73e4415d27902c3169dd06561f141b127944d64f13029a37f9aaf10d88bdab5b1059554ae132fc4584c899f6ecb3148e
6
+ metadata.gz: 4cd441a3d1f40bfea4dd9090eb2ed58aad496166f986a1e2d086ef564302153c1381bfd4bf5868bea20cff125447aab012c3fc04488d545f4e7b436721b9edb1
7
+ data.tar.gz: 3931c97882ba5f3bd972f9cb540904f1ef71296dc8fda76c7d79770ec760c54c8f4490557a3ea5e1f6315177099e63b762d4cfe7f24bad5e6fd80d1906c9f608
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- transmutation (0.3.0)
4
+ transmutation (0.3.1)
5
5
  zeitwerk (~> 2.6.15)
6
6
 
7
7
  GEM
@@ -52,13 +52,15 @@ module Transmutation
52
52
  @potential_namespaces ||= begin
53
53
  namespace_parts = serializer_namespace.split("::")
54
54
 
55
- namespace_parts.filter_map.with_index do |part, index|
55
+ namespaces = namespace_parts.filter_map.with_index do |part, index|
56
56
  namespace = [*namespace_parts[...index], part].join("::")
57
57
 
58
58
  next if namespace.empty?
59
59
 
60
60
  Object.const_get(namespace) if Object.const_defined?(namespace)
61
- end.reverse
61
+ end
62
+
63
+ [*namespaces.reverse, Object]
62
64
  end
63
65
  end
64
66
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Transmutation
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transmutation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nitemaeric
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-06-06 00:00:00.000000000 Z
12
+ date: 2024-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk