HotCocoa/hotcocoa — pull request #45 by bultacorick (2011-12-24 03:10:21+00:00)
Title: Added SnowLeopard / BridgeSupport test for "macgem install ..."

This one's in for review. I feel that the method of test, using the C Extensions technique from RubyGems, is valid. I'm not so sure of the actual implementation however.

If you look at the ext/hotcocoa/extconfig.rb and ext/hotcocoa/noop_bridge_support_check.c files you'll see what I'm using.

- the system('test -d /System/Library/BridgeSupport') is the trigger for presence/absence check and related error message

- the #include is the trigger that actually causes the install to fail

The caveat here is that I only know what I see on my system and I've only been working with MacRuby and HotCocoa for about 1 week.

Feel free to guide me here - any suggestions on the checkpoints are more than welcome.

happy holidays...

Rick