lib/rant/rantvar.rb in rant-0.4.4 vs lib/rant/rantvar.rb in rant-0.4.6

- old
+ new

@@ -14,20 +14,18 @@ # 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.4.4' + VERSION = '0.4.6' # Those are the filenames for rantfiles. # Case matters! - RANTFILES = [ "Rantfile", - "rantfile", - "Rantfile.rb", - "rantfile.rb" - ] - SUB_RANTFILES = ["subrant"] + ROOT_RANTFILE = "root.rant" + SUB_RANTFILE = "sub.rant" + RANTFILES = [ "Rantfile", "rantfile", ROOT_RANTFILE ] + DEPRECATED_RANTFILES = [ "Rantfile.rb", "rantfile.rb" ] # 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/". @@ -37,11 +35,11 @@ end class RantDoneException < StandardError end - class RantError < StandardError + class Error < StandardError end # This module is a namespace for generator classes. module Generators end @@ -125,10 +123,10 @@ end end # module MetaUtils module RantVar - class Error < RantError + class Error < Rant::Error end class ConstraintError < Error attr_reader :constraint, :val