bridgetown-core 2.1.0 → 2.1.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 +4 -4
- data/lib/bridgetown-core/watcher.rb +7 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cfb4fe1c7092bb3e144f687065fe133bf4c9c92885455cdffd6522e4bcdc86b4
|
|
4
|
+
data.tar.gz: 5c658b9c3b889d1044b8a0de385f7d3371e8a6da1b65acd3cf69abad82aed8cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6c9b9df0ab609a62e149e3c5024ea37e683298788492c64896cccef1094f6a795ba366f830fefd87e156b35438dba4ea31a4bf83cce00e5a6ed3cfbea4fa874
|
|
7
|
+
data.tar.gz: 4d843d4cc3b9815a6a8b37a3048debd9598b6a6b142077921a58c284ad92ce0e2dae2da1c2a159d541f24d85a37f65d21ee7adfa8004109a311b3e921879e13e
|
|
@@ -67,7 +67,7 @@ module Bridgetown
|
|
|
67
67
|
) do |modified, added, removed|
|
|
68
68
|
paths = modified + added + removed
|
|
69
69
|
|
|
70
|
-
filter_paths(paths, options)
|
|
70
|
+
filter_paths(paths, options, keep: [bundling_path])
|
|
71
71
|
|
|
72
72
|
n = paths.length
|
|
73
73
|
next if n.zero?
|
|
@@ -177,13 +177,17 @@ module Bridgetown
|
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
def filter_paths(paths, options)
|
|
180
|
+
def filter_paths(paths, options, keep: [])
|
|
181
181
|
# NOTE: inexplicably, this matcher doesn't work with the Listen gem, so
|
|
182
182
|
# we have to run it here manually
|
|
183
183
|
paths.reject! { component_frontend_matcher(options).match? _1 }
|
|
184
184
|
# Filter again by ignore exclusions, needed for "folder inversion" projects where the
|
|
185
185
|
# Bridgetown root is inside of the main folder being watched
|
|
186
|
-
paths.reject!
|
|
186
|
+
paths.reject! do |path|
|
|
187
|
+
next false if keep.any? { path.start_with?(_1) }
|
|
188
|
+
|
|
189
|
+
to_exclude(options).any? { path == _1 || path.start_with?(_1) }
|
|
190
|
+
end
|
|
187
191
|
end
|
|
188
192
|
|
|
189
193
|
def sleep_forever
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bridgetown-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bridgetown Team
|
|
@@ -71,14 +71,14 @@ dependencies:
|
|
|
71
71
|
requirements:
|
|
72
72
|
- - '='
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 2.1.
|
|
74
|
+
version: 2.1.1
|
|
75
75
|
type: :runtime
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - '='
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: 2.1.
|
|
81
|
+
version: 2.1.1
|
|
82
82
|
- !ruby/object:Gem::Dependency
|
|
83
83
|
name: csv
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|