blocknotes / activeadmin_blaze_theme

A theme for Active Admin based on Blaze CSS 3.x
MIT License
46 stars 12 forks source link

Extraneous files in the bin directory #26

Closed JonnieCache closed 2 years ago

JonnieCache commented 2 years ago

This gem has a number of binstubs in its bin directory. This causes my console to be spammed with messages such as these:

The `rubocop` executable in the `rubocop` gem is being loaded, but it's also present in other gems (activeadmin_blaze_theme). If you meant to run the executable for another gem, make sure you use a project specific binstub (`bundle binstub <gem_name>`). If you plan to use multiple conflicting executables, generate binstubs for them and disambiguate their names.

Presumably these files have been created in your development environment by the bundle binstub command, and then have been committed accidentally. Can they be removed and the bin directory added to .gitignore please?

blocknotes commented 2 years ago

Hi @JonnieCache. The bin path is not included in the gem installation (as you can see in the gemspec). Did you follow the standard installation method (including the gem in the Gemfile) or other ways?

When installed correctly:

ls $(bundle show activeadmin_blaze_theme)
# LICENSE.txt  README.md    app          index.js     lib          package.json
JonnieCache commented 2 years ago

Interesting, my apologies for the accusation then :)

The gem is indeed installed in our project in a somewhat nonstandard way, despite being included in the gemfile as usual. I will investigate further, thanks.

JonnieCache commented 2 years ago

Upon investigation, it wasn't our setup that was the problem, it was having the old 0.7.4 version of this gem installed, which did in fact have the extraneous binstubs included into the package. This was fixed in 0.7.6.

Leaving this here for anyone else who has this problem.