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 +4 -4
- data/lib/travis/cli/command.rb +2 -0
- data/lib/travis/cli/lint.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e09b17764cf24876e878a666f28b0c195fbd86f9ce04f92ffd31dcfec4418043
|
4
|
+
data.tar.gz: 8f80c4903fe6022d142d5fea27731024e0a3be7d837ba54e49550edb2f3c60d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb8c783de83371262a1e4475ea74acf95bb980f822c147c87395a40b02e83316e58884bca1f3e58919fece5034f26ea8f656ed43bc8b76d27fb320e05e4901a
|
7
|
+
data.tar.gz: f03b2a90e612b050dd5d5899a48239bf038a6af2daa22604063612c4c006a714afb121f9b39aaf6383bebae10c9698a99efb9791c8ef9468e0d61e0a57db0125
|
data/lib/travis/cli/command.rb
CHANGED
@@ -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
|
data/lib/travis/cli/lint.rb
CHANGED
@@ -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?
|