bundler 2.1.0.pre.2 → 2.1.0.pre.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -1
  3. data/lib/bundler.rb +87 -24
  4. data/lib/bundler/build_metadata.rb +2 -2
  5. data/lib/bundler/cli.rb +55 -25
  6. data/lib/bundler/cli/add.rb +1 -0
  7. data/lib/bundler/cli/{package.rb → cache.rb} +2 -2
  8. data/lib/bundler/cli/exec.rb +0 -7
  9. data/lib/bundler/dsl.rb +1 -1
  10. data/lib/bundler/friendly_errors.rb +1 -1
  11. data/lib/bundler/gem_helper.rb +0 -2
  12. data/lib/bundler/gem_helpers.rb +1 -1
  13. data/lib/bundler/inline.rb +7 -3
  14. data/lib/bundler/lockfile_parser.rb +1 -0
  15. data/lib/bundler/rubygems_ext.rb +1 -1
  16. data/lib/bundler/rubygems_integration.rb +0 -1
  17. data/lib/bundler/setup.rb +2 -9
  18. data/lib/bundler/shared_helpers.rb +12 -25
  19. data/lib/bundler/source/git.rb +1 -1
  20. data/lib/bundler/source/git/git_proxy.rb +1 -1
  21. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +132 -109
  22. data/lib/bundler/vendor/fileutils/lib/fileutils/version.rb +1 -1
  23. data/lib/bundler/vendor/thor/lib/thor.rb +5 -2
  24. data/lib/bundler/vendor/thor/lib/thor/actions.rb +1 -0
  25. data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +6 -16
  26. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +5 -5
  27. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +18 -7
  28. data/lib/bundler/vendor/thor/lib/thor/base.rb +10 -8
  29. data/lib/bundler/vendor/thor/lib/thor/command.rb +21 -14
  30. data/lib/bundler/vendor/thor/lib/thor/error.rb +14 -18
  31. data/lib/bundler/vendor/thor/lib/thor/invocation.rb +1 -0
  32. data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +1 -1
  33. data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +6 -6
  34. data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +1 -1
  35. data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +8 -6
  36. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +13 -3
  37. data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +1 -0
  38. data/lib/bundler/vendor/thor/lib/thor/runner.rb +2 -0
  39. data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +5 -1
  40. data/lib/bundler/version.rb +1 -1
  41. data/man/bundle-add.1 +1 -1
  42. data/man/bundle-add.1.txt +1 -1
  43. data/man/bundle-binstubs.1 +1 -1
  44. data/man/bundle-binstubs.1.txt +1 -1
  45. data/man/bundle-cache.1 +55 -0
  46. data/man/bundle-cache.1.txt +78 -0
  47. data/man/{bundle-package.ronn → bundle-cache.ronn} +15 -15
  48. data/man/bundle-check.1 +1 -1
  49. data/man/bundle-check.1.txt +1 -1
  50. data/man/bundle-clean.1 +1 -1
  51. data/man/bundle-clean.1.txt +1 -1
  52. data/man/bundle-config.1 +1 -1
  53. data/man/bundle-config.1.txt +1 -1
  54. data/man/bundle-doctor.1 +1 -1
  55. data/man/bundle-doctor.1.txt +1 -1
  56. data/man/bundle-exec.1 +1 -1
  57. data/man/bundle-exec.1.txt +1 -1
  58. data/man/bundle-gem.1 +1 -1
  59. data/man/bundle-gem.1.txt +1 -1
  60. data/man/bundle-info.1 +1 -1
  61. data/man/bundle-info.1.txt +1 -1
  62. data/man/bundle-init.1 +1 -1
  63. data/man/bundle-init.1.txt +1 -1
  64. data/man/bundle-inject.1 +1 -1
  65. data/man/bundle-inject.1.txt +1 -1
  66. data/man/bundle-install.1 +1 -1
  67. data/man/bundle-install.1.txt +1 -1
  68. data/man/bundle-list.1 +1 -1
  69. data/man/bundle-list.1.txt +1 -1
  70. data/man/bundle-lock.1 +1 -1
  71. data/man/bundle-lock.1.txt +1 -1
  72. data/man/bundle-open.1 +1 -1
  73. data/man/bundle-open.1.txt +1 -1
  74. data/man/bundle-outdated.1 +1 -1
  75. data/man/bundle-outdated.1.txt +1 -1
  76. data/man/bundle-platform.1 +1 -1
  77. data/man/bundle-platform.1.txt +1 -1
  78. data/man/bundle-pristine.1 +1 -1
  79. data/man/bundle-pristine.1.txt +1 -1
  80. data/man/bundle-remove.1 +1 -1
  81. data/man/bundle-remove.1.txt +1 -1
  82. data/man/bundle-show.1 +1 -1
  83. data/man/bundle-show.1.txt +1 -1
  84. data/man/bundle-update.1 +1 -1
  85. data/man/bundle-update.1.txt +1 -1
  86. data/man/bundle-viz.1 +1 -1
  87. data/man/bundle-viz.1.txt +1 -1
  88. data/man/bundle.1 +1 -1
  89. data/man/bundle.1.txt +1 -1
  90. data/man/gemfile.5 +1 -1
  91. data/man/gemfile.5.txt +1 -1
  92. data/man/index.txt +1 -1
  93. metadata +6 -7
  94. data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +0 -129
  95. data/man/bundle-package.1 +0 -55
  96. data/man/bundle-package.1.txt +0 -79
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-LIST" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-LIST" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-list\fR \- List all the gems in the bundle
@@ -40,4 +40,4 @@ OPTIONS
40
40
 
41
41
 
42
42
 
43
- September 2019 BUNDLE-LIST(1)
43
+ November 2019 BUNDLE-LIST(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-LOCK" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-LOCK" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
@@ -90,4 +90,4 @@ PATCH LEVEL OPTIONS
90
90
 
91
91
 
92
92
 
93
- September 2019 BUNDLE-LOCK(1)
93
+ November 2019 BUNDLE-LOCK(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-OPEN" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-OPEN" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
@@ -26,4 +26,4 @@ DESCRIPTION
26
26
 
27
27
 
28
28
 
29
- September 2019 BUNDLE-OPEN(1)
29
+ November 2019 BUNDLE-OPEN(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-OUTDATED" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-OUTDATED" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-outdated\fR \- List installed gems with newer versions available
@@ -128,4 +128,4 @@ FILTERING OUTPUT
128
128
 
129
129
 
130
130
 
131
- September 2019 BUNDLE-OUTDATED(1)
131
+ November 2019 BUNDLE-OUTDATED(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-PLATFORM" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-PLATFORM" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-platform\fR \- Displays platform compatibility information
@@ -54,4 +54,4 @@ OPTIONS
54
54
 
55
55
 
56
56
 
57
- September 2019 BUNDLE-PLATFORM(1)
57
+ November 2019 BUNDLE-PLATFORM(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-PRISTINE" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-PRISTINE" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
@@ -41,4 +41,4 @@ DESCRIPTION
41
41
 
42
42
 
43
43
 
44
- September 2019 BUNDLE-PRISTINE(1)
44
+ November 2019 BUNDLE-PRISTINE(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-REMOVE" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-REMOVE" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-remove\fR \- Removes gems from the Gemfile
@@ -31,4 +31,4 @@ OPTIONS
31
31
 
32
32
 
33
33
 
34
- September 2019 BUNDLE-REMOVE(1)
34
+ November 2019 BUNDLE-REMOVE(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-SHOW" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-SHOW" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
@@ -24,4 +24,4 @@ OPTIONS
24
24
 
25
25
 
26
26
 
27
- September 2019 BUNDLE-SHOW(1)
27
+ November 2019 BUNDLE-SHOW(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-UPDATE" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-UPDATE" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-update\fR \- Update your gems to the latest available versions
@@ -387,4 +387,4 @@ RECOMMENDED WORKFLOW
387
387
 
388
388
 
389
389
 
390
- September 2019 BUNDLE-UPDATE(1)
390
+ November 2019 BUNDLE-UPDATE(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-VIZ" "1" "September 2019" "" ""
4
+ .TH "BUNDLE\-VIZ" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
@@ -36,4 +36,4 @@ OPTIONS
36
36
 
37
37
 
38
38
 
39
- September 2019 BUNDLE-VIZ(1)
39
+ November 2019 BUNDLE-VIZ(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE" "1" "September 2019" "" ""
4
+ .TH "BUNDLE" "1" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\fR \- Ruby Dependency Management
@@ -113,4 +113,4 @@ OBSOLETE
113
113
 
114
114
 
115
115
 
116
- September 2019 BUNDLE(1)
116
+ November 2019 BUNDLE(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "GEMFILE" "5" "September 2019" "" ""
4
+ .TH "GEMFILE" "5" "November 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
@@ -646,4 +646,4 @@ SOURCE PRIORITY
646
646
 
647
647
 
648
648
 
649
- September 2019 GEMFILE(5)
649
+ November 2019 GEMFILE(5)
@@ -2,6 +2,7 @@ Gemfile(5) gemfile.5
2
2
  bundle(1) bundle.1
3
3
  bundle-add(1) bundle-add.1
4
4
  bundle-binstubs(1) bundle-binstubs.1
5
+ bundle-cache(1) bundle-cache.1
5
6
  bundle-check(1) bundle-check.1
6
7
  bundle-clean(1) bundle-clean.1
7
8
  bundle-config(1) bundle-config.1
@@ -16,7 +17,6 @@ bundle-list(1) bundle-list.1
16
17
  bundle-lock(1) bundle-lock.1
17
18
  bundle-open(1) bundle-open.1
18
19
  bundle-outdated(1) bundle-outdated.1
19
- bundle-package(1) bundle-package.1
20
20
  bundle-platform(1) bundle-platform.1
21
21
  bundle-pristine(1) bundle-pristine.1
22
22
  bundle-remove(1) bundle-remove.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.pre.2
4
+ version: 2.1.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: exe
24
24
  cert_chain: []
25
- date: 2019-09-15 00:00:00.000000000 Z
25
+ date: 2019-11-12 00:00:00.000000000 Z
26
26
  dependencies: []
27
27
  description: Bundler manages an application's dependencies through its entire life,
28
28
  across many machines, systematically and repeatably
@@ -46,6 +46,7 @@ files:
46
46
  - lib/bundler/cli.rb
47
47
  - lib/bundler/cli/add.rb
48
48
  - lib/bundler/cli/binstubs.rb
49
+ - lib/bundler/cli/cache.rb
49
50
  - lib/bundler/cli/check.rb
50
51
  - lib/bundler/cli/clean.rb
51
52
  - lib/bundler/cli/common.rb
@@ -63,7 +64,6 @@ files:
63
64
  - lib/bundler/cli/lock.rb
64
65
  - lib/bundler/cli/open.rb
65
66
  - lib/bundler/cli/outdated.rb
66
- - lib/bundler/cli/package.rb
67
67
  - lib/bundler/cli/platform.rb
68
68
  - lib/bundler/cli/plugin.rb
69
69
  - lib/bundler/cli/pristine.rb
@@ -227,7 +227,6 @@ files:
227
227
  - lib/bundler/vendor/thor/lib/thor/command.rb
228
228
  - lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb
229
229
  - lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
230
- - lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb
231
230
  - lib/bundler/vendor/thor/lib/thor/error.rb
232
231
  - lib/bundler/vendor/thor/lib/thor/group.rb
233
232
  - lib/bundler/vendor/thor/lib/thor/invocation.rb
@@ -262,6 +261,9 @@ files:
262
261
  - man/bundle-binstubs.1
263
262
  - man/bundle-binstubs.1.txt
264
263
  - man/bundle-binstubs.ronn
264
+ - man/bundle-cache.1
265
+ - man/bundle-cache.1.txt
266
+ - man/bundle-cache.ronn
265
267
  - man/bundle-check.1
266
268
  - man/bundle-check.1.txt
267
269
  - man/bundle-check.ronn
@@ -304,9 +306,6 @@ files:
304
306
  - man/bundle-outdated.1
305
307
  - man/bundle-outdated.1.txt
306
308
  - man/bundle-outdated.ronn
307
- - man/bundle-package.1
308
- - man/bundle-package.1.txt
309
- - man/bundle-package.ronn
310
309
  - man/bundle-platform.1
311
310
  - man/bundle-platform.1.txt
312
311
  - man/bundle-platform.ronn
@@ -1,129 +0,0 @@
1
- class Bundler::Thor
2
- module CoreExt
3
- class OrderedHash < ::Hash
4
- if RUBY_VERSION < "1.9"
5
- def initialize(*args, &block)
6
- super
7
- @keys = []
8
- end
9
-
10
- def initialize_copy(other)
11
- super
12
- # make a deep copy of keys
13
- @keys = other.keys
14
- end
15
-
16
- def []=(key, value)
17
- @keys << key unless key?(key)
18
- super
19
- end
20
-
21
- def delete(key)
22
- if key? key
23
- index = @keys.index(key)
24
- @keys.delete_at index
25
- end
26
- super
27
- end
28
-
29
- def delete_if
30
- super
31
- sync_keys!
32
- self
33
- end
34
-
35
- alias_method :reject!, :delete_if
36
-
37
- def reject(&block)
38
- dup.reject!(&block)
39
- end
40
-
41
- def keys
42
- @keys.dup
43
- end
44
-
45
- def values
46
- @keys.map { |key| self[key] }
47
- end
48
-
49
- def to_hash
50
- self
51
- end
52
-
53
- def to_a
54
- @keys.map { |key| [key, self[key]] }
55
- end
56
-
57
- def each_key
58
- return to_enum(:each_key) unless block_given?
59
- @keys.each { |key| yield(key) }
60
- self
61
- end
62
-
63
- def each_value
64
- return to_enum(:each_value) unless block_given?
65
- @keys.each { |key| yield(self[key]) }
66
- self
67
- end
68
-
69
- def each
70
- return to_enum(:each) unless block_given?
71
- @keys.each { |key| yield([key, self[key]]) }
72
- self
73
- end
74
-
75
- def each_pair
76
- return to_enum(:each_pair) unless block_given?
77
- @keys.each { |key| yield(key, self[key]) }
78
- self
79
- end
80
-
81
- alias_method :select, :find_all
82
-
83
- def clear
84
- super
85
- @keys.clear
86
- self
87
- end
88
-
89
- def shift
90
- k = @keys.first
91
- v = delete(k)
92
- [k, v]
93
- end
94
-
95
- def merge!(other_hash)
96
- if block_given?
97
- other_hash.each { |k, v| self[k] = key?(k) ? yield(k, self[k], v) : v }
98
- else
99
- other_hash.each { |k, v| self[k] = v }
100
- end
101
- self
102
- end
103
-
104
- alias_method :update, :merge!
105
-
106
- def merge(other_hash, &block)
107
- dup.merge!(other_hash, &block)
108
- end
109
-
110
- # When replacing with another hash, the initial order of our keys must come from the other hash -ordered or not.
111
- def replace(other)
112
- super
113
- @keys = other.keys
114
- self
115
- end
116
-
117
- def inspect
118
- "#<#{self.class} #{super}>"
119
- end
120
-
121
- private
122
-
123
- def sync_keys!
124
- @keys.delete_if { |k| !key?(k) }
125
- end
126
- end
127
- end
128
- end
129
- end
@@ -1,55 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "BUNDLE\-PACKAGE" "1" "September 2019" "" ""
5
- .
6
- .SH "NAME"
7
- \fBbundle\-package\fR \- Package your needed \fB\.gem\fR files into your application
8
- .
9
- .SH "SYNOPSIS"
10
- \fBbundle package\fR
11
- .
12
- .SH "DESCRIPTION"
13
- Copy all of the \fB\.gem\fR files needed to run the application into the \fBvendor/cache\fR directory\. In the future, when running [bundle install(1)][bundle\-install], use the gems in the cache in preference to the ones on \fBrubygems\.org\fR\.
14
- .
15
- .SH "GIT AND PATH GEMS"
16
- Since Bundler 1\.2, the \fBbundle package\fR command can also package \fB:git\fR and \fB:path\fR dependencies besides \.gem files\. This needs to be explicitly enabled via the \fB\-\-all\fR option\. Once used, the \fB\-\-all\fR option will be remembered\.
17
- .
18
- .SH "SUPPORT FOR MULTIPLE PLATFORMS"
19
- When using gems that have different packages for different platforms, Bundler 1\.8 and newer support caching of gems for other platforms where the Gemfile has been resolved (i\.e\. present in the lockfile) in \fBvendor/cache\fR\. This needs to be enabled via the \fB\-\-all\-platforms\fR option\. This setting will be remembered in your local bundler configuration\.
20
- .
21
- .SH "REMOTE FETCHING"
22
- By default, if you run \fBbundle install(1)\fR](bundle\-install\.1\.html) after running bundle package(1) \fIbundle\-package\.1\.html\fR, bundler will still connect to \fBrubygems\.org\fR to check whether a platform\-specific gem exists for any of the gems in \fBvendor/cache\fR\.
23
- .
24
- .P
25
- For instance, consider this Gemfile(5):
26
- .
27
- .IP "" 4
28
- .
29
- .nf
30
-
31
- source "https://rubygems\.org"
32
-
33
- gem "nokogiri"
34
- .
35
- .fi
36
- .
37
- .IP "" 0
38
- .
39
- .P
40
- If you run \fBbundle package\fR under C Ruby, bundler will retrieve the version of \fBnokogiri\fR for the \fB"ruby"\fR platform\. If you deploy to JRuby and run \fBbundle install\fR, bundler is forced to check to see whether a \fB"java"\fR platformed \fBnokogiri\fR exists\.
41
- .
42
- .P
43
- Even though the \fBnokogiri\fR gem for the Ruby platform is \fItechnically\fR acceptable on JRuby, it has a C extension that does not run on JRuby\. As a result, bundler will, by default, still connect to \fBrubygems\.org\fR to check whether it has a version of one of your gems more specific to your platform\.
44
- .
45
- .P
46
- This problem is also not limited to the \fB"java"\fR platform\. A similar (common) problem can happen when developing on Windows and deploying to Linux, or even when developing on OSX and deploying to Linux\.
47
- .
48
- .P
49
- If you know for sure that the gems packaged in \fBvendor/cache\fR are appropriate for the platform you are on, you can run \fBbundle install \-\-local\fR to skip checking for more appropriate gems, and use the ones in \fBvendor/cache\fR\.
50
- .
51
- .P
52
- One way to be sure that you have the right platformed versions of all your gems is to run \fBbundle package\fR on an identical machine and check in the gems\. For instance, you can run \fBbundle package\fR on an identical staging box during your staging process, and check in the \fBvendor/cache\fR before deploying to production\.
53
- .
54
- .P
55
- By default, bundle package(1) \fIbundle\-package\.1\.html\fR fetches and also installs the gems to the default location\. To package the dependencies to \fBvendor/cache\fR without installing them to the local install location, you can run \fBbundle package \-\-no\-install\fR\.