Sha256: 54150e168dad5c31d0cb9463a6c67f179ea9c0977f5116836113124fbf8bee63
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
require_relative "../lookbook" namespace :lookbook do desc "Run the rspec tests" task :test do sh "bundle exec rspec" end namespace :test do desc "Start a server to view the test app" task :serve do sh "bundle exec rackup" end end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.0.0.rc.2 | lib/tasks/lookbook_tasks.rake |
lookbook-1.0.0.rc.1 | lib/tasks/lookbook_tasks.rake |
lookbook-1.0.0.beta.8 | lib/tasks/lookbook_tasks.rake |