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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f178f76220fe01a13e2d79033cabc5261f790102abdd8d0209741cb8c7a6b17
4
- data.tar.gz: 450c1fd3351c4caf38a88e58ad9c3d9cd25b919c3cafab86e5acbcf977ab6e38
3
+ metadata.gz: e9e6300f655cdfdea924109ea99b791260794041dc3602d7b0a3b64d31be98ed
4
+ data.tar.gz: 764cb26507d540bd42c796a8c34f30c1bd632ff8e6d0edae1295c84c19db1c78
5
5
  SHA512:
6
- metadata.gz: e119612311447feb13be274fb897a44f1a25d08d12287a66ecd8661638e4884c4f79b6d275e630c0e1661f70a5b9753d57c1e33d8dcbc605a5470fb2add8bc0b
7
- data.tar.gz: b647688c8a0f634d97d9a3204673cb43eab80086ab3313debce1faee335d0f1abc0e22aada01552fc6f756a9a6233bd64c7dd949933b14fe5beaaa9312679fd4
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
- ActiveSupport::EventedFileUpdateChecker.new([], Array(watches).collect { |dir| [ dir, "js"] }.to_h) do
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
 
@@ -1,3 +1,3 @@
1
1
  module Importmap
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
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.1
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-20 00:00:00.000000000 Z
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: []