stella 0.8.2.001 → 0.8.2.002

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.txt CHANGED
@@ -14,6 +14,7 @@ STELLA, CHANGES
14
14
  #### 0.8.2 (2010-03-05) ###############################
15
15
 
16
16
  * FIXED: Misc issues with usage via module (Stella::Engine.load)
17
+ * FIXED: ANSI code method stubs only created when Drydock not available
17
18
  * CHANGE: Remove all logs except summary and exceptions
18
19
  * CHANGE: Renamed .stella/logs/latest/request-exceptions to .stella/logs/latest/exceptions
19
20
  * CHANGE: Removed unused Load implementations and renamed LoadQueue to Load
@@ -22,6 +23,7 @@ STELLA, CHANGES
22
23
  * CHANGE: Cleaned up generate mode CLI output
23
24
  * CHANGE: Removed no-logging option
24
25
  * CHANGE: Renamed Testrun#summary to Testrun#stats
26
+ * CHANGE: Pass entire URI when calling Testplan#new
25
27
  * ADDED: JSON statistics log (.stella/logs/latest/stats)
26
28
 
27
29
 
data/Rakefile CHANGED
@@ -1,12 +1,18 @@
1
1
  require "rubygems"
2
2
  require "rake"
3
- require "rake/rdoctask"
4
3
  require "rake/clean"
5
4
  require 'yaml'
6
5
 
6
+ begin
7
+ require 'hanna/rdoctask'
8
+ rescue LoadError
9
+ require 'rake/rdoctask'
10
+ end
11
+
7
12
  config = YAML.load_file("VERSION.yml")
8
13
  task :default => ["build"]
9
- CLEAN.include [ 'pkg', 'doc', 'rdoc', 'coverage*' ]
14
+ CLEAN.include [ 'pkg', 'doc' ]
15
+ name = "stella"
10
16
 
11
17
  begin
12
18
  require "jeweler"
@@ -37,7 +43,7 @@ end
37
43
 
38
44
  Rake::RDocTask.new do |rdoc|
39
45
  version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}.#{config[:BUILD]}"
40
- rdoc.rdoc_dir = "rdoc"
46
+ rdoc.rdoc_dir = "doc"
41
47
  rdoc.title = "stella #{version}"
42
48
  rdoc.rdoc_files.include("README*")
43
49
  rdoc.rdoc_files.include("LICENSE.txt")
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :MAJOR: 0
3
3
  :MINOR: 8
4
4
  :PATCH: 2
5
- :BUILD: '001'
5
+ :BUILD: '002'
data/lib/stella/common.rb CHANGED
@@ -7,20 +7,15 @@ $KCODE = "u" if RUBY_VERSION =~ /^1.8/
7
7
 
8
8
  class String
9
9
 
10
- def colour(*args)
10
+ def drydock_stub(*args)
11
11
  self
12
12
  end
13
13
 
14
- def color(*args)
15
- self
16
- end
17
-
18
- def att(*args)
19
- self
20
- end
21
-
22
- def bright(*args)
23
- self
14
+ unless method_defined? :color
15
+ alias_method :att, :drydock_stub
16
+ alias_method :bright, :drydock_stub
17
+ alias_method :color, :drydock_stub
18
+ alias_method :colour, :drydock_stub
24
19
  end
25
20
 
26
21
  def in_seconds
@@ -53,10 +53,7 @@ class Testplan < Storable
53
53
  usecase = Stella::Testplan::Usecase.new
54
54
  usecase.ratio = 1.0
55
55
  uris.each do |uri|
56
- uri = 'http://' << uri unless uri.match /^http:\/\//i
57
- uri = URI.parse uri
58
- uri.path = '/' if uri.path.nil? || uri.path.empty?
59
- req = usecase.add_request :get, uri.path
56
+ req = usecase.add_request :get, uri
60
57
  end
61
58
  self.add_usecase usecase
62
59
  end
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 = "0.8.2.001"
8
+ s.version = "0.8.2.002"
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"]
@@ -2,11 +2,11 @@
2
2
 
3
3
  require 'stella'
4
4
 
5
- Stella.enable_quiet
6
-
7
- plan = Stella::Testplan.new('/')
5
+ #Stella.enable_quiet
6
+ Stella.stdout.lev = 3
7
+ plan = Stella::Testplan.new('http://localhost:3114/search')
8
8
  opts = {
9
- :hosts => 'http://localhost:3114',
9
+ :hosts => '',
10
10
  :clients => 100,
11
11
  #:duration => 10
12
12
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stella
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2.001
4
+ version: 0.8.2.002
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum