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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccf1909737b41aa141e03d944f895284658933e574074fb96fd3a264f40f7750
4
- data.tar.gz: a812c18b14ff7a4549b8fba5938f30bcb6faf48adab16512c7da91aa14cca972
3
+ metadata.gz: fcce57e297106e657ff5c0610e0477804aff7642af51ce25c703a7197ff97af4
4
+ data.tar.gz: 7939c11c28849ee2a4f6dfad886269e735d29f2402c94a0d1068dfdcf9942f9c
5
5
  SHA512:
6
- metadata.gz: d4cdc97da2b60d157956964e35d178b2570cd950599743b9efd796914e086b7f95aac81786477785fad225eeac4d99ca855754624d9b81c3d13065070cc05454
7
- data.tar.gz: 7e1e3184c12d007c45047877efe8fa1772fcef61bac28a6de538ace20a28f5362c6c06b85fac009bbf2052eb5497e7c0db0aa1888c70065a18dbb4633f5998ec
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) }
@@ -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
- JSON.parse(error.info[:response_body])["message"].to_s
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.1148.9
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-03-23 00:00:00.000000000 Z
52
+ date: 2020-04-06 00:00:00.000000000 Z
53
53
  dependencies:
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: faraday