crashbreak 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crashbreak/github_integration_service.rb +6 -2
- data/lib/crashbreak/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1f7b323bc59848e1bfacea41f7a51473da45add
|
4
|
+
data.tar.gz: d2ea8950c5f1e0aca334002262a37b8f6e1aa137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6665aca68f5f3671cac26e529c786a393da1dd28d7a3d6cc2e1fcc6a265a46353b670c64075d0e39c1237bad0639a9dd221dee14d235a6ef69089720b37e2e1e
|
7
|
+
data.tar.gz: fbd36e78a41cefaa9635f1962493adae01e03162f8f4b04069bf9f12f3639c51955c9fb18eabe3a5f247ecb21b6591ff98a5f80002aabb2deb6177776bc9dca0
|
@@ -24,13 +24,17 @@ module Crashbreak
|
|
24
24
|
def branch_sha
|
25
25
|
@branch_sha ||= begin
|
26
26
|
if @error_deploy_revision
|
27
|
-
client.commit(repo_name, @error_deploy_revision).sha
|
27
|
+
client.commit(repo_name, @error_deploy_revision).sha rescue repo_sha
|
28
28
|
else
|
29
|
-
|
29
|
+
repo_sha
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
def repo_sha
|
35
|
+
client.ref(repo_name, 'heads/master').object.sha
|
36
|
+
end
|
37
|
+
|
34
38
|
def test_file_sha
|
35
39
|
@test_file_sha ||= client.contents(repo_name, path: file_path, ref: error_branch_name).sha
|
36
40
|
end
|
data/lib/crashbreak/version.rb
CHANGED