Sha256: 7192a87e24c9042e5e7231c84df4f4bfeb6875854deae5bba688caed311a8036
Contents?: true
Size: 507 Bytes
Versions: 4
Compression:
Stored size: 507 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", "").tr("-", ".") file = File.open(filename) contents = file.read File.write(filename, contents.gsub(current_version, new_version)) end end end
Version data entries
4 entries across 4 versions & 1 rubygems