vrt 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vrt/map.rb +1 -1
  3. data/lib/vrt/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61f3553f98d0b502f458ee6566dc76e0c3237279
4
- data.tar.gz: b7240f35e43cdb044982784b47490d90faf34f72
3
+ metadata.gz: 8af6c283ebd158bea27d53b2f6273c618ab2b76c
4
+ data.tar.gz: 5dab5e002891429a95c80fd6498982a0514ee5e4
5
5
  SHA512:
6
- metadata.gz: 97b80beb9eed048a770dde54effefaf18ebc59404e3e14116b764a36fc674f52a72d7002c0d8c180aa02fc67e3a1d644d080836428f15df1af5509a9e2c84f95
7
- data.tar.gz: 13211ce3cc7291c9890ec696dc40bc3b805e94946cda96f50a07f849261cff7bb55bc17e84f6023172f622ab8116ad52b43103e1e5290a43c9b37c6808fa59d2
6
+ metadata.gz: c3aa6b19106511df05a77382daa7ec896dc2d13d74a6f1a6a38c4cc47d1244b71b9eff14c8bbbda6aff1fa40fa5bcb376c7fce03fd1a04e3b9c5f4b51bd6bfbf
7
+ data.tar.gz: a53a266739b11005b1e1c045cddf0135f12e976c8f397b0ef6ba451c7c5c1073252c27541e344ff00b85374215a02ca75787115d291b1536f4b0cd5341dfa595
data/lib/vrt/map.rb CHANGED
@@ -63,7 +63,7 @@ module VRT
63
63
 
64
64
  def search(ids, node, level)
65
65
  last_level = level.eql?(ids.length)
66
- last_level ? node : node&.children&.fetch(ids[level], false)
66
+ last_level ? node : node&.children&.dig(ids[level])
67
67
  end
68
68
 
69
69
  def build_structure
data/lib/vrt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vrt
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barnett Klane