travis 1.5.6.travis.307.4 → 1.5.6.travis.312.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmViNjNkNDk5ODFiZTkzNDU2YTI4YjgyNjNkYTlmMDg2N2RkMGRmYQ==
4
+ ZDAwNGZhYTA4OTRkZjc3OWYxOGM0MGUyYTZmZjFmMDI2ZTkyNWUwNQ==
5
5
  data.tar.gz: !binary |-
6
- MzJmZTNiZDIyYzE5OGIyNjljMGE0NmE4Y2MwY2JhODMyYzBhMGVmYw==
6
+ YjllNGI5YzkxYmZkZmVhNzljOGUxYzA3ZGI3MmRiMjM4NzM3ZDA2YQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGI4NTE5OGQ2ZDY2Mzc4ZDMxNjFmNWE3YmExYmFlNWMxZjEyNGJmMDM1NmFm
10
- YTQ5ODg2YTE3NGU4ZTcxMGIxN2IzMWM0ZDJjNThjNDJhOTQwNTQ1MThkNTMz
11
- NWUxZjk1MzEzM2MwMWMwZGMyYjFhY2RmZmU4YzM2NzE3MmU1NDQ=
9
+ ZjRmMmJiMjc3YTkyZDJmMjE5OTg3OGI5YzQ2OTkzMWE4MDQ3YzlhMDZiMWY2
10
+ NjRiYzVmZjI4NTYzZmFjYzliY2ZiODk4NzkxYjY0YTEzNjIwNmI4ZDFhNjU1
11
+ ODk0NWU0MTlkZjRkZjkyZGFjODFhMTJkNDk2OTE4ODM4NDlmYzE=
12
12
  data.tar.gz: !binary |-
13
- NjBlMDI3Y2JiNzk2YjI1YWFmMjRmZjc1YTQwYTBhYmRhNmQ1MWU5NGE2ZTQ3
14
- NDA0YzAxZjM1NGNjMjY3Yzc5MGZkZDM0OTcwYmJkMGUwMjg4NzJmYWVhYzgy
15
- Y2NlNTViYzc2M2FjMDFhNjk0MTdjNzNhZWMwMjNlMTE5YzI3MmI=
13
+ MmU3MDBhODg1YzhmNjEzYjcwODgzZmVjM2UyNzk0YTg4ZmYzNTMxYTI5ZjJm
14
+ ZDFjNzZiNjc1ZTBlMzAxOTEzMjM1MzM2ODY0MGQxZGUxMTVlMjhiYjk1OTE2
15
+ YWU2OTZkYjY3OTQxMzk0NDRjZTU1ZjNjNzYwMTIxMmNkMzNlOTM=
data/README.md CHANGED
@@ -193,6 +193,13 @@ If you don't want it to send your credentials to GitHub, you can create a GitHub
193
193
 
194
194
  A third option is for the really lazy: `--auto`. In this mode the client will try to find a GitHub token for you and just use that. This will only work if you have a [global GitHub token](https://help.github.com/articles/git-over-https-using-oauth-token) stored in your [.netrc](http://blogdown.io/c4d42f87-80dd-45d5-8927-4299cbdf261c/posts/574baa68-f663-4dcf-88b9-9d41310baf2f). If you haven't heard of this, it's worth looking into in general. Again: Travis CI will not store that token.
195
195
 
196
+ #### `logout`
197
+
198
+ This command makes Travis CI forget your access token.
199
+
200
+ $ travis logout --pro
201
+ Successfully logged out!
202
+
196
203
  #### `monitor`
197
204
 
198
205
  Usage: travis monitor [options]
@@ -246,7 +246,7 @@ module Travis
246
246
  end
247
247
 
248
248
  def command(name)
249
- color("#$0 #{name}", :command)
249
+ color("#{File.basename($0)} #{name}", :command)
250
250
  end
251
251
 
252
252
  def success(line)
data/lib/travis/cli.rb CHANGED
@@ -28,6 +28,7 @@ module Travis
28
28
  autoload :History, 'travis/cli/history'
29
29
  autoload :Init, 'travis/cli/init'
30
30
  autoload :Login, 'travis/cli/login'
31
+ autoload :Logout, 'travis/cli/logout'
31
32
  autoload :Logs, 'travis/cli/logs'
32
33
  autoload :Monitor, 'travis/cli/monitor'
33
34
  autoload :Open, 'travis/cli/open'
@@ -17,6 +17,6 @@ describe Travis::CLI::Token do
17
17
  run_cli('token').should_not be_success
18
18
 
19
19
  stdout.should be_empty
20
- stderr.should == "not logged in, please run #$0 login\n"
20
+ stderr.should == "not logged in, please run #{File.basename($0)} login\n"
21
21
  end
22
22
  end
@@ -4,13 +4,13 @@ describe Travis::CLI::Whoami do
4
4
  example "travis whoami" do
5
5
  run_cli('whoami').should_not be_success
6
6
  stdout.should be_empty
7
- stderr.should be == "not logged in, please run #$0 login\n"
7
+ stderr.should be == "not logged in, please run #{File.basename $0} login\n"
8
8
  end
9
9
 
10
10
  example "travis whoami --pro" do
11
11
  run_cli('whoami', '--pro').should_not be_success
12
12
  stdout.should be_empty
13
- stderr.should be == "not logged in, please run #$0 login --pro\n"
13
+ stderr.should be == "not logged in, please run #{File.basename $0} login --pro\n"
14
14
  end
15
15
 
16
16
  example "travis whoami -t token" do
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.5.6.travis.307.4
4
+ version: 1.5.6.travis.312.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -25,7 +25,7 @@ authors:
25
25
  autorequire:
26
26
  bindir: bin
27
27
  cert_chain: []
28
- date: 2013-10-19 00:00:00.000000000 Z
28
+ date: 2013-10-21 00:00:00.000000000 Z
29
29
  dependencies:
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: faraday