libis-tools 0.9.37 → 0.9.38

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: af6cbdcdf47a62427f158439e34cea873ab52e6a
4
- data.tar.gz: 84b3d0e0dff310655c349a5dbcf37797f99cec1b
3
+ metadata.gz: 90fd976af1a33c64b808a4c62f90f1ad46f30a65
4
+ data.tar.gz: 04b0311dd5dde6a4137a049bfeffd50bec10f02d
5
5
  SHA512:
6
- metadata.gz: bbf1c7f31efcdcda281ab7154120310bef1cfba7b8d6576245f2c5a514f583fb44b2aa76b8d06c24c6d51c3c80deb100b41ce8602d145630373e9e88875307ec
7
- data.tar.gz: d66796154eaa66acba13df2cf1761eb87c29d05e0e2482fa3c0f970a6d3d28a65bcf3559a4cf74f274f33559b32162728c8d32a7b5ea83e5d59b74daa2103440
6
+ metadata.gz: c02b301a293652642f4a877e399449a913707db5426dc3cb82a74aaa0099a79bfaeaa51bca123d4fa3a63e04425dc03e207162a562d5fe8e470d907f7d5a8a46
7
+ data.tar.gz: fe5d0520e76d38bcb73cf9a9b79ddafb172ef350d5beca3ad8fb80d645027a095dc3b1b448783fbd52d4abf51240dfc974c6d623aebbbd005aad80903eaffd62
@@ -69,7 +69,11 @@ module Libis
69
69
  return {} unless File.exist?(file_or_hash)
70
70
  yield File.absolute_path(file_or_hash) if block_given?
71
71
  # noinspection RubyResolve
72
+ begin
72
73
  YAML.load(ERB.new(open(file_or_hash).read).result)
74
+ rescue Exception => e
75
+ raise RuntimeError, "Error loading YAML '#{file_or_hash}': #{e.message}"
76
+ end
73
77
  else
74
78
  {}
75
79
  end
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '0.9.37'
3
+ VERSION = '0.9.38'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.37
4
+ version: 0.9.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser