ghpages_deploy 1.1.0.beta6 → 1.1.0.beta7

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: a4f8c558e0833390610bbec16cae23318779ccc2
4
- data.tar.gz: 05e4078ebf5b7c659b82aca58249f56c01bd4653
3
+ metadata.gz: a4761cf44934e563892cce74450f7ac96d665299
4
+ data.tar.gz: 30e8f54211cf8a44bb599272a46bca07cfdfa97f
5
5
  SHA512:
6
- metadata.gz: 4b002850acb04d0115c3e86748186a416392d3b16cae1b66ba376cd12925ee0aa6895ce7844c788072ecab1005426da91c4e6ef8d92e670740a46b2ce2856033
7
- data.tar.gz: d5e8d0bc8d059dc9e2e50e07242d7dc7d343d6be016f14e914903a3a539d8e7c787117979994f8a35846b9b0209756623257e538113a17a81e9fe9224da8cd72
6
+ metadata.gz: fe4ac5a291639e3c4bd3df4c25e37640e073a62b7c52378e614795b26ebe2f7e90ed6d7b73fbb0b6fba989e405fc997eb27f9a07f297bb8c3c85aea547ec9d44
7
+ data.tar.gz: 2236711eb3efad84b03e48658aeec4b067cf2a7a072347622016c86612125683f6f16fe4b482395351261c4b207892dac1f180934d91f4503050d96c0010954a
@@ -31,6 +31,9 @@ module GithubPages
31
31
  # create the full path to the destination
32
32
  FileUtils.mkdir_p(dest)
33
33
 
34
+ # remove files that are already staged as a result of switching branches
35
+ @git.staged_modifications('.').each { |file| File.delete(file) }
36
+
34
37
  # remove files that are already cached in the destination directory
35
38
  @git.ls_files(dest).each { |file| File.delete(file) }
36
39
 
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2016 Nathan Currier
3
3
 
4
4
  module GithubPages
5
- VERSION = '1.1.0.beta6'.freeze
5
+ VERSION = '1.1.0.beta7'.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.beta6
4
+ version: 1.1.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Currier