Rakefile in jekyll-2.0.3 vs Rakefile in jekyll-2.1.0

- old
+ new

@@ -12,11 +12,11 @@ # Helper functions # ############################################################################# def name - @name ||= Dir['*.gemspec'].first.split('.').first + @name ||= File.basename(Dir['*.gemspec'].first, ".*") end def version Jekyll::VERSION end @@ -66,19 +66,12 @@ # # Standard tasks # ############################################################################# -if ENV["TRAVIS"] == "true" - require 'coveralls/rake/task' - Coveralls::RakeTask.new +task :default => [:test, :features] - task :default => [:test, :features, 'coveralls:push'] -else - task :default => [:test, :features] -end - require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true @@ -233,10 +226,11 @@ # # Packaging tasks # ############################################################################# +desc "Release #{name} v#{version}" task :release => :build do unless `git branch` =~ /^\* master$/ puts "You must be on the master branch to release!" exit! end @@ -245,9 +239,10 @@ sh "git push origin master" sh "git push origin v#{version}" sh "gem push pkg/#{name}-#{version}.gem" end +desc "Build #{name} v#{version} into pkg/" task :build do mkdir_p "pkg" sh "gem build #{gemspec_file}" sh "mv #{gem_file} pkg" end