heroku_hatchet 7.1.2 → 7.1.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/hatchet.rb +1 -1
- data/lib/hatchet/version.rb +1 -1
- data/spec/hatchet/git_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 457db77bc6c69de2ef9179c0b3027ab3c8036b2e639dc924bbb3d4c6903b32b5
|
|
4
|
+
data.tar.gz: c42cf1ceb1a679f1f0dfdff99c60e6ba1b7cc442d5accd0182ac8b44b2d8add1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f7d83b39c17fb2700d4b3ddca889df1fd55a884017d09d72b178870d556b1948753d491fbeb02c9a35aee92c3de8d49d4c4aca6c2fd164ddfabe4f3bfe54168
|
|
7
|
+
data.tar.gz: 78e2a70ce5b00b69e1c98da9a36f691978e043db9e58976947011a3178e8bf6c63520dca01a471c58fdc24e5da7726408704bb0d46f2f0e8ed31ce61fe4ec5c0
|
data/CHANGELOG.md
CHANGED
data/lib/hatchet.rb
CHANGED
|
@@ -30,7 +30,7 @@ module Hatchet
|
|
|
30
30
|
return ENV['TRAVIS_PULL_REQUEST_BRANCH'] if ENV['TRAVIS_PULL_REQUEST_BRANCH'] && !ENV['TRAVIS_PULL_REQUEST_BRANCH'].empty?
|
|
31
31
|
return ENV['TRAVIS_BRANCH'] if ENV['TRAVIS_BRANCH']
|
|
32
32
|
|
|
33
|
-
out = `git
|
|
33
|
+
out = `git rev-parse --abbrev-ref HEAD`.strip
|
|
34
34
|
raise "Attempting to find current branch name. Error: Cannot describe git: #{out}" unless $?.success?
|
|
35
35
|
out
|
|
36
36
|
end
|
data/lib/hatchet/version.rb
CHANGED
data/spec/hatchet/git_spec.rb
CHANGED
|
@@ -6,4 +6,10 @@ describe "GitAppTest" do
|
|
|
6
6
|
expect(app.output).to match("INTENTIONAL ERROR")
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
|
+
|
|
10
|
+
it "returns the correct branch name on circle CI" do
|
|
11
|
+
skip("only runs on circle") unless ENV["CIRCLE_BRANCH"]
|
|
12
|
+
|
|
13
|
+
expect(Hatchet.git_branch).to eq(ENV["CIRCLE_BRANCH"])
|
|
14
|
+
end
|
|
9
15
|
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: 7.1.
|
|
4
|
+
version: 7.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Schneeman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: platform-api
|