Sha256: 5b9023ead592a20b601b24871c9ee662799d1a3e19377e3ac7364d23747d00d3

Contents?: true

Size: 995 Bytes

Versions: 29

Compression:

Stored size: 995 Bytes

Contents

require 'bundler/setup'
Bundler.require

desc 'Default: run spec tests.'
task :default => :spec

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = Dir.glob(['spec/sitemap_generator/**/*'])
  spec.rspec_opts = ['--backtrace']
end

#
# Helpers
#

def name;         @name ||= Dir['*.gemspec'].first.split('.').first end
def version;      File.read('VERSION').chomp end
def gemspec_file; "#{name}.gemspec" end
def gem_file;     "#{name}-#{version}.gem" end

#
# Release Tasks
# @see https://github.com/mojombo/rakegem
#

desc "Create tag v#{version}, build the gem and push to Git"
task :release => :build do
  unless `git branch` =~ /^\* master$/
    puts "You must be on the master branch to release!"
    exit!
  end
  sh "git tag v#{version}"
  sh "git push origin master --tags"
end

desc "Build #{gem_file} into the pkg/ directory"
task :build do
  sh "mkdir -p pkg"
  sh "gem build #{gemspec_file}"
  sh "mv #{gem_file} pkg"
  sh "bundle --local"
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
sitemap_generator-5.2.0 Rakefile
sitemap_generator-5.1.0 Rakefile
sitemap_generator-5.0.5 Rakefile
ftbpro_sitemap_generator-5.0.8 Rakefile
sitemap_generator_ftbpro-5.0.6 Rakefile
sitemap_generator_ftbpro-5.0.5 Rakefile
sitemap_generator_ftbpro-5.0.4 Rakefile
sitemap_generator-5.0.4 Rakefile
sitemap_generator-5.0.3 Rakefile
sitemap_generator-5.0.2 Rakefile
sitemap_generator-5.0.1 Rakefile
sitemap_generator-5.0.0 Rakefile
sitemap_generator-5.0.0.beta1 Rakefile
sitemap_generator-5.0.0.beta Rakefile
sitemap_generator-4.3.1 Rakefile
sitemap_generator-4.3.0 Rakefile
sitemap_generator-4.2.0 Rakefile
sitemap_generator-4.1.1 Rakefile
sitemap_generator-4.1.0 Rakefile
sitemap_generator-4.0.1 Rakefile