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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
As far as I know, there''s a book by apress. Or you can just google :) 2009/12/13 phil <phil-o0Q4Q1ys/oVBDgjK7y7TUQ@public.gmane.org>> 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. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Have you looked at Jeweler ? http://technicalpickles.com/posts/craft-the-perfect-gem-with-jeweler/ On Dec 13, 5:14 am, phil <p...-o0Q4Q1ys/oVBDgjK7y7TUQ@public.gmane.org> wrote:> 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.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.