1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/timeout] Add epoch.rake [ci skip]

https://github.com/ruby/timeout/commit/5153ae9cad
This commit is contained in:
Nobuyoshi Nakada 2022-05-25 19:04:31 +09:00 committed by git
parent df7a1377e6
commit 8006a15edf
2 changed files with 6 additions and 1 deletions

View file

@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features|rakelib)/|\.(?:git|travis|circleci)|appveyor|Rakefile)})
end
end
spec.bindir = "exe"

5
rakelib/epoch.rake Normal file
View file

@ -0,0 +1,5 @@
task "build" => "date_epoch"
task "date_epoch" do
ENV["SOURCE_DATE_EPOCH"] = IO.popen(%W[git -C #{__dir__} log -1 --format=%ct], &:read).chomp
end