mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
parent
f602cb55d7
commit
7fdf98ef39
2 changed files with 9 additions and 2 deletions
|
@ -22,6 +22,11 @@ class Gem::Platform
|
|||
match_platforms?(platform, Gem.platforms)
|
||||
end
|
||||
|
||||
class << self
|
||||
extend Gem::Deprecate
|
||||
rubygems_deprecate :match, "Gem::Platform.match_spec? or match_gem?"
|
||||
end
|
||||
|
||||
def self.match_platforms?(platform, platforms)
|
||||
platform = Gem::Platform.new(platform) unless platform.is_a?(Gem::Platform)
|
||||
platforms.any? do |local_platform|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue