SpecParser API update.
parent
a207e47ce5
commit
2eb87bdf25
|
@ -250,7 +250,7 @@ class Package::Context
|
|||
end
|
||||
|
||||
def read_configuration(filename : String)
|
||||
specs = SpecParser.parse(filename)
|
||||
specs = SpecParser.parse(File.read(filename))
|
||||
|
||||
specs.assignments.each do |key, value|
|
||||
case key
|
||||
|
|
|
@ -91,7 +91,7 @@ class Package::Recipe
|
|||
end
|
||||
|
||||
def initialize(@context, filename : String)
|
||||
specs = SpecParser.parse filename, {
|
||||
specs = SpecParser.parse File.read(filename), {
|
||||
"pkg" => fake_root_directory,
|
||||
"prefix" => prefix
|
||||
}
|
||||
|
|
Reference in New Issue