ghpages_deploy 1.1.0.beta7 → 1.1.0.beta8

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: a4761cf44934e563892cce74450f7ac96d665299
4
- data.tar.gz: 30e8f54211cf8a44bb599272a46bca07cfdfa97f
3
+ metadata.gz: e224c61bff6254e4b1b7c0cf584dfe65efc2a68c
4
+ data.tar.gz: 77ffb36b0a2f9c27c16d1b8c14e9dc55ea3883fc
5
5
  SHA512:
6
- metadata.gz: fe4ac5a291639e3c4bd3df4c25e37640e073a62b7c52378e614795b26ebe2f7e90ed6d7b73fbb0b6fba989e405fc997eb27f9a07f297bb8c3c85aea547ec9d44
7
- data.tar.gz: 2236711eb3efad84b03e48658aeec4b067cf2a7a072347622016c86612125683f6f16fe4b482395351261c4b207892dac1f180934d91f4503050d96c0010954a
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
 
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2016 Nathan Currier
3
3
 
4
4
  module GithubPages
5
- VERSION = '1.1.0.beta7'.freeze
5
+ VERSION = '1.1.0.beta8'.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.1.0.beta7
4
+ version: 1.1.0.beta8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Currier