lib/tryouts.rb in tryouts-0.6.1 vs lib/tryouts.rb in tryouts-0.6.2
- old
+ new
@@ -27,11 +27,11 @@
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.6.1"
+ VERSION = "0.6.2"
require 'tryouts/mixins'
require 'tryouts/tryout'
require 'tryouts/drill'
@@ -39,11 +39,11 @@
HASH_TYPE = (RUBY_VERSION =~ /1.9/) ? ::Hash : Tryouts::OrderedHash
TRYOUT_MSG = "\n %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
@@ -84,10 +84,10 @@
@paths = []
@command = nil
end
# Populate this Tryouts from a block. The block should contain calls to
- # the external DSL methods: tryout, command, dreams
+ # the external DSL methods: tryout, command, library, group
def from_block(b, &inline)
instance_eval &b
end
# Execute Tryout#report for each Tryout in +@tryouts+