escobar 0.1.34 → 0.1.35

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77bc1044a64ca2e26ec42a4ce1052fb0c8277151
4
- data.tar.gz: 103d2b7b9c3eb34257bb0be6949c2982caa76f6f
3
+ metadata.gz: d56e66efcc0f63ec676683fd5ee54aeeacac9c7e
4
+ data.tar.gz: de08a721b1abada71defc4be969314fca7e60526
5
5
  SHA512:
6
- metadata.gz: 00bc2327dca191df1aeab85427097347427455e1006f95248ecadc7bdd9b5fae5c014700733aba7d3aad728afdeaf0adea9afd1895d624f839ced8aa4f3cf49e
7
- data.tar.gz: 86d67b4934f2bc5f4e80795d22e170b4e5baf9f1ff21d27fa96628311353c7afec1dc635b6f942e620f8f722d3d3c492473e6defecc5a3b70e8ec86d213ea595
6
+ metadata.gz: c429c4aa91de6949f3736f7b405825e33485194c46a9df0e91e8b0c83d937f7ae12a93f2fbaed768e108a97e83966c4cca64c44553accc9d1ceff4397f50518a
7
+ data.tar.gz: aa25e137d219a68b42f4564cdcc1a7efa2c1f91c9763c5a412871f1b0c9bd23c45a5521f9f073f8860e0a4717ebccd3654f989f8d37db90e6adae48e2edba576
@@ -39,9 +39,11 @@ module Escobar
39
39
 
40
40
  def default_branch
41
41
  response = http_method(:get, "/repos/#{name_with_owner}")
42
- JSON.parse(response.body)["default_branch"]
43
- rescue StandardError
44
- "master"
42
+ if response.status == 200
43
+ JSON.parse(response.body)["default_branch"]
44
+ else
45
+ "master"
46
+ end
45
47
  end
46
48
 
47
49
  def create_deployment(options)
@@ -1,3 +1,3 @@
1
1
  module Escobar
2
- VERSION = "0.1.34".freeze
2
+ VERSION = "0.1.35".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escobar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday