Sha256: dacbe322165a7fc2697e7e45c6193adadbe2c24c49b8709479bd93c069e5bf3c
Contents?: true
Size: 386 Bytes
Versions: 28
Compression:
Stored size: 386 Bytes
Contents
require_relative 'base' namespace :version do desc 'show version of library' task :show do raw_version = File.open(version_file, "r").readlines.grep(/VERSION/).first if raw_version version = raw_version.chomp.match(/VERSION\s+=\s+["']([^'"]+)["']/) { $1 } puts version else warn "Could not parse version file \"#{version_file}\"" end end end
Version data entries
28 entries across 28 versions & 1 rubygems