travis 1.8.11.travis.1059.11 → 1.8.11.travis.1081.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: 634875f2069fc6585fd386da2f444636d71b8c07fc4492b329ef3681ec70ee50
4
- data.tar.gz: d38b52f5fd68be633020d9b777aeeee53726251eebd56ccb17a1adb0bab4f073
3
+ metadata.gz: 3bf052d776d2d197450b10382638876d231e88b60f9ebf108557e879b4550fa7
4
+ data.tar.gz: 611150f467c20b5ef3409216f123dcc66c7f8a14416c8328cd7b0b81b7fac368
5
5
  SHA512:
6
- metadata.gz: 65a40b3388b85d4a19edca0186452496dde669db80bb0f4079c2850d57f224ca792aa4116208cd495f5b577105159273feb0873fbba7a6e22a44300c748cdf76
7
- data.tar.gz: 872f4c9c5cac20d33501a401c723c26e9c370c431e4bcef1fdb91d8b5f826bb1333bb32d9c0ed2ac0e2ae99ab8a72d1f8e82c2395362250eec5226fdb11988c5
6
+ metadata.gz: e672184c2d05b0a1c2d38753715da12c9d56cc7cead9633b864fd078245f04c0df2875be678f4ac669117c0c51d478f5472d8b189527f8f6af22a25a382d25ff
7
+ data.tar.gz: 9b9442a6928177c5c73c9378c9857078173a3804c9acd66e69e767115c0599a01f202d2191bd54b88d5985edbbe962a397b22aade29253a2f06baf8350156b13
@@ -6,6 +6,7 @@ module Travis
6
6
  description "deletes the stored API token"
7
7
 
8
8
  def run
9
+ session.logout
9
10
  endpoint_config.delete('access_token')
10
11
  success("Successfully logged out!")
11
12
  end
@@ -84,6 +84,10 @@ module Travis
84
84
  entity.reload
85
85
  end
86
86
 
87
+ def logout
88
+ session.get_raw('/logout')
89
+ end
90
+
87
91
  def listen(*entities, &block)
88
92
  listener = Listener.new(session)
89
93
  listener.subscribe(*entities, &block)
@@ -20,7 +20,7 @@ module Travis
20
20
  def has_passphrase?(key)
21
21
  OpenSSL::PKey::RSA.new(key, key)
22
22
  false
23
- rescue OpenSSL::PKey::RSAError
23
+ rescue OpenSSL::OpenSSLError
24
24
  true
25
25
  end
26
26
 
@@ -37,6 +37,20 @@ module Travis
37
37
  "correct_scopes"=>true}}.to_json
38
38
  end
39
39
 
40
+ get '/logout' do
41
+ halt(403, 'wrong token') unless authorized?
42
+ {"user"=>
43
+ {"id"=>267,
44
+ "name"=>"Konstantin Haase",
45
+ "login"=>"rkh",
46
+ "email"=>"konstantin.haase@gmail.com",
47
+ "gravatar_id"=>"5c2b452f6eea4a6d84c105ebd971d2a4",
48
+ "locale"=>"en",
49
+ "is_syncing"=>false,
50
+ "synced_at"=>"2012-10-27T12:52:25Z",
51
+ "correct_scopes"=>true}}.to_json
52
+ end
53
+
40
54
  get '/jobs/4125097' do
41
55
  {"job"=>
42
56
  {"id"=>4125097,
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.authors = [
14
14
  "Konstantin Haase",
15
15
  "Hiro Asari",
16
+ "Piotr Milcarz",
16
17
  "Buck Doyle",
17
18
  "Christopher Grim",
18
19
  "Joe Corcoran",
@@ -42,7 +43,6 @@ Gem::Specification.new do |s|
42
43
  "Joe Rafaniello",
43
44
  "Jonas Chromik",
44
45
  "Matteo Sumberaz",
45
- "Matthias Bussonnier",
46
46
  "Michael S. Fischer",
47
47
  "Nero Leung",
48
48
  "Peter Bengtsson",
@@ -53,6 +53,7 @@ Gem::Specification.new do |s|
53
53
  s.email = [
54
54
  "konstantin.mailinglists@googlemail.com",
55
55
  "asari.ruby@gmail.com",
56
+ "piotrm@travis-ci.org",
56
57
  "b@chromatin.ca",
57
58
  "chrisg@luminal.io",
58
59
  "joe@corcoran.io",
@@ -84,7 +85,6 @@ Gem::Specification.new do |s|
84
85
  "joepvd@users.noreply.github.com",
85
86
  "Jonas.Chromik@student.hpi.uni-potsdam.de",
86
87
  "gnappoms@gmail.com",
87
- "bussonniermatthias@gmail.com",
88
88
  "mfischer@zendesk.com",
89
89
  "neroleung@gmail.com",
90
90
  "peterbe@mozilla.com",
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.11.travis.1059.11
4
+ version: 1.8.11.travis.1081.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  - Hiro Asari
9
+ - Piotr Milcarz
9
10
  - Buck Doyle
10
11
  - Christopher Grim
11
12
  - Joe Corcoran
@@ -35,7 +36,6 @@ authors:
35
36
  - Joe Rafaniello
36
37
  - Jonas Chromik
37
38
  - Matteo Sumberaz
38
- - Matthias Bussonnier
39
39
  - Michael S. Fischer
40
40
  - Nero Leung
41
41
  - Peter Bengtsson
@@ -43,7 +43,7 @@ authors:
43
43
  autorequire:
44
44
  bindir: bin
45
45
  cert_chain: []
46
- date: 2019-12-10 00:00:00.000000000 Z
46
+ date: 2019-12-23 00:00:00.000000000 Z
47
47
  dependencies:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: faraday
@@ -229,6 +229,7 @@ description: CLI and Ruby client library for Travis CI
229
229
  email:
230
230
  - konstantin.mailinglists@googlemail.com
231
231
  - asari.ruby@gmail.com
232
+ - piotrm@travis-ci.org
232
233
  - b@chromatin.ca
233
234
  - chrisg@luminal.io
234
235
  - joe@corcoran.io
@@ -260,7 +261,6 @@ email:
260
261
  - joepvd@users.noreply.github.com
261
262
  - Jonas.Chromik@student.hpi.uni-potsdam.de
262
263
  - gnappoms@gmail.com
263
- - bussonniermatthias@gmail.com
264
264
  - mfischer@zendesk.com
265
265
  - neroleung@gmail.com
266
266
  - peterbe@mozilla.com