diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-07-09 13:11:28 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-17 18:50:55 +0900 |
commit | 2d8b55fcd2cf816f4548ca7be48ba74b2cb0e05e (patch) | |
tree | 579bf1d30695051ecb4bc59e301dd2efd1c067a8 /spec/bundler/support | |
parent | 9492efbe714e97abc5c656fca13a6602199a1ba8 (diff) | |
download | ruby-2d8b55fcd2cf816f4548ca7be48ba74b2cb0e05e.tar.gz |
[rubygems/rubygems] Simplify `lockfile_platforms` helper
To make it easier to change the default platforms that get locked later.
https://github.com/rubygems/rubygems/commit/255c4012ec
Diffstat (limited to 'spec/bundler/support')
-rw-r--r-- | spec/bundler/support/platforms.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/bundler/support/platforms.rb b/spec/bundler/support/platforms.rb index 355053a4fd..3cc28e0a61 100644 --- a/spec/bundler/support/platforms.rb +++ b/spec/bundler/support/platforms.rb @@ -99,12 +99,8 @@ module Spec 9999 end - def lockfile_platforms - lockfile_platforms_for(specific_local_platform) - end - - def lockfile_platforms_for(*platforms) - platforms.map(&:to_s).sort.join("\n ") + def lockfile_platforms(*extra) + [specific_local_platform, *extra].map(&:to_s).sort.join("\n ") end end end |