Skip to content
Browse files

Add workaround for MacRuby ticket #721

HotCocoa now compiles and passes all tests!
  • Loading branch information...
1 parent 114d44e commit 8e38eb2546e3385e2f934577bd852154d6980f6c @ferrous26 committed Jul 31, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/hotcocoa/template.rb
View
3 lib/hotcocoa/template.rb
@@ -11,7 +11,8 @@ class HotCocoa::Template
#
# @return [String]
def self.source_directory
- File.expand_path('../../..', __FILE__)
+ file = $LOADED_FEATURES.find { |file| file.match /hotcocoa\/template\.rbo?$/ }
+ File.expand_path(File.join(File.dirname(file), '../..'))
end
##

0 comments on commit 8e38eb2

Please sign in to comment.
Something went wrong with that request. Please try again.