bake-modernize 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bake/modernize/actions.rb +2 -3
- data/bake/modernize/gemspec.rb +3 -3
- data/lib/bake/modernize.rb +1 -1
- data/lib/bake/modernize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f388d856aa508d382e100715cd658fb60b59214affc75221f1139833ab1a61b5
|
4
|
+
data.tar.gz: 93223ba10fef23327721fe4e056ca7e21a4f18c0f436af92ebf491bd081ad421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b64deed2eef1b59ca8e91f5da079d072f64024b36a9667b1018ce92b1fdb82017b610f72b81b6490c3e9a4e9d86b0ee5a129102790aa96b2cc83dd39ce83cef
|
7
|
+
data.tar.gz: 14148209216c06c0c997d4d19c267667cd8aed73ef3ae94b0e0976c84f7e09cba7eb413824956028f684581c018dcc707e9a1757fbed4de9c857fafa526719f9
|
data/bake/modernize/actions.rb
CHANGED
@@ -18,8 +18,7 @@ def update(root:)
|
|
18
18
|
Bake::Modernize.copy_template(template_root, root)
|
19
19
|
|
20
20
|
readme_path = File.expand_path("README.md", root)
|
21
|
-
|
22
|
-
self.update_badges(readme_path, repository_url)
|
21
|
+
update_badges(readme_path, repository_url(root))
|
23
22
|
end
|
24
23
|
|
25
24
|
private
|
@@ -33,7 +32,7 @@ def repository_url(root)
|
|
33
32
|
end
|
34
33
|
end
|
35
34
|
|
36
|
-
def badge_for(repository_url
|
35
|
+
def badge_for(repository_url)
|
37
36
|
"[![Development Status](#{repository_url}/workflows/Development/badge.svg)](#{repository_url}/actions?workflow=Development)"
|
38
37
|
end
|
39
38
|
|
data/bake/modernize/gemspec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# Rewrite the current gemspec.
|
3
3
|
def gemspec
|
4
|
-
path =
|
4
|
+
path = default_gemspec_path
|
5
5
|
buffer = StringIO.new
|
6
6
|
|
7
7
|
update(path: path, output: buffer)
|
@@ -11,11 +11,11 @@ end
|
|
11
11
|
|
12
12
|
# Rewrite the specified gemspec.
|
13
13
|
# @param
|
14
|
-
def update(path:
|
14
|
+
def update(path: default_gemspec_path, output: $stdout)
|
15
15
|
spec = Gem::Specification.load(path)
|
16
16
|
|
17
17
|
root = File.dirname(path)
|
18
|
-
version_path =
|
18
|
+
version_path = version_path(root)
|
19
19
|
|
20
20
|
constant = File.read(version_path)
|
21
21
|
.scan(/module\s+(.*?)$/)
|
data/lib/bake/modernize.rb
CHANGED