public
Description: a ruby-to-pyc compiler
Clone URL: git://github.com/why/unholy.git
Search Repo:
 * lib/unholy/pyasm.rb: warning if you have no ruby 1.9.
why (author)
Mon May 05 11:15:26 -0700 2008
commit  7ff70885df568be45997640f65415915231a46a2
tree    8241ea9dc5de15ecf076354f3184cd47b11d419d
parent  ba5195ba609b71c23bf52969ec02763924d6a8ae
...
277
278
279
280
281
 
 
 
 
 
 
 
282
283
284
...
277
278
279
 
 
280
281
282
283
284
285
286
287
288
289
0
@@ -277,8 +277,13 @@
0
     end
0
   end
0
   def eval src
0
- iseq = VM::InstructionSequence.compile(src)
0
- load_iseq iseq
0
+ begin
0
+ iseq = VM::InstructionSequence.compile(src)
0
+ load_iseq iseq
0
+ rescue NameError
0
+ puts "*** Are you sure you're running Ruby 1.9?"
0
+ throw e
0
+ end
0
   end
0
 
0
   def to_pickle

Comments

    No one has commented yet.