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.1.3 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.1.2 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.1.1 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.1.0 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.38 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.37 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.36 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.35 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.33 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.32 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.31 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.30 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.29 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.28 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.26 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.25 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.24 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.23 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.22 lib/fedux_org/stdlib/rake/version/show.rb
fedux_org-stdlib-0.0.21 lib/fedux_org/stdlib/rake/version/show.rb