chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Cookbook::Metadata#gem_dep_matches?
Helper to match a gem style version (ohai_version/chef_version) against a set of Gem::Dependency version constraints. If none are present, it always matches. if multiple are present, one must match. Returns false if none matches.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/cookbook/metadata.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Cookbook--Metadata-gem_dep_matches--for-pr
# Commit to gitgit add lib/chef/cookbook/metadata.rbgit commit -m "better docs for Chef::Cookbook::Metadata#gem_dep_matches?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Cookbook--Metadata-gem_dep_matches--for-pr
hub pull-request
# Celebrate!