Skip to content

Commit

Permalink
Add workaround for MacRuby ticket #721
Browse files Browse the repository at this point in the history
HotCocoa now compiles and passes all tests!
  • Loading branch information
ferrous26 committed Jul 31, 2011
1 parent 114d44e commit 8e38eb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hotcocoa/template.rb
Expand Up @@ -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

##
Expand Down

0 comments on commit 8e38eb2

Please sign in to comment.