mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge fileutils from ruby/fileutils on GitHub.
* It was separated version file for gemspec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5b1bbc9af0
commit
818648ac40
3 changed files with 19 additions and 6 deletions
|
@ -6,6 +6,9 @@ rescue LoadError
|
|||
# for make mjit-headers
|
||||
end
|
||||
|
||||
require "fileutils/version"
|
||||
|
||||
#
|
||||
# = fileutils.rb
|
||||
#
|
||||
# Copyright (c) 2000-2007 Minero Aoki
|
||||
|
@ -62,7 +65,7 @@ end
|
|||
#
|
||||
# There are some `low level' methods, which do not accept any option:
|
||||
#
|
||||
# FileUtils.copy_entry(src, dest, preserve = false, dereference = false)
|
||||
# FileUtils.copy_entry(src, dest, preserve = false, dereference_root = false, remove_destination = false)
|
||||
# FileUtils.copy_file(src, dest, preserve = false, dereference = true)
|
||||
# FileUtils.copy_stream(srcstream, deststream)
|
||||
# FileUtils.remove_entry(path, force = false)
|
||||
|
@ -89,11 +92,9 @@ end
|
|||
# This module has all methods of FileUtils module, but never changes
|
||||
# files/directories. This equates to passing the <tt>:noop</tt> and
|
||||
# <tt>:verbose</tt> flags to methods in FileUtils.
|
||||
|
||||
#
|
||||
module FileUtils
|
||||
|
||||
VERSION = "1.1.0"
|
||||
|
||||
def self.private_module_function(name) #:nodoc:
|
||||
module_function name
|
||||
private_class_method name
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require_relative "lib/fileutils/version"
|
||||
rescue LoadError
|
||||
# for Ruby core repository
|
||||
require_relative "version"
|
||||
end
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "fileutils"
|
||||
s.version = '1.1.0'
|
||||
s.version = FileUtils::VERSION
|
||||
s.summary = "Several file utility methods for copying, moving, removing, etc."
|
||||
s.description = "Several file utility methods for copying, moving, removing, etc."
|
||||
|
||||
s.require_path = %w{lib}
|
||||
s.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "fileutils.gemspec", "lib/fileutils.rb"]
|
||||
s.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "fileutils.gemspec", "lib/fileutils.rb", "lib/fileutils/version.rb"]
|
||||
s.required_ruby_version = ">= 2.3.0"
|
||||
|
||||
s.authors = ["Minero Aoki"]
|
5
lib/fileutils/version.rb
Normal file
5
lib/fileutils/version.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module FileUtils
|
||||
VERSION = "1.1.0"
|
||||
end
|
Loading…
Add table
Reference in a new issue