文件操作 - Gemfile.tt
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/3.2.0/bundler/templates/newgem/Gemfile.tt
编辑文件内容
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in <%= config[:name] %>.gemspec gemspec gem "rake", "~> 13.0" <%- if config[:ext] -%> gem "rake-compiler" <%- if config[:ext] == 'rust' -%> gem "rb_sys", "~> 0.9.63" <%- end -%> <%- end -%> <%- if config[:test] -%> gem "<%= config[:test] %>", "~> <%= config[:test_framework_version] %>" <%- end -%> <%- if config[:linter] == "rubocop" -%> gem "rubocop", "~> <%= config[:linter_version] %>" <%- elsif config[:linter] == "standard" -%> gem "standard", "~> <%= config[:linter_version] %>" <%- end -%>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件