文件操作 - optimist.gemspec
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/optimist-3.1.0/optimist.gemspec
编辑文件内容
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'optimist' Gem::Specification.new do |spec| spec.name = "optimist" spec.version = Optimist::VERSION spec.authors = ["William Morgan", "Keenan Brock", "Jason Frey"] spec.email = "keenan@thebrocks.net" spec.summary = "Optimist is a commandline option parser for Ruby that just gets out of your way." spec.description = "Optimist is a commandline option parser for Ruby that just gets out of your way. One line of code per option is all you need to write. For that, you get a nice automatically-generated help page, robust option parsing, command subcompletion, and sensible defaults for everything you don't specify." spec.homepage = "http://manageiq.github.io/optimist/" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.metadata = { "changelog_uri" => "https://github.com/ManageIQ/optimist/blob/master/History.txt", "source_code_uri" => "https://github.com/ManageIQ/optimist/", "bug_tracker_uri" => "https://github.com/ManageIQ/optimist/issues", } spec.require_paths = ["lib"] spec.add_development_dependency "chronic" spec.add_development_dependency "manageiq-style" spec.add_development_dependency "minitest", "~> 5.4.3" spec.add_development_dependency "rake", ">= 10.0" end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件