Hm. #Lazyweb, how do I override the gemspec of a gem?

I am trying to push all gems needed for my Jekyll build to my own #forgejo instance (as a kind of cache), so I get them all with `bundle package`, then try to push them to my forgejo with

`gem push --host https://forge.wildeboer.net/api/packages/<user>/rubygems <GEM>`

But some fail with:

ERROR: "https://forge.wildeboer.net/api/packages/<user>/rubygems" is not allowed by the gemspec, which only allows "https://rubygems.org"

How can I override that?

#Ruby #Gem #Gemspec

Also, dear @MastodonEngineering - please allow us poor users to use a bit of formatting. The https was really important to see, but your input mangler does not allow code or quotes :(

@jwildeboer

Yeah just adding markdown rendering to the official clients would be enough for a start. Advanced editors etc can follow later.

@MastodonEngineering

@jwildeboer @MastodonEngineering
Some day support for #markdown may get upstreamed which is available in #glitch only for now. Which should work nicely.
@ben @jwildeboer @MastodonEngineering it really depends on the client at the moment. It works perfectly in #elk @elk
Add support for posting with Markdown syntax · Issue #23981 · mastodon/mastodon

Pitch Requests to add support for posting with Markdown formatting has come up many times in the past, so this is a proposal to formalize the recent efforts. I'm not against other forms of markup f...

GitHub

@jwildeboer @MastodonEngineering
I don't want full markdown, I don't want the complexity, and I don't want posters focussing on eye-catching formatting over content..

But I DO want the ability to say: 'this is code, render it monospaced'.

And that's it. I especially do not want to see headings, bullet points, or multi-colored text..

@jwildeboer I don't think you can override `allowed_push_host` via `gem push`. You probably have to change the gemspec file.

If you just want to cache gems, you probably want to use something like gemstash (https://github.com/rubygems/gemstash). There are other `gem mirror` plugins I think, but I -think- they typically mirror/download gems locally and do not push them to another repo.

GitHub - rubygems/gemstash: A RubyGems.org cache and private gem server

A RubyGems.org cache and private gem server. Contribute to rubygems/gemstash development by creating an account on GitHub.

GitHub

@jwildeboer oh and there is also https://github.com/gemfast/server written in Go, probably simpler to run.

In case you haven’t seen it yet: Rubygems also has a guide on running your own gem server (covering caching and mirroring) at https://guides.rubygems.org/run-your-own-gem-server/.

GitHub - gemfast/server: A drop in replacement for geminabox written in Go

A drop in replacement for geminabox written in Go. Contribute to gemfast/server development by creating an account on GitHub.

GitHub

@jwildeboer

I'd just have added my own root ca and generated a cert for rubygems.org and used Postman or Burp Suite to intercept and redirect it there. Or a just overwrite the IP in the DNS and let the HAProxy serve that cert based upon the SNI header in the request...