diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-06-25 08:14:54 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-06-25 08:14:54 -0700 |
commit | a96f7ccfe6ba070447b0f3a6a6d14593eb1f8121 (patch) | |
tree | d0199d15abffd1b1e00e2f58b5cea526a46ebe0b /man | |
parent | f11efb087d648faa92eb79ccb07a592f13c028f0 (diff) | |
parent | b5db5535355e37a9bc23b87acc602e0398b3ec3c (diff) | |
download | bundler-a96f7ccfe6ba070447b0f3a6a6d14593eb1f8121.tar.gz |
Merge tag 'v1.10.5'
Version 1.10.5
# Conflicts:
# README.md
Diffstat (limited to 'man')
-rw-r--r-- | man/gemfile.5.ronn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/man/gemfile.5.ronn b/man/gemfile.5.ronn index 89911695fc..94458d2464 100644 --- a/man/gemfile.5.ronn +++ b/man/gemfile.5.ronn @@ -443,6 +443,16 @@ In the case of the `git` block form, the `:ref`, `:branch`, `:tag`, and `:submodules` options may be passed to the `git` method, and all gems in the block will inherit those options. +## INSTALL_IF (#install_if) + +The `install_if` method allows gems to be installed based on a proc or lambda. +This is especially useful for optional gems that can only be used if certain +software is installed or some other conditions are met. + + install_if -> { RUBY_PLATFORM =~ /darwin/ } do + gem "pasteboard" + end + ## GEMSPEC (#gemspec) If you wish to use Bundler to help install dependencies for a gem while it is |