Permalink
Browse files

Merge pull request #17 from nono/require_array

Add :require => [...] to the gemfile(5) manpage
  • Loading branch information...
2 parents f62dc97 + 5192ae7 commit 6a04e4c8ff896def91ac776dc7a86a8e38e6ef2d @wycats wycats committed Dec 2, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/pages/gemfile.haml
View
@@ -42,9 +42,14 @@
.bullet
.description
If a gem's main file is different than the gem name, specify how to require it.
+ Or use <code>false</code> to prevent bundler to require it (but it will still
+ install it and maintain dependencies). And for gems with several files to require,
+ it's also possible to give an array to <code>:require</code>.
:highlight_ruby
gem "rspec", :require => "spec"
gem "sqlite3-ruby", "1.2.5", :require => "sqlite3"
+ gem "gem-release", :require => false
+ gem "redis", :require => ["redis/connection/hiredis", "redis"]
.notes
In order to require gems in your <code>Gemfile</code>, you will need to call
<code>Bundler.require</code> in your application.

0 comments on commit 6a04e4c

Please sign in to comment.