ghpages_deploy 1.1.0.beta7 → 1.1.0.beta8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ghpages_deploy/deployer.rb +3 -3
- data/lib/ghpages_deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e224c61bff6254e4b1b7c0cf584dfe65efc2a68c
|
4
|
+
data.tar.gz: 77ffb36b0a2f9c27c16d1b8c14e9dc55ea3883fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0a0bdb1b1271015df4c91db572ead672b426b5181ed8f6e0df6667b10444a41561fabda630a4124a5800c65c9130f73b3acfa8f4df42bdde9b61528310d3195
|
7
|
+
data.tar.gz: 180eb7200733eef40557ae96373f0805dc99f4b9c35e8b1bc44d1c17f80b0dcd323dbdf71b0449e199b51b099056a631b8d47e2735ff444465ef929e19b9d5fb
|
@@ -15,6 +15,9 @@ module GithubPages
|
|
15
15
|
def deploy
|
16
16
|
SiteCompressor.new(@source).compress
|
17
17
|
|
18
|
+
# remove files that are already staged as a result of switching branches
|
19
|
+
@git.staged_modifications('.').each { |file| File.delete(file) }
|
20
|
+
|
18
21
|
@destinations.keep_if { |dest| deploy_site_to(dest) }
|
19
22
|
|
20
23
|
if @destinations.empty?
|
@@ -31,9 +34,6 @@ module GithubPages
|
|
31
34
|
# create the full path to the destination
|
32
35
|
FileUtils.mkdir_p(dest)
|
33
36
|
|
34
|
-
# remove files that are already staged as a result of switching branches
|
35
|
-
@git.staged_modifications('.').each { |file| File.delete(file) }
|
36
|
-
|
37
37
|
# remove files that are already cached in the destination directory
|
38
38
|
@git.ls_files(dest).each { |file| File.delete(file) }
|
39
39
|
|