guard-jekyll-plus 1.4.7 → 1.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTc2OTc3NGYyNzI1ZDkwYjZlMGMwNGJlMDE1YjE1OTVjYjg5MTcyMw==
4
+ NTM1NTg4OGZiZGI5YmFjNThlNGQ0ZjBjYjY5MjhlNzBlYjZkZTJmMA==
5
5
  data.tar.gz: !binary |-
6
- NmE2YjExYjgyNTFjM2YzMGU4ZGMzZjJmYTljNmQ5ZGUzYmY2YzFlOA==
6
+ N2JmYjAwNmM0ZGY1MDhmOWM3MTliMTcyNzJjOTdjODhmY2VhYmViNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2MxNjNmZTg2MzJmYzA3NWVlMWNmODU1ZjNhNTM2ZjU4ZWU5NWZkNjBmY2Iw
10
- ZmUxY2ZiZmUyN2Q2NDNiNzIzNjA5YWVmNzEzM2IxNTkzNmE4YzhiNDc4Y2Nh
11
- ZWZhNTJmYWI3Y2I2NzE2ODZmMjJlZTYzOTE2MjU5YjU0NDExZGY=
9
+ NTEwMTAyMjcwMDZkMjk3Y2E5OGFhNTAzMDA5ODhjYzE5N2YwZmM4YTQzMmMz
10
+ OWM1ZjFiZmNhM2M4MjI1MjJjODA1YTk2ODM5MTJjOGY3YjYyMzY3NjY2NTNm
11
+ NGZmYjdhNDM2ZjAwMTgyYjkyMGJmNjhmYWI1MGE5NzYwYjFmN2I=
12
12
  data.tar.gz: !binary |-
13
- NmUxZGZmNzI4ZWIwN2IyNTliYmM3ZWU0M2E2YjZkNDQ4Y2NmNGE1MDY3OTU0
14
- ZTNhMzBjOWUxZWVlZDRjNWNlOGFiYTViNzZiMDUxOGRlOGZlMzIwMzVmNzgz
15
- Y2U5NWY4NTA3ZTc5MzJmNjFkOTNkZDdiZjI3OTE3ZWM2OWQxOWY=
13
+ NjkyMTg3OGE3ODM0MTZjNzExMTg2MDM0NDA1NmU3NzMwODQzNWUxMmU4ZWM1
14
+ ZTQ1MmNiMDk1ZmY1N2IxYzdlY2JmNzZlNzJhN2EyOGU3ZTczZmRiNjkyMDQ1
15
+ NGViZDQ2NmFlNjNjYTJjMzkyNzU0M2JiZTZlNDMzYWIzNjkwMDE=
data/CHANGELOG.md CHANGED
@@ -75,3 +75,7 @@ New config options
75
75
  ### 1.4.7
76
76
 
77
77
  - Double checks that there are files to remove before proceeding and printing remove message.
78
+
79
+ ### 1.4.8
80
+
81
+ - Added a way to ignore Guard Stitch Plus's source files
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class JekyllPlusVersion
3
- VERSION = "1.4.7"
3
+ VERSION = "1.4.8"
4
4
  end
5
5
  end
@@ -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.6)
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.4)
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.2.3)
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.0)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-jekyll-plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis