Lock the ruby version

This commit is contained in:
Hampton Catlin 2015-11-27 13:19:49 -08:00
parent 4fb38d55e5
commit 2323b6b2b4
3 changed files with 7 additions and 10 deletions

View File

@ -1,4 +1,5 @@
source 'http://rubygems.org'
source 'https://rubygems.org'
ruby '2.2.2'
gem 'rake'
gem 'rack'

View File

@ -1,5 +1,5 @@
GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
activesupport (4.2.4)
i18n (~> 0.7)
@ -161,7 +161,6 @@ PLATFORMS
ruby
DEPENDENCIES
activesupport
breakpoint (~> 2.5.0)
builder (~> 3.2.2)
middleman (~> 3.4.0)
@ -179,3 +178,6 @@ DEPENDENCIES
typogruby (~> 1.0.18)
tzinfo-data (~> 1.2015.6)
wdm (~> 0.1.0)
BUNDLED WITH
1.10.6

View File

@ -45,7 +45,7 @@ task :middleman do
end
desc "Build the site."
task :build => [:check_ruby_version, :import_sass, :middleman]
task :build => [:import_sass, :middleman]
task :check_ready_to_deploy do
if `git config remote.heroku.url`.strip != "git@heroku.com:sass-lang.git"
@ -55,12 +55,6 @@ task :check_ready_to_deploy do
end
end
task :check_ruby_version do
if RUBY_VERSION[0].to_i < 2
fail "Ruby 2 is required"
end
end
task :upload do
sh %{git branch -D built-for-heroku} rescue nil
sh %{git checkout -b built-for-heroku}