From 22b7bc213f0be00f10dea4c61d300cbaa6a06f83 Mon Sep 17 00:00:00 2001 From: Mauri Mustonen Date: Fri, 17 Mar 2023 13:08:25 +0200 Subject: [PATCH 1/2] exist? instead of exists? --- lib/browserstack/localbinary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browserstack/localbinary.rb b/lib/browserstack/localbinary.rb index d3231e2..d633dd4 100644 --- a/lib/browserstack/localbinary.rb +++ b/lib/browserstack/localbinary.rb @@ -63,7 +63,7 @@ def binary_path dest_parent_dir = get_available_dirs binary_path = File.join(dest_parent_dir, "BrowserStackLocal#{".exe" if @windows}") - if File.exists? binary_path + if File.exist? binary_path binary_path else binary_path = download(dest_parent_dir) From bf452c602b8d98be08f6bf3b740d2efe441f624d Mon Sep 17 00:00:00 2001 From: Mauri Mustonen Date: Mon, 20 Mar 2023 05:39:15 +0200 Subject: [PATCH 2/2] change another exists? call to exist? --- lib/browserstack/localbinary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browserstack/localbinary.rb b/lib/browserstack/localbinary.rb index d633dd4..15fe9a2 100644 --- a/lib/browserstack/localbinary.rb +++ b/lib/browserstack/localbinary.rb @@ -34,7 +34,7 @@ def initialize end def download(dest_parent_dir) - unless File.exists? dest_parent_dir + unless File.exist? dest_parent_dir Dir.mkdir dest_parent_dir end uri = URI.parse(@http_path)