travis 1.5.4 → 1.5.5

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
  SHA1:
3
- metadata.gz: a6ad953827142429662cb72409503569301f897f
4
- data.tar.gz: 163ca05e0aef4451f4e9a654a03f65978ce4d0eb
3
+ metadata.gz: 5a045006c498b7a7008ef238ca47dd2bbfff1b72
4
+ data.tar.gz: c337fc9995e54280d6040b061e75b1d8680607e7
5
5
  SHA512:
6
- metadata.gz: 3a41e985920f82ae6c053ef69a66245e4c18f74c0ea2c123b41b905bb609f7835fc6751c8edf53ece54002d766b61283d68d3432ca9983305078ce4eb31bafa6
7
- data.tar.gz: 475f699c1c59e85b4218b92ff1cb205a5bbb21c7219f38749d525c2eeb64a7fae43c1349cde9c35168380235a78993592ca0f34219b9eb6c219a2b8b417d05a9
6
+ metadata.gz: 7811cdc0af4479b597a753a0eeb893153ba2887dc245e92c09bc104721b35374880a36f54b559b5af73230ab89e01a2ffcf67584d3da7f23301fe78888b37cd8
7
+ data.tar.gz: d8175c8172c2286aea68488528962cc236bae307cd97907e438048e8e3c3f7cee29663e648f7cba05fdd8e1ce55146aa3bec289907d64c00c1e9b9ee768fe1ed
data/README.md CHANGED
@@ -647,7 +647,7 @@ Helps you configure Travis addons.
647
647
  -r, --repo SLUG repository to use (will try to detect from current git clone)
648
648
  -f, --force override config section if it already exists
649
649
 
650
- Available services: `cloudcontrol`, `cloudfoundry`, `engineyard`, `heroku`, `nodejitsu`, `openshift`, `rubygems` and `sauce_connect`.
650
+ Available services: `cloudcontrol`, `cloudfoundry`, `engineyard`, `heroku`, `nodejitsu`, `npm`, `openshift`, `pypi`, `rubygems` and `sauce_connect`.
651
651
 
652
652
  Example:
653
653
 
@@ -1186,12 +1186,12 @@ You can check your Ruby version by running `ruby -v`:
1186
1186
 
1187
1187
  Then run:
1188
1188
 
1189
- $ gem install travis -v 1.5.4 --no-rdoc --no-ri
1189
+ $ gem install travis -v 1.5.5 --no-rdoc --no-ri
1190
1190
 
1191
1191
  Now make sure everything is working:
1192
1192
 
1193
1193
  $ travis version
1194
- 1.5.4
1194
+ 1.5.5
1195
1195
 
1196
1196
  ### Updating your Ruby
1197
1197
 
@@ -1238,6 +1238,13 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
1238
1238
 
1239
1239
  ## Version History
1240
1240
 
1241
+ **1.5.5** (October 2, 2013)
1242
+
1243
+ * Add `travis setup pypi`
1244
+ * Add `travis setup npm`
1245
+ * When loading accounts, set all flag to true.
1246
+ * Fix bug where session.config would be nil instead of a hash.
1247
+
1241
1248
  **1.5.4** (September 7, 2013)
1242
1249
 
1243
1250
  * Make `travis monitor` send out desktop notifications.
@@ -20,7 +20,7 @@ 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
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; }
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" nodejitsu:"automatic deployment to Nodejitsu" openshift:"automatic deployment to OpenShfit" rubygems:"automatic release to RubyGems" sauce_connect:"Sauce Connet addon for Sauce Labs integration") _describe -t common-commands 'common commands' list; }
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() {
26
26
  case "${words[2]}" in
@@ -56,7 +56,7 @@ elif type compctl 1>/dev/null 2>/dev/null; then
56
56
  compctl -K _travis travis
57
57
  _travis() { read -cA words && _travis_complete $((${#words} - 1)) "${words[2]}"; }
58
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_setup() { reply=("cloudcontrol" "cloudfoundry" "engineyard" "heroku" "nodejitsu" "openshift" "rubygems" "sauce_connect"); }
59
+ _travis_setup() { reply=("cloudcontrol" "cloudfoundry" "engineyard" "heroku" "npm" "nodejitsu" "openshift" "pypi" "rubygems" "sauce_connect"); }
60
60
  _travis_init() { reply=("c" "clojure" "cpp" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"); }
61
61
  _travis_option() {
62
62
  case "${words[2]}" in
@@ -92,7 +92,7 @@ elif type complete 1>/dev/null 2>/dev/null; then
92
92
  complete -F _travis travis
93
93
  _travis() { _travis_complete "$COMP_CWORD" "${COMP_WORDS[1]}"; }
94
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]}") ); }
95
- _travis_setup() { COMPREPLY=( $(compgen -W "cloudcontrol cloudfoundry engineyard heroku nodejitsu openshift rubygems sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
95
+ _travis_setup() { COMPREPLY=( $(compgen -W "cloudcontrol cloudfoundry engineyard heroku npm nodejitsu openshift pypi rubygems sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
96
96
  _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
97
  _travis_option() {
98
98
  local options
@@ -8,7 +8,9 @@ module Travis
8
8
  autoload :EngineYard, 'travis/cli/setup/engine_yard'
9
9
  autoload :Heroku, 'travis/cli/setup/heroku'
10
10
  autoload :Nodejitsu, 'travis/cli/setup/nodejitsu'
11
+ autoload :NPM, 'travis/cli/setup/npm'
11
12
  autoload :OpenShift, 'travis/cli/setup/open_shift'
13
+ autoload :PyPI, 'travis/cli/setup/pypi'
12
14
  autoload :RubyGems, 'travis/cli/setup/ruby_gems'
13
15
  autoload :SauceConnect, 'travis/cli/setup/sauce_connect'
14
16
  autoload :Service, 'travis/cli/setup/service'
@@ -0,0 +1,20 @@
1
+ require 'travis/cli/setup'
2
+
3
+ module Travis
4
+ module CLI
5
+ class Setup
6
+ class NPM < Service
7
+ description "automatic release to NPM"
8
+
9
+ def run
10
+ deploy 'npm', 'release' do |config|
11
+ config['email'] ||= ask("NPM email address: ") { |q| q }.to_s
12
+ config['api_key'] ||= ask("NPM api key: ") { |q| q.echo = "*" }.to_s
13
+
14
+ on("release only tagged commits? ", config, 'tags' => true)
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require 'travis/cli/setup'
2
+
3
+ module Travis
4
+ module CLI
5
+ class Setup
6
+ class PyPI < Service
7
+ description "automatic deployment to PyPI"
8
+
9
+ def run
10
+ deploy 'pypi', 'release' do |config|
11
+ config['user'] ||= ask("Username: ").to_s
12
+ config['password'] ||= ask("Password: ") { |q| q.echo = "*" }.to_s
13
+
14
+ on("release only tagged commits? ", config, 'tags' => true)
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -64,7 +64,7 @@ module Travis
64
64
  end
65
65
 
66
66
  def accounts
67
- session.find_many(Account)
67
+ session.find_many(Account, :all => true)
68
68
  end
69
69
 
70
70
  def broadcasts
@@ -122,7 +122,7 @@ module Travis
122
122
  end
123
123
 
124
124
  def config
125
- @config ||= get_raw('/config')['config']
125
+ @config ||= get_raw('/config')['config'] || {}
126
126
  end
127
127
 
128
128
  def load(data)
@@ -1,3 +1,3 @@
1
1
  module Travis
2
- VERSION = '1.5.4'
2
+ VERSION = '1.5.5'
3
3
  end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  # general infos
4
4
  s.name = "travis"
5
- s.version = "1.5.4"
5
+ s.version = "1.5.5"
6
6
  s.description = "CLI and Ruby client library for Travis CI"
7
7
  s.homepage = "https://github.com/travis-ci/travis"
8
8
  s.summary = "Travis CI client"
@@ -15,8 +15,8 @@ Gem::Specification.new do |s|
15
15
  "Konstantin Haase",
16
16
  "Henrik Hodne",
17
17
  "Peter Souter",
18
- "Max Barnash",
19
18
  "Aaron Hill",
19
+ "Max Barnash",
20
20
  "Mathias Meyer",
21
21
  "Jacob Burkhart",
22
22
  "Josh Kalderimis",
@@ -37,8 +37,8 @@ Gem::Specification.new do |s|
37
37
  "konstantin.mailinglists@googlemail.com",
38
38
  "me@henrikhodne.com",
39
39
  "p.morsou@gmail.com",
40
- "i.am@anhero.ru",
41
40
  "aa1ronham@gmail.com",
41
+ "i.am@anhero.ru",
42
42
  "meyer@paperplanes.de",
43
43
  "josh.kalderimis@gmail.com",
44
44
  "jlambert@eml.cc",
@@ -110,7 +110,9 @@ Gem::Specification.new do |s|
110
110
  "lib/travis/cli/setup/engine_yard.rb",
111
111
  "lib/travis/cli/setup/heroku.rb",
112
112
  "lib/travis/cli/setup/nodejitsu.rb",
113
+ "lib/travis/cli/setup/npm.rb",
113
114
  "lib/travis/cli/setup/open_shift.rb",
115
+ "lib/travis/cli/setup/pypi.rb",
114
116
  "lib/travis/cli/setup/ruby_gems.rb",
115
117
  "lib/travis/cli/setup/sauce_connect.rb",
116
118
  "lib/travis/cli/setup/service.rb",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  - Henrik Hodne
9
9
  - Peter Souter
10
- - Max Barnash
11
10
  - Aaron Hill
11
+ - Max Barnash
12
12
  - Mathias Meyer
13
13
  - Jacob Burkhart
14
14
  - Josh Kalderimis
@@ -25,7 +25,7 @@ authors:
25
25
  autorequire:
26
26
  bindir: bin
27
27
  cert_chain: []
28
- date: 2013-09-07 00:00:00.000000000 Z
28
+ date: 2013-10-02 00:00:00.000000000 Z
29
29
  dependencies:
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: faraday
@@ -234,8 +234,8 @@ email:
234
234
  - konstantin.mailinglists@googlemail.com
235
235
  - me@henrikhodne.com
236
236
  - p.morsou@gmail.com
237
- - i.am@anhero.ru
238
237
  - aa1ronham@gmail.com
238
+ - i.am@anhero.ru
239
239
  - meyer@paperplanes.de
240
240
  - josh.kalderimis@gmail.com
241
241
  - jlambert@eml.cc
@@ -309,7 +309,9 @@ files:
309
309
  - lib/travis/cli/setup/engine_yard.rb
310
310
  - lib/travis/cli/setup/heroku.rb
311
311
  - lib/travis/cli/setup/nodejitsu.rb
312
+ - lib/travis/cli/setup/npm.rb
312
313
  - lib/travis/cli/setup/open_shift.rb
314
+ - lib/travis/cli/setup/pypi.rb
313
315
  - lib/travis/cli/setup/ruby_gems.rb
314
316
  - lib/travis/cli/setup/sauce_connect.rb
315
317
  - lib/travis/cli/setup/service.rb