bundler 2.4.7 → 2.4.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +167 -0
  3. data/README.md +1 -4
  4. data/exe/bundle +5 -13
  5. data/lib/bundler/build_metadata.rb +2 -2
  6. data/lib/bundler/cli/binstubs.rb +1 -1
  7. data/lib/bundler/cli/info.rb +1 -1
  8. data/lib/bundler/cli/install.rb +1 -1
  9. data/lib/bundler/cli/outdated.rb +1 -1
  10. data/lib/bundler/cli/platform.rb +7 -5
  11. data/lib/bundler/definition.rb +108 -58
  12. data/lib/bundler/dsl.rb +1 -1
  13. data/lib/bundler/endpoint_specification.rb +0 -4
  14. data/lib/bundler/env.rb +1 -1
  15. data/lib/bundler/environment_preserver.rb +2 -2
  16. data/lib/bundler/feature_flag.rb +0 -1
  17. data/lib/bundler/fetcher/compact_index.rb +3 -3
  18. data/lib/bundler/fetcher/dependency.rb +1 -5
  19. data/lib/bundler/fetcher/downloader.rb +2 -0
  20. data/lib/bundler/fetcher/index.rb +1 -2
  21. data/lib/bundler/fetcher.rb +13 -3
  22. data/lib/bundler/friendly_errors.rb +1 -1
  23. data/lib/bundler/gem_helper.rb +3 -4
  24. data/lib/bundler/gem_version_promoter.rb +1 -1
  25. data/lib/bundler/index.rb +2 -2
  26. data/lib/bundler/injector.rb +1 -1
  27. data/lib/bundler/installer/parallel_installer.rb +2 -15
  28. data/lib/bundler/installer.rb +1 -1
  29. data/lib/bundler/lazy_specification.rb +5 -9
  30. data/lib/bundler/lockfile_generator.rb +2 -2
  31. data/lib/bundler/lockfile_parser.rb +12 -11
  32. data/lib/bundler/man/bundle-add.1 +1 -1
  33. data/lib/bundler/man/bundle-binstubs.1 +1 -1
  34. data/lib/bundler/man/bundle-cache.1 +3 -3
  35. data/lib/bundler/man/bundle-cache.1.ronn +2 -2
  36. data/lib/bundler/man/bundle-check.1 +1 -1
  37. data/lib/bundler/man/bundle-clean.1 +1 -1
  38. data/lib/bundler/man/bundle-config.1 +1 -4
  39. data/lib/bundler/man/bundle-config.1.ronn +0 -3
  40. data/lib/bundler/man/bundle-console.1 +1 -1
  41. data/lib/bundler/man/bundle-doctor.1 +1 -1
  42. data/lib/bundler/man/bundle-exec.1 +1 -1
  43. data/lib/bundler/man/bundle-gem.1 +1 -1
  44. data/lib/bundler/man/bundle-help.1 +1 -1
  45. data/lib/bundler/man/bundle-info.1 +3 -3
  46. data/lib/bundler/man/bundle-info.1.ronn +3 -3
  47. data/lib/bundler/man/bundle-init.1 +1 -1
  48. data/lib/bundler/man/bundle-inject.1 +1 -1
  49. data/lib/bundler/man/bundle-install.1 +1 -1
  50. data/lib/bundler/man/bundle-list.1 +1 -1
  51. data/lib/bundler/man/bundle-lock.1 +1 -1
  52. data/lib/bundler/man/bundle-open.1 +1 -1
  53. data/lib/bundler/man/bundle-outdated.1 +13 -9
  54. data/lib/bundler/man/bundle-outdated.1.ronn +12 -9
  55. data/lib/bundler/man/bundle-platform.1 +1 -1
  56. data/lib/bundler/man/bundle-plugin.1 +1 -1
  57. data/lib/bundler/man/bundle-pristine.1 +1 -1
  58. data/lib/bundler/man/bundle-remove.1 +1 -1
  59. data/lib/bundler/man/bundle-show.1 +1 -1
  60. data/lib/bundler/man/bundle-update.1 +1 -1
  61. data/lib/bundler/man/bundle-version.1 +1 -1
  62. data/lib/bundler/man/bundle-viz.1 +1 -1
  63. data/lib/bundler/man/bundle.1 +1 -1
  64. data/lib/bundler/man/gemfile.5 +15 -2
  65. data/lib/bundler/man/gemfile.5.ronn +6 -1
  66. data/lib/bundler/plugin/index.rb +1 -1
  67. data/lib/bundler/plugin/installer.rb +5 -2
  68. data/lib/bundler/plugin.rb +1 -1
  69. data/lib/bundler/remote_specification.rb +2 -6
  70. data/lib/bundler/resolver/base.rb +37 -7
  71. data/lib/bundler/resolver.rb +22 -11
  72. data/lib/bundler/ruby_dsl.rb +6 -0
  73. data/lib/bundler/ruby_version.rb +3 -3
  74. data/lib/bundler/rubygems_ext.rb +5 -3
  75. data/lib/bundler/rubygems_integration.rb +2 -2
  76. data/lib/bundler/runtime.rb +1 -1
  77. data/lib/bundler/safe_marshal.rb +31 -0
  78. data/lib/bundler/settings.rb +4 -4
  79. data/lib/bundler/setup.rb +4 -1
  80. data/lib/bundler/shared_helpers.rb +1 -1
  81. data/lib/bundler/source/git/git_proxy.rb +52 -17
  82. data/lib/bundler/source/git.rb +42 -15
  83. data/lib/bundler/source/path.rb +1 -1
  84. data/lib/bundler/source/rubygems.rb +14 -15
  85. data/lib/bundler/source.rb +1 -1
  86. data/lib/bundler/source_list.rb +0 -4
  87. data/lib/bundler/spec_set.rb +15 -5
  88. data/lib/bundler/templates/Executable.bundler +1 -1
  89. data/lib/bundler/templates/newgem/Gemfile.tt +1 -1
  90. data/lib/bundler/templates/newgem/Rakefile.tt +10 -0
  91. data/lib/bundler/templates/newgem/bin/console.tt +0 -4
  92. data/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +1 -1
  93. data/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +5 -0
  94. data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +1 -1
  95. data/lib/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +4 -4
  96. data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +1 -1
  97. data/lib/bundler/templates/newgem/newgem.gemspec.tt +2 -1
  98. data/lib/bundler/ui/rg_proxy.rb +1 -1
  99. data/lib/bundler/uri_normalizer.rb +23 -0
  100. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1 -1
  101. data/lib/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +0 -5
  102. data/lib/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +9 -4
  103. data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +2 -2
  104. data/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +3 -3
  105. data/lib/bundler/vendor/uri/lib/uri/version.rb +1 -1
  106. data/lib/bundler/version.rb +1 -1
  107. data/lib/bundler.rb +17 -24
  108. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a65f84ced002f9c1ab71db372d85d37f9578c02a5dc1e454ca62c895e7a4d247
4
- data.tar.gz: f5e1e1f51f2eaa82029c2129a4c703c75a6e8950370be93cc7bd802d89155bda
3
+ metadata.gz: a9e1ac32a1ea746c717048bdfc433edc9d61cd2184f6d07b24e6addb565c1693
4
+ data.tar.gz: 95ab89a536022f9c642dd02683640819134441441dd0c4ae7b1cb0e9dd561a68
5
5
  SHA512:
6
- metadata.gz: 458454313b85996243c7c77ba6ad6fba40ec2185bf657def24c8bce61595c2bd86f973f465dfcebec1ef01130c5c784dc820710437f62de9701bb6317236b3fb
7
- data.tar.gz: e35d6b4c930214928c4480df520ef5b342107d1d25da2dbc9596591eab94e115b53c2c4432ff5513630f3d60d18c8935b415bdb2b2bbd60e40d04228b8e2d292
6
+ metadata.gz: 1cda1a2dfbdf88aaf7627304dc8fc740d3e4343b6d4f0e97a6473dc168b3b78c1128973251625beeee479a0418c25972f7dedb0cbcc9e107666fcdad32c991c8
7
+ data.tar.gz: e4589afe5650d8a937a2c56196221db8ce72d8cb91539ca0fceb9ad742d542ab4415b5253e6ffa3c8b03ccaac3dc6e8fe3b25d61cb17cd9155cc50d16dc44d4c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,170 @@
1
+ # 2.4.19 (August 17, 2023)
2
+
3
+ ## Enhancements:
4
+
5
+ - Add `file` option to `ruby` method in Gemfile [#6876](https://github.com/rubygems/rubygems/pull/6876)
6
+ - Show better error when PAT can't authenticate to a private server [#6871](https://github.com/rubygems/rubygems/pull/6871)
7
+ - Don't fallback to old dependency API when bad credentials are configured [#6869](https://github.com/rubygems/rubygems/pull/6869)
8
+
9
+ ## Bug fixes:
10
+
11
+ - Fix git source conservativeness [#6850](https://github.com/rubygems/rubygems/pull/6850)
12
+
13
+ ## Documentation:
14
+
15
+ - Clarify that `bundle info` takes a gem name [#6875](https://github.com/rubygems/rubygems/pull/6875)
16
+
17
+ # 2.4.18 (August 2, 2023)
18
+
19
+ ## Security:
20
+
21
+ - Merge URI-0.12.2 for Bundler [#6779](https://github.com/rubygems/rubygems/pull/6779)
22
+
23
+ ## Enhancements:
24
+
25
+ - Update Magnus version in Rust extension gem template [#6843](https://github.com/rubygems/rubygems/pull/6843)
26
+
27
+ ## Documentation:
28
+
29
+ - Update bundle-outdated(1) man to use table output [#6833](https://github.com/rubygems/rubygems/pull/6833)
30
+
31
+ # 2.4.17 (July 14, 2023)
32
+
33
+ ## Enhancements:
34
+
35
+ - Avoid printing "Using ..." messages when version has not changed [#6804](https://github.com/rubygems/rubygems/pull/6804)
36
+
37
+ ## Bug fixes:
38
+
39
+ - Fix `bundler/setup` unintendedly writing to the filesystem [#6814](https://github.com/rubygems/rubygems/pull/6814)
40
+
41
+ # 2.4.16 (July 10, 2023)
42
+
43
+ ## Bug fixes:
44
+
45
+ - Exclude Bundler from missing locked dependencies check [#6792](https://github.com/rubygems/rubygems/pull/6792)
46
+ - Fix another incorrect removal of "ruby" platform from lockfile when changing path sources [#6784](https://github.com/rubygems/rubygems/pull/6784)
47
+ - Fix git source lockfile instability [#6786](https://github.com/rubygems/rubygems/pull/6786)
48
+
49
+ ## Documentation:
50
+
51
+ - `gemfile.5`: Code format the default glob to escape Markdown [#6790](https://github.com/rubygems/rubygems/pull/6790)
52
+
53
+ # 2.4.15 (June 29, 2023)
54
+
55
+ ## Enhancements:
56
+
57
+ - Improve edge case error message [#6733](https://github.com/rubygems/rubygems/pull/6733)
58
+
59
+ ## Bug fixes:
60
+
61
+ - Fix `bundle lock --update --bundler` [#6213](https://github.com/rubygems/rubygems/pull/6213)
62
+
63
+ # 2.4.14 (June 12, 2023)
64
+
65
+ ## Enhancements:
66
+
67
+ - Stop publishing Gemfile in default gem template [#6723](https://github.com/rubygems/rubygems/pull/6723)
68
+ - Avoid infinite loops when hitting resolution bugs [#6722](https://github.com/rubygems/rubygems/pull/6722)
69
+ - Make `LockfileParser` usable with just a lockfile [#6694](https://github.com/rubygems/rubygems/pull/6694)
70
+ - Always rely on `$LOAD_PATH` when jumping from `exe/` to `lib/` [#6702](https://github.com/rubygems/rubygems/pull/6702)
71
+ - Make `frozen` setting take precedence over `deployment` setting [#6685](https://github.com/rubygems/rubygems/pull/6685)
72
+ - Show an error when trying to update bundler in frozen mode [#6684](https://github.com/rubygems/rubygems/pull/6684)
73
+
74
+ ## Bug fixes:
75
+
76
+ - Fix `deployment` vs `path` precedence [#6703](https://github.com/rubygems/rubygems/pull/6703)
77
+ - Fix inline mode with multiple sources [#6699](https://github.com/rubygems/rubygems/pull/6699)
78
+
79
+ # 2.4.13 (May 9, 2023)
80
+
81
+ ## Bug fixes:
82
+
83
+ - Fix unexpected fallbacks to full index by adding FalseClass and Time to the SafeMarshal list [#6655](https://github.com/rubygems/rubygems/pull/6655)
84
+
85
+ ## Documentation:
86
+
87
+ - Fix broken hyperlinks in bundle cache documentation [#6606](https://github.com/rubygems/rubygems/pull/6606)
88
+
89
+ # 2.4.12 (April 11, 2023)
90
+
91
+ ## Enhancements:
92
+
93
+ - Remove reference to `pry` gem from generated `bin/console` file [#6515](https://github.com/rubygems/rubygems/pull/6515)
94
+
95
+ # 2.4.11 (April 10, 2023)
96
+
97
+ ## Security:
98
+
99
+ - Use URI-0.12.1 (safe against CVE-2023-28755 ReDoS vulnerability) [#6558](https://github.com/rubygems/rubygems/pull/6558)
100
+
101
+ ## Enhancements:
102
+
103
+ - Remove one fallback to full indexes on big gemfiles [#6578](https://github.com/rubygems/rubygems/pull/6578)
104
+ - Generate native gems with `-fvisibility=hidden` [#6541](https://github.com/rubygems/rubygems/pull/6541)
105
+
106
+ ## Bug fixes:
107
+
108
+ - Fix resolver hangs when dealing with an incomplete lockfile [#6552](https://github.com/rubygems/rubygems/pull/6552)
109
+ - Fix prereleases not being considered by gem version promoter when there's no lockfile [#6537](https://github.com/rubygems/rubygems/pull/6537)
110
+
111
+ # 2.4.10 (March 27, 2023)
112
+
113
+ ## Bug fixes:
114
+
115
+ - Fix some unnecessary top level dependency downgrades [#6535](https://github.com/rubygems/rubygems/pull/6535)
116
+ - Fix incorrect ruby platform removal from lockfile when adding Gemfile dependencies [#6540](https://github.com/rubygems/rubygems/pull/6540)
117
+ - Fix installing plugins in frozen mode [#6543](https://github.com/rubygems/rubygems/pull/6543)
118
+ - Restore "enumerability" of `SpecSet` [#6532](https://github.com/rubygems/rubygems/pull/6532)
119
+
120
+ # 2.4.9 (March 20, 2023)
121
+
122
+ ## Security:
123
+
124
+ - Don't recommend `--full-index` on errors [#6493](https://github.com/rubygems/rubygems/pull/6493)
125
+
126
+ ## Enhancements:
127
+
128
+ - Fix duplicated specs in some error messages [#6475](https://github.com/rubygems/rubygems/pull/6475)
129
+ - When running `bundle lock --update <name>`, checkout locked revision of unrelated git sources directly [#6459](https://github.com/rubygems/rubygems/pull/6459)
130
+ - Avoid expiring git sources when unnecessary [#6458](https://github.com/rubygems/rubygems/pull/6458)
131
+ - Use `RbSys::ExtensionTask` when creating new rust gems [#6352](https://github.com/rubygems/rubygems/pull/6352)
132
+ - Don't ignore pre-releases when there's only one candidate [#6441](https://github.com/rubygems/rubygems/pull/6441)
133
+
134
+ ## Bug fixes:
135
+
136
+ - Fix incorrect removal of ruby platform when auto-healing corrupted lockfiles [#6495](https://github.com/rubygems/rubygems/pull/6495)
137
+ - Don't consider platform specific candidates when `force_ruby_platform` set [#6442](https://github.com/rubygems/rubygems/pull/6442)
138
+ - Better deal with circular dependencies [#6330](https://github.com/rubygems/rubygems/pull/6330)
139
+
140
+ ## Documentation:
141
+
142
+ - Add debugging docs [#6387](https://github.com/rubygems/rubygems/pull/6387)
143
+ - Document our current release policy [#6450](https://github.com/rubygems/rubygems/pull/6450)
144
+
145
+ # 2.4.8 (March 8, 2023)
146
+
147
+ ## Security:
148
+
149
+ - Safe load all marshaled data [#6384](https://github.com/rubygems/rubygems/pull/6384)
150
+
151
+ ## Enhancements:
152
+
153
+ - Better suggestion when `bundler/setup` fails due to missing gems and Gemfile is not the default [#6428](https://github.com/rubygems/rubygems/pull/6428)
154
+ - Simplify the gem package file filter in the gemspec template [#6344](https://github.com/rubygems/rubygems/pull/6344)
155
+ - Auto-heal corrupted `Gemfile.lock` with no specs [#6423](https://github.com/rubygems/rubygems/pull/6423)
156
+ - Auto-heal on corrupted lockfile with missing deps [#6400](https://github.com/rubygems/rubygems/pull/6400)
157
+ - Give a better message when Gemfile branch does not exist [#6383](https://github.com/rubygems/rubygems/pull/6383)
158
+
159
+ ## Bug fixes:
160
+
161
+ - Respect --no-install option for git: sources [#6088](https://github.com/rubygems/rubygems/pull/6088)
162
+ - Fix `gems.rb` lockfile for bundler version lookup in template [#6413](https://github.com/rubygems/rubygems/pull/6413)
163
+
164
+ ## Documentation:
165
+
166
+ - Switch supporting explanations to all Ruby Central [#6419](https://github.com/rubygems/rubygems/pull/6419)
167
+
1
168
  # 2.4.7 (February 15, 2023)
2
169
 
3
170
  ## Enhancements:
data/README.md CHANGED
@@ -46,12 +46,9 @@ If you'd like to contribute to Bundler, that's awesome, and we <3 you. We've put
46
46
 
47
47
  If you'd like to request a substantial change to Bundler or its documentation, refer to the [Bundler RFC process](https://github.com/rubygems/rfcs) for more information.
48
48
 
49
- While some Bundler contributors are compensated by Ruby Together, the project maintainers make decisions independent of Ruby Together. As a project, we welcome contributions regardless of the author's affiliation with Ruby Together.
50
-
51
49
  ### Supporting
52
50
 
53
- <a href="https://rubytogether.org/"><img src="https://rubytogether.org/images/rubies.svg" width="150"></a><br>
54
- <a href="https://rubytogether.org/">Ruby Together</a> pays some Bundler maintainers for their ongoing work. As a grassroots initiative committed to supporting the critical Ruby infrastructure you rely on, Ruby Together is funded entirely by the Ruby community. Contribute today <a href="https://rubytogether.org/developers">as an individual</a> or (better yet) <a href="https://rubytogether.org/companies">as a company</a> to ensure that Bundler, RubyGems, and other shared tooling is around for years to come.
51
+ RubyGems is managed by [Ruby Central](https://rubycentral.org), a non-profit organization that supports the Ruby community through projects like this one, as well as [RubyConf](https://rubyconf.org), [RailsConf](https://railsconf.org), and [RubyGems.org](https://rubygems.org). You can support Ruby Central by attending or [sponsoring](sponsors@rubycentral.org) a conference, or by [joining as a supporting member](https://rubycentral.org/#/portal/signup).
55
52
 
56
53
  ### Code of Conduct
57
54
 
data/exe/bundle CHANGED
@@ -10,11 +10,11 @@ end
10
10
  base_path = File.expand_path("../lib", __dir__)
11
11
 
12
12
  if File.exist?(base_path)
13
- require_relative "../lib/bundler"
14
- else
15
- require "bundler"
13
+ $LOAD_PATH.unshift(base_path)
16
14
  end
17
15
 
16
+ require "bundler"
17
+
18
18
  if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::Version.new("2.7.a") && !ENV["BUNDLER_NO_OLD_RUBYGEMS_WARNING"]
19
19
  Bundler.ui.warn \
20
20
  "Your RubyGems version (#{Gem::VERSION}) has a bug that prevents " \
@@ -24,18 +24,10 @@ if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::V
24
24
  "and silence this warning by running `gem update --system 3.2.3`"
25
25
  end
26
26
 
27
- if File.exist?(base_path)
28
- require_relative "../lib/bundler/friendly_errors"
29
- else
30
- require "bundler/friendly_errors"
31
- end
27
+ require "bundler/friendly_errors"
32
28
 
33
29
  Bundler.with_friendly_errors do
34
- if File.exist?(base_path)
35
- require_relative "../lib/bundler/cli"
36
- else
37
- require "bundler/cli"
38
- end
30
+ require "bundler/cli"
39
31
 
40
32
  # Allow any command to use --help flag to show help for that command
41
33
  help_flags = %w[--help -h]
@@ -4,8 +4,8 @@ module Bundler
4
4
  # Represents metadata from when the Bundler gem was built.
5
5
  module BuildMetadata
6
6
  # begin ivars
7
- @built_at = "2023-02-15".freeze
8
- @git_commit_sha = "5d717a27e0".freeze
7
+ @built_at = "2023-08-17".freeze
8
+ @git_commit_sha = "86f98098e3".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -11,7 +11,7 @@ module Bundler
11
11
  def run
12
12
  Bundler.definition.validate_runtime!
13
13
  path_option = options["path"]
14
- path_option = nil if path_option && path_option.empty?
14
+ path_option = nil if path_option&.empty?
15
15
  Bundler.settings.set_command_option :bin, path_option if options["path"]
16
16
  Bundler.settings.set_command_option_if_given :shebang, options["shebang"]
17
17
  installer = Installer.new(Bundler.root, Bundler.definition)
@@ -33,7 +33,7 @@ module Bundler
33
33
  def default_gem_spec(gem_name)
34
34
  return unless Gem::Specification.respond_to?(:find_all_by_name)
35
35
  gem_spec = Gem::Specification.find_all_by_name(gem_name).last
36
- return gem_spec if gem_spec && gem_spec.respond_to?(:default_gem?) && gem_spec.default_gem?
36
+ return gem_spec if gem_spec&.default_gem?
37
37
  end
38
38
 
39
39
  def spec_not_found(gem_name)
@@ -154,7 +154,7 @@ module Bundler
154
154
  end
155
155
 
156
156
  bin_option = options["binstubs"]
157
- bin_option = nil if bin_option && bin_option.empty?
157
+ bin_option = nil if bin_option&.empty?
158
158
  Bundler.settings.set_command_option :bin, bin_option if options["binstubs"]
159
159
 
160
160
  Bundler.settings.set_command_option_if_given :shebang, options["shebang"]
@@ -194,7 +194,7 @@ module Bundler
194
194
  end
195
195
  current_version = "#{current_spec.version}#{current_spec.git_version}"
196
196
 
197
- if dependency && dependency.specific?
197
+ if dependency&.specific?
198
198
  dependency_version = %(, requested #{dependency.requirement})
199
199
  end
200
200
 
@@ -8,12 +8,12 @@ module Bundler
8
8
  end
9
9
 
10
10
  def run
11
- platforms, ruby_version = Bundler.ui.silence do
12
- locked_ruby_version = Bundler.locked_gems && Bundler.locked_gems.ruby_version&.gsub(/p\d+\Z/, "")
13
- gemfile_ruby_version = Bundler.definition.ruby_version && Bundler.definition.ruby_version.single_version_string
14
- [Bundler.definition.platforms.map {|p| "* #{p}" },
15
- locked_ruby_version || gemfile_ruby_version]
11
+ ruby_version = if Bundler.locked_gems
12
+ Bundler.locked_gems.ruby_version&.gsub(/p\d+\Z/, "")
13
+ else
14
+ Bundler.definition.ruby_version&.single_version_string
16
15
  end
16
+
17
17
  output = []
18
18
 
19
19
  if options[:ruby]
@@ -23,6 +23,8 @@ module Bundler
23
23
  output << "No ruby version specified"
24
24
  end
25
25
  else
26
+ platforms = Bundler.definition.platforms.map {|p| "* #{p}" }
27
+
26
28
  output << "Your platform is: #{Gem::Platform.local}"
27
29
  output << "Your app has gems that work on these platforms:\n#{platforms.join("\n")}"
28
30