Sha256: a7b4c0e94e455c485e30864058dc2447d6bf9fd70a6fb68dbc982704e0989478
Contents?: true
Size: 988 Bytes
Versions: 1
Compression:
Stored size: 988 Bytes
Contents
module Rake module Funnel module Support module AssemblyVersion class FromVersionFiles include Rake::Funnel::Support include Enumerable attr_reader :search_pattern, :metadata def initialize(args = {}) @search_pattern = args[:search_pattern] || %w(**/VERSION) @metadata = args[:metadata] end def each block_given? || (return enum_for(__method__)) files.each do |file| $stderr.print("Reading #{file}\n") version_info = VersionInfo.parse( version: VersionInfo.read_version_from(file), metadata: metadata ) yield({ source: file, version_info: version_info }) end end private def files Finder.new(search_pattern, self, 'No version files found.').all_or_default end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rake-funnel-0.22.2 | lib/rake/funnel/support/assembly_version/from_version_files.rb |