travis 1.8.14.travis.1160.9 → 1.8.14.travis.1162.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: 86e6bd2b0edf9f23837c3e3184ff627ad8eb4ea34d697abca94d2dc7bf0df40b
4
- data.tar.gz: 797434b3efd2a0c6cc0fe05852c920b3e2120f5c5ca48936fedea351b27ec2dc
3
+ metadata.gz: e09b17764cf24876e878a666f28b0c195fbd86f9ce04f92ffd31dcfec4418043
4
+ data.tar.gz: 8f80c4903fe6022d142d5fea27731024e0a3be7d837ba54e49550edb2f3c60d5
5
5
  SHA512:
6
- metadata.gz: 3d5d65e2a0980a3a6d542f32397cfb4aaa8479279a54ea0d67255d7a503e6eb0dee94874566d1ec277ebae13324efd59d8584555a26f0d4d0f13b59c4676fb4a
7
- data.tar.gz: 9c38b3eac1ed6e61f6983bcd321e6ccb7a8ca7cd6e21c6f4bfc88bb3c7ba094e7ac5b884f3e563ec64da732be98993af20a7309263d5eebaf70cae9b075639a7
6
+ metadata.gz: 6bb8c783de83371262a1e4475ea74acf95bb980f822c147c87395a40b02e83316e58884bca1f3e58919fece5034f26ea8f656ed43bc8b76d27fb320e05e4901a
7
+ data.tar.gz: f03b2a90e612b050dd5d5899a48239bf038a6af2daa22604063612c4c006a714afb121f9b39aaf6383bebae10c9698a99efb9791c8ef9468e0d61e0a57db0125
@@ -163,6 +163,8 @@ module Travis
163
163
  end
164
164
  rescue Timeout::Error, Faraday::Error::ClientError => error
165
165
  debug "#{error.class}: #{error.message}"
166
+ rescue JSON::ParseError => error
167
+ warn "Unable to determine the most recent travis gem version. http://rubygems.org may be down."
166
168
  end
167
169
 
168
170
  def check_completion
@@ -1,4 +1,5 @@
1
1
  require 'travis/cli'
2
+ require 'yaml'
2
3
 
3
4
  module Travis
4
5
  module CLI
@@ -21,6 +22,12 @@ module Travis
21
22
  content = $stdin.read
22
23
  end
23
24
 
25
+ begin
26
+ YAML.load(content)
27
+ rescue Psych::SyntaxError => e
28
+ error "#{file} is not valid YAML: #{e.message}"
29
+ end
30
+
24
31
  lint = session.lint(content)
25
32
 
26
33
  unless quiet?
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.14.travis.1160.9
4
+ version: 1.8.14.travis.1162.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiro Asari