I was building a rubygem by using
gem build $gemname.gemspec && gem install $gemname-0.0.1.gem
However, this doesn't seem to be the best way to test the gem, since it moves it out of the local environment and into the rubygems paths.
Is the recommendation to build the gem using
cd ext/$gemname && ruby extconf.rb && make
? Or is there a better practice?