文件操作 - match_remote_metadata.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/3.2.0/bundler/match_remote_metadata.rb
编辑文件内容
# frozen_string_literal: true module Bundler module FetchMetadata # 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+. def matches_current_ruby? @required_ruby_version ||= _remote_specification.required_ruby_version || Gem::Requirement.default super end 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 end module MatchRemoteMetadata include MatchMetadata prepend FetchMetadata end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件