mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import digest v3.1.0 from ruby/digest
This commit is contained in:
parent
c87c027f18
commit
67aab88a22
3 changed files with 6 additions and 19 deletions
|
@ -1,12 +1,12 @@
|
|||
# coding: utf-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
version_module = Module.new do
|
||||
version_rb = File.join(__dir__, "lib/digest/version.rb")
|
||||
module_eval(File.read(version_rb), version_rb)
|
||||
end
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
version_module = Module.new do
|
||||
version_rb = File.join(__dir__, "lib/digest/version.rb")
|
||||
module_eval(File.read(version_rb), version_rb)
|
||||
end
|
||||
|
||||
spec.name = "digest"
|
||||
spec.version = version_module::Digest::VERSION
|
||||
spec.authors = ["Akinori MUSHA"]
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
require "fileutils"
|
||||
|
||||
*files, dest = ARGV
|
||||
|
||||
if File.exist?(File.join(dest, "ruby.h"))
|
||||
warn "installing header files"
|
||||
|
||||
files.each { |file|
|
||||
FileUtils.install file, dest, mode: 0644, verbose: true
|
||||
}
|
||||
else
|
||||
warn "not installing header files when installed as an external library"
|
||||
end
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Digest
|
||||
VERSION = "3.1.0.pre3"
|
||||
VERSION = "3.1.0"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue