bake/modernize/actions.rb in bake-modernize-0.4.2 vs bake/modernize/actions.rb in bake-modernize-0.4.3

- old
+ new

@@ -16,12 +16,11 @@ template_root = Bake::Modernize.template_path_for('actions') Bake::Modernize.copy_template(template_root, root) readme_path = File.expand_path("README.md", root) - repository_url = self.repository_url(root) - self.update_badges(readme_path, repository_url) + update_badges(readme_path, repository_url(root)) end private def repository_url(root) @@ -31,10 +30,10 @@ if match = git_url.match(/@(?<url>.*?):(?<path>.*?)(\.git)?\z/) return "https://#{match[:url]}/#{match[:path]}" end end -def badge_for(repository_url = self.repository_url) +def badge_for(repository_url) "[![Development Status](#{repository_url}/workflows/Development/badge.svg)](#{repository_url}/actions?workflow=Development)" end def badge?(node) return false unless node.type == :link