lapis_lazuli 2.0.0 → 2.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ba7d3bc93d8cc88cf24da242e8ce8d9fac690e1
|
4
|
+
data.tar.gz: 547f0135054b8d4751a01df27842e9d1d679959e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7b214da9b4862efb132d7aa529bb69cd46c7bcc6af194c95d8eff6a2bb0900eaea16206f28a128fa8cc23e71f5040512e22ec91f5bde2d999a199610eec37c1
|
7
|
+
data.tar.gz: 4ecc7e7c7512f976240242843ae9666c1bcba998ad3afc9b1b591e5c85abbb89c238e609d1ef0a3f5da107c4b91ac8dfee87cd590c12d751a457e966708c705c
|
data/lib/lapis_lazuli/browser.rb
CHANGED
data/lib/lapis_lazuli/version.rb
CHANGED
@@ -116,11 +116,14 @@ module WorldModule
|
|
116
116
|
|
117
117
|
# Try all files in order
|
118
118
|
files.each do |file|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
119
|
+
# Check if files exist
|
120
|
+
if File.file?(file)
|
121
|
+
begin
|
122
|
+
# Try to load a config file
|
123
|
+
return self.load_config_from_file(file)
|
124
|
+
rescue Exception => e
|
125
|
+
raise e
|
126
|
+
end
|
124
127
|
end
|
125
128
|
end
|
126
129
|
end
|
@@ -175,9 +178,8 @@ module WorldModule
|
|
175
178
|
json = File.read(filename)
|
176
179
|
data = JSON.parse(json)
|
177
180
|
end
|
178
|
-
rescue
|
179
|
-
|
180
|
-
raise "Error loading file: #{filename} #{err}"
|
181
|
+
rescue Exception => e
|
182
|
+
raise "Error loading file: #{filename} #{e}"
|
181
183
|
end
|
182
184
|
|
183
185
|
# Fix up empty files
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lapis_lazuli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Onno Steenbergen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-
|
14
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|