lib/bin_install/ruby/rbenv.rb in bin_install-0.0.21 vs lib/bin_install/ruby/rbenv.rb in bin_install-0.0.22

- old
+ new

@@ -18,10 +18,11 @@ Brew::Package.install!('rbenv') Brew::Package.install_or_upgrade!('ruby-build') Shell.append_to_profiles!(%{eval "$(rbenv init -)"\n}) require_shims! install_ruby! + require_shims! doctor! end def self.install_ruby(version = Ruby.required_ruby_version) puts "Installing Ruby #{version}...".white @@ -62,11 +63,10 @@ def self.require_shims! abort_install! unless `#{DOCTOR}`.include?('Checking for rbenv shims in PATH: OK') end def self.abort_install! - puts 'Warning rbenv-doctor returned a non zero exit status.'.yellow - puts 'Correct the error above before continuing.'.yellow + puts 'Warning rbenv shims are not loaded.'.yellow puts 'Try closing this window and restarting your shell session.'.yellow puts "\n" puts 'Rerun the installer with:' puts '$ bin/install'.cyan puts "\n"