From ea6783a7f9de1da1b9578ffbc332c55086b27c56 Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Tue, 22 Jan 2013 14:58:50 -0800 Subject: [PATCH] (maint) Add dependency information for yard and redcarpet Without this patch `bundle exec yard server --reload` doesn't work. This is a problem because people who are developing Puppet need to be able to access the API documentation easily and the yard server is one such way. This patch addresses the problem by adding a dependency on yard and redcarpet for the development group only. This will prevent the yard and redcarpet gem from sucking in a large number of dependencies when running in a CI environment because these environments are expected to omit development only dependencies when bootstrapping using `bundle install --path vendor --without development` --- Gemfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Gemfile b/Gemfile index fb9b6c84995..894831b10f8 100644 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,13 @@ def location_for(place) end end +# The YARD dependencies are only needed when developing the documentation, not +# when testing or deploying. +group :development do + gem "yard" + gem "redcarpet" +end + group(:development, :test) do gem "puppet", *location_for('file://.') gem "facter", *location_for(ENV['FACTER_LOCATION'] || '~> 1.6')