Sha256: 9b3ce4d0acd304e8f1a9b8feb751672903b9aa47b9229ab2b9fdac3d2317e4d5

Contents?: true

Size: 659 Bytes

Versions: 27

Compression:

Stored size: 659 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

    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

27 entries across 27 versions & 1 rubygems

Version Path
lookbook-0.7.4 lib/tasks/lookbook_tasks.rake
lookbook-0.7.3 lib/tasks/lookbook_tasks.rake
lookbook-0.7.2 lib/tasks/lookbook_tasks.rake
lookbook-0.7.2.beta.5 lib/tasks/lookbook_tasks.rake
lookbook-0.7.2.beta.4 lib/tasks/lookbook_tasks.rake
lookbook-0.7.2.beta.3 lib/tasks/lookbook_tasks.rake
lookbook-0.7.2.beta.2 lib/tasks/lookbook_tasks.rake
lookbook-0.7.2.beta.1 lib/tasks/lookbook_tasks.rake
lookbook-0.7.2.beta.0 lib/tasks/lookbook_tasks.rake
lookbook-0.7.1 lib/tasks/lookbook_tasks.rake
lookbook-0.7.0 lib/tasks/lookbook_tasks.rake
lookbook-0.6.1 lib/tasks/lookbook_tasks.rake
lookbook-0.6.0 lib/tasks/lookbook_tasks.rake
lookbook-0.5.2 lib/tasks/lookbook_tasks.rake
lookbook-0.5.1 lib/tasks/lookbook_tasks.rake
lookbook-0.5.0 lib/tasks/lookbook_tasks.rake
lookbook-0.5.0.beta.2 lib/tasks/lookbook_tasks.rake
lookbook-0.5.0.beta.1 lib/tasks/lookbook_tasks.rake
lookbook-0.5.0.beta.0 lib/tasks/lookbook_tasks.rake
lookbook-0.4.8 lib/tasks/lookbook_tasks.rake