lib/tryouts.rb in tryouts-0.4.0 vs lib/tryouts.rb in tryouts-0.4.1

- old
+ new

@@ -28,28 +28,35 @@ class Exception < RuntimeError; end # = BadDreams # Raised when there is a problem loading or parsing a Tryouts::Drill::Dream object class BadDreams < Exception; end - VERSION = "0.4.0" + VERSION = "0.4.1" require 'tryouts/mixins' require 'tryouts/tryout' require 'tryouts/drill' require 'tryouts/orderedhash' HASH_TYPE = (RUBY_VERSION =~ /1.9/) ? ::Hash : Tryouts::OrderedHash TRYOUT_MSG = "\n %s " - DRILL_MSG = ' %30s: ' - DRILL_ERR = ' %s: ' + DRILL_MSG = ' %-50s ' + DRILL_ERR = ' %s: ' # An Array of +_tryouts.rb+ file paths that have been loaded. @@loaded_files = [] # An Hash of Tryouts instances stored under the name of the Tryouts subclass. @@instances = HASH_TYPE.new + # An instance of SysInfo + @@sysinfo = SysInfo.new + # Returns +@@instances+ + def self.instances; @@instances; end + # Returns +@@sysinfo+ + def self.sysinfo; @@sysinfo; end + # The name of this group of Tryout objects attr_accessor :group # A Symbol representing the default drill type. One of: :cli, :api attr_accessor :dtype # An Array of file paths which populated this instance of Tryouts @@ -64,12 +71,9 @@ attr_accessor :command # A Symbol representing the name of the library taking part in the tryouts. For @dtype :api only. attr_accessor :library # The name of the most recent dreams group (see self.dream) attr_accessor :dream_pointer - - # Returns +@@instances+ - def self.instances; @@instances; end def initialize(group=nil) @group = group || "Default Group" @tryouts = HASH_TYPE.new @paths = []