Sha256: d29c31031bd5730883ad9bbb97cb81242fa8982ec68a6cd79a40dc9e0a03bcd8

Contents?: true

Size: 1.51 KB

Versions: 21

Compression:

Stored size: 1.51 KB

Contents

$:.unshift File.expand_path("../lib", __FILE__)

require 'rubygems'
require 'rake'
require 'jumpstart'

# Runs all tests
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/test_*.rb'
  test.verbose = true
end

namespace :deploy do
    
  desc "Commits changes to local git repo and then pushes to remote"
  task :git do
    git_actions
  end
    
  desc "Builds gemspec and deploys gem to RubyGems.org"
  task :gem do
    rubygems_actions
  end
  
end

namespace :bump do
  
  desc "Bumps major version number by 1"
  task :major do
    JumpStart.bump_version_major
    git_actions
    rubygems_actions
  end

  desc "Bumps minor version number by 1"
  task :minor do
    JumpStart.bump_version_minor
    git_actions
    rubygems_actions
  end

  desc "Bumps patch version number by 1"
  task :patch do
    JumpStart.bump_version_patch
    git_actions
    rubygems_actions
  end
  
end

task :version do
  puts "\nJumpStart Version: #{JumpStart::VERSION}"
end

task :existing_templates do
  puts "\n Existing JumpStart templates:"
  puts JumpStart.existing_templates
end

def git_actions
  Dir.chdir("#{JumpStart::ROOT_PATH}")
  system "git add ."
  system "git commit -v -a -m 'commit for version: #{JumpStart.version}'"
  system "git tag #{JumpStart.version}"
  system "git push"
  system "git push --tags"
end

def rubygems_actions
  Dir.chdir("#{JumpStart::ROOT_PATH}")
  system "gem build jumpstart.gemspec"
  system "gem push jumpstart-#{JumpStart.version}.gem"      
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
jumpstart-0.6.3 Rakefile
jumpstart-0.6.2 Rakefile
jumpstart-0.6.1 Rakefile
jumpstart-0.6.0 Rakefile
jumpstart-0.5.4 Rakefile
jumpstart-0.5.3 Rakefile
jumpstart-0.5.2 Rakefile
jumpstart-0.5.1 Rakefile
jumpstart-0.5.0 Rakefile
jumpstart-0.4.0 Rakefile
jumpstart-0.3.9 Rakefile
jumpstart-0.3.8 Rakefile
jumpstart-0.3.7 Rakefile
jumpstart-0.3.6 Rakefile
jumpstart-0.3.5 Rakefile
jumpstart-0.3.4 Rakefile
jumpstart-0.3.3 Rakefile
jumpstart-0.3.2 Rakefile
jumpstart-0.3.1 Rakefile
jumpstart-0.3.0 Rakefile