Given a gem with a specific version in recipe.rb:
If building "head" or "devel"
- Ignore the $version specified in recipe.rb
- Fetch and install the latest gem and deps using the "omnibus" ruby
- Derive the $version
- Proceed to build a package of $version
else
- Check for a cached copy of $version specified in recipe.rb
- If no cached copy exists 1. Fetch the gem in $version and its deps 2. Cache and/or "lock" them to disk
- Install gem $version and deps using the "omnibus" ruby
- Proceed to build a package of $version
end
(unqualified guessing): Bundler using a Gemfile (and Gemfile.lock?) then installing from cache? gem install --install-dir then --local? Something else?