Sha256: f5959245a212abf58e078d4e0a77e88e164b87fb8f5cf32cb11dc645a2cd51cf
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
# encoding: utf-8 require 'rubygems' require 'bundler' require "rake" require "rspec" require "rspec/core/rake_task" $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) require "hanzi_to_pinyin" module TempFixForRakeLastComment def last_comment last_description end end Rake::Application.send :include, TempFixForRakeLastComment begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end task :build do system "gem build hanzi_to_pinyin.gemspec" end task :install => :build do system "sudo gem install hanzi_to_pinyin-#{HanziToPinyin::VERSION}.gem" end task :release => :build do puts "Tagging #{HanziToPinyin::VERSION}..." system "git tag -a #{HanziToPinyin::VERSION} -m 'Tagging #{HanziToPinyin::VERSION}'" puts "Pushing to Github..." system "git push --tags" puts "Pushing to rubygems.org..." system "gem push hanzi_to_pinyin-#{HanziToPinyin::VERSION}.gem" end Rspec::Core::RakeTask.new(:spec) do |spec| spec.pattern = "spec/**/*_spec.rb" end Rspec::Core::RakeTask.new('spec:progress') do |spec| spec.rspec_opts = %w(--format progress) spec.pattern = "spec/**/*_spec.rb" end task :default => :spec task :test => :spec
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanzi_to_pinyin-2.0.1 | Rakefile |
hanzi_to_pinyin-2.0.0 | Rakefile |