importmap-rails 0.2.5 → 0.2.6
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: 271785dcc1a13f77093f95d79b7463f615754ea02129d6b7a8ff1d0fb32caf83
|
4
|
+
data.tar.gz: af98f4e072978fd478ae00bc80d34a9357fd2375fde1bb246125852dbd65f92b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5775f5dd5149baa20c4cc4a9dde8caee59caffcddb2eb4c8ae65c20b5b90a7f8299957760cc6accffd192c250f37e0ec09f871a7b8354301aecf679f4a02ef8a
|
7
|
+
data.tar.gz: baa9e8cd92f9d5d315d65924aa4e289d3dda8a920619fc202fcbd9e797df68ea1da80cab5569ec41ed6f21c9dd1c5d3cac5c17ac2a4975c84161590d99d6b36f
|
data/lib/importmap/map.rb
CHANGED
@@ -10,11 +10,11 @@ class Importmap::Map
|
|
10
10
|
instance_eval(&block)
|
11
11
|
end
|
12
12
|
|
13
|
-
def pin(name, to: nil, preload:
|
13
|
+
def pin(name, to: nil, preload: false)
|
14
14
|
@files[name] = MappedFile.new(name: name, path: to || "#{name}.js", preload: preload)
|
15
15
|
end
|
16
16
|
|
17
|
-
def pin_all_from(path, under: nil, preload:
|
17
|
+
def pin_all_from(path, under: nil, preload: false)
|
18
18
|
@directories[path] = MappedDir.new(path: path, under: under, preload: preload)
|
19
19
|
end
|
20
20
|
|
data/lib/importmap/version.rb
CHANGED