Skip to content

Conversation

npf
Copy link

@npf npf commented May 4, 2025


name: Pull Request
about: Make the progressbar and ruby-progressbar gems only differ in their names, but have the exact same content.


Let both the ruby-progressbar and progressbar gems allow requiring progressbar or ruby-progessbar indifferently.

Why: Having the 2 gems with quite the same content but not exactly is very
confusing, for instance, on Debian because the ruby-progressbar deb
package contains the progressbar gem, not the ruby-progressbar
gem.

IMHO, having both gems with the exact same content would be more
user-friendly, allowing 'require "progressbar"' and 'require
"ruby-progressbar"' indifferently, independently of what gem is actually installed
(be it with gem install or a distribution package).

npf added 2 commits May 4, 2025 13:01
….rb or ruby-progessbar.rb

Having the 2 gems with quite the same content but not exactly is very
confusing, for instance on Debian because the ruby-progressbar deb
package actually contains the progressbar gem, not the ruby-progressbar
gem.

IMHO, having both gems with the exact same content would be more
user-friendly, allowing 'require "progressbar"' and 'require
"ruby-progressbar"' indifferently from what gem is actually installed
(be it with gem install or a distrubution package).
…ntent)

It's the same content.
Removes the duplication of code.
Avoid possible divergence.
@jfelchner
Copy link
Owner

@npf Why does the ruby-progressbar deb package contain the progressbar.gemspec file?

@isikyus
Copy link

isikyus commented Aug 27, 2025

@npf Why does the ruby-progressbar deb package contain the progressbar.gemspec file?

I believe the package is intended to contain the progressbar gem, but is named ruby-progressbar to disambiguate it from packages that provide similar libraries for other languages (such as python3-progressbar).

Or in other words, the same reason that the deb ruby-activerecord package contains activerecord-<version>.gemspec.

@jfelchner
Copy link
Owner

Thanks for the reply! Unfortunately this is incorrect. progressbar and ruby-progressbar used to be two separate gems. They were merged a while back. The old standard of naming gems (ruby-progressbar is very old) was to start the gem name with ruby-.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants