Sha256: 440a42c25c45a2273e9b7040b38d215d6a58fdc43ea0325350c80833d9189502

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require 'rake'
require 'fileutils'
require 'zlib'

gem_name = 'use_tinymce'

# snarf gemspec and set version
gem_spec = eval File.new("#{gem_name}.gemspec").read
gem_version = gem_spec.version.to_s
tinymce_version = Dir.new('./assets/').map { |x| $1 if x =~ /tinymce_(.*).zip/ }.select {|x| x }.max
gem_zip = "#{gem_name}_#{gem_version}.zip"
gem_tgz = "#{gem_name}_#{gem_version}.tgz"

task :default => :test

desc "Run ManageMeta unit tests"
task :test do
  require "./test/#{gem_name}_base_test"
end

desc "run rdoc to create doc"
task :doc do
  system 'rdoc'
end

desc "build gem"
task :gem do
  system "gem build #{gem_name}.gemspec"
end

desc "commit changes"
task :commit do
  system 'git add .'
  system "git commit -m \"checkin version #{gem_version}\""
end

desc "commit changes and tag as #{gem_version}"
task :tag => :commit do
  system "git tag #{gem_version}"
end

desc "push to github"
task :git_push  do
  system 'git push'
end

desc "push to rubygems"
task :gem_push => :gem do
  system "gem push #{gem_name}-#{gem_version}.gem"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
use_tinymce-0.0.2 Rakefile