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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 689a7ac32036007890f92823d4a80bf6e3afd4dc31d60b69b5ff4467467032ca
4
- data.tar.gz: 45c17d2bf78527873ea28b1c1d571b34b79d66aac0489b11e2095716a7b97d8b
3
+ metadata.gz: 8c155a66e780f208670ba8b4cf455432341b043758ac8f6bb2508067a856e42d
4
+ data.tar.gz: 8c4298f38f1dd0a5699a481a485d7d8ddc364256ee586e735dea26027eb6904a
5
5
  SHA512:
6
- metadata.gz: df6de02a4c95cce5791d6b22ffde14f73802a7dcb50f3b936c8537d5e1d5fb25f1403c9af5437b195699b6f04c30d601970b124c62f8b842385d2a4928ae5d03
7
- data.tar.gz: a1711a1dfe8502fa725a9413a9e0aa6d3a2d9487293b34d76cff7a921419c522544d0ff3a55b14e648a1bbed0139acf2a6c4c666985cbf8d1a31845bc63709a3
6
+ metadata.gz: 4bf43475e9cfa69ff51758a32fcedbcd8b8e4440a3d91864c7f35ce8fb83301041d3419b8bec23c95816187abbd38f62f2738a5efb79e19df2f852c423d7d1da
7
+ data.tar.gz: 50a7e1728975ff3da7789d86c97defa4fcb0f6d7ac2f38bbbc15fd2d9faeee6a78f114a6be69ca4108bf8d10ce5ca4db533afd42283514d66d04f057d4f305de
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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"
@@ -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)
@@ -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)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Modernize
8
- VERSION = "0.37.3"
8
+ VERSION = "0.38.0"
9
9
  end
10
10
  end
@@ -5,6 +5,7 @@
5
5
 
6
6
  require_relative "modernize/license"
7
7
  require_relative "modernize/version"
8
+
8
9
  require "build/files/glob"
9
10
  require "fileutils"
10
11
 
@@ -1,4 +1,5 @@
1
1
  /.bundle
2
+ /.context
2
3
  /pkg
3
4
  /gems.locked
4
5
  /.covered.db
@@ -1,6 +1,12 @@
1
+ plugins:
2
+ - rubocop-socketry
3
+
1
4
  AllCops:
2
5
  DisabledByDefault: true
3
6
 
7
+ Layout/ConsistentBlankLineIndentation:
8
+ Enabled: true
9
+
4
10
  Layout/IndentationStyle:
5
11
  Enabled: true
6
12
  EnforcedStyle: tabs
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.37.3
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file