nimbus 0.6 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/nimbus/tree.rb +1 -1
  2. metadata +1 -1
data/lib/nimbus/tree.rb CHANGED
@@ -56,7 +56,7 @@ module Nimbus
56
56
  def self.traverse(tree_structure, data)
57
57
  return tree_structure if tree_structure.is_a? Numeric
58
58
  raise Nimbus::TreeError, "Forest data has invalid structure. Please check your forest data (file)." if !(tree_structure.is_a?(Hash) && tree_structure.keys.size == 1)
59
- return self.traverse( tree_structure.values.first[ data[tree_structure.keys.first].to_i - 1 ], data)
59
+ return self.traverse( tree_structure.values.first[ data[tree_structure.keys.first - 1].to_i], data)
60
60
  end
61
61
 
62
62
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nimbus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "0.6"
5
+ version: 0.6.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Juanjo Baz\xC3\xA1n"