bake-modernize 0.37.3 → 0.38.0
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/actions.rb +4 -4
- data/bake/modernize/readme.rb +2 -2
- data/bake/modernize/rubocop.rb +1 -1
- data/lib/bake/modernize/version.rb +1 -1
- data/lib/bake/modernize.rb +1 -0
- data/template/git/.gitignore +1 -0
- data/template/rubocop/.rubocop.yml +6 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 8c155a66e780f208670ba8b4cf455432341b043758ac8f6bb2508067a856e42d
|
4
|
+
data.tar.gz: 8c4298f38f1dd0a5699a481a485d7d8ddc364256ee586e735dea26027eb6904a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bf43475e9cfa69ff51758a32fcedbcd8b8e4440a3d91864c7f35ce8fb83301041d3419b8bec23c95816187abbd38f62f2738a5efb79e19df2f852c423d7d1da
|
7
|
+
data.tar.gz: 50a7e1728975ff3da7789d86c97defa4fcb0f6d7ac2f38bbbc15fd2d9faeee6a78f114a6be69ca4108bf8d10ce5ca4db533afd42283514d66d04f057d4f305de
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/modernize/actions.rb
CHANGED
@@ -20,12 +20,12 @@ def update(root:)
|
|
20
20
|
end
|
21
21
|
|
22
22
|
update_filenames(root)
|
23
|
-
|
23
|
+
|
24
24
|
template_root = Bake::Modernize.template_path_for("actions")
|
25
25
|
Bake::Modernize.copy_template(template_root, root)
|
26
26
|
|
27
27
|
readme_path = ["README.md", "readme.md"].find{|path| File.exist?(File.expand_path(path, root))}
|
28
|
-
|
28
|
+
|
29
29
|
if readme_path
|
30
30
|
update_badges(readme_path, repository_url(root))
|
31
31
|
end
|
@@ -38,13 +38,13 @@ private
|
|
38
38
|
def update_filenames(root)
|
39
39
|
actions_root = Build::Files::Path.new(root) + ".github/workflows"
|
40
40
|
yml_files = actions_root.glob("*.yml")
|
41
|
-
|
41
|
+
|
42
42
|
# Move all .yml files to .yaml files :)
|
43
43
|
yml_files.each do |path|
|
44
44
|
new_path = path.with(extension: ".yaml", basename: true)
|
45
45
|
FileUtils::Verbose.mv(path, new_path)
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
# Move development.yaml to test.yaml
|
49
49
|
development_path = actions_root + "development.yaml"
|
50
50
|
test_path = actions_root + "test.yaml"
|
data/bake/modernize/readme.rb
CHANGED
@@ -19,11 +19,11 @@ private
|
|
19
19
|
def update_filenames(root)
|
20
20
|
root = Build::Files::Path.new(root)
|
21
21
|
md_files = root.glob("*.md")
|
22
|
-
|
22
|
+
|
23
23
|
# Move all .yml files to .yaml files :)
|
24
24
|
md_files.each do |path|
|
25
25
|
new_path = path.with(basename: path.basename.downcase)
|
26
|
-
|
26
|
+
|
27
27
|
unless new_path == path
|
28
28
|
Console.logger.info(self, "Moving #{path} to #{new_path}...")
|
29
29
|
system("git", "mv", "-f", path, new_path)
|
data/bake/modernize/rubocop.rb
CHANGED
@@ -11,7 +11,7 @@ def rubocop
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def update(root:)
|
14
|
-
system("bundle", "add", "rubocop", "--group", "test", chdir: root)
|
14
|
+
system("bundle", "add", "rubocop", "rubocop-socketry", "--group", "test", chdir: root)
|
15
15
|
|
16
16
|
template_root = Bake::Modernize.template_path_for("rubocop")
|
17
17
|
Bake::Modernize.copy_template(template_root, root)
|
data/lib/bake/modernize.rb
CHANGED
data/template/git/.gitignore
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|