Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add funding_uri metadata field to gemspec #3060

Merged
2 commits merged into from Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/rubygems/specification.rb
Expand Up @@ -384,6 +384,7 @@ def licenses=(licenses)
# "mailing_list_uri" => "https://groups.example.com/bestgemever",
# "source_code_uri" => "https://example.com/user/bestgemever",
# "wiki_uri" => "https://example.com/user/bestgemever/wiki"
# "funding_uri" => "https://example.com/donate"
# }
#
# These links will be used on your gem's page on rubygems.org and must pass
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/specification_policy.rb
Expand Up @@ -18,6 +18,7 @@ class Gem::SpecificationPolicy
mailing_list_uri
source_code_uri
wiki_uri
funding_uri
].freeze # :nodoc:

def initialize(specification)
Expand Down
3 changes: 2 additions & 1 deletion test/rubygems/test_gem_specification.rb
Expand Up @@ -3532,7 +3532,8 @@ def test_metadata_validates_ok
s.metadata = {
"one" => "two",
"home" => "three",
"homepage_uri" => "https://example.com/user/repo"
"homepage_uri" => "https://example.com/user/repo",
"funding_uri" => "https://example.com/donate"
}
end

Expand Down