importmap-rails 0.7.1 → 0.7.2
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 -3
- data/lib/importmap/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9e6300f655cdfdea924109ea99b791260794041dc3602d7b0a3b64d31be98ed
|
4
|
+
data.tar.gz: 764cb26507d540bd42c796a8c34f30c1bd632ff8e6d0edae1295c84c19db1c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83d0560169e2dd9248197c90abe92734eeebeacd7e3f9db1fb530f228a0bfbfb7c02081a566911f219fddcc3732cf9e49dfcf7a18308035841291d9f703062b2
|
7
|
+
data.tar.gz: 1fbab54d8cb85d1e57d696d327b3ec4231a1d197840c7ecd7697bad15ca95168a9b5f2572c066d408773c1b7dddb16c0d062119567355d2d7ac8b07828f2ebdb
|
data/lib/importmap/map.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require "pathname"
|
2
|
-
require "active_support/evented_file_update_checker"
|
3
2
|
|
4
3
|
class Importmap::Map
|
5
4
|
attr_reader :packages, :directories
|
@@ -63,11 +62,11 @@ class Importmap::Map
|
|
63
62
|
def cache_sweeper(watches: nil)
|
64
63
|
if watches
|
65
64
|
@cache_sweeper =
|
66
|
-
|
65
|
+
Rails.application.config.file_watcher.new([], Array(watches).collect { |dir| [ dir.to_s, "js"] }.to_h) do
|
67
66
|
clear_cache
|
68
67
|
end
|
69
68
|
else
|
70
|
-
@cache_sweeper
|
69
|
+
@cache_sweeper
|
71
70
|
end
|
72
71
|
end
|
73
72
|
|
data/lib/importmap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: importmap-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 6.0.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: listen
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.7'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.7'
|
41
27
|
description:
|
42
28
|
email: david@loudthinking.com
|
43
29
|
executables: []
|