guard-jekyll-plus 1.4.7 → 1.4.8
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 +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/guard/jekyll-plus/version.rb +1 -1
- data/lib/guard/jekyll-plus.rb +12 -0
- data/test/Gemfile.lock +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTM1NTg4OGZiZGI5YmFjNThlNGQ0ZjBjYjY5MjhlNzBlYjZkZTJmMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2JmYjAwNmM0ZGY1MDhmOWM3MTliMTcyNzJjOTdjODhmY2VhYmViNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTEwMTAyMjcwMDZkMjk3Y2E5OGFhNTAzMDA5ODhjYzE5N2YwZmM4YTQzMmMz
|
10
|
+
OWM1ZjFiZmNhM2M4MjI1MjJjODA1YTk2ODM5MTJjOGY3YjYyMzY3NjY2NTNm
|
11
|
+
NGZmYjdhNDM2ZjAwMTgyYjkyMGJmNjhmYWI1MGE5NzYwYjFmN2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjkyMTg3OGE3ODM0MTZjNzExMTg2MDM0NDA1NmU3NzMwODQzNWUxMmU4ZWM1
|
14
|
+
ZTQ1MmNiMDk1ZmY1N2IxYzdlY2JmNzZlNzJhN2EyOGU3ZTczZmRiNjkyMDQ1
|
15
|
+
NGViZDQ2NmFlNjNjYTJjMzkyNzU0M2JiZTZlNDMzYWIzNjkwMDE=
|
data/CHANGELOG.md
CHANGED
data/lib/guard/jekyll-plus.rb
CHANGED
@@ -139,6 +139,7 @@ module Guard
|
|
139
139
|
# Copy static files to destination directory
|
140
140
|
#
|
141
141
|
def copy(files=[])
|
142
|
+
files = ignore_stitch_sources files
|
142
143
|
begin
|
143
144
|
message = 'copied file'
|
144
145
|
message += 's' if files.size > 1
|
@@ -161,9 +162,20 @@ module Guard
|
|
161
162
|
true
|
162
163
|
end
|
163
164
|
|
165
|
+
def ignore_stitch_sources(files)
|
166
|
+
if ENV['GUARD_STITCH_PLUS_FILES']
|
167
|
+
ignore = ENV['GUARD_STITCH_PLUS_FILES'].split(',')
|
168
|
+
files.reject {|f| ignore.include? f }
|
169
|
+
else
|
170
|
+
files
|
171
|
+
end
|
172
|
+
|
173
|
+
end
|
174
|
+
|
164
175
|
# Remove deleted source file/directories from destination
|
165
176
|
#
|
166
177
|
def remove(files=[])
|
178
|
+
files = ignore_stitch_sources files
|
167
179
|
# Ensure at least one file still exists (other scripts may clean up too)
|
168
180
|
if files.select {|f| File.exist? f }.size > 0
|
169
181
|
begin
|
data/test/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
guard-jekyll-plus (1.4.
|
4
|
+
guard-jekyll-plus (1.4.8)
|
5
5
|
guard (>= 1.1.0)
|
6
6
|
jekyll (>= 1.0.0)
|
7
7
|
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
fast-stemmer (>= 1.0.0)
|
13
13
|
coderay (1.0.9)
|
14
14
|
colorator (0.1)
|
15
|
-
commander (4.1.
|
15
|
+
commander (4.1.5)
|
16
16
|
highline (~> 1.6.11)
|
17
17
|
directory_watcher (1.4.1)
|
18
18
|
fast-stemmer (1.0.2)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
safe_yaml (~> 0.7.0)
|
39
39
|
kramdown (1.0.2)
|
40
40
|
liquid (2.5.1)
|
41
|
-
listen (1.
|
41
|
+
listen (1.3.0)
|
42
42
|
rb-fsevent (>= 0.9.3)
|
43
43
|
rb-inotify (>= 0.9)
|
44
44
|
rb-kqueue (>= 0.2)
|
@@ -55,7 +55,7 @@ GEM
|
|
55
55
|
posix-spawn (~> 0.3.6)
|
56
56
|
yajl-ruby (~> 1.1.0)
|
57
57
|
rb-fsevent (0.9.3)
|
58
|
-
rb-inotify (0.9.
|
58
|
+
rb-inotify (0.9.1)
|
59
59
|
ffi (>= 0.5.0)
|
60
60
|
rb-kqueue (0.2.0)
|
61
61
|
ffi (>= 0.5.0)
|