importmap-rails 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/importmap/map.rb +2 -2
- data/lib/importmap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06f09e5cb89d870d3ef6b604e8161926a454a81e86aef033b8a3cd65274543af
|
4
|
+
data.tar.gz: 7027b536650f7ad0d320d70d30e09c525853b0949b857ff8da8aac2ebbe87ec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f31d17177dce653b7f2ff9eef08245b52c5ccf12ab5f7536796116b771f702486ee0081e4c345d215cd69cacdaefddd6694307d684be972f61e6afa13f9fe84b
|
7
|
+
data.tar.gz: a38b6fd51717b34ef57a751f2adc882827c05a585a8a3fe87ec695bbe523f5e7657d9bfbb98da9ddcacff7ff83b3230ecf8e3167069471b3c9801fe65855679f
|
data/lib/importmap/map.rb
CHANGED
@@ -9,14 +9,14 @@ class Importmap::Map
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def draw(path = nil, &block)
|
12
|
-
if path
|
12
|
+
if path && File.exist?(path)
|
13
13
|
begin
|
14
14
|
instance_eval(File.read(path))
|
15
15
|
rescue Exception => e
|
16
16
|
Rails.logger.error "Unable to parse import map from #{path}: #{e.message}"
|
17
17
|
raise "Unable to parse import map from #{path}: #{e.message}"
|
18
18
|
end
|
19
|
-
|
19
|
+
elsif block_given?
|
20
20
|
instance_eval(&block)
|
21
21
|
end
|
22
22
|
|
data/lib/importmap/version.rb
CHANGED