Skip to content

Commit

Permalink
add donation_uri metadata field to gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Jan 9, 2020
1 parent 778b744 commit 6c3cd95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rubygems/specification.rb
Original file line number Diff line number Diff line change
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"
# "donation_uri" => "https://example.com/donation"
# }
#
# 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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Gem::SpecificationPolicy
mailing_list_uri
source_code_uri
wiki_uri
donation_uri
].freeze # :nodoc:

def initialize(specification)
Expand Down
3 changes: 2 additions & 1 deletion test/rubygems/test_gem_specification.rb
Original file line number Diff line number Diff line change
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",
"donation_uri" => "https://example.com/donation"
}
end

Expand Down

0 comments on commit 6c3cd95

Please sign in to comment.