-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gem is misnamed causing additional work during implementation #114
Comments
Overall, great feedback, thanks for writing up. We're discussing and follow up on it soon accordingly cc @ffenix113 |
Related to this, whenever I do manually
Lots of libraries use faraday. I'm not sure if I get this warning because I'm forced to do the manual I just wanted to flag this so both can be addressed at once. @ferhatelmas any update on changing the name of the gem? |
@krschacht Thanks. I am not a part of the team anymore but I am sure that team will take a swift action. |
The main file in this gem is
lib/stream-chat.rb
. The gemspec is namedstream-chat.gemspec
.The "-ruby" part of the name is redundant in a Ruby gem name. With all that in mind, the gem should have been published under the name
stream-chat
. That name is not in use in Rubygems, so that is currently possible.By not having the name of the gem not matching the name of the main file, the additional step of calling `require "stream-chat" is necessary. That's not standard or expected in the Ruby world, it would only be expected if the gem has files that should only be included under limited and specific conditions, like test harnesses.
So here are two possible paths to improve this:
Change the name of the gem:
stream-chat
require
call in the Getting Started sectionDownside of simply renaming the gem going forward is that those using the gem under the old name would no longer receive new versions of the gem, unless it's published under both names going forward.
Remove the need for an additional
require
call:lib/stream-chat-ruby.rb
which callsrequire "stream-chat"
require
call in the Getting Started sectionThe text was updated successfully, but these errors were encountered: