lib/bolt/puppetfile/module.rb in bolt-2.29.0 vs lib/bolt/puppetfile/module.rb in bolt-2.30.0

- old
+ new

@@ -11,11 +11,11 @@ attr_reader :owner, :name, :version def initialize(owner, name, version = nil) @owner = owner @name = name - @version = version + @version = version unless version == :latest end # Creates a new module from a hash. # def self.from_hash(mod) @@ -36,9 +36,10 @@ # Returns the module's title. # def title "#{@owner}-#{@name}" end + alias to_s title # Checks two modules for equality. # def eql?(other) self.class == other.class &&