diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-19 15:31:40 +0200 |
|---|---|---|
| committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-10 12:08:14 +0200 |
| commit | 60d720eb065cfb0a87c3db89ba471739d5f9386c (patch) | |
| tree | 071178452702600cbfbe6532f443c348fe416396 /lib/bundler/dependency.rb | |
| parent | 9f07207d64c7044c35774f852f56aedadf863e22 (diff) | |
| download | bundler-60d720eb065cfb0a87c3db89ba471739d5f9386c.tar.gz | |
Extract `expanded_platforms`
Diffstat (limited to 'lib/bundler/dependency.rb')
| -rw-r--r-- | lib/bundler/dependency.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb index 55ffea02b6..6c2642163e 100644 --- a/lib/bundler/dependency.rb +++ b/lib/bundler/dependency.rb @@ -105,11 +105,15 @@ module Bundler def gem_platforms(valid_platforms) return valid_platforms if @platforms.empty? - @gem_platforms ||= @platforms.map {|pl| PLATFORM_MAP[pl] }.compact.uniq + @gem_platforms ||= expanded_platforms.compact.uniq valid_platforms & @gem_platforms end + def expanded_platforms + @platforms.map {|pl| PLATFORM_MAP[pl] } + end + def should_include? @should_include && current_env? && current_platform? end |
