heroku_hatchet 1.1.8 → 1.1.9

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: 1e408aa0585f0a1514510df94f2dce61e8295db2
4
- data.tar.gz: 5bc54517f98cb23cdfbdab8b8983ea81d2563952
3
+ metadata.gz: 3cac48b3f78e361924cf97f575634fed07bb6474
4
+ data.tar.gz: 177886238aa528b57365d9cf8b47bc4f3d4f96f2
5
5
  SHA512:
6
- metadata.gz: 69b2baceef96a7736aa2c532a4c4ff59dc686439b4ca58439ac83658cbd9e9c59280ed8438e90c24a902aa40d7a1b268d6a071466811a2773ec2a95546846a59
7
- data.tar.gz: 01bc16bdf88d52e5764fd5b5e251bab61662738ebc4e6b1417ac6bc051babadbefa48db3bd266857a7187acbd964fadd0425700a863e1e064f6421b923092ee3
6
+ metadata.gz: d77a4f52a1506d979f31c5518114a14e43efeb2b773834dabf1a4941f06e68555d0357df1f760b43c3ffacc0138e53c09952c27a565dee340d1c4254376ed3ce
7
+ data.tar.gz: 8bbbb34ad178c195e4a0106e865b0ebd842ca0e8c254270cffb75fee3befb18f86de9c3a53a78d7bd7d72450e3455dfe480ce1aee0be6e164ab88588b337c6e7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## 1.1.9
4
+
5
+ - Use TRAVIS_BRANCH if present
6
+
3
7
  ## 1.1.8
4
8
 
5
9
  - Do not check git branch unless using GitApp
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
3
3
  end
data/lib/hatchet.rb CHANGED
@@ -11,12 +11,13 @@ require 'stringio'
11
11
 
12
12
 
13
13
  module Hatchet
14
- RETRIES = Integer(ENV['HATCHET_RETRIES'] || 1)
14
+ RETRIES = Integer(ENV['HATCHET_RETRIES'] || 1)
15
15
 
16
16
  class App
17
17
  end
18
18
 
19
19
  def self.git_branch
20
+ return ENV['TRAVIS_BRANCH'] if ENV['TRAVIS_BRANCH']
20
21
  out = `git describe --contains --all HEAD`.strip
21
22
  raise "Attempting to find current branch name. Error: Cannot describe git: #{out}" unless $?.success?
22
23
  out
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.8
4
+ version: 1.1.9
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-27 00:00:00.000000000 Z
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: heroku-api