travis 1.8.13.travis.1148.9 → 1.8.13.travis.1152.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/travis/cli/api_command.rb +1 -3
- data/lib/travis/tools/github.rb +6 -1
- 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: fcce57e297106e657ff5c0610e0477804aff7642af51ce25c703a7197ff97af4
|
4
|
+
data.tar.gz: 7939c11c28849ee2a4f6dfad886269e735d29f2402c94a0d1068dfdcf9942f9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e1e2b74c07b3893233e1cba8dda48562bb421b254cff63f244264b8ef15e5632238b49abb138b37ab6dcdd0f239c312404eea4c6555ecdeb1fc65af29a64eba
|
7
|
+
data.tar.gz: 675f41a0de9291020d8694740845ce99a1d77d7c935856f2d95ae9dd808a591c5cbe9d8d82bcf4b0397d5af0fffe7bd9814e3e78088232561a8393e9b9199e5c
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'travis/cli'
|
2
|
+
require 'travis/tools/github'
|
2
3
|
|
3
4
|
module Travis
|
4
5
|
module CLI
|
@@ -121,9 +122,6 @@ module Travis
|
|
121
122
|
end
|
122
123
|
|
123
124
|
def load_gh
|
124
|
-
return if defined? GH
|
125
|
-
debug "Loading gh"
|
126
|
-
require 'gh'
|
127
125
|
|
128
126
|
gh_config = session.config['github']
|
129
127
|
gh_config &&= gh_config.inject({}) { |h,(k,v)| h.update(k.to_sym => v) }
|
data/lib/travis/tools/github.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'travis/tools/system'
|
2
2
|
require 'yaml'
|
3
3
|
require 'json'
|
4
|
+
require 'gh'
|
4
5
|
|
5
6
|
module Travis
|
6
7
|
module Tools
|
@@ -259,7 +260,11 @@ module Travis
|
|
259
260
|
|
260
261
|
def gh_error(error)
|
261
262
|
raise error if explode
|
262
|
-
|
263
|
+
if error.info.key? :response_body
|
264
|
+
JSON.parse(error.info[:response_body])["message"].to_s
|
265
|
+
else
|
266
|
+
"Unknown error"
|
267
|
+
end
|
263
268
|
end
|
264
269
|
|
265
270
|
def debug(line)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.13.travis.
|
4
|
+
version: 1.8.13.travis.1152.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiro Asari
|
@@ -49,7 +49,7 @@ authors:
|
|
49
49
|
autorequire:
|
50
50
|
bindir: bin
|
51
51
|
cert_chain: []
|
52
|
-
date: 2020-
|
52
|
+
date: 2020-04-06 00:00:00.000000000 Z
|
53
53
|
dependencies:
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: faraday
|