mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
f69244cee8
Pick from 6b3a5a9ab0
13 lines
290 B
Ruby
13 lines
290 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Bundler
|
|
module MatchMetadata
|
|
def matches_current_ruby?
|
|
@required_ruby_version.satisfied_by?(Gem.ruby_version)
|
|
end
|
|
|
|
def matches_current_rubygems?
|
|
@required_rubygems_version.satisfied_by?(Gem.rubygems_version)
|
|
end
|
|
end
|
|
end
|