Sha256: 2969903ddaa3e0afc18a221bfa3950d891646d9980da92e1611541925088881a

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

require_relative "../lookbook"

namespace :lookbook do
  namespace :release do
    desc "Bump the Lookbook engine version number"
    task :bump_version, [:version] do |t, args|
      filename = Lookbook::Engine.root.join("lib/lookbook/version.rb")
      current_version = Lookbook::VERSION.to_s
      new_version = args[:version].sub("v", "")
      file = File.open(filename)
      contents = file.read
      File.write(filename, contents.gsub(current_version, new_version))
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lookbook-0.2.4 lib/tasks/lookbook_tasks.rake
lookbook-0.2.3 lib/tasks/lookbook_tasks.rake
lookbook-0.2.2 lib/tasks/lookbook_tasks.rake
lookbook-0.2.1 lib/tasks/lookbook_tasks.rake
lookbook-0.2.0 lib/tasks/lookbook_tasks.rake