gryphon_nest 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11bbaedf3fbca0e216d16bd03a8452ee6ffc57930dac0ab8a30c3d02fef15f2e
4
- data.tar.gz: 63ed7c032ef8478697ee0372ff569c54f3408a92dc68728f892c7a938e7e4955
3
+ metadata.gz: ebc3be5da99292952a7e447920e092a23df21940c045b5b04e9c606ab41f1f90
4
+ data.tar.gz: '08d4e67a95b76b98ca48ab20cd4926e2227fabeafd6f6f0dc05b2c91bef2e579'
5
5
  SHA512:
6
- metadata.gz: 865a4ed653820f359cd8d608e38e7f1c9c1697def2f4958ea18b11e4f4df84b701663571b10bf03eb06a2a1f9cd530a0c1f7579c613b710611b7014cd93c9851
7
- data.tar.gz: 16838330ada34079d02f4ef629a878c2f6afdd55fa288e180a44e17b9fc8425fe3c6c5eaa27883ebb7ec900d30ce0ae2e82dd84525384e7dbbe464732f976fa6
6
+ metadata.gz: 5166f66ccab09e8cb108b308b9e79681318f595d5faf8210cf783ccc714b2f0b3533a161c92eb92f94e102b6f9954ea7519c4da285a0330951340e8c61030bbb
7
+ data.tar.gz: 58566f847efb6ddbc5e782e78b12b27672fcf08f44a897b68947621620b1c01a0ccb198d79f584fd3f1c41eaf68bf371c61fc65338df73933b496010c4068118
@@ -27,7 +27,7 @@ module GryphonNest
27
27
 
28
28
  processor
29
29
  rescue LoadError
30
- @processors[key] = nil
30
+ @processors.delete(key)
31
31
  @asset_processor
32
32
  end
33
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GryphonNest
4
- VERSION = '4.0.0'
4
+ VERSION = '4.0.1'
5
5
  end
data/lib/gryphon_nest.rb CHANGED
@@ -37,30 +37,25 @@ module GryphonNest
37
37
 
38
38
  def watch
39
39
  @logger.info('Watching for content changes')
40
- listener = Listen.to(CONTENT_DIR, DATA_DIR, relative: true) do |modified, added, removed|
40
+ Listen.to(CONTENT_DIR, relative: true) do |modified, added, removed|
41
41
  modified.union(added).each do |file|
42
42
  path = Pathname(file)
43
-
44
- if file.start_with?(DATA_DIR)
45
- process_data_file(path)
46
- else
47
- process_file(path)
48
- end
43
+ process_file(path)
49
44
  end
50
45
 
51
46
  removed.each do |file|
52
47
  path = Pathname(file)
53
-
54
- if file.start_with?(DATA_DIR)
55
- process_data_file(path)
56
- else
57
- path = @processors[path.extname].dest_name(path)
58
- delete_file(path)
59
- end
48
+ path = @processors[path.extname].dest_name(path)
49
+ delete_file(path)
60
50
  end
61
- end
51
+ end.start
62
52
 
63
- listener.start
53
+ Listen.to(DATA_DIR, relative: true) do |modified, added, removed|
54
+ modified.union(added, removed).each do |file|
55
+ path = Pathname(file)
56
+ process_data_file(path)
57
+ end
58
+ end.start
64
59
  end
65
60
 
66
61
  # @param port [Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gryphon_nest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Birmingham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-12 00:00:00.000000000 Z
11
+ date: 2025-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlbeautifier