模块 Bundler::FetchMetadata
公共实例方法
matches_current_ruby?() 点击切换源代码
包含一个后备方案,因为规范 API 的原始版本不包含该字段,因此索引中的某些编组规范将其设置为 nil
。
调用父类方法
# File bundler/match_remote_metadata.rb, line 8 def matches_current_ruby? @required_ruby_version ||= _remote_specification.required_ruby_version || Gem::Requirement.default super end
matches_current_rubygems?() 点击切换源代码
调用父类方法
# File bundler/match_remote_metadata.rb, line 14 def matches_current_rubygems? # A fallback is included because the original version of the specification # API didn't include that field, so some marshalled specs in the index have it # set to +nil+. @required_rubygems_version ||= _remote_specification.required_rubygems_version || Gem::Requirement.default super end