summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-06-25 08:14:54 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-06-25 08:14:54 -0700
commita96f7ccfe6ba070447b0f3a6a6d14593eb1f8121 (patch)
treed0199d15abffd1b1e00e2f58b5cea526a46ebe0b /man
parentf11efb087d648faa92eb79ccb07a592f13c028f0 (diff)
parentb5db5535355e37a9bc23b87acc602e0398b3ec3c (diff)
downloadbundler-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.ronn10
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