Skip to content

Commit 58980b3

Browse files
committed
Add funding_uri to gemspec
1 parent 918e028 commit 58980b3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

strip_attributes.gemspec

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44
require "strip_attributes/version"
55

66
Gem::Specification.new do |spec|
7+
username = "rmm5t"
78
spec.name = "strip_attributes"
89
spec.version = StripAttributes::VERSION
910
spec.authors = ["Ryan McGeary"]
1011
spec.email = ["[email protected]"]
11-
spec.homepage = "https://github.com/rmm5t/strip_attributes"
12+
spec.homepage = "https://github.com/#{username}/#{spec.name}"
1213
spec.summary = "Whitespace cleanup for ActiveModel attributes"
1314
spec.description = "StripAttributes automatically strips all ActiveRecord model attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil."
1415
spec.license = "MIT"
@@ -18,9 +19,10 @@ Gem::Specification.new do |spec|
1819
spec.require_paths = ["lib"]
1920

2021
spec.metadata = {
21-
"bug_tracker_uri" => "https://github.com/rmm5t/strip_attributes/issues",
22-
"changelog_uri" => "https://github.com/rmm5t/strip_attributes/blob/master/CHANGELOG.md",
23-
"source_code_uri" => "https://github.com/rmm5t/strip_attributes",
22+
"bug_tracker_uri" => "#{spec.homepage}/issues",
23+
"changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md",
24+
"source_code_uri" => spec.homepage,
25+
"funding_uri" => "https://github.com/sponsors/#{username}",
2426
}
2527

2628
spec.add_runtime_dependency "activemodel", ">= 3.0", "< 9.0"

0 commit comments

Comments
 (0)