travis 1.5.2 → 1.5.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54e921c3e50d219945b7a6dd95288a2bd941c8ed
4
- data.tar.gz: 6f053ea71b23f940a0c6d25de1e3541deb59145a
3
+ metadata.gz: 69f1142a4738539ef3a046bb4aaf0ae0efd9f903
4
+ data.tar.gz: 57ece6aa4348ecddaf91d1b730505224dad272fb
5
5
  SHA512:
6
- metadata.gz: b3888323efad2668054faa063208894261bfe7f906ef43c53373549de22252d48f875ffef7f67f96dc884f32ebc6346f94b5bdc99029e732d1b522832e2aaa57
7
- data.tar.gz: e109cb1086c344be1a16090d3676adb1224eaab912682efa89b6d01bf09f23faaf761aea388a173ef965d1d1dbc5ad0fd3b125f960f8c44000e77648a0698aca
6
+ metadata.gz: c47d69aeb0af9e9d4157e6c6c031b875a023aa28826c9d286bd5c485c078239401eb254bb792dfd302ca6560a531e7fbe2b7c275c9e6f6ecdf65f131204fe97f
7
+ data.tar.gz: 0ba7a6ee85b9eebea6b303ff3f7b6ad2ca0a7d627e4720f4fcc23e8adf52933f94538eebb366f2153364450ea9375cd43f83f481f297c142a14001c6e32df616
data/README.md CHANGED
@@ -1177,12 +1177,12 @@ You can check your Ruby version by running `ruby -v`:
1177
1177
 
1178
1178
  Then run:
1179
1179
 
1180
- $ gem install travis -v 1.5.2 --no-rdoc --no-ri
1180
+ $ gem install travis -v 1.5.3 --no-rdoc --no-ri
1181
1181
 
1182
1182
  Now make sure everything is working:
1183
1183
 
1184
1184
  $ travis version
1185
- 1.5.2
1185
+ 1.5.3
1186
1186
 
1187
1187
  ### Updating your Ruby
1188
1188
 
@@ -1229,6 +1229,14 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
1229
1229
 
1230
1230
  ## Version History
1231
1231
 
1232
+ **1.5.3** (August 22, 2013)
1233
+
1234
+ * Fix issues on Windows.
1235
+ * Improve `travis setup rubygems` (automatically figure out API token for newer RubyGems versions, offer to only release tagged commits, allow changing gem name).
1236
+ * Add command descriptions to help pages.
1237
+ * Smarter check if travis gem is outdated.
1238
+ * Better error messages for non-existing build/job numbers.
1239
+
1232
1240
  **1.5.2** (August 18, 2013)
1233
1241
 
1234
1242
  * Add `travis cancel`.
data/lib/travis/cli.rb CHANGED
@@ -49,10 +49,6 @@ module Travis
49
49
 
50
50
  extend self
51
51
 
52
- def windows?
53
- File::ALT_SEPARATOR == "\\"
54
- end
55
-
56
52
  def run(*args)
57
53
  args, opts = preparse(args)
58
54
  name = args.shift unless args.empty?
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Accounts < ApiCommand
6
+ description "displays accounts and their subscription status"
7
+
6
8
  def run
7
9
  authenticate
8
10
  accounts.each do |account|
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Branches < RepoCommand
6
+ description "displays the most recent build for each branch"
7
+
6
8
  def run
7
9
  repository.last_on_branch.each do |build|
8
10
  say [
@@ -3,9 +3,12 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Cancel < RepoCommand
6
+ description "cancels a job or build"
7
+
6
8
  def run(number = last_build.number)
7
9
  authenticate
8
10
  entity = job(number) || build(number)
11
+ error "could not find job or build #{repository.slug}##{number}" unless entity
9
12
  entity.cancel
10
13
 
11
14
  say "canceled", "#{entity.class.one} ##{entity.number} has been %s"
@@ -1,4 +1,5 @@
1
1
  require 'travis/cli'
2
+ require 'travis/tools/system'
2
3
  require 'travis/tools/formatter'
3
4
  require 'travis/version'
4
5
 
@@ -14,7 +15,7 @@ module Travis
14
15
  extend Forwardable
15
16
  def_delegators :terminal, :agree, :ask, :choose
16
17
 
17
- HighLine.use_color = !CLI.windows? && $stdout.tty?
18
+ HighLine.use_color = !Tools::System.windows? && $stdout.tty?
18
19
  HighLine.color_scheme = HighLine::ColorScheme.new do |cs|
19
20
  cs[:command] = [ :bold ]
20
21
  cs[:error] = [ :red ]
@@ -30,7 +31,7 @@ module Travis
30
31
  end
31
32
 
32
33
  on('-i', '--[no-]interactive', "be interactive and colorful") do |c, v|
33
- HighLine.use_color = v unless CLI.windows?
34
+ HighLine.use_color = v unless Tools::System.windows?
34
35
  c.force_interactive = v
35
36
  end
36
37
 
@@ -54,6 +55,11 @@ module Travis
54
55
  define_method(name) {}
55
56
  end
56
57
 
58
+ def self.description(description = nil)
59
+ @description = description if description
60
+ @description ||= ""
61
+ end
62
+
57
63
  attr_accessor :arguments, :config, :force_interactive, :formatter
58
64
  attr_reader :input, :output
59
65
 
@@ -99,23 +105,28 @@ module Travis
99
105
  def setup
100
106
  end
101
107
 
108
+ def last_check
109
+ config['last_check'] ||= {
110
+ # migrate from old values
111
+ 'at' => config.delete('last_version_check'),
112
+ 'etag' => config.delete('etag')
113
+ }
114
+ end
115
+
102
116
  def check_version
117
+ last_check.clear if last_check['version'] != Travis::VERSION
118
+
103
119
  return if skip_version_check?
104
- return if Time.now.to_i - config['last_version_check'].to_i < 3600
105
- version = Travis::VERSION
120
+ return if Time.now.to_i - last_check['at'].to_i < 3600
106
121
 
107
122
  Timeout.timeout 1.0 do
108
- response = Faraday.get('https://rubygems.org/api/v1/gems/travis.json', {}, 'If-None-Match' => config['etag'].to_s)
109
- config['etag'] = response.headers['etag']
110
- version = JSON.parse(response.body)['version'] if response.status == 200
123
+ response = Faraday.get('https://rubygems.org/api/v1/gems/travis.json', {}, 'If-None-Match' => last_check['etag'].to_s)
124
+ last_check['etag'] = response.headers['etag']
125
+ last_check['version'] = JSON.parse(response.body)['version'] if response.status == 200
111
126
  end
112
127
 
113
- if Travis::VERSION >= version
114
- config['last_version_check'] = Time.now.to_i
115
- else
116
- error "Outdated CLI version (#{Travis::VERSION}, current is #{version}), " \
117
- "run `gem install travis -v #{version}` or use --skip-version-check."
118
- end
128
+ last_check['at'] = Time.now.to_i
129
+ error "Outdated CLI version, run `gem install travis` or use --skip-version-check." if Travis::VERSION < last_check['version']
119
130
  rescue Timeout::Error, Faraday::Error::ClientError
120
131
  end
121
132
 
@@ -145,7 +156,7 @@ module Travis
145
156
  end
146
157
 
147
158
  def usage
148
- usage = "#$0 #{command_name}"
159
+ usage = "travis #{command_name}"
149
160
  method = method(:run)
150
161
  if method.respond_to? :parameters
151
162
  method.parameters.each do |type, name|
@@ -162,7 +173,7 @@ module Travis
162
173
 
163
174
  def help
164
175
  parser.banner = usage
165
- parser.to_s
176
+ self.class.description.sub(/./) { |c| c.upcase } + ".\n" + parser.to_s
166
177
  end
167
178
 
168
179
  def say(data, format = nil, style = nil)
@@ -4,6 +4,8 @@ Travis::CLI.silent { require 'pry' }
4
4
  module Travis
5
5
  module CLI
6
6
  class Console < ApiCommand
7
+ description "interactive shell"
8
+
7
9
  def run
8
10
  Object.send(:include, Client::Namespace.new(session))
9
11
  binding.pry(:quiet => true, :prompt => Pry::SIMPLE_PROMPT, :output => $stdout)
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Disable < RepoCommand
6
+ description "disables a project"
7
+
6
8
  def run
7
9
  authenticate
8
10
  repository.disable
@@ -3,6 +3,7 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Enable < RepoCommand
6
+ description "enables a project"
6
7
  on('-s', '--skip-sync', "don't trigger a sync if the repo is unknown")
7
8
 
8
9
  def run
@@ -4,6 +4,7 @@ require 'travis/cli'
4
4
  module Travis
5
5
  module CLI
6
6
  class Encrypt < RepoCommand
7
+ description "encrypts values for the .travis.yml"
7
8
  attr_accessor :config_key
8
9
 
9
10
  on('-a', '--add [KEY]', 'adds it to .travis.yml under KEY (default: env.global)') do |c, value|
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Endpoint < ApiCommand
6
+ description "displays or changes the API endpoint"
7
+
6
8
  skip :authenticate
7
9
  on '--drop-default', 'delete stored default endpoint'
8
10
  on '--set-default', 'store endpoint as global default'
@@ -3,12 +3,14 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Help < Command
6
+ description "helps you out when in dire need of information"
7
+
6
8
  def run(command = nil)
7
9
  if command
8
10
  say CLI.command(command).new.help
9
11
  else
10
- say "Usage: #$0 COMMAND ...\n\nAvailable commands:\n\n"
11
- commands.each { |c| say "\t#{c.command_name}" }
12
+ say "Usage: travis COMMAND ...\n\nAvailable commands:\n\n"
13
+ commands.each { |c| say "\t#{color(c.command_name, :command).ljust(20)} #{color(c.description, :info)}" }
12
14
  say "\nrun `#$0 help COMMAND` for more infos"
13
15
  end
14
16
  end
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class History < RepoCommand
6
+ description "displays a projects build history"
7
+
6
8
  on('-a', '--after BUILD', 'Only show history after a given build number')
7
9
  on('-p', '--pull-request NUMBER', 'Only show history for the given Pull Request')
8
10
  on('-b', '--branch BRANCH', 'Only show history for the given branch')
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Init < Enable
6
+ description "generates a .travis.yml and enables the project"
7
+
6
8
  on('-f', '--force', 'override .travis.yml if it already exists')
7
9
  on('-k', '--skip-enable', 'do not enable project, only add .travis.yml')
8
10
  on('-p', '--print-conf', 'print generated config instead of writing to file')
@@ -23,7 +25,7 @@ module Travis
23
25
  attr_writer :travis_config
24
26
 
25
27
  def run(language = nil, file = '.travis.yml')
26
- error ".travis.yml already exists, use --force to override" if File.exist?(file) and not force? and not print_conf?
28
+ error "#{file} already exists, use --force to override" if File.exist?(file) and not force? and not print_conf?
27
29
  language ||= ask('Main programming language used: ') { |q| q.default = detect_language }
28
30
  self.travis_config = template(language).merge(custom_config)
29
31
 
@@ -5,6 +5,8 @@ require 'json'
5
5
  module Travis
6
6
  module CLI
7
7
  class Login < ApiCommand
8
+ description "authenticates against the API and stores the token"
9
+
8
10
  skip :authenticate
9
11
  attr_accessor :github_login, :github_password, :github_token, :callback
10
12
 
@@ -1,14 +1,31 @@
1
1
  require 'travis/cli'
2
2
  require 'travis/tools/safe_string'
3
+ require 'travis/tools/system'
3
4
 
4
5
  module Travis
5
6
  module CLI
6
7
  class Logs < RepoCommand
8
+ description "streams test logs"
9
+
10
+ def setup
11
+ super
12
+ check_websocket
13
+ end
14
+
7
15
  include Tools::SafeString
8
16
  def run(number = last_build.number)
9
17
  error "##{number} is not a job, try #{number}.1" unless job = job(number)
10
18
  job.log.body { |part| print interactive? ? encoded(part) : clean(part) }
11
19
  end
20
+
21
+ private
22
+
23
+ def check_websocket
24
+ require 'websocket-native'
25
+ rescue LoadError => e
26
+ raise e if e.respond_to?(:path) and e.path != 'websocket-native'
27
+ info "speed up log streaming by installing the websocket-native gem"
28
+ end
12
29
  end
13
30
  end
14
31
  end
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Monitor < ApiCommand
6
+ description "live monitor for what's going on"
7
+
6
8
  on('-m', '--my-repos', 'Only monitor my own repositories')
7
9
  on('-r', '--repo SLUG', 'monitor given repository (can be used more than once)') do |c, slug|
8
10
  c.repos << slug
@@ -4,6 +4,8 @@ require 'launchy'
4
4
  module Travis
5
5
  module CLI
6
6
  class Open < RepoCommand
7
+ description "opens a build or job in the browser"
8
+
7
9
  on('-g', '--github', 'Open the corresponding project, compare view or pull request on GitHub')
8
10
  on('-p', '--print', 'Print out the URL instead of opening it in a browser')
9
11
 
@@ -21,6 +23,7 @@ module Travis
21
23
  def url_for(number)
22
24
  return repo_url unless number
23
25
  entity = job(number) || build(number)
26
+ error "could not find job or build #{repository.slug}##{number}" unless entity
24
27
  github ? entity.commit.compare_url : "#{repo_url}/#{entity.class.many}/#{entity.id}"
25
28
  end
26
29
 
@@ -4,6 +4,7 @@ require 'travis/cli'
4
4
  module Travis
5
5
  module CLI
6
6
  class Pubkey < RepoCommand
7
+ description "prints out a repository's public key"
7
8
  on('-p', '--[no-]pem', 'encode in format used by pem')
8
9
 
9
10
  def run
@@ -4,6 +4,8 @@ require 'pp'
4
4
  module Travis
5
5
  module CLI
6
6
  class Raw < ApiCommand
7
+ description "makes an (authenticated) API call and prints out the result"
8
+
7
9
  skip :authenticate
8
10
  on('--[no-]json', 'display as json')
9
11
 
@@ -3,9 +3,12 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Restart < RepoCommand
6
+ description "restarts a build or job"
7
+
6
8
  def run(number = last_build.number)
7
9
  authenticate
8
10
  entity = job(number) || build(number)
11
+ error "could not find job or build #{repository.slug}##{number}" unless entity
9
12
  entity.restart
10
13
 
11
14
  say "restarted", "#{entity.class.one} ##{entity.number} has been %s"
@@ -1,9 +1,11 @@
1
1
  require 'travis/cli'
2
2
  require 'json'
3
+ require 'yaml'
3
4
 
4
5
  module Travis
5
6
  module CLI
6
7
  class Setup < RepoCommand
8
+ description "sets up an addon or deploy target"
7
9
  on('-f', '--force', 'override config section if it already exists')
8
10
 
9
11
  def run(service)
@@ -49,14 +51,16 @@ module Travis
49
51
 
50
52
  def setup_rubygems
51
53
  configure 'deploy', 'provider' => 'rubygems' do |config|
52
- rubygems_file = File.expand_path('.rubygems/authorization', ENV['HOME'])
53
-
54
- if File.exist? rubygems_file
55
- config['api_key'] = File.read(rubygems_file)
56
- end
54
+ authorization_file = File.expand_path('.rubygems/authorization', ENV['HOME'])
55
+ credentials_file = File.expand_path('.gem/credentials', ENV['HOME'])
57
56
 
57
+ config['api_key'] ||= File.read(authorization_file) if File.exist? authorization_file
58
+ config['api_key'] ||= YAML.load_file(credentials_file)[:rubygems_api_key] if File.exist? credentials_file
58
59
  config['api_key'] ||= ask("RubyGems API token: ") { |q| q.echo = "*" }.to_s
59
- config['on'] = { 'repo' => repository.slug } if agree("Deploy only from #{repository.slug}? ") { |q| q.default = 'yes' }
60
+ config['gem'] ||= ask("Gem name: ") { |q| q.default = repository.name }.to_s
61
+
62
+ on("Release only from #{repository.slug}? ", config, 'repo' => repository.slug)
63
+ on("Release only tagged commits? ", config, 'tags' => true)
60
64
  encrypt(config, 'api_key') if agree("Encrypt API key? ") { |q| q.default = 'yes' }
61
65
  end
62
66
  end
@@ -116,6 +120,12 @@ module Travis
116
120
 
117
121
  private
118
122
 
123
+ def on(question, config, condition)
124
+ return unless agree(question) { |q| q.default = 'yes' }
125
+ config['on'] ||= {}
126
+ config['on'].merge! condition
127
+ end
128
+
119
129
  def encrypt(config, key)
120
130
  encrypted = repository.encrypt(config.fetch(key))
121
131
  config[key] = { 'secure' => encrypted }
@@ -3,11 +3,13 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Show < RepoCommand
6
+ description "displays a build or job"
7
+
6
8
  def run(number = last_build.number)
7
9
  number = repository.branch(number).number if number !~ /^\d+(\.\d+)?$/ and repository.branch(number)
8
10
  entity = job(number) || build(number)
9
11
 
10
- error "unknown build or job #{number}" unless entity
12
+ error "could not find job or build #{repository.slug}##{number}" unless entity
11
13
 
12
14
  say template(__FILE__) % [
13
15
  entity.class.one.capitalize,
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Status < RepoCommand
6
+ description "checks status of the latest build"
7
+
6
8
  on '-x', '--[no-]exit-code', 'sets the exit code to 1 if the build failed'
7
9
  on '-q', '--[no-]quiet', 'does not print anything'
8
10
  on '-p', '--[no-]fail-pending', 'sets the status code to 1 if the build is pending'
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Sync < ApiCommand
6
+ description "triggers a new sync with GitHub"
7
+
6
8
  on '-c', '--check', 'only check the sync status'
7
9
  on '-b', '--background', 'will trigger sync but not block until sync is done'
8
10
  on '-f', '--force', 'will force sync, even if one is already running'
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Token < ApiCommand
6
+ description "outputs the secret API token"
7
+
6
8
  def run
7
9
  authenticate
8
10
  say access_token, "Your access token is %s"
@@ -4,6 +4,8 @@ require 'travis/version'
4
4
  module Travis
5
5
  module CLI
6
6
  class Version < Command
7
+ description "outputs the client version"
8
+
7
9
  def run
8
10
  say Travis::VERSION
9
11
  end
@@ -3,6 +3,7 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Whatsup < ApiCommand
6
+ description "lists most recent builds"
6
7
  on('-m', '--my-repos', 'Only display my own repositories')
7
8
 
8
9
  def run
@@ -3,6 +3,8 @@ require 'travis/cli'
3
3
  module Travis
4
4
  module CLI
5
5
  class Whoami < ApiCommand
6
+ description "outputs the current user"
7
+
6
8
  def run
7
9
  authenticate
8
10
  say user.login, "You are %s (#{user.name})"
@@ -2,7 +2,12 @@ require 'travis/client'
2
2
 
3
3
  require 'faraday'
4
4
  require 'faraday_middleware'
5
- require 'typhoeus/adapters/faraday'
5
+ require 'travis/tools/system'
6
+
7
+ begin
8
+ require 'typhoeus/adapters/faraday' unless Travis::Tools::System.windows?
9
+ rescue LoadError
10
+ end
6
11
 
7
12
  require 'json'
8
13
 
@@ -18,7 +23,7 @@ module Travis
18
23
  @cache = {}
19
24
  @instruments = []
20
25
  @config = nil
21
- @faraday_adapter = :typhoeus
26
+ @faraday_adapter = defined?(Typhoeus) ? :typhoeus : :net_http
22
27
 
23
28
  options = { :uri => options } unless options.respond_to? :each_pair
24
29
  options.each_pair { |key, value| public_send("#{key}=", value) }
@@ -0,0 +1,11 @@
1
+ module Travis
2
+ module Tools
3
+ module System
4
+ extend self
5
+
6
+ def windows?
7
+ File::ALT_SEPARATOR == "\\"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Travis
2
- VERSION = '1.5.2'
2
+ VERSION = '1.5.3'
3
3
  end
@@ -3,31 +3,31 @@ require 'spec_helper'
3
3
  describe Travis::CLI::Help do
4
4
  example "travis help" do
5
5
  run_cli('help').should be_success
6
- stdout.should start_with("Usage: #$0 COMMAND")
6
+ stdout.should include("Usage: travis COMMAND")
7
7
  end
8
8
 
9
9
  example "travis --help" do
10
10
  run_cli('--help').should be_success
11
- stdout.should start_with("Usage: #$0 COMMAND")
11
+ stdout.should include("Usage: travis COMMAND")
12
12
  end
13
13
 
14
14
  example "travis -h" do
15
15
  run_cli('-h').should be_success
16
- stdout.should start_with("Usage: #$0 COMMAND")
16
+ stdout.should include("Usage: travis COMMAND")
17
17
  end
18
18
 
19
19
  example "travis -?" do
20
20
  run_cli('-?').should be_success
21
- stdout.should start_with("Usage: #$0 COMMAND")
21
+ stdout.should include("Usage: travis COMMAND")
22
22
  end
23
23
 
24
24
  example "travis help endpoint" do
25
25
  run_cli('help', 'endpoint').should be_success
26
- stdout.should start_with("Usage: #$0 endpoint [options]")
26
+ stdout.should include("Usage: travis endpoint [options]")
27
27
  end
28
28
 
29
29
  example "travis endpoint --help" do
30
30
  run_cli('endpoint', '--help').should be_success
31
- stdout.should start_with("Usage: #$0 endpoint [options]")
31
+ stdout.should include("Usage: travis endpoint [options]")
32
32
  end
33
33
  end
@@ -1,12 +1,12 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Travis::CLI::Login do
4
- example "travis login", :unless => Travis::CLI.windows? do
4
+ example "travis login", :unless => Travis::Tools::System.windows? do
5
5
  run_cli('login') { |i| i.puts('rkh', 'password') }.should be_success
6
6
  run_cli('whoami').out.should be == "rkh\n"
7
7
  end
8
8
 
9
- example "travis login (with bad credentials)", :unless => Travis::CLI.windows? do
9
+ example "travis login (with bad credentials)", :unless => Travis::Tools::System.windows? do
10
10
  run_cli('login') { |i| i.puts('rkh', 'wrong password') }.should_not be_success
11
11
  run_cli('whoami').should_not be_success
12
12
  end
data/spec/spec_helper.rb CHANGED
@@ -25,7 +25,6 @@ RSpec.configure do |c|
25
25
  end
26
26
 
27
27
  c.after do
28
- ENV.delete_if { |k,v| k.start_with? "TRAVIS_" }
29
28
  FileUtils.rm_rf(temp_dir)
30
29
  end
31
30
  end
data/travis.gemspec CHANGED
@@ -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.2"
5
+ s.version = "1.5.3"
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"
@@ -130,6 +130,7 @@ Gem::Specification.new do |s|
130
130
  "lib/travis/pro.rb",
131
131
  "lib/travis/tools/formatter.rb",
132
132
  "lib/travis/tools/safe_string.rb",
133
+ "lib/travis/tools/system.rb",
133
134
  "lib/travis/tools/token_finder.rb",
134
135
  "lib/travis/version.rb",
135
136
  "spec/cli/cancel_spec.rb",
@@ -180,7 +181,6 @@ Gem::Specification.new do |s|
180
181
  s.add_dependency "pry", "~> 0.9"
181
182
  s.add_dependency "typhoeus", "~> 0.5"
182
183
  s.add_dependency "pusher-client", "~> 0.3", ">= 0.3.1"
183
- s.add_dependency "websocket-native", "~> 1.0"
184
184
  s.add_development_dependency "rspec", "~> 2.12"
185
185
  s.add_development_dependency "sinatra", "~> 1.3"
186
186
  s.add_development_dependency "rack-test", "~> 0.6"
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.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -24,7 +24,7 @@ authors:
24
24
  autorequire:
25
25
  bindir: bin
26
26
  cert_chain: []
27
- date: 2013-08-18 00:00:00.000000000 Z
27
+ date: 2013-08-22 00:00:00.000000000 Z
28
28
  dependencies:
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: faraday
@@ -172,20 +172,6 @@ dependencies:
172
172
  - - '>='
173
173
  - !ruby/object:Gem::Version
174
174
  version: 0.3.1
175
- - !ruby/object:Gem::Dependency
176
- name: websocket-native
177
- requirement: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ~>
180
- - !ruby/object:Gem::Version
181
- version: '1.0'
182
- type: :runtime
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - ~>
187
- - !ruby/object:Gem::Version
188
- version: '1.0'
189
175
  - !ruby/object:Gem::Dependency
190
176
  name: rspec
191
177
  requirement: !ruby/object:Gem::Requirement
@@ -329,6 +315,7 @@ files:
329
315
  - lib/travis/pro.rb
330
316
  - lib/travis/tools/formatter.rb
331
317
  - lib/travis/tools/safe_string.rb
318
+ - lib/travis/tools/system.rb
332
319
  - lib/travis/tools/token_finder.rb
333
320
  - lib/travis/version.rb
334
321
  - spec/cli/cancel_spec.rb