Lyle-Tafoya / Steam-Categorizer

Automatically generate categories for games in your Steam library
GNU General Public License v3.0
25 stars 2 forks source link

Fix the Rakefile to catch LoadError on require and skip tasks which require packages not present by `rake install` #28

Closed Tristor closed 7 years ago

Tristor commented 7 years ago

This partially fixes the issue in Lyle-Tafoya/Steam-Categorizer#23

The original problem in that issue I believe was caused by the person not having a correctly set-up Ruby environment. There was somebody else that pointed out my earlier RuboCop addition caused rake install to break. This was caused by the require statements at the top of the Rakefile expecting RSpec and RuboCop to be installed, which they wouldn't be unless bundle install had been run. This changeset fixes it so that rake install works normally, and tasks for development that run RSpec and RuboCop are only available if both are installed.

Sorry about that, I didn't think about my environment locally not being directly portable in this case.