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 +4 -4
- data/lib/escobar/github/client.rb +5 -3
- data/lib/escobar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d56e66efcc0f63ec676683fd5ee54aeeacac9c7e
|
4
|
+
data.tar.gz: de08a721b1abada71defc4be969314fca7e60526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
43
|
-
|
44
|
-
|
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)
|
data/lib/escobar/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|