lib/skippy/library.rb in skippy-0.4.1.a vs lib/skippy/library.rb in skippy-0.4.2.a
- old
+ new
@@ -26,11 +26,13 @@
def initialize(path, source: nil)
# TODO: Rename LibrarySource - it also contain requirement.
@path = Pathname.new(path)
raise LibraryNotFoundError, @path.to_s unless @path.directory?
raise LibraryNotFoundError, config_file.to_s unless config_file.exist?
+
@config = Skippy::Config.load(config_file)
raise LibraryNotFoundError, 'Not a Skippy Library' unless @config[:library]
+
@source = source
end
def <=>(other)
# TODO: This isn't taking into account version. Maybe take that into account