|
1 | | -From: Christian Hofstaedtler <[email protected]> |
2 | | -Date: Tue, 10 Oct 2017 15:07:11 -0300 |
| 1 | +From: Sorah Fukumori <[email protected]> |
| 2 | +Date: Fri, 18 Feb 2022 21:11:40 +0900 |
3 | 3 | Subject: Mark Gemspec-reproducible change fixing #784225, too |
4 | 4 |
|
5 | 5 | I think the UTC date change will fix the Multi-Arch not-same file issue, |
|
12 | 12 | 1 file changed, 3 insertions(+), 1 deletion(-) |
13 | 13 |
|
14 | 14 | diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb |
15 | | -index 031a37f..a216f3d 100644 |
| 15 | +index 0d72cee..eb7bc25 100644 |
16 | 16 | --- a/lib/rubygems/specification.rb |
17 | 17 | +++ b/lib/rubygems/specification.rb |
18 | | -@@ -1692,7 +1692,9 @@ class Gem::Specification < Gem::BasicSpecification |
19 | | - raise(Gem::InvalidSpecificationException, |
20 | | - "invalid date format in specification: #{date.inspect}") |
21 | | - end |
22 | | -- when Time, DateLike then |
23 | | -+ when Time then |
24 | | -+ Time.utc(date.utc.year, date.utc.month, date.utc.day) |
25 | | -+ when DateLike then |
26 | | - Time.utc(date.year, date.month, date.day) |
27 | | - else |
28 | | - TODAY |
| 18 | +@@ -1691,7 +1691,9 @@ class Gem::Specification < Gem::BasicSpecification |
| 19 | + raise(Gem::InvalidSpecificationException, |
| 20 | + "invalid date format in specification: #{date.inspect}") |
| 21 | + end |
| 22 | +- when Time, DateLike then |
| 23 | ++ when Time then |
| 24 | ++ Time.utc(date.utc.year, date.utc.month, date.utc.day) |
| 25 | ++ when DateLike then |
| 26 | + Time.utc(date.year, date.month, date.day) |
| 27 | + else |
| 28 | + TODAY |
0 commit comments