Thoughts Heap

A Blog by Roman Gonzalez.-

RSS
Mar
13th
Fri
permalink

Github gems in merb

Haven’t you found any issues regarding the use of github gems on merb projects.

Sure you have!, the gem name is not the same as the library gem (normally you have the “username-” part bogging around). In order to make it work in merb, you have to use the option “:require_as” in the dependency call method.

Something like:


dependency "jchris-couchrest", :require_as => "couchrest"

In case you want to use an only development gem, such as merb_cucumber, you have to specify nil on the load process


dependency "david-merb_cucumber", :require_as => nil

Hope this helps someone besides me…

blog comments powered by Disqus