Method: FastlaneCore::UpdateChecker.ensure_rubygems_source
- Defined in:
- fastlane_core/lib/fastlane_core/update_checker/update_checker.rb
.ensure_rubygems_source ⇒ Object
Check if RubyGems is set as a gem source on some machines that might not be the case and then users can’t find the update when running the specified command
91 92 93 94 95 96 97 98 99 |
# File 'fastlane_core/lib/fastlane_core/update_checker/update_checker.rb', line 91 def self.ensure_rubygems_source return if Helper.contained_fastlane? return if `gem sources`.include?("https://rubygems.org") puts("") UI.error("RubyGems is not listed as your Gem source") UI.error("You can run `gem sources` to see all your sources") UI.error("Please run the following command to fix this:") UI.command("gem sources --add https://rubygems.org") end |