Skip to content

Commit

Permalink
Add funding_uri to gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
rmm5t committed Dec 10, 2024
1 parent 918e028 commit 58980b3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions strip_attributes.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 58980b3

Please sign in to comment.