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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f189417bb977b5c61ff55ee0932bd71056bda27f34813df55ce6b6e7f539500
4
- data.tar.gz: 494008b8417d4cbf9256e1fc7dd5b43f641c7ea1ada61bd4873f6cc4da3b6db8
3
+ metadata.gz: 3adf18f4bf40c41642f4a556147a3a5e17ffa0be5ddf7c500c560467f39f9ac4
4
+ data.tar.gz: 0de5d13a9a64c097282558d4874f5e8e8b5c4d6a89a2abe7aae3686ae45bb24f
5
5
  SHA512:
6
- metadata.gz: b1e384e012436cce00a5e0ebddbb25dabffcd4f8968e483ef372a32682396fb8f00f323a24825b69fe5fb51f7c2b237e5660c97a440fccc9b7fc42c5258db702
7
- data.tar.gz: b05c4aac909f867b390000fa964ae616b8ddce0d8ca1d01a4473096cf1d4dbee0a12fc8c5947a73cd7d8ab4d27f85fa13c815b93603925f786825f25f5e74f06
6
+ metadata.gz: 558fab3ed955228a67a0a64fe513696fa5993db232546724638958d83f1493a70d5ebebd704ec49a2157c8c18ef88421ef9ee7af98ca728038c0d8cf111a4dd9
7
+ data.tar.gz: 32fb0451b53300d6d82cf52a9f1d91fbc8807ca0b62ea36140c0fb4a3cb9f7321b8ba4756a8576eef12ef7023dfeb2eda8916ed4f485ceec5a51c341cab97cd4
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2022, by Samuel Williams.
4
+ # Copyright, 2020-2023, by Samuel Williams.
5
5
 
6
6
  # Rewrite the current gemspec.
7
7
  def gemspec
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Modernize
8
- VERSION = "0.17.1"
8
+ VERSION = "0.17.2"
9
9
  end
10
10
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2022, by Samuel Williams.
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
- unless FileUtils.identical?(path, full_path)
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.1
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-26 00:00:00.000000000 Z
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