Improving the handling of missing dependencies.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@75 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
parent
f92c552460
commit
9114d45e53
|
@ -12,6 +12,14 @@ $LOAD_PATH.unshift(lib_dir)
|
||||||
$LOAD_PATH.uniq!
|
$LOAD_PATH.uniq!
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
begin
|
||||||
|
gem 'rack', '= 1.2.0'
|
||||||
|
require 'rack'
|
||||||
|
rescue LoadError
|
||||||
|
STDERR.puts "Missing dependencies."
|
||||||
|
STDERR.puts "sudo gem install rack -v 1.2.0"
|
||||||
|
exit(1)
|
||||||
|
end
|
||||||
begin
|
begin
|
||||||
require 'sinatra'
|
require 'sinatra'
|
||||||
require 'liquid'
|
require 'liquid'
|
||||||
|
|
|
@ -26,6 +26,8 @@ namespace :gem do
|
||||||
s.add_runtime_dependency('extlib', '>= 0.9.15')
|
s.add_runtime_dependency('extlib', '>= 0.9.15')
|
||||||
|
|
||||||
s.add_development_dependency('rack', '= 1.2.0')
|
s.add_development_dependency('rack', '= 1.2.0')
|
||||||
|
s.add_development_dependency('sinatra', '>= 1.0')
|
||||||
|
s.add_development_dependency('liquid', '>= 2.2.2')
|
||||||
s.add_development_dependency('rake', '>= 0.7.3')
|
s.add_development_dependency('rake', '>= 0.7.3')
|
||||||
s.add_development_dependency('rspec', '~> 1.2.9')
|
s.add_development_dependency('rspec', '~> 1.2.9')
|
||||||
s.add_development_dependency('launchy', '>= 0.3.2')
|
s.add_development_dependency('launchy', '>= 0.3.2')
|
||||||
|
|
Loading…
Reference in New Issue