vrt 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vrt/cross_version_mapping.rb +2 -1
- data/lib/vrt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d2c3bc4410dd58220933a1c508fc52ea0e2e7ae
|
4
|
+
data.tar.gz: 2f6ebbb171e77556b87b183ddbebadc98d5d4e6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23101417ef47848ac60e8ac0e9454b5b287575a673ddecb9987718d2153f0e3f48d5e94f7d9fff46cbd8cbf6b3cbf21e099960ea10593d17890f772910c6b816
|
7
|
+
data.tar.gz: adfdf08e4fc4bfa8f3051fa778f458a7d2933583572b3cc632d75c2c61765683eaff805f1684f4998a1e910f46de7e431f17e99a5057b82d43f19cdb9396da71
|
@@ -32,7 +32,8 @@ module VRT
|
|
32
32
|
def find_deprecated_node(vrt_id, new_version = nil, max_depth = 'variant')
|
33
33
|
version = latest_version_for_deprecated_node(vrt_id)
|
34
34
|
node_id = deprecated_node_json[vrt_id][new_version] || deprecated_node_json[vrt_id][version]
|
35
|
-
VRT::Map.new(new_version).find_node(node_id, max_depth: max_depth)
|
35
|
+
new_node = VRT::Map.new(new_version).find_node(node_id, max_depth: max_depth)
|
36
|
+
new_node.nil? ? find_deprecated_node(node_id, new_version, max_depth) : new_node
|
36
37
|
end
|
37
38
|
|
38
39
|
def find_valid_parent_node(vrt_id, new_version, max_depth)
|
data/lib/vrt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vrt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barnett Klane
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-11-
|
13
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|