ghpages_deploy 1.3.0.pre.beta8 → 1.3.0.pre.beta9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd9481f6f6c4278ce8cffe13abab830ae8cda243
4
- data.tar.gz: 1093d67f8a544b13356ddd58204b3ad626314bed
3
+ metadata.gz: d7fa581c60be7791b5cea2c18de5ee0b2b7b7ae6
4
+ data.tar.gz: e139e0ea5ef0e418e1b6cc68fdeaf4fc6d3fdb40
5
5
  SHA512:
6
- metadata.gz: f8d279b0293c99855f62d9b14933594ecbcf2aa650a895cbccfd9df0b495f4037f9ecb8a0aec0fc14f07664f6626f260b79a14b71cb2cf183fee1d7b6d5c8957
7
- data.tar.gz: 77ca37f13bef6e3512e9bb00e9974ce9bb4dad2cb25afac0f65b55ce9b66354173f1b69a574ce7b05538a20028f55bff6eabd4ef813241cf583bdd2d5d7348a3
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 @destinations.empty?
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
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2016 Nathan Currier
3
3
 
4
4
  module GithubPages
5
- VERSION = '1.3.0-beta8'.freeze
5
+ VERSION = '1.3.0-beta9'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghpages_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.pre.beta8
4
+ version: 1.3.0.pre.beta9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Currier