heroku_hatchet 1.1.7 → 1.1.8

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: 4be516b833e976ab64fc5c3701d265ed57ee7420
4
- data.tar.gz: bf652d701b3d9fa2b7c8f8fa8cbbb164706d1531
3
+ metadata.gz: 1e408aa0585f0a1514510df94f2dce61e8295db2
4
+ data.tar.gz: 5bc54517f98cb23cdfbdab8b8983ea81d2563952
5
5
  SHA512:
6
- metadata.gz: ff12c2b9fab0095fc6ba59efba4d4872d63b6ce10e2a705cba23f5815a8fe4056149288fd25d3ecdd4fb96f02eaacbfd4790af605e4508aca68e9d166109334e
7
- data.tar.gz: 794eacb79ff25a3066a3dde082f66e451402d91f7a80996cdaf5ba1ab99ff9062907f5aab4e97c22eca42f8ee156af3595999c77c59f57b2b002b0e4de205ce2
6
+ metadata.gz: 69b2baceef96a7736aa2c532a4c4ff59dc686439b4ca58439ac83658cbd9e9c59280ed8438e90c24a902aa40d7a1b268d6a071466811a2773ec2a95546846a59
7
+ data.tar.gz: 01bc16bdf88d52e5764fd5b5e251bab61662738ebc4e6b1417ac6bc051babadbefa48db3bd266857a7187acbd964fadd0425700a863e1e064f6421b923092ee3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## 1.1.8
4
+
5
+ - Do not check git branch unless using GitApp
6
+
3
7
  ## 1.1.7
4
8
 
5
9
  - Add labs methods `App#set_labs!` and `App.new(labs: "websockets")`
data/lib/hatchet.rb CHANGED
@@ -18,7 +18,7 @@ module Hatchet
18
18
 
19
19
  def self.git_branch
20
20
  out = `git describe --contains --all HEAD`.strip
21
- raise "Cannot describe git: #{out}" unless $?.success?
21
+ raise "Attempting to find current branch name. Error: Cannot describe git: #{out}" unless $?.success?
22
22
  out
23
23
  end
24
24
 
@@ -2,11 +2,11 @@ module Hatchet
2
2
  # used for deploying a test app to heroku via git
3
3
  class GitApp < App
4
4
  HATCHET_BUILDPACK_BASE = (ENV['HATCHET_BUILDPACK_BASE'] || "https://github.com/heroku/heroku-buildpack-ruby.git")
5
- HATCHET_BUILDPACK_BRANCH = (ENV['HATCHET_BUILDPACK_BRANCH'] || Hatchet.git_branch)
5
+ HATCHET_BUILDPACK_BRANCH = -> { ENV['HATCHET_BUILDPACK_BRANCH'] || Hatchet.git_branch }
6
6
  BUILDPACK_URL = "https://github.com/heroku/heroku-buildpack-ruby.git"
7
7
 
8
8
  def initialize(directory, options = {})
9
- @buildpack = options[:buildpack] || options[:buildpack_url] || [HATCHET_BUILDPACK_BASE, HATCHET_BUILDPACK_BRANCH].join("#")
9
+ @buildpack = options[:buildpack] || options[:buildpack_url] || [HATCHET_BUILDPACK_BASE, HATCHET_BUILDPACK_BRANCH.call].join("#")
10
10
  super
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
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.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-16 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: heroku-api