travis 1.9.2.travis.1224.9 → 1.9.2.travis.1236.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/travis/cli/command.rb +14 -14
- data/lib/travis/cli/login.rb +7 -1
- data/travis.gemspec +0 -4
- metadata +2 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92ba10e639c43a7a2faee1517e08c62e980ae5473050f3f32d868ee8b7916b37
|
4
|
+
data.tar.gz: 3aae5380f1ed4d7a379ac96ae819dbaf194fb31d2e52284478fa1da5fe8e9bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcd62b3dc4c97dc0fdf6b6cc32a75d698cff495e31fd9f17e1972565471c8558cae05fd07110463cf50ddef25d0353b30cf971b2d9fe1e8de4dd8d25d0d38410
|
7
|
+
data.tar.gz: 8b4cde3add9d958ee57788813c5d2dbd46f4012d81ef7e527792952653820df1a5d3dae4296bbe4ea862d24ecb1c98cf080919a43b2ad7e132fa532b656a070b
|
data/README.md
CHANGED
@@ -1994,12 +1994,12 @@ MyTravis::Repository.find('rails/rails')
|
|
1994
1994
|
|
1995
1995
|
## Installation
|
1996
1996
|
|
1997
|
-
Make sure you have at least [Ruby](http://www.ruby-lang.org/en/downloads/)
|
1997
|
+
Make sure you have at least [Ruby](http://www.ruby-lang.org/en/downloads/) 2.3.0 (2.6.0 recommended) installed.
|
1998
1998
|
|
1999
1999
|
You can check your Ruby version by running `ruby -v`:
|
2000
2000
|
|
2001
2001
|
$ ruby -v
|
2002
|
-
ruby 2.
|
2002
|
+
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
|
2003
2003
|
|
2004
2004
|
Then run:
|
2005
2005
|
|
data/lib/travis/cli/command.rb
CHANGED
@@ -161,9 +161,9 @@ module Travis
|
|
161
161
|
unless Tools::System.recent_version? Travis::VERSION, last_check['version']
|
162
162
|
warn "Outdated CLI version, run `gem install travis`."
|
163
163
|
end
|
164
|
-
rescue Timeout::Error, Faraday::
|
164
|
+
rescue Timeout::Error, Faraday::ClientError => error
|
165
165
|
debug "#{error.class}: #{error.message}"
|
166
|
-
rescue JSON::
|
166
|
+
rescue JSON::ParserError => error
|
167
167
|
warn "Unable to determine the most recent travis gem version. http://rubygems.org may be down."
|
168
168
|
end
|
169
169
|
|
@@ -279,6 +279,18 @@ module Travis
|
|
279
279
|
@on_signal << block
|
280
280
|
end
|
281
281
|
|
282
|
+
def warn(message)
|
283
|
+
write_to($stderr) do
|
284
|
+
say color(message, :error)
|
285
|
+
yield if block_given?
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
def error(message, &block)
|
290
|
+
warn(message, &block)
|
291
|
+
exit 1
|
292
|
+
end
|
293
|
+
|
282
294
|
private
|
283
295
|
|
284
296
|
def store_error(exception)
|
@@ -326,18 +338,6 @@ module Travis
|
|
326
338
|
say "\n"
|
327
339
|
end
|
328
340
|
|
329
|
-
def warn(message)
|
330
|
-
write_to($stderr) do
|
331
|
-
say color(message, :error)
|
332
|
-
yield if block_given?
|
333
|
-
end
|
334
|
-
end
|
335
|
-
|
336
|
-
def error(message, &block)
|
337
|
-
warn(message, &block)
|
338
|
-
exit 1
|
339
|
-
end
|
340
|
-
|
341
341
|
def command(name)
|
342
342
|
color("#{File.basename($0)} #{name}", :command)
|
343
343
|
end
|
data/lib/travis/cli/login.rb
CHANGED
@@ -31,7 +31,13 @@ module Travis
|
|
31
31
|
github.with_token do |token|
|
32
32
|
endpoint_config['access_token'] = github_auth(token)
|
33
33
|
error("user mismatch: logged in as %p instead of %p" % [user.login, user_login]) if user_login and user.login != user_login
|
34
|
-
|
34
|
+
unless user.correct_scopes?
|
35
|
+
error(
|
36
|
+
"#{user.login} has not granted Travis CI the required permissions. " \
|
37
|
+
"Please try re-syncing your user data at https://#{session.config['host']}/account/preferences " \
|
38
|
+
"and try logging in via #{session.config['host']}"
|
39
|
+
)
|
40
|
+
end
|
35
41
|
success("Successfully logged in as #{user.login}!")
|
36
42
|
end
|
37
43
|
|
data/travis.gemspec
CHANGED
@@ -61,12 +61,10 @@ Gem::Specification.new do |s|
|
|
61
61
|
"Joe Rafaniello",
|
62
62
|
"Jon-Erik Schneiderhan",
|
63
63
|
"Jonas Chromik",
|
64
|
-
"Julia S.Simon",
|
65
64
|
"Marco Craveiro",
|
66
65
|
"Matt",
|
67
66
|
"Matteo Sumberaz",
|
68
67
|
"Matthias Bussonnier",
|
69
|
-
"Michael Mior",
|
70
68
|
"Michael S. Fischer",
|
71
69
|
"Nero Leung",
|
72
70
|
"Nikhil Owalekar",
|
@@ -134,12 +132,10 @@ Gem::Specification.new do |s|
|
|
134
132
|
"joepvd@users.noreply.github.com",
|
135
133
|
"jon-erik.schneiderhan@meyouhealth.com",
|
136
134
|
"Jonas.Chromik@student.hpi.uni-potsdam.de",
|
137
|
-
"julia.simon@biicode.com",
|
138
135
|
"marco.craveiro@gmail.com",
|
139
136
|
"mtoothman@users.noreply.github.com",
|
140
137
|
"gnappoms@gmail.com",
|
141
138
|
"bussonniermatthias@gmail.com",
|
142
|
-
"mmior@uwaterloo.ca",
|
143
139
|
"mfischer@zendesk.com",
|
144
140
|
"neroleung@gmail.com",
|
145
141
|
"nowalekar@tigetext.com",
|
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.9.2.travis.
|
4
|
+
version: 1.9.2.travis.1236.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiro Asari
|
@@ -53,12 +53,10 @@ authors:
|
|
53
53
|
- Joe Rafaniello
|
54
54
|
- Jon-Erik Schneiderhan
|
55
55
|
- Jonas Chromik
|
56
|
-
- Julia S.Simon
|
57
56
|
- Marco Craveiro
|
58
57
|
- Matt
|
59
58
|
- Matteo Sumberaz
|
60
59
|
- Matthias Bussonnier
|
61
|
-
- Michael Mior
|
62
60
|
- Michael S. Fischer
|
63
61
|
- Nero Leung
|
64
62
|
- Nikhil Owalekar
|
@@ -76,7 +74,7 @@ authors:
|
|
76
74
|
autorequire:
|
77
75
|
bindir: bin
|
78
76
|
cert_chain: []
|
79
|
-
date: 2020-05-
|
77
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
80
78
|
dependencies:
|
81
79
|
- !ruby/object:Gem::Dependency
|
82
80
|
name: faraday
|
@@ -309,12 +307,10 @@ email:
|
|
309
307
|
- joepvd@users.noreply.github.com
|
310
308
|
- jon-erik.schneiderhan@meyouhealth.com
|
311
309
|
- Jonas.Chromik@student.hpi.uni-potsdam.de
|
312
|
-
- julia.simon@biicode.com
|
313
310
|
- marco.craveiro@gmail.com
|
314
311
|
- mtoothman@users.noreply.github.com
|
315
312
|
- gnappoms@gmail.com
|
316
313
|
- bussonniermatthias@gmail.com
|
317
|
-
- mmior@uwaterloo.ca
|
318
314
|
- mfischer@zendesk.com
|
319
315
|
- neroleung@gmail.com
|
320
316
|
- nowalekar@tigetext.com
|