fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.82.0.beta.20180215010002 vs fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.82.0.beta.20180216010003

- old
+ new

@@ -114,22 +114,26 @@ return "" unless self.class.fetch_gem_info_from_rubygems(plugin_name).nil? selection_git_url = "Git URL" selection_path = "Local Path" selection_rubygems = "RubyGems.org ('#{plugin_name}' seems to not be available there)" + selection_gem_server = "Other Gem Server" selection = UI.select( "Seems like the plugin is not available on RubyGems, what do you want to do?", - [selection_git_url, selection_path, selection_rubygems] + [selection_git_url, selection_path, selection_rubygems, selection_gem_server] ) if selection == selection_git_url git_url = UI.input('Please enter the URL to the plugin, including the protocol (e.g. https:// or git://)') return ", git: '#{git_url}'" elsif selection == selection_path path = UI.input('Please enter the relative path to the plugin you want to use. It has to point to the directory containing the .gemspec file') return ", path: '#{path}'" elsif selection == selection_rubygems return "" + elsif selection == selection_gem_server + source_url = UI.input('Please enter the gem source URL which hosts the plugin you want to use, including the protocol (e.g. https:// or git://)') + return ", source: '#{source_url}'" else UI.user_error!("Unknown input #{selection}") end end