ghpages_deploy 1.3.0.pre.beta8 → 1.3.0.pre.beta9
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 +5 -2
- 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: d7fa581c60be7791b5cea2c18de5ee0b2b7b7ae6
|
4
|
+
data.tar.gz: e139e0ea5ef0e418e1b6cc68fdeaf4fc6d3fdb40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f2a0e57ac44d2a697a25c88c2218e9957d3f73e52c913171a27de14d8b309f836fd379b2484fbaf06ccdb9940148e26133eca8c1c4e3e5eda724993cdb4b4ea
|
7
|
+
data.tar.gz: fa4041e7a085ceda82f09f152d1f2d2499e826d9070e068e9a751c24a2006029c0054a7759589e50c262837015451d4ac68e17728ad099052dd7c169cee3a4e2
|
@@ -16,7 +16,9 @@ module GithubPages
|
|
16
16
|
def deploy
|
17
17
|
@destinations.keep_if { |dest| deploy_site_to(dest) }
|
18
18
|
|
19
|
-
if @
|
19
|
+
@git.stage @handler.on_deploy.flatten.uniq if @handler
|
20
|
+
|
21
|
+
if @git.staged_modifications('.').empty?
|
20
22
|
$stderr.puts 'No changes detected, not commiting.'
|
21
23
|
else
|
22
24
|
@git.commit_and_push message
|
@@ -37,7 +39,6 @@ module GithubPages
|
|
37
39
|
FileUtils.cp_r("#{@source}/.", dest)
|
38
40
|
|
39
41
|
stage_destination_files(dest)
|
40
|
-
@git.stage @handler.on_deploy.flatten.uniq if @handler
|
41
42
|
|
42
43
|
# check if any changes were made to the destination
|
43
44
|
!@git.staged_modifications(dest).empty?
|
@@ -56,6 +57,8 @@ module GithubPages
|
|
56
57
|
end
|
57
58
|
|
58
59
|
def message
|
60
|
+
return 'Handler updates' if @destinations.empty?
|
61
|
+
|
59
62
|
# English join
|
60
63
|
msg =
|
61
64
|
if @destinations.length == 1
|