bake/utopia/project/readme/update.rb in utopia-project-0.22.0 vs bake/utopia/project/readme/update.rb in utopia-project-0.23.0

- old
+ new

@@ -35,10 +35,16 @@ end end # The public documentation URL if it can be determined. def public_documentation_url - gemspec&.homepage + if metadata = gemspec.metadata + if documentation_uri = metadata['documentation_uri'] + return documentation_uri + end + end + + return gemspec&.homepage end def usage_section(documentation_url, project) template = Trenni::Template.load_file(File.expand_path("usage.trenni", __dir__)) scope = Scope.new(documentation_url, project)