lib/ore/defaults.rb in ore-0.1.3 vs lib/ore/defaults.rb in ore-0.1.4
- old
+ new
@@ -2,10 +2,14 @@
require 'ore/versions'
require 'date'
module Ore
+ #
+ # A mixin for {Project} which provides methods for assigning default
+ # values to project attributes.
+ #
module Defaults
include Naming
# The default require-paths
@@require_paths = [@@lib_dir, @@ext_dir]
@@ -41,10 +45,10 @@
Versions::VersionFile.find(self) ||
Versions::VersionConstant.find(self)
)
unless @version
- #raise(InvalidMetadata,"no version file or constant in #{@root}")
+ raise(InvalidMetadata,"no version file or constant in #{@root}")
end
end
#
# Sets the release date of the project.