mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
Lock the ruby version
This commit is contained in:
parent
4fb38d55e5
commit
2323b6b2b4
3
Gemfile
3
Gemfile
@ -1,4 +1,5 @@
|
||||
source 'http://rubygems.org'
|
||||
source 'https://rubygems.org'
|
||||
ruby '2.2.2'
|
||||
|
||||
gem 'rake'
|
||||
gem 'rack'
|
||||
|
@ -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
|
||||
|
8
Rakefile
8
Rakefile
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user