bake/modernize/gemspec.rb in bake-modernize-0.2.0 vs bake/modernize/gemspec.rb in bake-modernize-0.2.1
- old
+ new
@@ -153,10 +153,10 @@
end
GITHUB_PROJECT = /github.com\/(?<account>.*?)\/(?<project>.*?)\/?/
def detect_funding_uri(spec)
- if match = spec.homepage.match(GITHUB_PROJECT)
+ if match = spec.homepage&.match(GITHUB_PROJECT)
account = match[:account]
funding_uri = "https://github.com/sponsors/#{account}/"
if valid_uri?(funding_uri)