travis 1.9.1.travis.1219.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1336a3d9d29e464c6726d9fe42f57db135efad7e9d251161bfc317a818a69908
4
- data.tar.gz: c0e492c98a2f3d52d2d0a882f74f2bd80457406a3faa11061d9148ce3d888929
3
+ metadata.gz: 92ba10e639c43a7a2faee1517e08c62e980ae5473050f3f32d868ee8b7916b37
4
+ data.tar.gz: 3aae5380f1ed4d7a379ac96ae819dbaf194fb31d2e52284478fa1da5fe8e9bb9
5
5
  SHA512:
6
- metadata.gz: fa7c39dc16d7e4ea8237498e3c9dac7c4b472795b81945a9805d080584f93a5b40ccbbdaf4b9946934eb65582b1fa830acddfda6f7154464345da2d5d332d497
7
- data.tar.gz: 43c0b6e3a7ee2584f4011f757ed54894ec23850db26a0b6dffb3cef993b82185444c0d909c591d6170a9909dea759f5d88d827e9efc635c9990415dae58a216d
6
+ metadata.gz: dcd62b3dc4c97dc0fdf6b6cc32a75d698cff495e31fd9f17e1972565471c8558cae05fd07110463cf50ddef25d0353b30cf971b2d9fe1e8de4dd8d25d0d38410
7
+ data.tar.gz: 8b4cde3add9d958ee57788813c5d2dbd46f4012d81ef7e527792952653820df1a5d3dae4296bbe4ea862d24ecb1c98cf080919a43b2ad7e132fa532b656a070b
data/README.md CHANGED
@@ -1994,18 +1994,18 @@ 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/) 1.9.3 (2.0.0 recommended) installed.
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.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]
2002
+ ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2003
2003
 
2004
2004
  Then run:
2005
2005
 
2006
2006
  On OSX and Linux:
2007
2007
 
2008
- $ gem install travis --no-rdoc --no-ri
2008
+ $ gem install travis --no-document
2009
2009
 
2010
2010
  (For older versions of `gem`, replace `--no-document` with `--no-rdoc --no-ri`.)
2011
2011
 
@@ -2018,7 +2018,7 @@ If you do not have write access to the system gem directory, you'll need to perf
2018
2018
  Now make sure everything is working:
2019
2019
 
2020
2020
  $ travis version
2021
- 1.9.0
2021
+ 1.9.1
2022
2022
 
2023
2023
  See also [Note on Ubuntu](#ubuntu) below.
2024
2024
 
@@ -2126,12 +2126,13 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2126
2126
 
2127
2127
  ## Version History
2128
2128
 
2129
- ### 1.9.1
2129
+ ### 1.9.1 (May 19, 2020)
2130
2130
 
2131
2131
  * Fix `--no-interactive` flag in `encrypt` and `encryt-file` commands https://github.com/travis-ci/travis.rb/pull/738
2132
2132
  * Display commit SHA in `show` https://github.com/travis-ci/travis.rb/pull/739
2133
2133
  * Display more helpful message when GitHub token given by `--github-token` is
2134
2134
  deficient https://github.com/travis-ci/travis.rb/issues/708
2135
+ * Fix `--pull-request` flag in `history` command https://github.com/travis-ci/travis.rb/issues/382
2135
2136
 
2136
2137
  ### 1.9.0 (April 27, 2020)
2137
2138
 
@@ -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::Error::ClientError => error
164
+ rescue Timeout::Error, Faraday::ClientError => error
165
165
  debug "#{error.class}: #{error.message}"
166
- rescue JSON::ParseError => error
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
@@ -5,18 +5,48 @@ module Travis
5
5
  class Help < Command
6
6
  description "helps you out when in dire need of information"
7
7
 
8
+ CommandGroup = Struct.new(:cmds, :header)
9
+
8
10
  def run(command = nil)
9
11
  if command
10
12
  say CLI.command(command).new.help
11
13
  else
14
+ api_cmds = CommandGroup.new(api_commands, 'API commands')
15
+ repo_cmds = CommandGroup.new(repo_commands, 'Repo commands')
16
+ other_cmds = CommandGroup.new(other_commands, 'non-API commands')
17
+
12
18
  say "Usage: travis COMMAND ...\n\nAvailable commands:\n\n"
13
- commands.each { |c| say "\t#{color(c.command_name, :command).ljust(22)} #{color(c.description, :info)}" }
19
+ [other_cmds, api_cmds, repo_cmds].each do |cmd_grp|
20
+ say " #{cmd_grp.header}"
21
+ cmd_grp.cmds.each do |cmd|
22
+ say " #{color(cmd.command_name, :command).ljust(22)} #{color(cmd.description, :info)}"
23
+ end
24
+ end
14
25
  say "\nrun `#$0 help COMMAND` for more info"
15
26
  end
16
27
  end
17
28
 
18
- def commands
19
- CLI.commands.sort_by { |c| c.command_name }
29
+ def cmd_group_header(title)
30
+ say " #{color(title, :green)}"
31
+ end
32
+
33
+ def api_commands
34
+ CLI.commands.select do |cmd|
35
+ cmd.ancestors.include?(CLI::ApiCommand) &&
36
+ !cmd.ancestors.include?(CLI::RepoCommand)
37
+ end.sort_by {|c| c.command_name}
38
+ end
39
+
40
+ def repo_commands
41
+ CLI.commands.select do |cmd|
42
+ cmd.ancestors.include? CLI::RepoCommand
43
+ end.sort_by {|c| c.command_name}
44
+ end
45
+
46
+ def other_commands
47
+ CLI.commands.select do |cmd|
48
+ !cmd.ancestors.include? CLI::ApiCommand
49
+ end.sort_by {|c| c.command_name}
20
50
  end
21
51
  end
22
52
  end
@@ -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
- error("#{user.login} has not granted Travis CI the required permissions, please log in via #{session.config['host']}") unless user.correct_scopes?
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
 
@@ -1,3 +1,3 @@
1
1
  module Travis
2
- VERSION = '1.9.0'
2
+ VERSION = '1.9.1'
3
3
  end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  # general info
4
4
  s.name = "travis"
5
- s.version = "1.9.0"
5
+ s.version = "1.9.1"
6
6
  s.required_ruby_version = ">= 2.3.0"
7
7
  s.description = "CLI and Ruby client library for Travis CI"
8
8
  s.homepage = "https://github.com/travis-ci/travis.rb"
@@ -41,7 +41,6 @@ Gem::Specification.new do |s|
41
41
  "Joep van Delft",
42
42
  "Stefan Nordhausen",
43
43
  "Tobias Bieniek",
44
- "joshua-anderson",
45
44
  "Adam Baxter",
46
45
  "Alfie John",
47
46
  "Alo\xC3\xAFs Th\xC3\xA9venot",
@@ -50,6 +49,7 @@ Gem::Specification.new do |s|
50
49
  "Dani Hodovic",
51
50
  "Dominic Jodoin",
52
51
  "Eric Herot",
52
+ "Eugene K",
53
53
  "George Millo",
54
54
  "Gunter Grodotzki",
55
55
  "Harald Nordgren",
@@ -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",
@@ -113,7 +111,6 @@ Gem::Specification.new do |s|
113
111
  "vano@mail.mipt.ru",
114
112
  "stefan.nordhausen@immobilienscout24.de",
115
113
  "tobias.bieniek@gmail.com",
116
- "j@zatigo.com",
117
114
  "github@voltagex.org",
118
115
  "33c6c91f3bb4a391082e8a29642cafaf@alfie.wtf",
119
116
  "aloisthevenot@srxp.com",
@@ -122,6 +119,7 @@ Gem::Specification.new do |s|
122
119
  "danihodovic@users.noreply.github.com",
123
120
  "dominic@travis-ci.com",
124
121
  "eric.github@herot.com",
122
+ "34233075+eugene-kulak@users.noreply.github.com",
125
123
  "georgejulianmillo@gmail.com",
126
124
  "gunter@grodotzki.co.za",
127
125
  "haraldnordgren@gmail.com",
@@ -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.1.travis.1219.9
4
+ version: 1.9.2.travis.1236.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiro Asari
@@ -33,7 +33,6 @@ authors:
33
33
  - Joep van Delft
34
34
  - Stefan Nordhausen
35
35
  - Tobias Bieniek
36
- - joshua-anderson
37
36
  - Adam Baxter
38
37
  - Alfie John
39
38
  - Aloïs Thévenot
@@ -42,6 +41,7 @@ authors:
42
41
  - Dani Hodovic
43
42
  - Dominic Jodoin
44
43
  - Eric Herot
44
+ - Eugene K
45
45
  - George Millo
46
46
  - Gunter Grodotzki
47
47
  - Harald Nordgren
@@ -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-18 00:00:00.000000000 Z
77
+ date: 2020-05-27 00:00:00.000000000 Z
80
78
  dependencies:
81
79
  - !ruby/object:Gem::Dependency
82
80
  name: faraday
@@ -288,7 +286,6 @@ email:
288
286
  - vano@mail.mipt.ru
289
287
  - stefan.nordhausen@immobilienscout24.de
290
288
  - tobias.bieniek@gmail.com
291
- - j@zatigo.com
292
289
  - github@voltagex.org
293
290
  - 33c6c91f3bb4a391082e8a29642cafaf@alfie.wtf
294
291
  - aloisthevenot@srxp.com
@@ -297,6 +294,7 @@ email:
297
294
  - danihodovic@users.noreply.github.com
298
295
  - dominic@travis-ci.com
299
296
  - eric.github@herot.com
297
+ - 34233075+eugene-kulak@users.noreply.github.com
300
298
  - georgejulianmillo@gmail.com
301
299
  - gunter@grodotzki.co.za
302
300
  - haraldnordgren@gmail.com
@@ -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