rubygems-update 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/CODE_OF_CONDUCT.md +10 -8
  4. data/CONTRIBUTING.md +7 -0
  5. data/History.txt +67 -0
  6. data/README.md +6 -0
  7. data/Rakefile +21 -3
  8. data/bundler/lib/bundler/build_metadata.rb +1 -1
  9. data/lib/rubygems.rb +2 -1
  10. data/lib/rubygems/command_manager.rb +6 -0
  11. data/lib/rubygems/commands/build_command.rb +28 -13
  12. data/lib/rubygems/commands/owner_command.rb +2 -0
  13. data/lib/rubygems/dependency_list.rb +1 -1
  14. data/lib/rubygems/rdoc.rb +2 -2
  15. data/lib/rubygems/request_set/gem_dependency_api.rb +8 -5
  16. data/lib/rubygems/requirement.rb +0 -4
  17. data/lib/rubygems/specification.rb +8 -9
  18. data/lib/rubygems/test_case.rb +14 -8
  19. data/lib/rubygems/uninstaller.rb +1 -1
  20. data/rubygems-update.gemspec +1 -1
  21. data/test/rubygems/ca_cert.pem +74 -65
  22. data/test/rubygems/client.pem +103 -45
  23. data/test/rubygems/ssl_cert.pem +78 -17
  24. data/test/rubygems/ssl_key.pem +25 -13
  25. data/test/rubygems/test_bundled_ca.rb +1 -1
  26. data/test/rubygems/test_gem.rb +5 -8
  27. data/test/rubygems/test_gem_bundler_version_finder.rb +4 -0
  28. data/test/rubygems/test_gem_command_manager.rb +10 -0
  29. data/test/rubygems/test_gem_commands_build_command.rb +1 -0
  30. data/test/rubygems/test_gem_ext_cmake_builder.rb +1 -1
  31. data/test/rubygems/test_gem_indexer.rb +7 -0
  32. data/test/rubygems/test_gem_installer.rb +7 -3
  33. data/test/rubygems/test_gem_rdoc.rb +1 -135
  34. data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +60 -27
  35. data/test/rubygems/test_gem_security_policy.rb +1 -1
  36. data/test/rubygems/test_gem_stream_ui.rb +2 -2
  37. data/test/rubygems/test_gem_uninstaller.rb +21 -2
  38. data/util/ci +6 -1
  39. data/util/create_encrypted_key.rb +4 -4
  40. metadata +3 -51
  41. data/bundler/man/bundle-add.1 +0 -58
  42. data/bundler/man/bundle-binstubs.1 +0 -40
  43. data/bundler/man/bundle-check.1 +0 -31
  44. data/bundler/man/bundle-clean.1 +0 -24
  45. data/bundler/man/bundle-config.1 +0 -497
  46. data/bundler/man/bundle-doctor.1 +0 -44
  47. data/bundler/man/bundle-exec.1 +0 -165
  48. data/bundler/man/bundle-gem.1 +0 -80
  49. data/bundler/man/bundle-info.1 +0 -20
  50. data/bundler/man/bundle-init.1 +0 -25
  51. data/bundler/man/bundle-inject.1 +0 -33
  52. data/bundler/man/bundle-install.1 +0 -308
  53. data/bundler/man/bundle-list.1 +0 -50
  54. data/bundler/man/bundle-lock.1 +0 -84
  55. data/bundler/man/bundle-open.1 +0 -32
  56. data/bundler/man/bundle-outdated.1 +0 -155
  57. data/bundler/man/bundle-package.1 +0 -55
  58. data/bundler/man/bundle-platform.1 +0 -61
  59. data/bundler/man/bundle-pristine.1 +0 -34
  60. data/bundler/man/bundle-remove.1 +0 -31
  61. data/bundler/man/bundle-show.1 +0 -23
  62. data/bundler/man/bundle-update.1 +0 -394
  63. data/bundler/man/bundle-viz.1 +0 -39
  64. data/bundler/man/bundle.1 +0 -136
@@ -293,7 +293,7 @@ class TestGemSecurityPolicy < Gem::TestCase
293
293
 
294
294
  def test_subject
295
295
  assert_equal 'email:nobody@example', @no.subject(PUBLIC_CERT)
296
- assert_equal '/C=JP/O=JIN.GR.JP/OU=RRR/CN=CA', @no.subject(CA_CERT)
296
+ assert_equal '/C=JP/ST=Tokyo/O=RubyGemsTest/CN=CA', @no.subject(CA_CERT)
297
297
  end
298
298
 
299
299
  def test_verify
@@ -37,7 +37,7 @@ class TestGemStreamUI < Gem::TestCase
37
37
  end
38
38
 
39
39
  def test_ask
40
- Timeout.timeout(1) do
40
+ Timeout.timeout(5) do
41
41
  expected_answer = "Arthur, King of the Britons"
42
42
  @in.string = "#{expected_answer}\n"
43
43
  actual_answer = @sui.ask("What is your name?")
@@ -55,7 +55,7 @@ class TestGemStreamUI < Gem::TestCase
55
55
  end
56
56
 
57
57
  def test_ask_for_password
58
- Timeout.timeout(1) do
58
+ Timeout.timeout(5) do
59
59
  expected_answer = "Arthur, King of the Britons"
60
60
  @in.string = "#{expected_answer}\n"
61
61
  actual_answer = @sui.ask_for_password("What is your name?")
@@ -22,9 +22,10 @@ class TestGemUninstaller < Gem::InstallerTestCase
22
22
  end
23
23
 
24
24
  def test_initialize_expand_path
25
- uninstaller = Gem::Uninstaller.new nil, :install_dir => '/foo//bar'
25
+ FileUtils.mkdir_p 'foo/bar'
26
+ uninstaller = Gem::Uninstaller.new nil, :install_dir => 'foo//bar'
26
27
 
27
- assert_match %r|/foo/bar$|, uninstaller.instance_variable_get(:@gem_home)
28
+ assert_match %r|foo/bar$|, uninstaller.instance_variable_get(:@gem_home)
28
29
  end
29
30
 
30
31
  def test_ask_if_ok
@@ -133,6 +134,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
133
134
  end
134
135
 
135
136
  def test_remove_not_in_home
137
+ Dir.mkdir "#{@gemhome}2"
136
138
  uninstaller = Gem::Uninstaller.new nil, :install_dir => "#{@gemhome}2"
137
139
 
138
140
  e = assert_raises Gem::GemNotInHomeException do
@@ -149,6 +151,22 @@ class TestGemUninstaller < Gem::InstallerTestCase
149
151
  assert_path_exists @spec.gem_dir
150
152
  end
151
153
 
154
+ def test_remove_symlinked_gem_home
155
+ Dir.mktmpdir("gem_home") do |dir|
156
+ symlinked_gem_home = "#{dir}/#{File.basename(@gemhome)}"
157
+
158
+ FileUtils.ln_s(@gemhome, dir)
159
+
160
+ uninstaller = Gem::Uninstaller.new nil, :install_dir => symlinked_gem_home
161
+
162
+ use_ui ui do
163
+ uninstaller.remove @spec
164
+ end
165
+
166
+ refute_path_exists @spec.gem_dir
167
+ end
168
+ end
169
+
152
170
  def test_path_ok_eh
153
171
  uninstaller = Gem::Uninstaller.new nil
154
172
 
@@ -313,6 +331,7 @@ create_makefile '#{@spec.name}'
313
331
  end
314
332
 
315
333
  def test_uninstall_wrong_repo
334
+ Dir.mkdir "#{@gemhome}2"
316
335
  Gem.use_paths "#{@gemhome}2", [@gemhome]
317
336
 
318
337
  uninstaller = Gem::Uninstaller.new @spec.name, :executables => true
data/util/ci CHANGED
@@ -47,7 +47,7 @@ end
47
47
  case ARGV
48
48
  when %w(before_script)
49
49
  if TOOL.rubygems?
50
- run('gem', %W(uninstall executable-hooks gem-wrappers bundler-unload -x --force -i #{`gem env home`.strip}@global))
50
+ run('ruby', %W(-I lib bin/gem uninstall executable-hooks gem-wrappers bundler-unload -x --force -i #{`gem env home`.strip}@global))
51
51
 
52
52
  if RUBY_VERSION >= "2.6.0"
53
53
  run('gem', %w(install minitest -v 5.4.3))
@@ -61,6 +61,11 @@ when %w(before_script)
61
61
  run('gem', %w(list --details))
62
62
  run('gem', %w(env))
63
63
  else
64
+ # Fix incorrect default gem specifications on ruby 2.6.1. Can be removed
65
+ # when 2.6.2 is released and we start testing against it. See
66
+ # https://bugs.ruby-lang.org/issues/15582 for more information
67
+ run('gem', %w(install etc:1.0.1 --default)) if RUBY_VERSION == "2.6.1"
68
+
64
69
  with_retries { run('rake', %w(spec:travis:deps)) }
65
70
  end
66
71
  when %w(rubocop)
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
  require 'openssl'
3
3
 
4
- private_key_path = '../../test/rubygems/private_key.pem'
5
- private_key_path = File.expand_path private_key_path, __FILE__
4
+ test_path = File.expand_path('../../test/rubygems', __FILE__)
5
+
6
+ private_key_path = "#{test_path}/private_key.pem"
6
7
 
7
8
  key = OpenSSL::PKey::RSA.new File.read private_key_path
8
9
 
9
10
  cipher = OpenSSL::Cipher.new 'DES-CBC'
10
11
 
11
- encrypted_key_path = '../../test/rubygems/encrypted_private_key.pem'
12
- encrypted_key_path = File.expand_path encrypted_key_path, __FILE__
12
+ encrypted_key_path = "#{test_path}/encrypted_private_key.pem"
13
13
 
14
14
  open encrypted_key_path, 'w' do |io|
15
15
  io.write key.to_pem cipher, 'Foo bar'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2019-03-04 00:00:00.000000000 Z
19
+ date: 2019-06-14 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: builder
@@ -139,30 +139,6 @@ extra_rdoc_files:
139
139
  - bundler/LICENSE.md
140
140
  - bundler/README.md
141
141
  - hide_lib_for_update/note.txt
142
- - bundler/man/bundle-platform.1
143
- - bundler/man/bundle-update.1
144
- - bundler/man/bundle-info.1
145
- - bundler/man/bundle-init.1
146
- - bundler/man/bundle.1
147
- - bundler/man/bundle-exec.1
148
- - bundler/man/bundle-install.1
149
- - bundler/man/bundle-list.1
150
- - bundler/man/bundle-outdated.1
151
- - bundler/man/bundle-check.1
152
- - bundler/man/bundle-show.1
153
- - bundler/man/bundle-gem.1
154
- - bundler/man/bundle-open.1
155
- - bundler/man/bundle-lock.1
156
- - bundler/man/bundle-pristine.1
157
- - bundler/man/bundle-remove.1
158
- - bundler/man/bundle-doctor.1
159
- - bundler/man/bundle-binstubs.1
160
- - bundler/man/bundle-viz.1
161
- - bundler/man/bundle-package.1
162
- - bundler/man/bundle-add.1
163
- - bundler/man/bundle-config.1
164
- - bundler/man/bundle-clean.1
165
- - bundler/man/bundle-inject.1
166
142
  files:
167
143
  - ".rubocop.yml"
168
144
  - ".travis.yml"
@@ -406,53 +382,29 @@ files:
406
382
  - bundler/lib/bundler/vlad.rb
407
383
  - bundler/lib/bundler/worker.rb
408
384
  - bundler/lib/bundler/yaml_serializer.rb
409
- - bundler/man/bundle-add.1
410
385
  - bundler/man/bundle-add.ronn
411
- - bundler/man/bundle-binstubs.1
412
386
  - bundler/man/bundle-binstubs.ronn
413
- - bundler/man/bundle-check.1
414
387
  - bundler/man/bundle-check.ronn
415
- - bundler/man/bundle-clean.1
416
388
  - bundler/man/bundle-clean.ronn
417
- - bundler/man/bundle-config.1
418
389
  - bundler/man/bundle-config.ronn
419
- - bundler/man/bundle-doctor.1
420
390
  - bundler/man/bundle-doctor.ronn
421
- - bundler/man/bundle-exec.1
422
391
  - bundler/man/bundle-exec.ronn
423
- - bundler/man/bundle-gem.1
424
392
  - bundler/man/bundle-gem.ronn
425
- - bundler/man/bundle-info.1
426
393
  - bundler/man/bundle-info.ronn
427
- - bundler/man/bundle-init.1
428
394
  - bundler/man/bundle-init.ronn
429
- - bundler/man/bundle-inject.1
430
395
  - bundler/man/bundle-inject.ronn
431
- - bundler/man/bundle-install.1
432
396
  - bundler/man/bundle-install.ronn
433
- - bundler/man/bundle-list.1
434
397
  - bundler/man/bundle-list.ronn
435
- - bundler/man/bundle-lock.1
436
398
  - bundler/man/bundle-lock.ronn
437
- - bundler/man/bundle-open.1
438
399
  - bundler/man/bundle-open.ronn
439
- - bundler/man/bundle-outdated.1
440
400
  - bundler/man/bundle-outdated.ronn
441
- - bundler/man/bundle-package.1
442
401
  - bundler/man/bundle-package.ronn
443
- - bundler/man/bundle-platform.1
444
402
  - bundler/man/bundle-platform.ronn
445
- - bundler/man/bundle-pristine.1
446
403
  - bundler/man/bundle-pristine.ronn
447
- - bundler/man/bundle-remove.1
448
404
  - bundler/man/bundle-remove.ronn
449
- - bundler/man/bundle-show.1
450
405
  - bundler/man/bundle-show.ronn
451
- - bundler/man/bundle-update.1
452
406
  - bundler/man/bundle-update.ronn
453
- - bundler/man/bundle-viz.1
454
407
  - bundler/man/bundle-viz.ronn
455
- - bundler/man/bundle.1
456
408
  - bundler/man/bundle.ronn
457
409
  - bundler/man/gemfile.5.ronn
458
410
  - hide_lib_for_update/note.txt
@@ -859,7 +811,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
859
811
  - !ruby/object:Gem::Version
860
812
  version: '0'
861
813
  requirements: []
862
- rubygems_version: 3.1.0.pre1
814
+ rubygems_version: 3.0.3
863
815
  signing_key:
864
816
  specification_version: 4
865
817
  summary: RubyGems is a package management framework for Ruby.
@@ -1,58 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "BUNDLE\-ADD" "1" "November 2018" "" ""
5
- .
6
- .SH "NAME"
7
- \fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
8
- .
9
- .SH "SYNOPSIS"
10
- \fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE] [\-\-skip\-install] [\-\-strict] [\-\-optimistic]
11
- .
12
- .SH "DESCRIPTION"
13
- Adds the named gem to the Gemfile and run \fBbundle install\fR\. \fBbundle install\fR can be avoided by using the flag \fB\-\-skip\-install\fR\.
14
- .
15
- .P
16
- Example:
17
- .
18
- .P
19
- bundle add rails
20
- .
21
- .P
22
- bundle add rails \-\-version "< 3\.0, > 1\.1"
23
- .
24
- .P
25
- bundle add rails \-\-version "~> 5\.0\.0" \-\-source "https://gems\.example\.com" \-\-group "development"
26
- .
27
- .P
28
- bundle add rails \-\-skip\-install
29
- .
30
- .P
31
- bundle add rails \-\-group "development, test"
32
- .
33
- .SH "OPTIONS"
34
- .
35
- .TP
36
- \fB\-\-version\fR, \fB\-v\fR
37
- Specify version requirements(s) for the added gem\.
38
- .
39
- .TP
40
- \fB\-\-group\fR, \fB\-g\fR
41
- Specify the group(s) for the added gem\. Multiple groups should be separated by commas\.
42
- .
43
- .TP
44
- \fB\-\-source\fR, , \fB\-s\fR
45
- Specify the source for the added gem\.
46
- .
47
- .TP
48
- \fB\-\-skip\-install\fR
49
- Adds the gem to the Gemfile but does not install it\.
50
- .
51
- .TP
52
- \fB\-\-optimistic\fR
53
- Adds optimistic declaration of version
54
- .
55
- .TP
56
- \fB\-\-strict\fR
57
- Adds strict declaration of version
58
-
@@ -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
-