#144: require of hotcocoa fails on case sensitive file system -------------------------------+-------------------------------------------- Reporter: rune@snuskete.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: trivial | Milestone: Component: MacRuby | Keywords: hotcocoa -------------------------------+-------------------------------------------- When hotcocoa includes the Cocoa library it uses the wrong case, resulting on the following stack trace when you are using a case sensitive file system: {{{
require 'hotcocoa' RuntimeError: framework `cocoa' not found from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa.rb:1:in `framework' from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa.rb:1:in `<top (required)>' from (irb):2:in `require' from (irb):2 from /usr/local/bin/macirb:12:in `<main>' }}}
The fix is easy; change the first line of hotcocoa.rb to: framework 'Cocoa' -- Ticket URL: <http://www.macruby.org/trac/ticket/144> MacRuby <http://macruby.org/>