Are there any good docs / blogs / websites about writing gems? We are trying to take a bit of code and put it into a gem but just can't find documentation on the specifics of writing one!
For instance - 1 - How can we have a different dependencies based on platform?
2 - How do we reference other files? Is there a variable (like RAILS_ROOT) that will tell us where we are located? We have a line like this: require 'lib/mc_client_osx.rb' but it can't find that file (obviously) as it doesn't know where to look.
Any pointers to docs or blogs (or answers!) would be greatly appreciated.