From: Shawn Anderson Date: 2009-06-26T03:18:17+09:00 Subject: Re: Gem development --001e680f1b40f38153046d303ddd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit personally, I munge the load path in my example: $: << "../lib" # or whatever that you need /Shawn On Thu, Jun 25, 2009 at 11:12 AM, Martin Hess wrote: > When you are developing a gem, and you want to add examples, how do you get > your example to find your gem without installing your gem? > > i.e. suppose you have > > mygem/ > examples/ > example1.rb > lib/ > > and example1.rb starts with > require "mygem" > > but your gem isn't installed yet so how does example1.rb find the right > code? > > Is there some trick for this, or do people just install their gem first? > > --001e680f1b40f38153046d303ddd--