ghpages_deploy 1.3.0.pre.beta5 → 1.3.0.pre.beta6
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 +1 -1
- data/lib/ghpages_deploy/handler.rb +1 -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: 2463a9ba13ad3b974ca053e52cc7a8347815d9e6
|
4
|
+
data.tar.gz: a75b3ff3238f767f0be2a90e1dec68cf4b3df673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb956812d2da1d68cf750207ff98c94fcc3655bde208a1709ecfa3e6db0bb670ea662593418ee68c586bc1b33a163f237d4e94ee8caedc50267e365dad166434
|
7
|
+
data.tar.gz: 332a08efd80ae056046e2fe35df3d326b9a54e6004d3210206d0f946012bfe6244f267d7182f48b30a8ae398d7671845df26ca2225fe9e3cd92658eab5891e1f
|
@@ -37,7 +37,7 @@ module GithubPages
|
|
37
37
|
FileUtils.cp_r("#{@source}/.", dest)
|
38
38
|
|
39
39
|
stage_destination_files(dest)
|
40
|
-
@git.stage @handler.on_deploy if @handler
|
40
|
+
@git.stage @handler.on_deploy.flatten.uniq if @handler
|
41
41
|
|
42
42
|
# check if any changes were made to the destination
|
43
43
|
!@git.staged_modifications(dest).empty?
|
@@ -5,8 +5,7 @@ module GithubPages
|
|
5
5
|
class Handler
|
6
6
|
def self.def_handler(sym)
|
7
7
|
define_method(:"on_#{sym}") do |*args, &block|
|
8
|
-
handlers[sym].
|
9
|
-
nil
|
8
|
+
handlers[sym].map { |handle| handle.call(*args, &block) }
|
10
9
|
end
|
11
10
|
|
12
11
|
define_method(:"handle_#{sym}") do |&block|
|