Rakefile in jekyll-1.5.1 vs Rakefile in jekyll-2.0.0.alpha.1
- old
+ new
@@ -82,11 +82,11 @@
#
# Standard tasks
#
#############################################################################
-if RUBY_VERSION > '1.9' && ENV["TRAVIS"] == "true"
+if ENV["TRAVIS"] == "true"
require 'coveralls/rake/task'
Coveralls::RakeTask.new
task :default => [:test, :features, 'coveralls:push']
else
@@ -154,11 +154,11 @@
end
end
desc "Update normalize.css library to the latest version and minify"
task :update_normalize_css do
- Dir.chdir("site/css") do
+ Dir.chdir("site/_includes/css") do
sh 'curl "http://necolas.github.io/normalize.css/latest/normalize.css" -o "normalize.scss"'
sh 'sass "normalize.scss":"normalize.css" --style compressed'
sh 'rm "normalize.scss"'
end
end
@@ -167,11 +167,11 @@
task :publish => [:history] do
# Ensure the gh-pages dir exists so we can generate into it.
puts "Checking for gh-pages dir..."
unless File.exist?("./gh-pages")
puts "No gh-pages directory found. Run the following commands first:"
- puts " `git clone git@github.com:mojombo/jekyll gh-pages"
+ puts " `git clone git@github.com:jekyll/jekyll gh-pages"
puts " `cd gh-pages"
puts " `git checkout gh-pages`"
exit(1)
end
@@ -250,11 +250,11 @@
# Packaging tasks
#
#############################################################################
task :release => :build do
- unless `git branch` =~ /^(\* master|\* v1-stable)$/
- puts "You must be on the master branch or the v1-stable branch to release!"
+ unless `git branch` =~ /^\* master$/
+ puts "You must be on the master branch to release!"
exit!
end
sh "git commit --allow-empty -m 'Release #{version}'"
sh "git tag v#{version}"
sh "git push origin master"