[MacRuby] #851: rake and macrake behaviour differ
MacRuby
ruby-noreply at macosforge.org
Tue Aug 17 01:37:00 PDT 2010
#851: rake and macrake behaviour differ
----------------------------------------+-----------------------------------
Reporter: dave.baldwin@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords: rake
----------------------------------------+-----------------------------------
With the following rakefile:
task :default => :run
def transformTask ()
task :run => [] do
yield
end
end
transformTask {puts 'Done'}
running rake gives:
Done
while running Macrake gives:
rake aborted!
no block given
Changing the rakefile to be:
task :default => :run
def transformTask (&block)
task :run => [] do
block.call
end
end
transformTask {puts 'Done'}
will now give the same result for rake and macrake.
This may just be a 1.8 vs. 1.9 difference or a bug in macruby.
macruby -v
MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
--
Ticket URL: <http://www.macruby.org/trac/ticket/851>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list