crashbreak 1.0.7 → 1.0.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: 986496cd10d45daa766ee0cd11a7c96d3242082c
4
- data.tar.gz: cb30b172c8d9f4cb1f4ae0d3bab206838b726a51
3
+ metadata.gz: e1f7b323bc59848e1bfacea41f7a51473da45add
4
+ data.tar.gz: d2ea8950c5f1e0aca334002262a37b8f6e1aa137
5
5
  SHA512:
6
- metadata.gz: 5e5c9efab7379fdcfbb91cb9281cc0970a93704ec16232c6b855ea10716adbb6d12513b449aad52f5ef6f89681a0cb951f42de4b72c3d018c46c4f3a5a9fe323
7
- data.tar.gz: 0680c1e4ae6e6f383ab5dd41fba9d7db395cb6c5ef7adadf952e48ed8f91156c54f2fa7e4e9409c6131dbdf36a3d9f89ef1efb773bf026499282eb10df316adc
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
- client.ref(repo_name, 'heads/master').object.sha
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
@@ -1,3 +1,3 @@
1
1
  module Crashbreak
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crashbreak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Janeczek