Skip to content

Commit

Permalink
(maint) Add dependency information for yard and redcarpet
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
Jeff McCune committed Jan 22, 2013
1 parent 15fd642 commit ea6783a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ea6783a

Please sign in to comment.