You can always just reference a gem in a Gemfile
using a direct path, eg:
gem 'extracted_library', :path => './vendor/extracted_library'
You can also use a git archive. See the Gemfile docs for more details.
This may help with your situation (I'm not sure of your exact setup).