lib/ratch/metadata/release.rb in ratch-0.4.0 vs lib/ratch/metadata/release.rb in ratch-0.4.1

- old
+ new

@@ -32,14 +32,10 @@ # Name of release package. attr_accessor :name - validate "name is required" do - name - end - # Version number. attr_accessor :version validate "version is required" do @@ -67,15 +63,15 @@ attr_accessor :codename # - ROLLRC_FILE = '{.,meta/}{roll}{.rc,rc,}' + ROLL_FILE = '{,meta/}*.roll' # Load release information. def self.load - file = Dir.glob(ROLLRC_FILE, File::FNM_CASEFOLD).first + file = Dir.glob(ROLL_FILE, File::FNM_CASEFOLD).first if file Release.new(parse_rollrc(File.open(file))) else raise LoadError, "release file required -- #{RELEASE_FILE}" end