rubygems-update 3.0.3 → 3.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/.travis.yml +2 -0
  4. data/CODE_OF_CONDUCT.md +10 -8
  5. data/CONTRIBUTING.md +7 -0
  6. data/History.txt +152 -0
  7. data/Manifest.txt +5 -3
  8. data/README.md +6 -0
  9. data/Rakefile +27 -7
  10. data/bundler/lib/bundler/build_metadata.rb +2 -2
  11. data/lib/rubygems.rb +7 -12
  12. data/lib/rubygems/command_manager.rb +6 -0
  13. data/lib/rubygems/commands/build_command.rb +28 -13
  14. data/lib/rubygems/commands/owner_command.rb +2 -0
  15. data/lib/rubygems/commands/push_command.rb +2 -0
  16. data/lib/rubygems/commands/setup_command.rb +9 -11
  17. data/lib/rubygems/commands/uninstall_command.rb +16 -6
  18. data/lib/rubygems/commands/which_command.rb +1 -3
  19. data/lib/rubygems/defaults.rb +1 -8
  20. data/lib/rubygems/dependency.rb +1 -1
  21. data/lib/rubygems/dependency_installer.rb +1 -2
  22. data/lib/rubygems/dependency_list.rb +1 -1
  23. data/lib/rubygems/exceptions.rb +0 -4
  24. data/lib/rubygems/gemcutter_utilities.rb +9 -5
  25. data/lib/rubygems/installer.rb +8 -5
  26. data/lib/rubygems/installer_test_case.rb +2 -2
  27. data/lib/rubygems/package/tar_header.rb +11 -2
  28. data/lib/rubygems/rdoc.rb +2 -2
  29. data/lib/rubygems/remote_fetcher.rb +15 -54
  30. data/lib/rubygems/request.rb +1 -1
  31. data/lib/rubygems/request_set/gem_dependency_api.rb +11 -10
  32. data/lib/rubygems/requirement.rb +0 -4
  33. data/lib/rubygems/resolver.rb +4 -1
  34. data/lib/rubygems/s3_uri_signer.rb +183 -0
  35. data/lib/rubygems/security_option.rb +0 -1
  36. data/lib/rubygems/specification.rb +21 -23
  37. data/lib/rubygems/ssl_certs/{index.rubygems.org → rubygems.org}/GlobalSignRootCA.pem +0 -0
  38. data/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +21 -0
  39. data/lib/rubygems/stub_specification.rb +1 -2
  40. data/lib/rubygems/test_case.rb +22 -12
  41. data/lib/rubygems/uninstaller.rb +1 -1
  42. data/lib/rubygems/util.rb +12 -0
  43. data/rubygems-update.gemspec +1 -1
  44. data/test/rubygems/ca_cert.pem +74 -65
  45. data/test/rubygems/client.pem +103 -45
  46. data/test/rubygems/ssl_cert.pem +78 -17
  47. data/test/rubygems/ssl_key.pem +25 -13
  48. data/test/rubygems/test_bundled_ca.rb +8 -5
  49. data/test/rubygems/test_gem.rb +45 -11
  50. data/test/rubygems/test_gem_bundler_version_finder.rb +4 -0
  51. data/test/rubygems/test_gem_command_manager.rb +10 -0
  52. data/test/rubygems/test_gem_commands_build_command.rb +1 -0
  53. data/test/rubygems/test_gem_commands_push_command.rb +15 -0
  54. data/test/rubygems/test_gem_commands_setup_command.rb +11 -7
  55. data/test/rubygems/test_gem_commands_uninstall_command.rb +80 -1
  56. data/test/rubygems/test_gem_ext_cmake_builder.rb +1 -1
  57. data/test/rubygems/test_gem_indexer.rb +15 -8
  58. data/test/rubygems/test_gem_installer.rb +85 -22
  59. data/test/rubygems/test_gem_package_tar_header.rb +41 -0
  60. data/test/rubygems/test_gem_rdoc.rb +1 -135
  61. data/test/rubygems/test_gem_remote_fetcher.rb +133 -14
  62. data/test/rubygems/test_gem_request.rb +4 -4
  63. data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +80 -57
  64. data/test/rubygems/test_gem_security_policy.rb +1 -1
  65. data/test/rubygems/test_gem_specification.rb +29 -0
  66. data/test/rubygems/test_gem_stream_ui.rb +2 -2
  67. data/test/rubygems/test_gem_uninstaller.rb +21 -2
  68. data/test/rubygems/test_gem_util.rb +8 -0
  69. data/util/ci +6 -1
  70. data/util/cops/deprecations.rb +52 -0
  71. data/util/create_certs.sh +27 -0
  72. data/util/create_encrypted_key.rb +4 -4
  73. data/util/update_bundled_ca_certificates.rb +1 -3
  74. metadata +12 -57
  75. data/bundler/man/bundle-add.1 +0 -58
  76. data/bundler/man/bundle-binstubs.1 +0 -40
  77. data/bundler/man/bundle-check.1 +0 -31
  78. data/bundler/man/bundle-clean.1 +0 -24
  79. data/bundler/man/bundle-config.1 +0 -497
  80. data/bundler/man/bundle-doctor.1 +0 -44
  81. data/bundler/man/bundle-exec.1 +0 -165
  82. data/bundler/man/bundle-gem.1 +0 -80
  83. data/bundler/man/bundle-info.1 +0 -20
  84. data/bundler/man/bundle-init.1 +0 -25
  85. data/bundler/man/bundle-inject.1 +0 -33
  86. data/bundler/man/bundle-install.1 +0 -308
  87. data/bundler/man/bundle-list.1 +0 -50
  88. data/bundler/man/bundle-lock.1 +0 -84
  89. data/bundler/man/bundle-open.1 +0 -32
  90. data/bundler/man/bundle-outdated.1 +0 -155
  91. data/bundler/man/bundle-package.1 +0 -55
  92. data/bundler/man/bundle-platform.1 +0 -61
  93. data/bundler/man/bundle-pristine.1 +0 -34
  94. data/bundler/man/bundle-remove.1 +0 -31
  95. data/bundler/man/bundle-show.1 +0 -23
  96. data/bundler/man/bundle-update.1 +0 -394
  97. data/bundler/man/bundle-viz.1 +0 -39
  98. data/bundler/man/bundle.1 +0 -136
  99. data/lib/rubygems/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +0 -23
  100. data/lib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +0 -25
@@ -1,40 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "BUNDLE\-BINSTUBS" "1" "October 2018" "" ""
5
- .
6
- .SH "NAME"
7
- \fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
8
- .
9
- .SH "SYNOPSIS"
10
- \fBbundle binstubs\fR \fIGEM_NAME\fR [\-\-force] [\-\-path PATH] [\-\-standalone]
11
- .
12
- .SH "DESCRIPTION"
13
- Binstubs are scripts that wrap around executables\. Bundler creates a small Ruby file (a binstub) that loads Bundler, runs the command, and puts it into \fBbin/\fR\. Binstubs are a shortcut\-or alternative\- to always using \fBbundle exec\fR\. This gives you a file that can by run directly, and one that will always run the correct gem version used by the application\.
14
- .
15
- .P
16
- For example, if you run \fBbundle binstubs rspec\-core\fR, Bundler will create the file \fBbin/rspec\fR\. That file will contain enough code to load Bundler, tell it to load the bundled gems, and then run rspec\.
17
- .
18
- .P
19
- This command generates binstubs for executables in \fBGEM_NAME\fR\. Binstubs are put into \fBbin\fR, or the \fB\-\-path\fR directory if one has been set\. Calling binstubs with [GEM [GEM]] will create binstubs for all given gems\.
20
- .
21
- .SH "OPTIONS"
22
- .
23
- .TP
24
- \fB\-\-force\fR
25
- Overwrite existing binstubs if they exist\.
26
- .
27
- .TP
28
- \fB\-\-path\fR
29
- The location to install the specified binstubs to\. This defaults to \fBbin\fR\.
30
- .
31
- .TP
32
- \fB\-\-standalone\fR
33
- Makes binstubs that can work without depending on Rubygems or Bundler at runtime\.
34
- .
35
- .TP
36
- \fB\-\-shebang\fR
37
- Specify a different shebang executable name than the default (default \'ruby\')
38
- .
39
- .SH "BUNDLE INSTALL \-\-BINSTUBS"
40
- To create binstubs for all the gems in the bundle you can use the \fB\-\-binstubs\fR flag in bundle install(1) \fIbundle\-install\.1\.html\fR\.
@@ -1,31 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "BUNDLE\-CHECK" "1" "October 2018" "" ""
5
- .
6
- .SH "NAME"
7
- \fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
8
- .
9
- .SH "SYNOPSIS"
10
- \fBbundle check\fR [\-\-dry\-run] [\-\-gemfile=FILE] [\-\-path=PATH]
11
- .
12
- .SH "DESCRIPTION"
13
- \fBcheck\fR searches the local machine for each of the gems requested in the Gemfile\. If all gems are found, Bundler prints a success message and exits with a status of 0\.
14
- .
15
- .P
16
- If not, the first missing gem is listed and Bundler exits status 1\.
17
- .
18
- .SH "OPTIONS"
19
- .
20
- .TP
21
- \fB\-\-dry\-run\fR
22
- Locks the [\fBGemfile(5)\fR][Gemfile(5)] before running the command\.
23
- .
24
- .TP
25
- \fB\-\-gemfile\fR
26
- Use the specified gemfile instead of the [\fBGemfile(5)\fR][Gemfile(5)]\.
27
- .
28
- .TP
29
- \fB\-\-path\fR
30
- Specify a different path than the system default (\fB$BUNDLE_PATH\fR or \fB$GEM_HOME\fR)\. Bundler will remember this value for future installs on this machine\.
31
-
@@ -1,24 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "BUNDLE\-CLEAN" "1" "May 2018" "" ""
5
- .
6
- .SH "NAME"
7
- \fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
8
- .
9
- .SH "SYNOPSIS"
10
- \fBbundle clean\fR [\-\-dry\-run] [\-\-force]
11
- .
12
- .SH "DESCRIPTION"
13
- This command will remove all unused gems in your bundler directory\. This is useful when you have made many changes to your gem dependencies\.
14
- .
15
- .SH "OPTIONS"
16
- .
17
- .TP
18
- \fB\-\-dry\-run\fR
19
- Print the changes, but do not clean the unused gems\.
20
- .
21
- .TP
22
- \fB\-\-force\fR
23
- Force a clean even if \fB\-\-path\fR is not set\.
24
-
@@ -1,497 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "BUNDLE\-CONFIG" "1" "January 2019" "" ""
5
- .
6
- .SH "NAME"
7
- \fBbundle\-config\fR \- Set bundler configuration options
8
- .
9
- .SH "SYNOPSIS"
10
- \fBbundle config\fR [\fIname\fR [\fIvalue\fR]]
11
- .
12
- .SH "DESCRIPTION"
13
- This command allows you to interact with Bundler\'s configuration system\.
14
- .
15
- .P
16
- Bundler loads configuration settings in this order:
17
- .
18
- .IP "1." 4
19
- Local config (\fBapp/\.bundle/config\fR)
20
- .
21
- .IP "2." 4
22
- Environmental variables (\fBENV\fR)
23
- .
24
- .IP "3." 4
25
- Global config (\fB~/\.bundle/config\fR)
26
- .
27
- .IP "4." 4
28
- Bundler default config
29
- .
30
- .IP "" 0
31
- .
32
- .P
33
- Executing \fBbundle config\fR with no parameters will print a list of all bundler configuration for the current bundle, and where that configuration was set\.
34
- .
35
- .P
36
- Executing \fBbundle config <name>\fR will print the value of that configuration setting, and where it was set\.
37
- .
38
- .P
39
- Executing \fBbundle config <name> <value>\fR will set that configuration to the value specified for all bundles executed as the current user\. The configuration will be stored in \fB~/\.bundle/config\fR\. If \fIname\fR already is set, \fIname\fR will be overridden and user will be warned\.
40
- .
41
- .P
42
- Executing \fBbundle config \-\-global <name> <value>\fR works the same as above\.
43
- .
44
- .P
45
- Executing \fBbundle config \-\-local <name> <value>\fR will set that configuration to the local application\. The configuration will be stored in \fBapp/\.bundle/config\fR\.
46
- .
47
- .P
48
- Executing \fBbundle config \-\-delete <name>\fR will delete the configuration in both local and global sources\. Not compatible with \-\-global or \-\-local flag\.
49
- .
50
- .P
51
- Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
52
- .
53
- .P
54
- Executing \fBbundle config disable_multisource true\fR upgrades the warning about the Gemfile containing multiple primary sources to an error\. Executing \fBbundle config \-\-delete disable_multisource\fR downgrades this error to a warning\.
55
- .
56
- .SH "REMEMBERING OPTIONS"
57
- Flags passed to \fBbundle install\fR or the Bundler runtime, such as \fB\-\-path foo\fR or \fB\-\-without production\fR, are not remembered between commands\. If these options must be remembered,they must be set using \fBbundle config\fR (e\.g\., \fBbundle config path foo\fR)\.
58
- .
59
- .P
60
- The options that can be configured are:
61
- .
62
- .TP
63
- \fBbin\fR
64
- Creates a directory (defaults to \fB~/bin\fR) and place any executables from the gem there\. These executables run in Bundler\'s context\. If used, you might add this directory to your environment\'s \fBPATH\fR variable\. For instance, if the \fBrails\fR gem comes with a \fBrails\fR executable, this flag will create a \fBbin/rails\fR executable that ensures that all referred dependencies will be resolved using the bundled gems\.
65
- .
66
- .TP
67
- \fBdeployment\fR
68
- In deployment mode, Bundler will \'roll\-out\' the bundle for \fBproduction\fR use\. Please check carefully if you want to have this option enabled in \fBdevelopment\fR or \fBtest\fR environments\.
69
- .
70
- .TP
71
- \fBpath\fR
72
- The location to install the specified gems to\. This defaults to Rubygems\' setting\. Bundler shares this location with Rubygems, \fBgem install \.\.\.\fR will have gem installed there, too\. Therefore, gems installed without a \fB\-\-path \.\.\.\fR setting will show up by calling \fBgem list\fR\. Accordingly, gems installed to other locations will not get listed\.
73
- .
74
- .TP
75
- \fBwithout\fR
76
- A space\-separated list of groups referencing gems to skip during installation\.
77
- .
78
- .TP
79
- \fBwith\fR
80
- A space\-separated list of groups referencing gems to include during installation\.
81
- .
82
- .SH "BUILD OPTIONS"
83
- You can use \fBbundle config\fR to give Bundler the flags to pass to the gem installer every time bundler tries to install a particular gem\.
84
- .
85
- .P
86
- A very common example, the \fBmysql\fR gem, requires Snow Leopard users to pass configuration flags to \fBgem install\fR to specify where to find the \fBmysql_config\fR executable\.
87
- .
88
- .IP "" 4
89
- .
90
- .nf
91
-
92
- gem install mysql \-\- \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
93
- .
94
- .fi
95
- .
96
- .IP "" 0
97
- .
98
- .P
99
- Since the specific location of that executable can change from machine to machine, you can specify these flags on a per\-machine basis\.
100
- .
101
- .IP "" 4
102
- .
103
- .nf
104
-
105
- bundle config build\.mysql \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
106
- .
107
- .fi
108
- .
109
- .IP "" 0
110
- .
111
- .P
112
- After running this command, every time bundler needs to install the \fBmysql\fR gem, it will pass along the flags you specified\.
113
- .
114
- .SH "CONFIGURATION KEYS"
115
- Configuration keys in bundler have two forms: the canonical form and the environment variable form\.
116
- .
117
- .P
118
- For instance, passing the \fB\-\-without\fR flag to bundle install(1) \fIbundle\-install\.1\.html\fR prevents Bundler from installing certain groups specified in the Gemfile(5)\. Bundler persists this value in \fBapp/\.bundle/config\fR so that calls to \fBBundler\.setup\fR do not try to find gems from the \fBGemfile\fR that you didn\'t install\. Additionally, subsequent calls to bundle install(1) \fIbundle\-install\.1\.html\fR remember this setting and skip those groups\.
119
- .
120
- .P
121
- The canonical form of this configuration is \fB"without"\fR\. To convert the canonical form to the environment variable form, capitalize it, and prepend \fBBUNDLE_\fR\. The environment variable form of \fB"without"\fR is \fBBUNDLE_WITHOUT\fR\.
122
- .
123
- .P
124
- Any periods in the configuration keys must be replaced with two underscores when setting it via environment variables\. The configuration key \fBlocal\.rack\fR becomes the environment variable \fBBUNDLE_LOCAL__RACK\fR\.
125
- .
126
- .SH "LIST OF AVAILABLE KEYS"
127
- The following is a list of all configuration keys and their purpose\. You can learn more about their operation in bundle install(1) \fIbundle\-install\.1\.html\fR\.
128
- .
129
- .IP "\(bu" 4
130
- \fBallow_bundler_dependency_conflicts\fR (\fBBUNDLE_ALLOW_BUNDLER_DEPENDENCY_CONFLICTS\fR): Allow resolving to specifications that have dependencies on \fBbundler\fR that are incompatible with the running Bundler version\.
131
- .
132
- .IP "\(bu" 4
133
- \fBallow_deployment_source_credential_changes\fR (\fBBUNDLE_ALLOW_DEPLOYMENT_SOURCE_CREDENTIAL_CHANGES\fR): When in deployment mode, allow changing the credentials to a gem\'s source\. Ex: \fBhttps://some\.host\.com/gems/path/\fR \-> \fBhttps://user_name:password@some\.host\.com/gems/path\fR
134
- .
135
- .IP "\(bu" 4
136
- \fBallow_offline_install\fR (\fBBUNDLE_ALLOW_OFFLINE_INSTALL\fR): Allow Bundler to use cached data when installing without network access\.
137
- .
138
- .IP "\(bu" 4
139
- \fBauto_clean_without_path\fR (\fBBUNDLE_AUTO_CLEAN_WITHOUT_PATH\fR): Automatically run \fBbundle clean\fR after installing when an explicit \fBpath\fR has not been set and Bundler is not installing into the system gems\.
140
- .
141
- .IP "\(bu" 4
142
- \fBauto_install\fR (\fBBUNDLE_AUTO_INSTALL\fR): Automatically run \fBbundle install\fR when gems are missing\.
143
- .
144
- .IP "\(bu" 4
145
- \fBbin\fR (\fBBUNDLE_BIN\fR): Install executables from gems in the bundle to the specified directory\. Defaults to \fBfalse\fR\.
146
- .
147
- .IP "\(bu" 4
148
- \fBcache_all\fR (\fBBUNDLE_CACHE_ALL\fR): Cache all gems, including path and git gems\.
149
- .
150
- .IP "\(bu" 4
151
- \fBcache_all_platforms\fR (\fBBUNDLE_CACHE_ALL_PLATFORMS\fR): Cache gems for all platforms\.
152
- .
153
- .IP "\(bu" 4
154
- \fBcache_path\fR (\fBBUNDLE_CACHE_PATH\fR): The directory that bundler will place cached gems in when running \fBbundle package\fR, and that bundler will look in when installing gems\. Defaults to \fBvendor/bundle\fR\.
155
- .
156
- .IP "\(bu" 4
157
- \fBclean\fR (\fBBUNDLE_CLEAN\fR): Whether Bundler should run \fBbundle clean\fR automatically after \fBbundle install\fR\.
158
- .
159
- .IP "\(bu" 4
160
- \fBconsole\fR (\fBBUNDLE_CONSOLE\fR): The console that \fBbundle console\fR starts\. Defaults to \fBirb\fR\.
161
- .
162
- .IP "\(bu" 4
163
- \fBdefault_install_uses_path\fR (\fBBUNDLE_DEFAULT_INSTALL_USES_PATH\fR): Whether a \fBbundle install\fR without an explicit \fB\-\-path\fR argument defaults to installing gems in \fB\.bundle\fR\.
164
- .
165
- .IP "\(bu" 4
166
- \fBdeployment\fR (\fBBUNDLE_DEPLOYMENT\fR): Disallow changes to the \fBGemfile\fR\. When the \fBGemfile\fR is changed and the lockfile has not been updated, running Bundler commands will be blocked\.
167
- .
168
- .IP "\(bu" 4
169
- \fBdisable_checksum_validation\fR (\fBBUNDLE_DISABLE_CHECKSUM_VALIDATION\fR): Allow installing gems even if they do not match the checksum provided by RubyGems\.
170
- .
171
- .IP "\(bu" 4
172
- \fBdisable_exec_load\fR (\fBBUNDLE_DISABLE_EXEC_LOAD\fR): Stop Bundler from using \fBload\fR to launch an executable in\-process in \fBbundle exec\fR\.
173
- .
174
- .IP "\(bu" 4
175
- \fBdisable_local_branch_check\fR (\fBBUNDLE_DISABLE_LOCAL_BRANCH_CHECK\fR): Allow Bundler to use a local git override without a branch specified in the Gemfile\.
176
- .
177
- .IP "\(bu" 4
178
- \fBdisable_multisource\fR (\fBBUNDLE_DISABLE_MULTISOURCE\fR): When set, Gemfiles containing multiple sources will produce errors instead of warnings\. Use \fBbundle config \-\-delete disable_multisource\fR to unset\.
179
- .
180
- .IP "\(bu" 4
181
- \fBdisable_platform_warnings\fR (\fBBUNDLE_DISABLE_PLATFORM_WARNINGS\fR): Disable warnings during bundle install when a dependency is unused on the current platform\.
182
- .
183
- .IP "\(bu" 4
184
- \fBdisable_shared_gems\fR (\fBBUNDLE_DISABLE_SHARED_GEMS\fR): Stop Bundler from accessing gems installed to RubyGems\' normal location\.
185
- .
186
- .IP "\(bu" 4
187
- \fBdisable_version_check\fR (\fBBUNDLE_DISABLE_VERSION_CHECK\fR): Stop Bundler from checking if a newer Bundler version is available on rubygems\.org\.
188
- .
189
- .IP "\(bu" 4
190
- \fBerror_on_stderr\fR (\fBBUNDLE_ERROR_ON_STDERR\fR): Print Bundler errors to stderr\.
191
- .
192
- .IP "\(bu" 4
193
- \fBforce_ruby_platform\fR (\fBBUNDLE_FORCE_RUBY_PLATFORM\fR): Ignore the current machine\'s platform and install only \fBruby\fR platform gems\. As a result, gems with native extensions will be compiled from source\.
194
- .
195
- .IP "\(bu" 4
196
- \fBfrozen\fR (\fBBUNDLE_FROZEN\fR): Disallow changes to the \fBGemfile\fR\. When the \fBGemfile\fR is changed and the lockfile has not been updated, running Bundler commands will be blocked\. Defaults to \fBtrue\fR when \fB\-\-deployment\fR is used\.
197
- .
198
- .IP "\(bu" 4
199
- \fBgem\.push_key\fR (\fBBUNDLE_GEM__PUSH_KEY\fR): Sets the \fB\-\-key\fR parameter for \fBgem push\fR when using the \fBrake release\fR command with a private gemstash server\.
200
- .
201
- .IP "\(bu" 4
202
- \fBgemfile\fR (\fBBUNDLE_GEMFILE\fR): The name of the file that bundler should use as the \fBGemfile\fR\. This location of this file also sets the root of the project, which is used to resolve relative paths in the \fBGemfile\fR, among other things\. By default, bundler will search up from the current working directory until it finds a \fBGemfile\fR\.
203
- .
204
- .IP "\(bu" 4
205
- \fBglobal_gem_cache\fR (\fBBUNDLE_GLOBAL_GEM_CACHE\fR): Whether Bundler should cache all gems globally, rather than locally to the installing Ruby installation\.
206
- .
207
- .IP "\(bu" 4
208
- \fBglobal_path_appends_ruby_scope\fR (\fBBUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE\fR): Whether Bundler should append the Ruby scope (e\.g\. engine and ABI version) to a globally\-configured path\.
209
- .
210
- .IP "\(bu" 4
211
- \fBignore_messages\fR (\fBBUNDLE_IGNORE_MESSAGES\fR): When set, no post install messages will be printed\. To silence a single gem, use dot notation like \fBignore_messages\.httparty true\fR\.
212
- .
213
- .IP "\(bu" 4
214
- \fBinit_gems_rb\fR (\fBBUNDLE_INIT_GEMS_RB\fR) Generate a \fBgems\.rb\fR instead of a \fBGemfile\fR when running \fBbundle init\fR\.
215
- .
216
- .IP "\(bu" 4
217
- \fBjobs\fR (\fBBUNDLE_JOBS\fR): The number of gems Bundler can install in parallel\. Defaults to 1\.
218
- .
219
- .IP "\(bu" 4
220
- \fBlist_command\fR (\fBBUNDLE_LIST_COMMAND\fR) Enable new list command feature
221
- .
222
- .IP "\(bu" 4
223
- \fBmajor_deprecations\fR (\fBBUNDLE_MAJOR_DEPRECATIONS\fR): Whether Bundler should print deprecation warnings for behavior that will be changed in the next major version\.
224
- .
225
- .IP "\(bu" 4
226
- \fBno_install\fR (\fBBUNDLE_NO_INSTALL\fR): Whether \fBbundle package\fR should skip installing gems\.
227
- .
228
- .IP "\(bu" 4
229
- \fBno_prune\fR (\fBBUNDLE_NO_PRUNE\fR): Whether Bundler should leave outdated gems unpruned when caching\.
230
- .
231
- .IP "\(bu" 4
232
- \fBonly_update_to_newer_versions\fR (\fBBUNDLE_ONLY_UPDATE_TO_NEWER_VERSIONS\fR): During \fBbundle update\fR, only resolve to newer versions of the gems in the lockfile\.
233
- .
234
- .IP "\(bu" 4
235
- \fBpath\fR (\fBBUNDLE_PATH\fR): The location on disk where all gems in your bundle will be located regardless of \fB$GEM_HOME\fR or \fB$GEM_PATH\fR values\. Bundle gems not found in this location will be installed by \fBbundle install\fR\. Defaults to \fBGem\.dir\fR\. When \-\-deployment is used, defaults to vendor/bundle\.
236
- .
237
- .IP "\(bu" 4
238
- \fBpath\.system\fR (\fBBUNDLE_PATH__SYSTEM\fR): Whether Bundler will install gems into the default system path (\fBGem\.dir\fR)\.
239
- .
240
- .IP "\(bu" 4
241
- \fBpath_relative_to_cwd\fR (\fBPATH_RELATIVE_TO_CWD\fR) Makes \fB\-\-path\fR relative to the CWD instead of the \fBGemfile\fR\.
242
- .
243
- .IP "\(bu" 4
244
- \fBplugins\fR (\fBBUNDLE_PLUGINS\fR): Enable Bundler\'s experimental plugin system\.
245
- .
246
- .IP "\(bu" 4
247
- \fBprefer_gems_rb\fR (\fBBUNDLE_PREFER_GEMS_RB\fR) Prefer \fBgems\.rb\fR to \fBGemfile\fR when Bundler is searching for a Gemfile\.
248
- .
249
- .IP "\(bu" 4
250
- \fBprint_only_version_number\fR (\fBBUNDLE_PRINT_ONLY_VERSION_NUMBER\fR) Print only version number from \fBbundler \-\-version\fR\.
251
- .
252
- .IP "\(bu" 4
253
- \fBredirect\fR (\fBBUNDLE_REDIRECT\fR): The number of redirects allowed for network requests\. Defaults to \fB5\fR\.
254
- .
255
- .IP "\(bu" 4
256
- \fBretry\fR (\fBBUNDLE_RETRY\fR): The number of times to retry failed network requests\. Defaults to \fB3\fR\.
257
- .
258
- .IP "\(bu" 4
259
- \fBsetup_makes_kernel_gem_public\fR (\fBBUNDLE_SETUP_MAKES_KERNEL_GEM_PUBLIC\fR): Have \fBBundler\.setup\fR make the \fBKernel#gem\fR method public, even though RubyGems declares it as private\.
260
- .
261
- .IP "\(bu" 4
262
- \fBshebang\fR (\fBBUNDLE_SHEBANG\fR): The program name that should be invoked for generated binstubs\. Defaults to the ruby install name used to generate the binstub\.
263
- .
264
- .IP "\(bu" 4
265
- \fBsilence_root_warning\fR (\fBBUNDLE_SILENCE_ROOT_WARNING\fR): Silence the warning Bundler prints when installing gems as root\.
266
- .
267
- .IP "\(bu" 4
268
- \fBskip_default_git_sources\fR (\fBBUNDLE_SKIP_DEFAULT_GIT_SOURCES\fR): Whether Bundler should skip adding default git source shortcuts to the Gemfile DSL\.
269
- .
270
- .IP "\(bu" 4
271
- \fBspecific_platform\fR (\fBBUNDLE_SPECIFIC_PLATFORM\fR): Allow bundler to resolve for the specific running platform and store it in the lockfile, instead of only using a generic platform\. A specific platform is the exact platform triple reported by \fBGem::Platform\.local\fR, such as \fBx86_64\-darwin\-16\fR or \fBuniversal\-java\-1\.8\fR\. On the other hand, generic platforms are those such as \fBruby\fR, \fBmswin\fR, or \fBjava\fR\. In this example, \fBx86_64\-darwin\-16\fR would map to \fBruby\fR and \fBuniversal\-java\-1\.8\fR to \fBjava\fR\.
272
- .
273
- .IP "\(bu" 4
274
- \fBssl_ca_cert\fR (\fBBUNDLE_SSL_CA_CERT\fR): Path to a designated CA certificate file or folder containing multiple certificates for trusted CAs in PEM format\.
275
- .
276
- .IP "\(bu" 4
277
- \fBssl_client_cert\fR (\fBBUNDLE_SSL_CLIENT_CERT\fR): Path to a designated file containing a X\.509 client certificate and key in PEM format\.
278
- .
279
- .IP "\(bu" 4
280
- \fBssl_verify_mode\fR (\fBBUNDLE_SSL_VERIFY_MODE\fR): The SSL verification mode Bundler uses when making HTTPS requests\. Defaults to verify peer\.
281
- .
282
- .IP "\(bu" 4
283
- \fBsuppress_install_using_messages\fR (\fBBUNDLE_SUPPRESS_INSTALL_USING_MESSAGES\fR): Avoid printing \fBUsing \.\.\.\fR messages during installation when the version of a gem has not changed\.
284
- .
285
- .IP "\(bu" 4
286
- \fBsystem_bindir\fR (\fBBUNDLE_SYSTEM_BINDIR\fR): The location where RubyGems installs binstubs\. Defaults to \fBGem\.bindir\fR\.
287
- .
288
- .IP "\(bu" 4
289
- \fBtimeout\fR (\fBBUNDLE_TIMEOUT\fR): The seconds allowed before timing out for network requests\. Defaults to \fB10\fR\.
290
- .
291
- .IP "\(bu" 4
292
- \fBunlock_source_unlocks_spec\fR (\fBBUNDLE_UNLOCK_SOURCE_UNLOCKS_SPEC\fR): Whether running \fBbundle update \-\-source NAME\fR unlocks a gem with the given name\. Defaults to \fBtrue\fR\.
293
- .
294
- .IP "\(bu" 4
295
- \fBupdate_requires_all_flag\fR (\fBBUNDLE_UPDATE_REQUIRES_ALL_FLAG\fR) Require passing \fB\-\-all\fR to \fBbundle update\fR when everything should be updated, and disallow passing no options to \fBbundle update\fR\.
296
- .
297
- .IP "\(bu" 4
298
- \fBuser_agent\fR (\fBBUNDLE_USER_AGENT\fR): The custom user agent fragment Bundler includes in API requests\.
299
- .
300
- .IP "\(bu" 4
301
- \fBwith\fR (\fBBUNDLE_WITH\fR): A \fB:\fR\-separated list of groups whose gems bundler should install\.
302
- .
303
- .IP "\(bu" 4
304
- \fBwithout\fR (\fBBUNDLE_WITHOUT\fR): A \fB:\fR\-separated list of groups whose gems bundler should not install\.
305
- .
306
- .IP "" 0
307
- .
308
- .P
309
- In general, you should set these settings per\-application by using the applicable flag to the bundle install(1) \fIbundle\-install\.1\.html\fR or bundle package(1) \fIbundle\-package\.1\.html\fR command\.
310
- .
311
- .P
312
- You can set them globally either via environment variables or \fBbundle config\fR, whichever is preferable for your setup\. If you use both, environment variables will take preference over global settings\.
313
- .
314
- .SH "LOCAL GIT REPOS"
315
- Bundler also allows you to work against a git repository locally instead of using the remote version\. This can be achieved by setting up a local override:
316
- .
317
- .IP "" 4
318
- .
319
- .nf
320
-
321
- bundle config local\.GEM_NAME /path/to/local/git/repository
322
- .
323
- .fi
324
- .
325
- .IP "" 0
326
- .
327
- .P
328
- For example, in order to use a local Rack repository, a developer could call:
329
- .
330
- .IP "" 4
331
- .
332
- .nf
333
-
334
- bundle config local\.rack ~/Work/git/rack
335
- .
336
- .fi
337
- .
338
- .IP "" 0
339
- .
340
- .P
341
- Now instead of checking out the remote git repository, the local override will be used\. Similar to a path source, every time the local git repository change, changes will be automatically picked up by Bundler\. This means a commit in the local git repo will update the revision in the \fBGemfile\.lock\fR to the local git repo revision\. This requires the same attention as git submodules\. Before pushing to the remote, you need to ensure the local override was pushed, otherwise you may point to a commit that only exists in your local machine\. You\'ll also need to CGI escape your usernames and passwords as well\.
342
- .
343
- .P
344
- Bundler does many checks to ensure a developer won\'t work with invalid references\. Particularly, we force a developer to specify a branch in the \fBGemfile\fR in order to use this feature\. If the branch specified in the \fBGemfile\fR and the current branch in the local git repository do not match, Bundler will abort\. This ensures that a developer is always working against the correct branches, and prevents accidental locking to a different branch\.
345
- .
346
- .P
347
- Finally, Bundler also ensures that the current revision in the \fBGemfile\.lock\fR exists in the local git repository\. By doing this, Bundler forces you to fetch the latest changes in the remotes\.
348
- .
349
- .SH "MIRRORS OF GEM SOURCES"
350
- Bundler supports overriding gem sources with mirrors\. This allows you to configure rubygems\.org as the gem source in your Gemfile while still using your mirror to fetch gems\.
351
- .
352
- .IP "" 4
353
- .
354
- .nf
355
-
356
- bundle config mirror\.SOURCE_URL MIRROR_URL
357
- .
358
- .fi
359
- .
360
- .IP "" 0
361
- .
362
- .P
363
- For example, to use a mirror of rubygems\.org hosted at rubygems\-mirror\.org:
364
- .
365
- .IP "" 4
366
- .
367
- .nf
368
-
369
- bundle config mirror\.http://rubygems\.org http://rubygems\-mirror\.org
370
- .
371
- .fi
372
- .
373
- .IP "" 0
374
- .
375
- .P
376
- Each mirror also provides a fallback timeout setting\. If the mirror does not respond within the fallback timeout, Bundler will try to use the original server instead of the mirror\.
377
- .
378
- .IP "" 4
379
- .
380
- .nf
381
-
382
- bundle config mirror\.SOURCE_URL\.fallback_timeout TIMEOUT
383
- .
384
- .fi
385
- .
386
- .IP "" 0
387
- .
388
- .P
389
- For example, to fall back to rubygems\.org after 3 seconds:
390
- .
391
- .IP "" 4
392
- .
393
- .nf
394
-
395
- bundle config mirror\.https://rubygems\.org\.fallback_timeout 3
396
- .
397
- .fi
398
- .
399
- .IP "" 0
400
- .
401
- .P
402
- The default fallback timeout is 0\.1 seconds, but the setting can currently only accept whole seconds (for example, 1, 15, or 30)\.
403
- .
404
- .SH "CREDENTIALS FOR GEM SOURCES"
405
- Bundler allows you to configure credentials for any gem source, which allows you to avoid putting secrets into your Gemfile\.
406
- .
407
- .IP "" 4
408
- .
409
- .nf
410
-
411
- bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
412
- .
413
- .fi
414
- .
415
- .IP "" 0
416
- .
417
- .P
418
- For example, to save the credentials of user \fBclaudette\fR for the gem source at \fBgems\.longerous\.com\fR, you would run:
419
- .
420
- .IP "" 4
421
- .
422
- .nf
423
-
424
- bundle config gems\.longerous\.com claudette:s00pers3krit
425
- .
426
- .fi
427
- .
428
- .IP "" 0
429
- .
430
- .P
431
- Or you can set the credentials as an environment variable like this:
432
- .
433
- .IP "" 4
434
- .
435
- .nf
436
-
437
- export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
438
- .
439
- .fi
440
- .
441
- .IP "" 0
442
- .
443
- .P
444
- For gems with a git source with HTTP(S) URL you can specify credentials like so:
445
- .
446
- .IP "" 4
447
- .
448
- .nf
449
-
450
- bundle config https://github\.com/bundler/bundler\.git username:password
451
- .
452
- .fi
453
- .
454
- .IP "" 0
455
- .
456
- .P
457
- Or you can set the credentials as an environment variable like so:
458
- .
459
- .IP "" 4
460
- .
461
- .nf
462
-
463
- export BUNDLE_GITHUB__COM=username:password
464
- .
465
- .fi
466
- .
467
- .IP "" 0
468
- .
469
- .P
470
- This is especially useful for private repositories on hosts such as Github, where you can use personal OAuth tokens:
471
- .
472
- .IP "" 4
473
- .
474
- .nf
475
-
476
- export BUNDLE_GITHUB__COM=abcd0123generatedtoken:x\-oauth\-basic
477
- .
478
- .fi
479
- .
480
- .IP "" 0
481
- .
482
- .SH "CONFIGURE BUNDLER DIRECTORIES"
483
- Bundler\'s home, config, cache and plugin directories are able to be configured through environment variables\. The default location for Bundler\'s home directory is \fB~/\.bundle\fR, which all directories inherit from by default\. The following outlines the available environment variables and their default values
484
- .
485
- .IP "" 4
486
- .
487
- .nf
488
-
489
- BUNDLE_USER_HOME : $HOME/\.bundle
490
- BUNDLE_USER_CACHE : $BUNDLE_USER_HOME/cache
491
- BUNDLE_USER_CONFIG : $BUNDLE_USER_HOME/config
492
- BUNDLE_USER_PLUGIN : $BUNDLE_USER_HOME/plugin
493
- .
494
- .fi
495
- .
496
- .IP "" 0
497
-