puppet-autostager 0.0.2 → 0.0.3

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: e151d052b76dbb2cf496b0c92add58183f3bd6f2
4
- data.tar.gz: a52f5a7aab17308fe94a8905b3931d8aa2fffdd9
3
+ metadata.gz: 5f3d895f5788d29cbdef167f84e3b42403fd0312
4
+ data.tar.gz: 18c798b8d42de361d237ee7113ae9ce5f28efd0e
5
5
  SHA512:
6
- metadata.gz: 04563d02bd8886b26131175c1acb9d7da2fb87c74292b5e98067266ad24770f002272439edd9c6bd503d430fb29b2afd6e50fdd6e5b3809fdcac5235568f05bd
7
- data.tar.gz: c38e14c529978ef985a0fb6f99aefd04e2635faae35b56fb927bfd0125a5ebd0580272693b1a6f00ac5afbb590fe38868da9e8e58880276417fe15341bf341af
6
+ metadata.gz: a185e9f36b9121edf1410537d32c5ae94fe003aada28674257a54eee174692402cb6e5063fe946874aa657a884a791f3e9e75fd9d6420ce84c7b4530c306202c
7
+ data.tar.gz: 5bd9fd25f007b58ce82e3faa70471cf6ed8ab28056db7dec45ec996d462466acba1d95d1b25c95aa3ba0e4d1440e6c42c427a0cb593820de89854ca93e7b49bb
data/lib/autostager.rb CHANGED
@@ -94,7 +94,7 @@ module Autostager
94
94
  ':boom: Unstaged since %s is dangerously behind upstream.',
95
95
  clone_dir(pr),
96
96
  )
97
- FileUtils.rm_rf staging_dir, secure: true
97
+ FileUtils.rm_rf staging_dir(pr), secure: true
98
98
  client.add_comment repo_slug, pr.number, comment
99
99
  client.close_issue repo_slug, pr.number
100
100
  log comment
@@ -106,7 +106,6 @@ module Autostager
106
106
 
107
107
  def add_upstream_remote
108
108
  Dir.chdir @staging_dir
109
- return if remote?(@upstream_url)
110
109
  log 'add upstream remote'
111
110
  `git remote add upstream #{@upstream_url} &> /dev/null`
112
111
  `git fetch --prune upstream &> /dev/null`
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # Version constant for the gem.
3
3
  module Autostager
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-autostager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler