lib/librarian/specfile.rb in librarian-0.1.0.beta.1 vs lib/librarian/specfile.rb in librarian-0.1.0
- old
+ new
@@ -1,17 +1,19 @@
+require "pathname"
+
module Librarian
class Specfile
attr_accessor :environment, :path
private :environment=, :path=
def initialize(environment, path)
self.environment = environment
- self.path = path
+ self.path = Pathname(path)
end
def read(precache_sources = [])
- environment.dsl(path.read, precache_sources)
+ environment.dsl(path, precache_sources)
end
end
end