lib/chromedriver_update.rb in chromedriver_update-0.2.0 vs lib/chromedriver_update.rb in chromedriver_update-0.2.1
- old
+ new
@@ -14,9 +14,11 @@
CHROME_DOWNLOADS_LIST_URL = 'https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json'
#
# Update the installed version of chromedriver automatically fitting to the currently installed version of chrome
#
+ # @param [Boolean] force=false force the update, even if the version is already installed
+ #
def self.auto_update_chromedriver(force: false)
if installed_chrome_version.split(".").first != installed_chromedriver_version.split(".").first || force
original_chromedriver_version = installed_chromedriver_version
original_chromedriver_path = chromedriver_path
chromedriver_zip = HTTParty.get(chromedriver_link_for_version(installed_chrome_version))