Question: I need to freeze two gems and make my project refer to those gems from its project folder.

I know many ways to do it in Rails, but how do I do it manually in Ruby?

I am using [jeweler](http://technicalpickles.com/posts/craft-the-perfect-gem-with-jeweler/) based on advice from my previous question "[Starting a Ruby project: github + build tool](https://stackoverflow.com/questions/3184433/starting-a-ruby-project-github-build-tool/3184993#3184993)".

Answer: 
You could use them independently of the rubygems infrastructure by first unpacking each gem into vendor/gems (or whatever path within your project):

```
cd yourapp
mkdir -p vendor/gems
cd vendor/gems
gem unpack gem1
gem unpack gem2
[etc.]

```

... and then adding all the frozen gems' lib directories into your load path:

```
$:.unshift(*Dir[File.dirname(__FILE__) + "/vendor/gems/**/lib"])

```
What about using [Bundler](http://gembundler.com/ "Bundler")? You could simply lock your application gems with it.