travis 1.5.6.travis.314.4 → 1.5.6.travis.315.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzFmNDNjY2M2NDg0ZTgyZDM2N2UzZWE0MWM4ZDYyYTQwZDA2OWFkMQ==
4
+ Y2QxNTAzMzcyODZiYTViYjdlNDI5M2Q0NTNiMDZlY2Q0ZDNlOTQwZA==
5
5
  data.tar.gz: !binary |-
6
- OWY2OWViODY0NTRkODZkNjRiODViY2I1NDY3YzE4MWY5NTg5ZTU1NA==
6
+ NWRlZWMzMTI1OWZhZGUwOTIxODZlNDY0Yjk5YTVhNDdhZDViYWNjMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTRiNjJjNTQ2NzdlMGI3YjczNzY0ZDYzZGY3ZTY1YjIxNzc3M2Q1OWM5Nzg5
10
- OTgxNGVkMTAxNTZkYWRiZDhiOWU5NzYzMDQ2MTQ4MTU5NzgxYzNlZmE1ZDhh
11
- YmM3Zjc3MDEwMmIzZDJmZDBiYmIzOGE2MmZmNTNiYjRmMzE3ODg=
9
+ ZWRjYTBmODYzOGE2M2RmMDJlZWY1MzU1NzQ2MWY5OTg0YjBjMDBhZTEzNTc1
10
+ ODMxZjA2NmUzODQ0YmE5MjRjMTE0OGZiYTViMzhmZjMzOTBkOTgwMzcyNjRk
11
+ MzA2YTI4MGNjNjdiZWFkNjAxYzZjNWJhYTY4NTM4NGI0MzNhMWM=
12
12
  data.tar.gz: !binary |-
13
- ZDdiN2U2NWY0ZjNmYjFiZmEyMTgzMzFhODc1ZjI3ZmY5MDJlZGFmNjZkYTgx
14
- ZTU3NDYxMmQwZTA5NDExNjgzOWZkYzIxZGZlMjZiZmJmZDU5OWQzMDNjNGJl
15
- YzY4NTBiNWUzNmJlYTZkZWIyMTVlM2QwNWY0ZDA1ZGIyNzVhMzM=
13
+ NDI0NjY0ZDliYjFmMzM5Y2Q5NTAyN2E1MDg3NDBiMzAyOGZjODEzYWM2Mjk5
14
+ N2RkYTI3YmVkZDkwZTY4NDdiY2ZhOGU2MTcyNjNiNzY1NjE3ZDlhZDZiMWMw
15
+ MjIzZjEzYjExYzg5M2Y4MDY3YzMxMzBmMmZjNGJjMjQwNTI4MTk=
data/completion/travis.sh CHANGED
@@ -19,7 +19,7 @@ _travis_complete() {
19
19
  if type compdef 1>/dev/null 2>/dev/null; then
20
20
  compdef _travis travis
21
21
  _travis() { _travis_complete $((${#words} - 1)) "${words[2]}"; }
22
- _travis_commands() { list=(accounts:"displays accounts and their subscription status" branches:"displays the most recent build for each branch" cancel:"cancels a job or build" console:"interactive shell" disable:"disables a project" enable:"enables a project" encrypt:"encrypts values for the .travis.yml" endpoint:"displays or changes the API endpoint" help:"helps you out when in dire need of information" history:"displays a projects build history" init:"generates a .travis.yml and enables the project" login:"authenticates against the API and stores the token" logs:"streams test logs" monitor:"live monitor for what's going on" open:"opens a build or job in the browser" pubkey:"prints out a repository's public key" raw:"makes an (authenticated) API call and prints out the result" restart:"restarts a build or job" setup:"sets up an addon or deploy target" show:"displays a build or job" status:"checks status of the latest build" sync:"triggers a new sync with GitHub" token:"outputs the secret API token" version:"outputs the client version" whatsup:"lists most recent builds" whoami:"outputs the current user") _describe -t common-commands 'common commands' list; }
22
+ _travis_commands() { list=(accounts:"displays accounts and their subscription status" branches:"displays the most recent build for each branch" cancel:"cancels a job or build" console:"interactive shell" disable:"disables a project" enable:"enables a project" encrypt:"encrypts values for the .travis.yml" endpoint:"displays or changes the API endpoint" help:"helps you out when in dire need of information" history:"displays a projects build history" init:"generates a .travis.yml and enables the project" login:"authenticates against the API and stores the token" logout:"" logs:"streams test logs" monitor:"live monitor for what's going on" open:"opens a build or job in the browser" pubkey:"prints out a repository's public key" raw:"makes an (authenticated) API call and prints out the result" restart:"restarts a build or job" setup:"sets up an addon or deploy target" show:"displays a build or job" status:"checks status of the latest build" sync:"triggers a new sync with GitHub" token:"outputs the secret API token" version:"outputs the client version" whatsup:"lists most recent builds" whoami:"outputs the current user") _describe -t common-commands 'common commands' list; }
23
23
  _travis_setup() { list=(cloudcontrol:"automatic deployment to cloudControl" cloudfoundry:"automatic deployment to Cloud Foundry" engineyard:"automatic deployment to Engine Yard" heroku:"automatic deployment to Heroku" npm:"automatic release to NPM" nodejitsu:"automatic deployment to Nodejitsu" openshift:"automatic deployment to OpenShfit" pypi:"automatic deployment to PyPI" rubygems:"automatic release to RubyGems" sauce_connect:"Sauce Connet addon for Sauce Labs integration") _describe -t common-commands 'common commands' list; }
24
24
  _travis_init() { list=(c:'initialize c project' clojure:'initialize clojure project' cpp:'initialize cpp project' erlang:'initialize erlang project' go:'initialize go project' groovy:'initialize groovy project' haskell:'initialize haskell project' java:'initialize java project' node_js:'initialize node_js project' objective-c:'initialize objective-c project' perl:'initialize perl project' php:'initialize php project' python:'initialize python project' ruby:'initialize ruby project' scala:'initialize scala project') _describe -t common-commands 'common commands' list; }
25
25
  _travis_option() {
@@ -36,6 +36,7 @@ if type compdef 1>/dev/null 2>/dev/null; then
36
36
  history) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" "-a[Only show history after a given build number]" "--after[Only show history after a given build number]" "-p[Only show history for the given Pull Request]" "--pull-request[Only show history for the given Pull Request]" "-b[Only show history for the given branch]" "--branch[Only show history for the given branch]" "-l[Maximum number of history items]" "--limit[Maximum number of history items]" "--all[Display all history items]" "--no-all[Display all history items]" '*:file:_files' && return 0;;
37
37
  init) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" "-s[don't trigger a sync if the repo is unknown]" "--skip-sync[don't trigger a sync if the repo is unknown]" "-f[override .travis.yml if it already exists]" "--force[override .travis.yml if it already exists]" "-k[do not enable project, only add .travis.yml]" "--skip-enable[do not enable project, only add .travis.yml]" "-p[print generated config instead of writing to file]" "--print-conf[print generated config instead of writing to file]" "--script[sets script option in .travis.yml (can be used more than once)]" "--before-script[sets before_script option in .travis.yml (can be used more than once)]" "--after-script[sets after_script option in .travis.yml (can be used more than once)]" "--after-success[sets after_success option in .travis.yml (can be used more than once)]" "--install[sets install option in .travis.yml (can be used more than once)]" "--before-install[sets before_install option in .travis.yml (can be used more than once)]" "--compiler[sets compiler option in .travis.yml (can be used more than once)]" "--otp-release[sets otp_release option in .travis.yml (can be used more than once)]" "--go[sets go option in .travis.yml (can be used more than once)]" "--jdk[sets jdk option in .travis.yml (can be used more than once)]" "--node-js[sets node_js option in .travis.yml (can be used more than once)]" "--perl[sets perl option in .travis.yml (can be used more than once)]" "--php[sets php option in .travis.yml (can be used more than once)]" "--python[sets python option in .travis.yml (can be used more than once)]" "--rvm[sets rvm option in .travis.yml (can be used more than once)]" "--scala[sets scala option in .travis.yml (can be used more than once)]" "--env[sets env option in .travis.yml (can be used more than once)]" "--gemfile[sets gemfile option in .travis.yml (can be used more than once)]" '*:file:_files' && return 0;;
38
38
  login) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" "--github-token[identify by GitHub token]" "--auto[try to figure out who you are automatically (might send another apps token to Travis, token will not be stored)]" '*:file:_files' && return 0;;
39
+ logout) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" '*:file:_files' && return 0;;
39
40
  logs) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" '*:file:_files' && return 0;;
40
41
  monitor) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" "-m[Only monitor my own repositories]" "--my-repos[Only monitor my own repositories]" "-r[monitor given repository (can be used more than once)]" "--repo[monitor given repository (can be used more than once)]" "-n[send out desktop notifications (optional type: osx, growl, libnotify)]" "--notify[send out desktop notifications (optional type: osx, growl, libnotify)]" "--no-notify[send out desktop notifications (optional type: osx, growl, libnotify)]" '*:file:_files' && return 0;;
41
42
  open) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" "-g[Open the corresponding project, compare view or pull request on GitHub]" "--github[Open the corresponding project, compare view or pull request on GitHub]" "-p[Print out the URL instead of opening it in a browser]" "--print[Print out the URL instead of opening it in a browser]" '*:file:_files' && return 0;;
@@ -55,7 +56,7 @@ if type compdef 1>/dev/null 2>/dev/null; then
55
56
  elif type compctl 1>/dev/null 2>/dev/null; then
56
57
  compctl -K _travis travis
57
58
  _travis() { read -cA words && _travis_complete $((${#words} - 1)) "${words[2]}"; }
58
- _travis_commands() { reply=("accounts" "branches" "cancel" "console" "disable" "enable" "encrypt" "endpoint" "help" "history" "init" "login" "logs" "monitor" "open" "pubkey" "raw" "restart" "setup" "show" "status" "sync" "token" "version" "whatsup" "whoami"); }
59
+ _travis_commands() { reply=("accounts" "branches" "cancel" "console" "disable" "enable" "encrypt" "endpoint" "help" "history" "init" "login" "logout" "logs" "monitor" "open" "pubkey" "raw" "restart" "setup" "show" "status" "sync" "token" "version" "whatsup" "whoami"); }
59
60
  _travis_setup() { reply=("cloudcontrol" "cloudfoundry" "engineyard" "heroku" "npm" "nodejitsu" "openshift" "pypi" "rubygems" "sauce_connect"); }
60
61
  _travis_init() { reply=("c" "clojure" "cpp" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"); }
61
62
  _travis_option() {
@@ -72,6 +73,7 @@ elif type compctl 1>/dev/null 2>/dev/null; then
72
73
  history) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--repo" "-r" "--after" "-a" "--pull-request" "-p" "--branch" "-b" "--limit" "-l" "--all" "--no-all");;
73
74
  init) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--repo" "-r" "--skip-sync" "-s" "--force" "-f" "--skip-enable" "-k" "--print-conf" "-p" "--script" "--before-script" "--after-script" "--after-success" "--install" "--before-install" "--compiler" "--otp-release" "--go" "--jdk" "--node-js" "--perl" "--php" "--python" "--rvm" "--scala" "--env" "--gemfile");;
74
75
  login) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--github-token" "--auto");;
76
+ logout) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter");;
75
77
  logs) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--repo" "-r");;
76
78
  monitor) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--my-repos" "-m" "--repo" "-r" "--notify" "--no-notify" "-n");;
77
79
  open) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--repo" "-r" "--github" "-g" "--print" "-p");;
@@ -91,7 +93,7 @@ elif type compctl 1>/dev/null 2>/dev/null; then
91
93
  elif type complete 1>/dev/null 2>/dev/null; then
92
94
  complete -F _travis travis
93
95
  _travis() { _travis_complete "$COMP_CWORD" "${COMP_WORDS[1]}"; }
94
- _travis_commands() { COMPREPLY=( $(compgen -W "accounts branches cancel console disable enable encrypt endpoint help history init login logs monitor open pubkey raw restart setup show status sync token version whatsup whoami" -- "${COMP_WORDS[COMP_CWORD]}") ); }
96
+ _travis_commands() { COMPREPLY=( $(compgen -W "accounts branches cancel console disable enable encrypt endpoint help history init login logout logs monitor open pubkey raw restart setup show status sync token version whatsup whoami" -- "${COMP_WORDS[COMP_CWORD]}") ); }
95
97
  _travis_setup() { COMPREPLY=( $(compgen -W "cloudcontrol cloudfoundry engineyard heroku npm nodejitsu openshift pypi rubygems sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
96
98
  _travis_init() { COMPREPLY=( $(compgen -W "c clojure cpp erlang go groovy haskell java node_js objective-c perl php python ruby scala" -- "${COMP_WORDS[COMP_CWORD]}") ); }
97
99
  _travis_option() {
@@ -109,6 +111,7 @@ elif type complete 1>/dev/null 2>/dev/null; then
109
111
  history) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --repo -r --after -a --pull-request -p --branch -b --limit -l --all --no-all";;
110
112
  init) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --repo -r --skip-sync -s --force -f --skip-enable -k --print-conf -p --script --before-script --after-script --after-success --install --before-install --compiler --otp-release --go --jdk --node-js --perl --php --python --rvm --scala --env --gemfile";;
111
113
  login) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --github-token --auto";;
114
+ logout) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter";;
112
115
  logs) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --repo -r";;
113
116
  monitor) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --my-repos -m --repo -r --notify --no-notify -n";;
114
117
  open) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --repo -r --github -g --print -p";;
@@ -0,0 +1,12 @@
1
+ require 'travis/cli'
2
+
3
+ module Travis
4
+ module CLI
5
+ class Logout < ApiCommand
6
+ def run
7
+ endpoint_config.delete('access_token')
8
+ success("Successfully logged out!")
9
+ end
10
+ end
11
+ end
12
+ end
data/travis.gemspec CHANGED
@@ -96,6 +96,7 @@ Gem::Specification.new do |s|
96
96
  "lib/travis/cli/init/ruby.yml",
97
97
  "lib/travis/cli/init/scala.yml",
98
98
  "lib/travis/cli/login.rb",
99
+ "lib/travis/cli/logout.rb",
99
100
  "lib/travis/cli/logs.rb",
100
101
  "lib/travis/cli/monitor.rb",
101
102
  "lib/travis/cli/open.rb",
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.314.4
4
+ version: 1.5.6.travis.315.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -295,6 +295,7 @@ files:
295
295
  - lib/travis/cli/init/ruby.yml
296
296
  - lib/travis/cli/init/scala.yml
297
297
  - lib/travis/cli/login.rb
298
+ - lib/travis/cli/logout.rb
298
299
  - lib/travis/cli/logs.rb
299
300
  - lib/travis/cli/monitor.rb
300
301
  - lib/travis/cli/open.rb