lib/rant/rantvar.rb in rant-0.3.6 vs lib/rant/rantvar.rb in rant-0.3.8
- old
+ new
@@ -14,19 +14,20 @@
# thus it acts as a namespace.
#
# If you're looking for general info about Rant, read the
# README[link:files/README.html].
module Rant
- VERSION = '0.3.6'
+ VERSION = '0.3.8'
# Those are the filenames for rantfiles.
# Case matters!
RANTFILES = [ "Rantfile",
"rantfile",
"Rantfile.rb",
- "rantfile.rb",
+ "rantfile.rb"
]
+ SUB_RANTFILES = ["subrant"]
# Names of plugins and imports for which code was loaded.
# Files that where loaded with the `import' commant are directly
# added; files loaded with the `plugin' command are prefixed with
# "plugin/".
@@ -39,13 +40,10 @@
end
class RantError < StandardError
end
- class RantfileException < RantError
- end
-
# This module is a namespace for generator classes.
module Generators
end
module RantVar
@@ -166,10 +164,10 @@
def get_factory id
if String === id || Symbol === id
begin
id = Constraints.const_get(id)
rescue
- raise NotAConstraintFactoryError.new(ct), caller
+ raise NotAConstraintFactoryError.new(id), caller
end
end
unless id.respond_to? :rant_constraint
raise NotAConstraintFactoryError.new(id), caller
end