titusfortner / webdrivers

Keep your Selenium WebDrivers updated automatically
MIT License
593 stars 111 forks source link

Polluting $PATH with setup & console #174

Closed jdelStrother closed 4 years ago

jdelStrother commented 4 years ago

Summary

The latest release adds setup & console as 'global' executables

Debug Info

Please provide the following information for bug reports:

Expected Behavior

gem install webdrivers doesn't add generically named executables like setup or console to the path

Actual Behavior

root@9ed62ec6e694:/# gem install webdrivers
Fetching nokogiri-1.10.9.gem
Fetching webdrivers-4.4.0.gem
Fetching mini_portile2-2.4.0.gem
Fetching rubyzip-2.3.0.gem
Fetching selenium-webdriver-3.142.7.gem
Fetching childprocess-3.0.0.gem
Successfully installed mini_portile2-2.4.0
Building native extensions. This could take a while...
Successfully installed nokogiri-1.10.9
Successfully installed rubyzip-2.3.0
Successfully installed childprocess-3.0.0
Successfully installed selenium-webdriver-3.142.7
Successfully installed webdrivers-4.4.0
6 gems installed
root@9ed62ec6e694:/# which console
/usr/local/bundle/bin/console
root@9ed62ec6e694:/# console
irb(main):001:0>

I believe this could be fixed by either setting s.executables = [] in gemspec, or by giving the executables more explicit names (eg webdrivers-console)

jpgeek commented 4 years ago

Just hit this issue. Conflicting with another gem ( omniauth-oauth2-generic) which also creates bin/console and setup.

kapoorlakshya commented 4 years ago

@jdelStrother Oops! Thanks for reporting this. Will fix it tonight.

kapoorlakshya commented 4 years ago

@jdelStrother @jpgeek Released fix in v4.4.1.

jpgeek commented 4 years ago

@kapoorlakshya Thanks! You rock!