Sha256: 738615dd18068cfb3e7108411a487152471ebf18c34b10a2b7f218433827fc24
Contents?: true
Size: 854 Bytes
Versions: 6
Compression:
Stored size: 854 Bytes
Contents
require_relative "../lookbook" namespace :lookbook do namespace :previews do desc "Preparse the previews" task :preparse => :environment do Lookbook::Engine.parser.parse puts "Lookbook preview parsing complete" end end 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 desc "Build Gem and push to RubyGems" task :build_and_push do sh("rake build && gem push pkg/lookbook-#{Lookbook::VERSION}.gem") end end end
Version data entries
6 entries across 6 versions & 1 rubygems