require 'rubygems' require 'bundler' require "bundler_geminabox/gem_tasks" begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e warn e.message warn 'Run `bundle install` to install missing gems' exit e.status_code end require 'rake' require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options gem.name = 'trop' gem.homepage = 'http://gitlab.wfschmitt.net/rails/trop' gem.license = 'MIT' gem.summary = %(trop is troppuS) gem.description = %(trop is support) gem.email = 'wfschmittx@gmail.com' gem.authors = ['werner'] gem.files = %w[LICENSE.txt README.rdoc Gemfile Rakefile VERSION lib/trop.rb lib/trop/version.rb] # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end desc 'Code coverage detail' task :simplecov do ENV['COVERAGE'] = 'true' Rake::Task['test'].execute end task default: :test task :next do Rake::Task['version:bump:patch'].invoke Rake::Task['gemspec'].invoke Rake::Task[:clobber].invoke `git save` Rake::Task['release'].invoke Rake::Task[:build].invoke end task :release do `gem save` `gem push origin master` end