guard-jekyll-plus 1.4.8 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +5 -1
- data/lib/guard/jekyll-plus.rb +20 -18
- data/lib/guard/jekyll-plus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2EwMWM0NTI0ZTg3ODRmYWQxNGE3ZDhkMmU1YTRiNzY4YzJhZmQ5OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWQ3ZDMwNjc0MWJmYmZmMmJkMDIzZWNkNzk3MDkxYzg5NjI4ZWM1Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTE0ZTUxY2M5ZDI5ZjdmOGIxOTM0Y2UxOTQ4OWZiZTQ5ZDVjMDcwNTVlMDRj
|
10
|
+
NmU1NTBiODE4MWRiMzFiMTVhNTIyYmRiMGNlNDE2NDZlY2FmNjllOWY2Y2M4
|
11
|
+
NjQxYmIyNTMwN2U2MTBiNDI4ZjQ3MzE2ODY1MmE2OTcwMjY2M2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjY3NWQwMDllZDk1ZWIyYTMzYzE3NDk1YzZhNmZmYjMzMmY5NTI5ODc0NDNm
|
14
|
+
NmI1MDQ0NTJhMjRiYjE1YzJmMTI5ZThkZWE3MjIzOGMwOGM1OWM1NDY4ZDk2
|
15
|
+
YzhkOTY1MDI0YWMxMjJiZTgwZDczZTQ4YjdkZWQxYzdiYzkwZTc=
|
data/CHANGELOG.md
CHANGED
@@ -78,4 +78,8 @@ New config options
|
|
78
78
|
|
79
79
|
### 1.4.8
|
80
80
|
|
81
|
-
- Added a way to ignore Guard Stitch Plus's source files
|
81
|
+
- Added a way to ignore Guard Stitch Plus's source files.
|
82
|
+
|
83
|
+
### 1.4.9
|
84
|
+
|
85
|
+
- Fix: Copying files ensures that there are files to copy before printing its message.
|
data/lib/guard/jekyll-plus.rb
CHANGED
@@ -140,26 +140,28 @@ module Guard
|
|
140
140
|
#
|
141
141
|
def copy(files=[])
|
142
142
|
files = ignore_stitch_sources files
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
143
|
+
if files.size > 0
|
144
|
+
begin
|
145
|
+
message = 'copied file'
|
146
|
+
message += 's' if files.size > 1
|
147
|
+
UI.info "#{@msg_prefix} #{message.green}" unless @config[:silent]
|
148
|
+
puts '| ' #spacing
|
149
|
+
files.each do |file|
|
150
|
+
path = destination_path file
|
151
|
+
FileUtils.mkdir_p File.dirname(path)
|
152
|
+
FileUtils.cp file, path
|
153
|
+
puts '|' + " → ".green + path
|
154
|
+
end
|
155
|
+
puts '| ' #spacing
|
155
156
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
157
|
+
rescue Exception => e
|
158
|
+
UI.error "#{@msg_prefix} copy has failed" unless @config[:silent]
|
159
|
+
UI.error e
|
160
|
+
stop_server
|
161
|
+
throw :task_has_failed
|
162
|
+
end
|
163
|
+
true
|
161
164
|
end
|
162
|
-
true
|
163
165
|
end
|
164
166
|
|
165
167
|
def ignore_stitch_sources(files)
|