Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 624 Bytes
#!/usr/bin/env rake
require "bundler/gem_tasks"
require File.expand_path('../lib/introjs-rails/source_file', __FILE__)
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'introjs-rails/version'
task default: :update
desc "Update library"
task :update do
files = SourceFile.new
files.fetch
end
task gem: :build
task :build do
system "gem build introjs-rails.gemspec"
end
task release: :build do
version = Introjs::Rails::VERSION
system "git tag -a v#{version} -m 'Tagging #{version}'"
system "git push --tags"
system "gem push introjs-#{version}.gem"
system "rm introjs-#{version}.gem"
end