stella 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/{README.txt → README.textile} +63 -40
- data/Rakefile +7 -5
- data/bin/stella +1 -1
- data/bin/stella.bat +12 -0
- data/lib/pcaplet.rb +180 -0
- data/lib/stella/adapter/ab.rb +57 -33
- data/lib/stella/adapter/base.rb +11 -1
- data/lib/stella/adapter/httperf.rb +13 -10
- data/lib/stella/adapter/pcap_watcher.rb +221 -0
- data/lib/stella/adapter/proxy_watcher.rb +76 -0
- data/lib/stella/adapter/siege.rb +28 -11
- data/lib/stella/cli/agents.rb +2 -2
- data/lib/stella/cli/base.rb +37 -1
- data/lib/stella/cli/localtest.rb +1 -2
- data/lib/stella/cli/sysinfo.rb +17 -0
- data/lib/stella/cli/watch.rb +278 -0
- data/lib/stella/cli.rb +23 -11
- data/lib/stella/command/base.rb +1 -10
- data/lib/stella/command/localtest.rb +43 -23
- data/lib/stella/data/domain.rb +75 -0
- data/lib/stella/data/http.rb +124 -0
- data/lib/stella/logger.rb +16 -5
- data/lib/stella/storable.rb +4 -2
- data/lib/stella/support.rb +71 -0
- data/lib/stella/sysinfo.rb +247 -0
- data/lib/stella/test/base.rb +5 -1
- data/lib/stella/test/definition.rb +1 -1
- data/lib/stella/test/run/summary.rb +14 -4
- data/lib/stella/text/resource.rb +0 -1
- data/lib/stella.rb +28 -10
- data/lib/utils/domainutil.rb +47 -0
- data/lib/utils/fileutil.rb +22 -3
- data/lib/utils/httputil.rb +184 -128
- data/lib/utils/mathutil.rb +20 -7
- data/lib/win32/Console/ANSI.rb +305 -0
- data/lib/win32/Console.rb +970 -0
- data/spec/show-agents_spec.rb +0 -0
- data/support/kvm.h +91 -0
- data/support/ruby-pcap-takuma-notes.txt +19 -0
- data/support/ruby-pcap-takuma-patch.txt +30 -0
- data/support/text/en.yaml +26 -3
- data/vendor/frylock/README.textile +72 -0
- data/vendor/frylock/bin/example +170 -0
- data/vendor/frylock/frylock.gemspec +18 -0
- data/vendor/frylock/lib/frylock/exceptions.rb +24 -0
- data/vendor/frylock/lib/frylock.rb +232 -0
- data/vendor/frylock/test/command_test.rb +33 -0
- data/vendor/hitimes-0.4.0/HISTORY +28 -0
- data/vendor/hitimes-0.4.0/LICENSE.txt +19 -0
- data/vendor/hitimes-0.4.0/README +80 -0
- data/vendor/hitimes-0.4.0/Rakefile +63 -0
- data/vendor/hitimes-0.4.0/examples/benchmarks.rb +86 -0
- data/vendor/hitimes-0.4.0/examples/stats.rb +29 -0
- data/vendor/hitimes-0.4.0/ext/extconf.rb +15 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_ext.c +21 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_instant_clock_gettime.c +20 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_instant_osx.c +16 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_instant_windows.c +27 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_interval.c +340 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_interval.h +73 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_stats.c +242 -0
- data/vendor/hitimes-0.4.0/ext/hitimes_stats.h +30 -0
- data/vendor/hitimes-0.4.0/ext/rbconfig-mingw.rb +178 -0
- data/vendor/hitimes-0.4.0/ext/rbconfig.rb +178 -0
- data/vendor/hitimes-0.4.0/gemspec.rb +54 -0
- data/vendor/hitimes-0.4.0/lib/hitimes/mutexed_stats.rb +23 -0
- data/vendor/hitimes-0.4.0/lib/hitimes/paths.rb +54 -0
- data/vendor/hitimes-0.4.0/lib/hitimes/stats.rb +29 -0
- data/vendor/hitimes-0.4.0/lib/hitimes/timer.rb +223 -0
- data/vendor/hitimes-0.4.0/lib/hitimes/version.rb +42 -0
- data/vendor/hitimes-0.4.0/lib/hitimes.rb +24 -0
- data/vendor/hitimes-0.4.0/spec/interval_spec.rb +115 -0
- data/vendor/hitimes-0.4.0/spec/mutex_stats_spec.rb +34 -0
- data/vendor/hitimes-0.4.0/spec/paths_spec.rb +14 -0
- data/vendor/hitimes-0.4.0/spec/spec_helper.rb +6 -0
- data/vendor/hitimes-0.4.0/spec/stats_spec.rb +72 -0
- data/vendor/hitimes-0.4.0/spec/timer_spec.rb +105 -0
- data/vendor/hitimes-0.4.0/spec/version_spec.rb +27 -0
- data/vendor/hitimes-0.4.0/tasks/announce.rake +39 -0
- data/vendor/hitimes-0.4.0/tasks/config.rb +107 -0
- data/vendor/hitimes-0.4.0/tasks/distribution.rake +53 -0
- data/vendor/hitimes-0.4.0/tasks/documentation.rake +33 -0
- data/vendor/hitimes-0.4.0/tasks/extension.rake +64 -0
- data/vendor/hitimes-0.4.0/tasks/rspec.rake +31 -0
- data/vendor/hitimes-0.4.0/tasks/rubyforge.rake +52 -0
- data/vendor/hitimes-0.4.0/tasks/utils.rb +80 -0
- data/vendor/useragent/lib/user_agent.rb +1 -1
- metadata +87 -8
@@ -0,0 +1,107 @@
|
|
1
|
+
require 'configuration'
|
2
|
+
|
3
|
+
require 'rake'
|
4
|
+
require 'tasks/utils'
|
5
|
+
|
6
|
+
#-----------------------------------------------------------------------
|
7
|
+
# General project configuration
|
8
|
+
#-----------------------------------------------------------------------
|
9
|
+
Configuration.for('project') {
|
10
|
+
name "hitimes"
|
11
|
+
version Hitimes::Version.to_s
|
12
|
+
author "Jeremy Hinegardner"
|
13
|
+
email "jeremy at copiousfreetime dot org"
|
14
|
+
homepage "http://copiousfreetime.rubyforge.org/hitimes/"
|
15
|
+
description Utils.section_of("README", "description")
|
16
|
+
summary description.split(".").first
|
17
|
+
history "HISTORY"
|
18
|
+
license FileList["LICENSE"]
|
19
|
+
readme "README"
|
20
|
+
}
|
21
|
+
|
22
|
+
#-----------------------------------------------------------------------
|
23
|
+
# Packaging
|
24
|
+
#-----------------------------------------------------------------------
|
25
|
+
Configuration.for('packaging') {
|
26
|
+
# files in the project
|
27
|
+
proj_conf = Configuration.for('project')
|
28
|
+
files {
|
29
|
+
bin FileList["bin/*"]
|
30
|
+
ext FileList["ext/*.{c,h,rb}"]
|
31
|
+
examples FileList["examples/*.rb"]
|
32
|
+
lib FileList["lib/**/*.rb"]
|
33
|
+
test FileList["spec/**/*.rb", "test/**/*.rb"]
|
34
|
+
data FileList["data/**/*"]
|
35
|
+
tasks FileList["tasks/**/*.r{ake,b}"]
|
36
|
+
rdoc FileList[proj_conf.readme, proj_conf.history,
|
37
|
+
proj_conf.license] + lib + FileList["ext/*.c"]
|
38
|
+
all bin + examples + ext + lib + test + data + rdoc + tasks + FileList["Rakefile"]
|
39
|
+
}
|
40
|
+
|
41
|
+
# ways to package the results
|
42
|
+
formats {
|
43
|
+
tgz true
|
44
|
+
zip true
|
45
|
+
rubygem Configuration::Table.has_key?('gem')
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
#-----------------------------------------------------------------------
|
50
|
+
# Gem packaging
|
51
|
+
#-----------------------------------------------------------------------
|
52
|
+
Configuration.for("gem") {
|
53
|
+
spec "gemspec.rb"
|
54
|
+
Configuration.for('packaging').files.all << spec
|
55
|
+
}
|
56
|
+
|
57
|
+
#-----------------------------------------------------------------------
|
58
|
+
# Testing
|
59
|
+
# - change mode to 'testunit' to use unit testing
|
60
|
+
#-----------------------------------------------------------------------
|
61
|
+
Configuration.for('test') {
|
62
|
+
mode "spec"
|
63
|
+
files Configuration.for("packaging").files.test
|
64
|
+
options %w[ --format specdoc --color ]
|
65
|
+
ruby_opts %w[ ]
|
66
|
+
}
|
67
|
+
|
68
|
+
#-----------------------------------------------------------------------
|
69
|
+
# Rcov
|
70
|
+
#-----------------------------------------------------------------------
|
71
|
+
Configuration.for('rcov') {
|
72
|
+
output_dir "coverage"
|
73
|
+
libs %w[ lib ]
|
74
|
+
rcov_opts %w[ --html ]
|
75
|
+
ruby_opts %w[ ]
|
76
|
+
test_files Configuration.for('packaging').files.test
|
77
|
+
}
|
78
|
+
|
79
|
+
#-----------------------------------------------------------------------
|
80
|
+
# Rdoc
|
81
|
+
#-----------------------------------------------------------------------
|
82
|
+
Configuration.for('rdoc') {
|
83
|
+
files Configuration.for('packaging').files.rdoc
|
84
|
+
main_page files.first
|
85
|
+
title Configuration.for('project').name
|
86
|
+
options %w[ --line-numbers --inline-source ]#-f darkfish ]
|
87
|
+
output_dir "doc"
|
88
|
+
}
|
89
|
+
|
90
|
+
#-----------------------------------------------------------------------
|
91
|
+
# Extension
|
92
|
+
#-----------------------------------------------------------------------
|
93
|
+
Configuration.for('extension') {
|
94
|
+
configs Configuration.for('packaging').files.ext.find_all { |x| %w[ mkrf_conf.rb extconf.rb ].include?(File.basename(x)) }
|
95
|
+
}
|
96
|
+
|
97
|
+
#-----------------------------------------------------------------------
|
98
|
+
# Rubyforge
|
99
|
+
#-----------------------------------------------------------------------
|
100
|
+
Configuration.for('rubyforge') {
|
101
|
+
project "copiousfreetime"
|
102
|
+
user "jjh"
|
103
|
+
host "rubyforge.org"
|
104
|
+
rdoc_location "#{user}@#{host}:/var/www/gforge-projects/#{project}/hitimes"
|
105
|
+
}
|
106
|
+
|
107
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'tasks/config'
|
2
|
+
|
3
|
+
#-------------------------------------------------------------------------------
|
4
|
+
# Distribution and Packaging
|
5
|
+
#-------------------------------------------------------------------------------
|
6
|
+
if pkg_config = Configuration.for_if_exist?("packaging") then
|
7
|
+
|
8
|
+
require 'gemspec'
|
9
|
+
require 'rake/gempackagetask'
|
10
|
+
require 'rake/contrib/sshpublisher'
|
11
|
+
|
12
|
+
namespace :dist do
|
13
|
+
|
14
|
+
Rake::GemPackageTask.new(Hitimes::GEM_SPEC) do |pkg|
|
15
|
+
pkg.need_tar = pkg_config.formats.tgz
|
16
|
+
pkg.need_zip = pkg_config.formats.zip
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Install as a gem"
|
20
|
+
task :install => [:clobber, :package] do
|
21
|
+
sh "sudo gem install pkg/#{Hitimes::GEM_SPEC.full_name}.gem"
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Uninstall gem"
|
25
|
+
task :uninstall do
|
26
|
+
sh "sudo gem uninstall -x #{Hitimes::GEM_SPEC.name}"
|
27
|
+
end
|
28
|
+
|
29
|
+
desc "dump gemspec"
|
30
|
+
task :gemspec do
|
31
|
+
puts Hitimes::GEM_SPEC.to_ruby
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "reinstall gem"
|
35
|
+
task :reinstall => [:uninstall, :repackage, :install]
|
36
|
+
|
37
|
+
desc "package up a windows gem"
|
38
|
+
task :package_win => "ext:build_win" do
|
39
|
+
cp "ext/hitimes_ext.so", "lib", :verbose => true
|
40
|
+
Gem::Builder.new( Hitimes::GEM_SPEC_WIN ).build
|
41
|
+
mv Dir["*.gem"].first, "pkg"
|
42
|
+
end
|
43
|
+
|
44
|
+
desc "distribute copiously"
|
45
|
+
task :copious => [:package, :package_win ] do
|
46
|
+
gems = Hitimes::SPECS.collect { |s| "#{s.full_name}.gem" }
|
47
|
+
Rake::SshFilePublisher.new('jeremy@copiousfreetime.org',
|
48
|
+
'/var/www/vhosts/www.copiousfreetime.org/htdocs/gems/gems',
|
49
|
+
'pkg', *gems).upload
|
50
|
+
sh "ssh jeremy@copiousfreetime.org rake -f /var/www/vhosts/www.copiousfreetime.org/htdocs/gems/Rakefile"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'tasks/config'
|
2
|
+
|
3
|
+
#-----------------------------------------------------------------------
|
4
|
+
# Documentation
|
5
|
+
#-----------------------------------------------------------------------
|
6
|
+
|
7
|
+
if rdoc_config = Configuration.for_if_exist?('rdoc') then
|
8
|
+
|
9
|
+
namespace :doc do
|
10
|
+
|
11
|
+
require 'rake/rdoctask'
|
12
|
+
#gem 'darkfish-rdoc'
|
13
|
+
#require 'darkfish-rdoc'
|
14
|
+
|
15
|
+
# generating documentation locally
|
16
|
+
Rake::RDocTask.new do |rdoc|
|
17
|
+
rdoc.rdoc_dir = rdoc_config.output_dir
|
18
|
+
rdoc.options = rdoc_config.options
|
19
|
+
rdoc.rdoc_files = rdoc_config.files.sort
|
20
|
+
rdoc.title = rdoc_config.title
|
21
|
+
rdoc.main = rdoc_config.main_page
|
22
|
+
end
|
23
|
+
|
24
|
+
if rubyforge_config = Configuration.for_if_exist?('rubyforge') then
|
25
|
+
desc "Deploy the RDoc documentation to #{rubyforge_config.rdoc_location}"
|
26
|
+
task :deploy => :rerdoc do
|
27
|
+
sh "rsync -zav --delete #{rdoc_config.output_dir}/ #{rubyforge_config.rdoc_location}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'tasks/config'
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
#-----------------------------------------------------------------------
|
5
|
+
# Extensions
|
6
|
+
#-----------------------------------------------------------------------
|
7
|
+
|
8
|
+
if ext_config = Configuration.for_if_exist?('extension') then
|
9
|
+
namespace :ext do
|
10
|
+
desc "Build the extension(s)"
|
11
|
+
task :build do
|
12
|
+
Hitimes::GEM_SPEC.extensions.each do |extension|
|
13
|
+
path = Pathname.new(extension)
|
14
|
+
parts = path.split
|
15
|
+
conf = parts.last
|
16
|
+
Dir.chdir(path.dirname) do |d|
|
17
|
+
ruby conf.to_s
|
18
|
+
#sh "rake default"
|
19
|
+
sh "make"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Build the extension for windows"
|
25
|
+
task :build_win => :clobber do
|
26
|
+
Hitimes::GEM_SPEC.extensions.each do |extension|
|
27
|
+
path = Pathname.new(extension)
|
28
|
+
parts = path.split
|
29
|
+
conf = parts.last
|
30
|
+
Dir.chdir(path.dirname) do |d|
|
31
|
+
cp "rbconfig-mingw.rb", "rbconfig.rb"
|
32
|
+
sh "ruby -I. extconf.rb"
|
33
|
+
sh "make"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
task :clean do
|
39
|
+
ext_config.configs.each do |extension|
|
40
|
+
path = Pathname.new(extension)
|
41
|
+
parts = path.split
|
42
|
+
conf = parts.last
|
43
|
+
Dir.chdir(path.dirname) do |d|
|
44
|
+
#sh "rake clean"
|
45
|
+
sh "make clean"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
task :clobber do
|
51
|
+
ext_config.configs.each do |extension|
|
52
|
+
path = Pathname.new(extension)
|
53
|
+
parts = path.split
|
54
|
+
conf = parts.last
|
55
|
+
Dir.chdir(path.dirname) do |d|
|
56
|
+
#sh "rake clobber"
|
57
|
+
if File.exist?( "Makefile" ) then
|
58
|
+
sh "make distclean"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
|
2
|
+
require 'tasks/config'
|
3
|
+
|
4
|
+
#--------------------------------------------------------------------------------
|
5
|
+
# configuration for running rspec. This shows up as the test:default task
|
6
|
+
#--------------------------------------------------------------------------------
|
7
|
+
if spec_config = Configuration.for_if_exist?("test") then
|
8
|
+
if spec_config.mode == "spec" then
|
9
|
+
namespace :test do
|
10
|
+
|
11
|
+
task :default => :spec
|
12
|
+
|
13
|
+
require 'spec/rake/spectask'
|
14
|
+
Spec::Rake::SpecTask.new do |r|
|
15
|
+
r.ruby_opts = spec_config.ruby_opts
|
16
|
+
r.libs = [ Hitimes::Paths.lib_path,
|
17
|
+
Hitimes::Paths.root_dir ]
|
18
|
+
r.spec_files = spec_config.files
|
19
|
+
r.spec_opts = spec_config.options
|
20
|
+
|
21
|
+
if rcov_config = Configuration.for_if_exist?('rcov') then
|
22
|
+
r.rcov = true
|
23
|
+
r.rcov_dir = rcov_config.output_dir
|
24
|
+
r.rcov_opts = rcov_config.rcov_opts
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
task :spec => "ext:build"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'tasks/config'
|
2
|
+
|
3
|
+
#-----------------------------------------------------------------------
|
4
|
+
# Rubyforge additions to the task library
|
5
|
+
#-----------------------------------------------------------------------
|
6
|
+
if rf_conf = Configuration.for_if_exist?("rubyforge") then
|
7
|
+
|
8
|
+
abort("rubyforge gem not installed 'gem install rubyforge'") unless Utils.try_require('rubyforge')
|
9
|
+
|
10
|
+
proj_conf = Configuration.for('project')
|
11
|
+
|
12
|
+
namespace :dist do
|
13
|
+
desc "Release files to rubyforge"
|
14
|
+
task :rubyforge => [:clean, :package, :package_win] do
|
15
|
+
|
16
|
+
rubyforge = RubyForge.new
|
17
|
+
|
18
|
+
config = {}
|
19
|
+
config["release_notes"] = proj_conf.description
|
20
|
+
config["release_changes"] = Utils.release_notes_from(proj_conf.history)[Hitimes::VERSION]
|
21
|
+
config["Prefomatted"] = true
|
22
|
+
|
23
|
+
|
24
|
+
rubyforge.configure config
|
25
|
+
|
26
|
+
# make sure this release doesn't already exist
|
27
|
+
releases = rubyforge.autoconfig['release_ids']
|
28
|
+
if releases.has_key?(Hitimes::GEM_SPEC.name) and releases[Hitimes::GEM_SPEC.name][Hitimes::VERSION] then
|
29
|
+
abort("Release #{Hitimes::VERSION} already exists! Unable to release.")
|
30
|
+
end
|
31
|
+
|
32
|
+
puts "Uploading to rubyforge..."
|
33
|
+
files = FileList[File.join("pkg","#{Hitimes::GEM_SPEC.name}-#{Hitimes::VERSION}*.*")].to_a
|
34
|
+
rubyforge.login
|
35
|
+
rubyforge.add_release(Hitimes::GEM_SPEC.rubyforge_project, Hitimes::GEM_SPEC.name, Hitimes::VERSION, *files)
|
36
|
+
puts "done."
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
namespace :announce do
|
41
|
+
desc "Post news of #{proj_conf.name} to #{rf_conf.project} on rubyforge"
|
42
|
+
task :rubyforge do
|
43
|
+
info = Utils.announcement
|
44
|
+
rubyforge = RubyForge.new
|
45
|
+
rubyforge.configure
|
46
|
+
rubyforge.login
|
47
|
+
rubyforge.post_news(rf_conf.project, info[:subject], "#{info[:title]}\n\n#{info[:urls]}\n\n#{info[:release_notes]}")
|
48
|
+
puts "Posted to rubyforge"
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'hitimes/version'
|
2
|
+
|
3
|
+
#-------------------------------------------------------------------------------
|
4
|
+
# Additions to the Configuration class that are useful
|
5
|
+
#-------------------------------------------------------------------------------
|
6
|
+
class Configuration
|
7
|
+
class << self
|
8
|
+
def exist?( name )
|
9
|
+
Configuration::Table.has_key?( name )
|
10
|
+
end
|
11
|
+
|
12
|
+
def for_if_exist?( name )
|
13
|
+
if self.exist?( name ) then
|
14
|
+
self.for( name )
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
#-------------------------------------------------------------------------------
|
21
|
+
# some useful utilitiy methods for the tasks
|
22
|
+
#-------------------------------------------------------------------------------
|
23
|
+
module Utils
|
24
|
+
class << self
|
25
|
+
|
26
|
+
# Try to load the given _library_ using the built-in require, but do not
|
27
|
+
# raise a LoadError if unsuccessful. Returns +true+ if the _library_ was
|
28
|
+
# successfully loaded; returns +false+ otherwise.
|
29
|
+
#
|
30
|
+
def try_require( lib )
|
31
|
+
require lib
|
32
|
+
true
|
33
|
+
rescue LoadError
|
34
|
+
false
|
35
|
+
end
|
36
|
+
|
37
|
+
# partition an rdoc file into sections, and return the text of the section
|
38
|
+
# given.
|
39
|
+
def section_of(file, section_name)
|
40
|
+
File.read(file).split(/^(?==)/).each do |section|
|
41
|
+
lines = section.split("\n")
|
42
|
+
return lines[1..-1].join("\n").strip if lines.first =~ /#{section_name}/i
|
43
|
+
end
|
44
|
+
nil
|
45
|
+
end
|
46
|
+
|
47
|
+
# Get an array of all the changes in the application for a particular
|
48
|
+
# release. This is done by looking in the history file and grabbing the
|
49
|
+
# information for the most recent release. The history file is assumed to
|
50
|
+
# be in RDoc format and version release are 2nd tier sections separated by
|
51
|
+
# '== Version X.Y.Z'
|
52
|
+
#
|
53
|
+
# returns:: A hash of notes keyed by version number
|
54
|
+
#
|
55
|
+
def release_notes_from(history_file)
|
56
|
+
releases = {}
|
57
|
+
File.read(history_file).split(/^(?=== Version)/).each do |section|
|
58
|
+
lines = section.split("\n")
|
59
|
+
md = %r{Version ((\w+\.)+\w+)}.match(lines.first)
|
60
|
+
next unless md
|
61
|
+
releases[md[1]] = lines[1..-1].join("\n").strip
|
62
|
+
end
|
63
|
+
return releases
|
64
|
+
end
|
65
|
+
|
66
|
+
# return a hash of useful information for the latest release
|
67
|
+
# urls, subject, title, description and latest release notes
|
68
|
+
#
|
69
|
+
def announcement
|
70
|
+
cfg = Configuration.for("project")
|
71
|
+
{
|
72
|
+
:subject => "#{cfg.name} #{Hitimes::VERSION} Released",
|
73
|
+
:title => "#{cfg.name} version #{Hitimes::VERSION} has been released.",
|
74
|
+
:urls => "#{cfg.homepage}",
|
75
|
+
:description => "#{cfg.description.rstrip}",
|
76
|
+
:release_notes => Utils.release_notes_from(cfg.history)[Hitimes::VERSION].rstrip
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end # << self
|
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.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
@@ -9,11 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-07 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: rspec
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
@@ -22,7 +23,8 @@ dependencies:
|
|
22
23
|
version: "0"
|
23
24
|
version:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
|
-
name:
|
26
|
+
name: net-dns
|
27
|
+
type: :runtime
|
26
28
|
version_requirement:
|
27
29
|
version_requirements: !ruby/object:Gem::Requirement
|
28
30
|
requirements:
|
@@ -34,32 +36,43 @@ description: Run Apache Bench, Siege, or httperf tests in batches and aggregate
|
|
34
36
|
email: delano@solutious.com
|
35
37
|
executables:
|
36
38
|
- stella
|
39
|
+
- stella.bat
|
37
40
|
extensions: []
|
38
41
|
|
39
42
|
extra_rdoc_files:
|
40
|
-
- README.
|
43
|
+
- README.textile
|
41
44
|
files:
|
42
45
|
- Rakefile
|
43
46
|
- bin/stella
|
47
|
+
- bin/stella.bat
|
48
|
+
- lib/pcaplet.rb
|
44
49
|
- lib/stella
|
45
50
|
- lib/stella/adapter
|
46
51
|
- lib/stella/adapter/ab.rb
|
47
52
|
- lib/stella/adapter/base.rb
|
48
53
|
- lib/stella/adapter/httperf.rb
|
54
|
+
- lib/stella/adapter/pcap_watcher.rb
|
55
|
+
- lib/stella/adapter/proxy_watcher.rb
|
49
56
|
- lib/stella/adapter/siege.rb
|
50
57
|
- lib/stella/cli
|
51
58
|
- lib/stella/cli/agents.rb
|
52
59
|
- lib/stella/cli/base.rb
|
53
60
|
- lib/stella/cli/language.rb
|
54
61
|
- lib/stella/cli/localtest.rb
|
62
|
+
- lib/stella/cli/sysinfo.rb
|
63
|
+
- lib/stella/cli/watch.rb
|
55
64
|
- lib/stella/cli.rb
|
56
65
|
- lib/stella/command
|
57
66
|
- lib/stella/command/base.rb
|
58
67
|
- lib/stella/command/localtest.rb
|
68
|
+
- lib/stella/data
|
69
|
+
- lib/stella/data/domain.rb
|
70
|
+
- lib/stella/data/http.rb
|
59
71
|
- lib/stella/logger.rb
|
60
72
|
- lib/stella/response.rb
|
61
73
|
- lib/stella/storable.rb
|
62
74
|
- lib/stella/support.rb
|
75
|
+
- lib/stella/sysinfo.rb
|
63
76
|
- lib/stella/test
|
64
77
|
- lib/stella/test/base.rb
|
65
78
|
- lib/stella/test/definition.rb
|
@@ -72,16 +85,82 @@ files:
|
|
72
85
|
- lib/stella.rb
|
73
86
|
- lib/utils
|
74
87
|
- lib/utils/crypto-key.rb
|
88
|
+
- lib/utils/domainutil.rb
|
75
89
|
- lib/utils/escape.rb
|
76
90
|
- lib/utils/fileutil.rb
|
77
91
|
- lib/utils/httputil.rb
|
78
92
|
- lib/utils/mathutil.rb
|
79
93
|
- lib/utils/textgraph.rb
|
80
94
|
- lib/utils/timerutil.rb
|
95
|
+
- lib/win32
|
96
|
+
- lib/win32/Console
|
97
|
+
- lib/win32/Console/ANSI.rb
|
98
|
+
- lib/win32/Console.rb
|
99
|
+
- spec/show-agents_spec.rb
|
100
|
+
- support/kvm.h
|
101
|
+
- support/ruby-pcap-takuma-notes.txt
|
102
|
+
- support/ruby-pcap-takuma-patch.txt
|
81
103
|
- support/text
|
82
104
|
- support/text/en.yaml
|
83
105
|
- support/text/nl.yaml
|
84
106
|
- support/useragents.txt
|
107
|
+
- vendor/frylock
|
108
|
+
- vendor/frylock/bin
|
109
|
+
- vendor/frylock/bin/example
|
110
|
+
- vendor/frylock/frylock.gemspec
|
111
|
+
- vendor/frylock/lib
|
112
|
+
- vendor/frylock/lib/frylock
|
113
|
+
- vendor/frylock/lib/frylock/exceptions.rb
|
114
|
+
- vendor/frylock/lib/frylock.rb
|
115
|
+
- vendor/frylock/README.textile
|
116
|
+
- vendor/frylock/test
|
117
|
+
- vendor/frylock/test/command_test.rb
|
118
|
+
- vendor/hitimes-0.4.0
|
119
|
+
- vendor/hitimes-0.4.0/examples
|
120
|
+
- vendor/hitimes-0.4.0/examples/benchmarks.rb
|
121
|
+
- vendor/hitimes-0.4.0/examples/stats.rb
|
122
|
+
- vendor/hitimes-0.4.0/ext
|
123
|
+
- vendor/hitimes-0.4.0/ext/extconf.rb
|
124
|
+
- vendor/hitimes-0.4.0/ext/hitimes_ext.c
|
125
|
+
- vendor/hitimes-0.4.0/ext/hitimes_instant_clock_gettime.c
|
126
|
+
- vendor/hitimes-0.4.0/ext/hitimes_instant_osx.c
|
127
|
+
- vendor/hitimes-0.4.0/ext/hitimes_instant_windows.c
|
128
|
+
- vendor/hitimes-0.4.0/ext/hitimes_interval.c
|
129
|
+
- vendor/hitimes-0.4.0/ext/hitimes_interval.h
|
130
|
+
- vendor/hitimes-0.4.0/ext/hitimes_stats.c
|
131
|
+
- vendor/hitimes-0.4.0/ext/hitimes_stats.h
|
132
|
+
- vendor/hitimes-0.4.0/ext/rbconfig-mingw.rb
|
133
|
+
- vendor/hitimes-0.4.0/ext/rbconfig.rb
|
134
|
+
- vendor/hitimes-0.4.0/gemspec.rb
|
135
|
+
- vendor/hitimes-0.4.0/HISTORY
|
136
|
+
- vendor/hitimes-0.4.0/lib
|
137
|
+
- vendor/hitimes-0.4.0/lib/hitimes
|
138
|
+
- vendor/hitimes-0.4.0/lib/hitimes/mutexed_stats.rb
|
139
|
+
- vendor/hitimes-0.4.0/lib/hitimes/paths.rb
|
140
|
+
- vendor/hitimes-0.4.0/lib/hitimes/stats.rb
|
141
|
+
- vendor/hitimes-0.4.0/lib/hitimes/timer.rb
|
142
|
+
- vendor/hitimes-0.4.0/lib/hitimes/version.rb
|
143
|
+
- vendor/hitimes-0.4.0/lib/hitimes.rb
|
144
|
+
- vendor/hitimes-0.4.0/LICENSE.txt
|
145
|
+
- vendor/hitimes-0.4.0/Rakefile
|
146
|
+
- vendor/hitimes-0.4.0/README
|
147
|
+
- vendor/hitimes-0.4.0/spec
|
148
|
+
- vendor/hitimes-0.4.0/spec/interval_spec.rb
|
149
|
+
- vendor/hitimes-0.4.0/spec/mutex_stats_spec.rb
|
150
|
+
- vendor/hitimes-0.4.0/spec/paths_spec.rb
|
151
|
+
- vendor/hitimes-0.4.0/spec/spec_helper.rb
|
152
|
+
- vendor/hitimes-0.4.0/spec/stats_spec.rb
|
153
|
+
- vendor/hitimes-0.4.0/spec/timer_spec.rb
|
154
|
+
- vendor/hitimes-0.4.0/spec/version_spec.rb
|
155
|
+
- vendor/hitimes-0.4.0/tasks
|
156
|
+
- vendor/hitimes-0.4.0/tasks/announce.rake
|
157
|
+
- vendor/hitimes-0.4.0/tasks/config.rb
|
158
|
+
- vendor/hitimes-0.4.0/tasks/distribution.rake
|
159
|
+
- vendor/hitimes-0.4.0/tasks/documentation.rake
|
160
|
+
- vendor/hitimes-0.4.0/tasks/extension.rake
|
161
|
+
- vendor/hitimes-0.4.0/tasks/rspec.rake
|
162
|
+
- vendor/hitimes-0.4.0/tasks/rubyforge.rake
|
163
|
+
- vendor/hitimes-0.4.0/tasks/utils.rb
|
85
164
|
- vendor/useragent
|
86
165
|
- vendor/useragent/init.rb
|
87
166
|
- vendor/useragent/lib
|
@@ -108,7 +187,7 @@ files:
|
|
108
187
|
- vendor/useragent/spec/spec_helper.rb
|
109
188
|
- vendor/useragent/spec/user_agent_spec.rb
|
110
189
|
- vendor/useragent/useragent.gemspec
|
111
|
-
- README.
|
190
|
+
- README.textile
|
112
191
|
has_rdoc: true
|
113
192
|
homepage: http://stella.solutious.com/
|
114
193
|
post_install_message:
|
@@ -131,9 +210,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
210
|
requirements: []
|
132
211
|
|
133
212
|
rubyforge_project: stella
|
134
|
-
rubygems_version: 1.0
|
213
|
+
rubygems_version: 1.2.0
|
135
214
|
signing_key:
|
136
215
|
specification_version: 2
|
137
|
-
summary:
|
216
|
+
summary: Your friend in performance testing.
|
138
217
|
test_files: []
|
139
218
|
|