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

Version Path
fedux_org-stdlib-0.0.20 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.19 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.17 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.16 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.14 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.13 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.12 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.11 lib/fedux_org/stdlib/rake/version/show.rb