GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
rescue for specific LoadError in Rakefile
automatthew (author)
Fri Jul 11 18:24:24 -0700 2008
commit  3c15a5c7a4682e2da86469f1f2f12627dcc85f5c
tree    84c20430d5d75933423617d31b990c698d2f5145
parent  2f309641638de8cbeda33be0ecb15846c36f7109
...
1
2
3
4
5
 
 
 
 
 
 
 
6
7
8
...
1
2
3
 
 
4
5
6
7
8
9
10
11
12
13
0
@@ -1,8 +1,13 @@
0
 begin
0
   $: << 'lib'; %w( rubygems rake/testtask rake/rdoctask rake/gempackagetask extensions/all
0
     utilities/string utilities/symbol date).each { |dep| require dep }
0
-rescue
0
- puts "Better do `rake setup` to get all the fancies you're missing"
0
+rescue LoadError => e
0
+ if e.message == 'no such file to load -- extensions/all'
0
+ puts "Better do `rake setup` to get all the fancies you're missing"
0
+ puts
0
+ else
0
+ raise e
0
+ end
0
 end
0
 
0
 gem = Gem::Specification.new do |gem|

Comments

    No one has commented yet.