lib/arli/library/single_version.rb in arli-1.1.0 vs lib/arli/library/single_version.rb in arli-1.2.1

- old
+ new

@@ -10,18 +10,22 @@ # and decorates with a few additional helpers. class SingleVersion attr_accessor :lib, :lib_dir, :canonical_dir, - :config, - :headers_only + :config + # Additional attributes that can be set via Arlifile + attr_accessor :headers_only, + :depends + def initialize(lib, config: Arli.config) self.lib = lib self.config = config self.lib_dir = lib.name.gsub(/ /, '_') self.headers_only = false + self.depends = nil end def install installer.install end @@ -54,10 +58,10 @@ Dir.exist?(path) end def inspect <<-EOF -Library: #{lib.name} (#{lib.url}), only headers? #{headers_only ? 'YES': 'NO'} +Library: #{lib.name} (#{lib.url}), only headers? #{headers_only ? 'YES' : 'NO'} EOF end def method_missing(method, *args, &block) if lib && lib.respond_to?(method)