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 +4 -4
- data/lib/libis/tools/config_file.rb +4 -0
- data/lib/libis/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90fd976af1a33c64b808a4c62f90f1ad46f30a65
|
4
|
+
data.tar.gz: 04b0311dd5dde6a4137a049bfeffd50bec10f02d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/libis/tools/version.rb
CHANGED