stella 2.1.0.001 → 2.1.1.001

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.txt CHANGED
@@ -1,5 +1,9 @@
1
1
  STELLA, CHANGES
2
2
 
3
+ #### 2.1.1 (2011-07-06) ###############################
4
+
5
+ * ADDED: Append more info URI to CLI output for remote checkups
6
+
3
7
  #### 2.1.0 (2011-07-06) ###############################
4
8
 
5
9
  * FIXED: Different CLI output when a testplan is specified
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  :MAJOR: 2
2
2
  :MINOR: 1
3
- :PATCH: 0
3
+ :PATCH: 1
4
4
  :BUILD: '001'
data/lib/stella/api.rb CHANGED
@@ -26,6 +26,11 @@ class Stella
26
26
  opts[:body] = params || {}
27
27
  execute_request :post, path, opts
28
28
  end
29
+ def site_uri path
30
+ uri = Addressable::URI.parse self.class.base_uri
31
+ uri.path = uri_path(path)
32
+ uri.to_s
33
+ end
29
34
  private
30
35
  def uri_path *args
31
36
  args.unshift '' # force leading slash
data/lib/stella/cli.rb CHANGED
@@ -32,6 +32,10 @@ class Stella::CLI < Drydock::Command
32
32
  raise "Running a testplan remotely isn't supported yet (soon!)" if @global.testplan
33
33
  @api = Stella::API.new @global.account, @global.key
34
34
  ret = @api.post :checkup, :uri => base_uri
35
+ if ret && ret[:runid]
36
+ shortid = ret[:runid].slice 0, 11
37
+ @more_info = @api.site_uri "/checkup/#{shortid}"
38
+ end
35
39
  pp @api.response if Stella.debug
36
40
  if @api.response.code >= 400
37
41
  raise Stella::API::Unauthorized if @api.response.code == 401
@@ -41,10 +45,8 @@ class Stella::CLI < Drydock::Command
41
45
  begin
42
46
  run_hash = @api.get "/checkup/#{ret[:runid]}"
43
47
  @run = Stella::Testrun.from_hash run_hash if run_hash
44
- STDERR.print '.' unless Stella.quiet?
45
48
  sleep 1 if @run && !@run.done?
46
49
  end while @run && !@run.done?
47
- STDERR.puts unless Stella.quiet?
48
50
  else
49
51
  if @global.testplan
50
52
  unless File.owned?(@global.testplan)
@@ -87,8 +89,9 @@ class Stella::CLI < Drydock::Command
87
89
  metrics.response_time.mean*1000,
88
90
  metrics.socket_connect.mean*1000,
89
91
  metrics.first_byte.mean*1000,
90
- metrics.last_byte.mean*1000]
91
- Stella.li "[%3s] %6.2fms (%5.2fms + %5.2fms + %5.2fms)" % args
92
+ metrics.last_byte.mean*1000,
93
+ @more_info]
94
+ Stella.li "[%3s] %7.2fms (%5.2fms + %6.2fms + %6.2fms) %s" % args
92
95
  if @global.verbose > 0 || @report.errors?
93
96
  Stella.li ''
94
97
  Stella.li ' Headers:'
data/stella.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{stella}
8
- s.version = "2.1.0.001"
8
+ s.version = "2.1.1.001"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Delano Mandelbaum"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: stella
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.0.001
5
+ version: 2.1.1.001
6
6
  platform: ruby
7
7
  authors:
8
8
  - Delano Mandelbaum