heroku_hatchet 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afecb7ecca6b102d8dd05b1253ef267de5bc78ad
4
- data.tar.gz: cb402a3b89b8c6ae7e05124dabd3ea95a1af1930
3
+ metadata.gz: 4ee0b38854a5f1cb30cfc0d7e9fd24852f1e6b1b
4
+ data.tar.gz: e4590d04c6c89c2aa7c13aa43188876e626d74af
5
5
  SHA512:
6
- metadata.gz: fd45f61e4bd8e7bd4a1d66cd6da781918a42c0735132c9e6e8a8cdcb43acc3fd67182d03e7dd9baaa43276a3fbf3150bc2bc4010deccc62281a1441fe68c0eec
7
- data.tar.gz: a05bbd40381287ec157a7b835cf6837aeb85f6ca7c5a89f6741854a138dd6b65f04ce06ec09eed0b43bdcacb81f84480a0887bbfaf48c659f2947924618308f6
6
+ metadata.gz: f91146008e35f431a642779c6cc4026f8e537dc7800262d561bf4d3750a6f955a0e78b16b5501c90a780f0a39716765bfefeba6e129628359609a207832c3073
7
+ data.tar.gz: 0ef2a05da46150f37a1cf93f33fa3b314f25073ec8d8b253324c58d7f7797444be3648090cd779e72e3185b615f0ed1d34c7ca2a311ef9137beeb1086e3d8ba0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## HEAD
2
2
 
3
+ ## 1.1.5
4
+ - Add `App#in_directory` to public API
5
+
3
6
  ## 1.1.4
4
7
  - Bugfix: Eliminate race condition around running multiple travis builds at the same time
5
8
 
data/lib/hatchet/app.rb CHANGED
@@ -85,12 +85,18 @@ module Hatchet
85
85
  heroku.delete_app(name)
86
86
  end
87
87
 
88
+ def in_directory(directory = self.directory)
89
+ Dir.chdir(directory) do
90
+ yield directory
91
+ end
92
+ end
93
+
88
94
  # creates a new app on heroku, "pushes" via anvil or git
89
95
  # then yields to self so you can call self.run or
90
96
  # self.deployed?
91
97
  # Allow deploy failures on CI server by setting ENV['HATCHET_RETRIES']
92
98
  def deploy(&block)
93
- Dir.chdir(directory) do
99
+ in_directory do
94
100
  self.setup!
95
101
  self.push_with_retry!
96
102
  block.call(self, heroku, output) if block.present?
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_hatchet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-25 00:00:00.000000000 Z
11
+ date: 2013-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: heroku-api