From 58980b3b6aa016b25e44ca2c0b2448c2991662a2 Mon Sep 17 00:00:00 2001 From: Ryan McGeary Date: Tue, 10 Dec 2024 09:13:18 -0700 Subject: [PATCH] Add funding_uri to gemspec --- strip_attributes.gemspec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/strip_attributes.gemspec b/strip_attributes.gemspec index 433b923..bcb6ad8 100644 --- a/strip_attributes.gemspec +++ b/strip_attributes.gemspec @@ -4,11 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "strip_attributes/version" Gem::Specification.new do |spec| + username = "rmm5t" spec.name = "strip_attributes" spec.version = StripAttributes::VERSION spec.authors = ["Ryan McGeary"] spec.email = ["ryan@mcgeary.org"] - spec.homepage = "https://github.com/rmm5t/strip_attributes" + spec.homepage = "https://github.com/#{username}/#{spec.name}" spec.summary = "Whitespace cleanup for ActiveModel attributes" 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." spec.license = "MIT" @@ -18,9 +19,10 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.metadata = { - "bug_tracker_uri" => "https://github.com/rmm5t/strip_attributes/issues", - "changelog_uri" => "https://github.com/rmm5t/strip_attributes/blob/master/CHANGELOG.md", - "source_code_uri" => "https://github.com/rmm5t/strip_attributes", + "bug_tracker_uri" => "#{spec.homepage}/issues", + "changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md", + "source_code_uri" => spec.homepage, + "funding_uri" => "https://github.com/sponsors/#{username}", } spec.add_runtime_dependency "activemodel", ">= 3.0", "< 9.0"