From d72ffc13fa45d063b0782a1f780857950d1e5583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Mon, 30 Oct 2017 13:17:19 +0100 Subject: [PATCH] Fix Ruby < 2.1 compatibility of IO::Hash#to_h --- lib/xlsxtream/io/hash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xlsxtream/io/hash.rb b/lib/xlsxtream/io/hash.rb index e402c1c..2574f66 100644 --- a/lib/xlsxtream/io/hash.rb +++ b/lib/xlsxtream/io/hash.rb @@ -38,7 +38,7 @@ def [](path) end def to_h - @hash.keys.map {|path| [path, fetch(path)] }.to_h + ::Hash[@hash.keys.map {|path| [path, fetch(path)] }] end end end