lib/stella.rb in stella-0.5.3 vs lib/stella.rb in stella-0.5.4
- old
+ new
@@ -1,28 +1,37 @@
-$: << File.join(STELLA_HOME, 'vendor', 'useragent', 'lib')
-
require 'date'
-require 'open3'
+require 'time'
+require 'tempfile'
+require 'socket'
# Common utilities
+require 'utils/domainutil'
require 'utils/httputil'
-require 'utils/crypto-key'
require 'utils/fileutil'
require 'utils/mathutil'
require 'utils/escape'
# Common dependencies
+$: << File.join(STELLA_HOME, 'vendor', 'useragent', 'lib')
+require 'user_agent'
+
+# Common Stella dependencies
require 'stella/support'
require 'stella/storable'
-require 'user_agent'
-# Common objects
+# Common Stella Data Objects
+require 'stella/data/http'
+require 'stella/data/domain'
+
+# Common Stella objects
require 'stella/text'
+
require 'stella/logger'
require 'stella/response'
+require 'stella/sysinfo'
require 'stella/test/definition'
require 'stella/test/run/summary'
require 'stella/test/summary'
# Commands
@@ -36,23 +45,32 @@
require 'stella/adapter/httperf'
# = Stella
# A friend in performance testing.
#
+# This class ties Stella together. It must be required because it defines
+# several constants which are used througout the other classes. +SYSINFO+
+# is particularly important because it detects the platform and requires
+# platform specific modules.
module Stella
- LOGGER = Stella::Logger.new(:debug=>false)
- TEXT = Stella::Text.new('en')
+ # Autodetecets information about the local system,
+ # including OS (unix), implementation (freebsd), and architecture (x64)
+ SYSINFO = Stella::SystemInfo.new unless defined? SYSINFO
+ # A global logger for info, error, and debug messages.
+ LOGGER = Stella::Logger.new(:debug=>true) unless defined? LOGGER
+ # A global resource for all interface text.
+ TEXT = Stella::Text.new('en') unless defined? TEXT
module VERSION #:nodoc:
MAJOR = 0.freeze unless defined? MAJOR
MINOR = 5.freeze unless defined? MINOR
- TINY = 3.freeze unless defined? TINY
+ TINY = 4.freeze unless defined? TINY
def self.to_s
[MAJOR, MINOR, TINY].join('.')
end
def self.to_f
self.to_s.to_f
end
end
-
+
end