Permalink
Browse files

check_deps ensures that these gems are installed

  • Loading branch information...
1 parent 9ced212 commit 00666018695cd9f8af9b02c4247b5dc9983954df @tenderlove tenderlove committed Jan 24, 2011
Showing with 4 additions and 12 deletions.
  1. +4 −12 Rakefile
View
@@ -142,21 +142,13 @@ namespace :gem do
end
file GENERATED_PARSER => "lib/nokogiri/css/parser.y" do |t|
- begin
- racc = Config::CONFIG['target_os'] =~ /mswin32/ ? '' : `which racc`.strip
- racc = "#{::Config::CONFIG['bindir']}/racc" if racc.empty?
- sh "#{racc} -l -o #{t.name} #{t.prerequisites.first}"
- rescue
- abort "need racc, sudo gem install racc"
- end
+ racc = Config::CONFIG['target_os'] =~ /mswin32/ ? '' : `which racc`.strip
+ racc = "#{::Config::CONFIG['bindir']}/racc" if racc.empty?
+ sh "#{racc} -l -o #{t.name} #{t.prerequisites.first}"
end
file GENERATED_TOKENIZER => "lib/nokogiri/css/tokenizer.rex" do |t|
- begin
- sh "rex --independent -o #{t.name} #{t.prerequisites.first}"
- rescue
- abort "need rexical, sudo gem install rexical"
- end
+ sh "rex --independent -o #{t.name} #{t.prerequisites.first}"
end
require 'tasks/test'

0 comments on commit 0066601

Please sign in to comment.