Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Sessions generator adds bcrypt more robustly
Use Thor's `uncomment_lines` instead of `gsub_file`. If the Gemfile does not contain bcrypt, either commented or uncommented, then run `bundle add bcrypt`. Make sure all bundler commands run within `Bundler.with_original_env` to avoid bundler resolution problems while trying to resolve bundler dependencies. Typically the failure mode here is seeing: > Could not find bcrypt-3.1.20 in cached gems or installed locally (Bundler::GemNotFound) while bootstrapping the process that will run bundle-install or bundle-add.
- Loading branch information