aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-01-21 06:12:18 +0000
committerSamuel Giddins <segiddins@segiddins.me>2017-01-21 14:49:58 -0600
commitfb5deeffc916763b47f6bd332474668bae062d7c (patch)
tree79f067da19b64e29a29a3405a81778d01fc61c65
parent5fb2d6f6e5b8af211225d37f19dbbd36b3559689 (diff)
downloadbundler-fb5deeffc916763b47f6bd332474668bae062d7c.tar.gz
Auto merge of #5338 - bundler:seg-doc-settings, r=indirect
Document all Bundler settings Closes #5288 (cherry picked from commit 990f05e86593c0a821c538ae9cae535c298eee7a)
-rw-r--r--lib/bundler/settings.rb1
-rw-r--r--man/bundle-config.ronn50
-rw-r--r--spec/quality_spec.rb24
3 files changed, 53 insertions, 22 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index 4c14f636..0aa90823 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -10,6 +10,7 @@ module Bundler
allow_offline_install
auto_install
cache_all
+ cache_all_platforms
disable_checksum_validation
disable_exec_load
disable_local_branch_check
diff --git a/man/bundle-config.ronn b/man/bundle-config.ronn
index fd15a242..a77ee331 100644
--- a/man/bundle-config.ronn
+++ b/man/bundle-config.ronn
@@ -169,6 +169,56 @@ learn more about their operation in [bundle install(1)][bundle-install].
* `disable_checksum_validation` (`BUNDLE_DISABLE_CHECKSUM_VALIDATION`):
Allow installing gems even if they do not match the checksum provided by
RubyGems.
+* `disable_version_check` (`BUNDLE_DISABLE_VERSION_CHECK`):
+ Stop Bundler from checking if a newer Bundler version is available on
+ rubygems.org.
+* `allow_offline_install` (`BUNDLE_ALLOW_OFFLINE_INSTALL`):
+ Allow Bundler to use cached data when installing without network access.
+* `auto_install` (`BUNDLE_AUTO_INSTALL`):
+ Automatically run `bundle install` when gems are missing.
+* `cache_all_platforms` (`BUNDLE_CACHE_ALL_PLATFORMS`):
+ Cache gems for all platforms.
+* `cache_all` (`BUNDLE_CACHE_ALL`):
+ Cache all gems, including path and git gems.
+* `clean` (`BUNDLE_CLEAN`):
+ Whether Bundler should run `bundle clean` automatically after
+ `bundle install`.
+* `console` (`BUNDLE_CONSOLE`):
+ The console that `bundle console` starts. Defaults to `irb`.
+* `disable_exec_load` (`BUNDLE_DISABLE_EXEC_LOAD`):
+ Stop Bundler from using `load` to launch an executable in-process in
+ `bundle exec`.
+* `disable_local_branch_check` (`BUNDLE_DISABLE_LOCAL_BRANCH_CHECK`):
+ Allow Bundler to use a local git override without a branch specified in the
+ Gemfile.
+* `disable_shared_gems` (`BUNDLE_DISABLE_SHARED_GEMS`):
+ Stop Bundler from accessing gems installed to RubyGems' normal location.
+* `jobs` (`BUNDLE_JOBS`):
+ The number of gems Bundler can install in parallel. Defaults to 1.
+* `major_deprecations` (`BUNDLE_MAJOR_DEPRECATIONS`):
+ Whether Bundler should print deprecation warnings for behavior that will
+ be changed in the next major version.
+* `no_install` (`BUNDLE_NO_INSTALL`):
+ Whether `bundle package` should skip installing gems.
+* `no_prune` (`BUNDLE_NO_PRUNE`):
+ Whether Bundler should leave outdated gems unpruned when caching.
+* `only_update_to_newer_versions` (`BUNDLE_ONLY_UPDATE_TO_NEWER_VERSIONS`):
+ During `bundle update`, only resolve to newer versions of the gems in the
+ lockfile.
+* `plugins` (`BUNDLE_PLUGINS`):
+ Enable Bundler's experimental plugin system.
+* `shebang` (`BUNDLE_SHEBANG`):
+ The program name that should be invoked for generated binstubs. Defaults to
+ the ruby install name used to generate the binstub.
+* `silence_root_warning` (`BUNDLE_SILENCE_ROOT_WARNING`):
+ Silence the warning Bundler prints when installing gems as root.
+* `ssl_verify_mode` (`BUNDLE_SSL_VERIFY_MODE`):
+ The SSL verification mode Bundler uses when making HTTPS requests.
+ Defaults to verify peer.
+* `system_bindir` (`BUNDLE_SYSTEM_BINDIR`):
+ The location where RubyGems installs binstubs. Defaults to `Gem.bindir`.
+* `user_agent` (`BUNDLE_USER_AGENT`):
+ The custom user agent fragment Bundler includes in API requests.
In general, you should set these settings per-application by using the applicable
flag to the [bundle install(1)][bundle-install] or [bundle package(1)][bundle-package] command.
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb
index 9148bf51..1c722021 100644
--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -193,28 +193,8 @@ describe "The library itself" do
it "documents all used settings" do
exemptions = %w(
- allow_offline_install
- auto_install
- cache_all
- cache_all_platforms
- clean
- console
- disable_exec_load
- disable_local_branch_check
- disable_shared_gems
gem.coc
gem.mit
- jobs
- major_deprecations
- no_install
- no_prune
- only_update_to_newer_versions
- plugins
- shebang
- silence_root_warning
- ssl_verify_mode
- system_bindir
- user_agent
warned_version
)
@@ -228,7 +208,7 @@ describe "The library itself" do
key_pattern = /([a-z\._-]+)/i
`git ls-files -z`.split("\x0").each do |filename|
File.readlines(filename).each_with_index do |line, number|
- line.scan(/Bundler\.settings\[:#{key_pattern}\]/).flatten.each {|s| all_settings[s] << "referenced at `lib/#{filename}:#{number}`" }
+ line.scan(/Bundler\.settings\[:#{key_pattern}\]/).flatten.each {|s| all_settings[s] << "referenced at `lib/#{filename}:#{number.succ}`" }
end
end
documented_settings = File.read("../man/bundle-config.ronn").scan(/^\* `#{key_pattern}`/).flatten
@@ -237,7 +217,7 @@ describe "The library itself" do
documented_settings.each {|s| all_settings.delete(s) }
exemptions.each {|s| all_settings.delete(s) }
error_messages = all_settings.map do |setting, refs|
- "The `#{setting}` setting is undocumented\n\t- #{refs.join("\n\t- ")}"
+ "The `#{setting}` setting is undocumented\n\t- #{refs.join("\n\t- ")}\n"
end
expect(error_messages.sort).to be_well_formed