Adding Needs Funding to Your Ruby Gem
January 28, 2021
In a recent Bundler blog post: https://bundler.io/blog/2020/12/09/bundler-v2-2.html I discovered that they announced a new funding feature:
Find out about gems you depend on that need funding
We really want to help building a more sustainable ruby ecosystem, so we’re shipping a new
bundle fundcommand that helps you discovering the libraries you depend on that need funding.If you develop a gem that needs funding, make sure you fill in the
funding_urimetadata in your gemspec, like this:Gem::Specification.new do |gem| gem.name = "#{GEM_NAME}" gem.homepage = "#{GEM_HOMEPAGE}" s.metadata = { "funding_uri" => "#{GEM_FUNDING_PAGE}" } endAs soon as people start filling this metadata,
bundle fundwill start reporting all of your dependencies that need funding.
I think with the addition of GitHub Sponsors, this new funding feature, and the overall habit we are all getting into paying for monthly services, we are about to enter into a new era of open sources projects and developers actually earning decent money. At least I hope so anyways.
And a reminder if your company relies on an open source project, try to donate some money to them. Even as individuals, if there is a project that you love I think we can all afford a few dollars to show our support. I’m sure it will go a long way.