bake-modernize 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/modernize/gemspec.rb +1 -1
- data/lib/bake/modernize/version.rb +1 -1
- data/lib/bake/modernize.rb +10 -2
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3adf18f4bf40c41642f4a556147a3a5e17ffa0be5ddf7c500c560467f39f9ac4
|
|
4
|
+
data.tar.gz: 0de5d13a9a64c097282558d4874f5e8e8b5c4d6a89a2abe7aae3686ae45bb24f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 558fab3ed955228a67a0a64fe513696fa5993db232546724638958d83f1493a70d5ebebd704ec49a2157c8c18ef88421ef9ee7af98ca728038c0d8cf111a4dd9
|
|
7
|
+
data.tar.gz: 32fb0451b53300d6d82cf52a9f1d91fbc8807ca0b62ea36140c0fb4a3cb9f7321b8ba4756a8576eef12ef7023dfeb2eda8916ed4f485ceec5a51c341cab97cd4
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/bake/modernize/gemspec.rb
CHANGED
data/lib/bake/modernize.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Released under the MIT License.
|
|
4
|
-
# Copyright, 2020-
|
|
4
|
+
# Copyright, 2020-2023, by Samuel Williams.
|
|
5
5
|
|
|
6
6
|
require_relative 'modernize/license'
|
|
7
7
|
require_relative 'modernize/version'
|
|
@@ -18,6 +18,14 @@ module Bake
|
|
|
18
18
|
TEMPLATE_ROOT + path
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
def self.stale?(source_path, destination_path)
|
|
22
|
+
if File.exist?(destination_path)
|
|
23
|
+
return !FileUtils.identical?(source_path, destination_path)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
return true
|
|
27
|
+
end
|
|
28
|
+
|
|
21
29
|
def self.copy_template(source_path, destination_path)
|
|
22
30
|
glob = Build::Files::Glob.new(source_path, '**/*')
|
|
23
31
|
|
|
@@ -29,7 +37,7 @@ module Bake
|
|
|
29
37
|
FileUtils.mkdir_p(full_path)
|
|
30
38
|
end
|
|
31
39
|
else
|
|
32
|
-
|
|
40
|
+
if stale?(path, full_path)
|
|
33
41
|
FileUtils::Verbose.cp(path, full_path)
|
|
34
42
|
end
|
|
35
43
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bake-modernize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.17.
|
|
4
|
+
version: 0.17.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
|
38
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
|
39
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
|
40
40
|
-----END CERTIFICATE-----
|
|
41
|
-
date: 2023-06-
|
|
41
|
+
date: 2023-06-28 00:00:00.000000000 Z
|
|
42
42
|
dependencies:
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: async-http
|
metadata.gz.sig
CHANGED
|
Binary file
|