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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9710704ecea5f4320f22103ea00b268d71cc90f7
4
- data.tar.gz: fe250e93cb316fd058d4dab3fc2b679ac0fcbb71
3
+ metadata.gz: 4d2c3bc4410dd58220933a1c508fc52ea0e2e7ae
4
+ data.tar.gz: 2f6ebbb171e77556b87b183ddbebadc98d5d4e6a
5
5
  SHA512:
6
- metadata.gz: b4ed35f1273882ec8e745bf8d026cc636fe120feb266d6c86a3899d70e625ce278f23ef5f2298f2b0b364a876da83cf6b8fa3030c99453786d9f8291669fae81
7
- data.tar.gz: 53b0f1b36395927a2074480525bcda49b5472277fc63e14a46327f65e8eabbef9b4cd115c3f62f84b33cf628a0202b0a420589d0760e584d301228ea9de00cac
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
@@ -1,3 +1,3 @@
1
1
  module Vrt
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.1'.freeze
3
3
  end
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.0
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-05 00:00:00.000000000 Z
13
+ date: 2018-11-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler