From 22b7bc213f0be00f10dea4c61d300cbaa6a06f83 Mon Sep 17 00:00:00 2001 From: Mauri Mustonen Date: Fri, 17 Mar 2023 13:08:25 +0200 Subject: [PATCH 1/8] 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/8] 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) From 6f5308a09e936408f47697f9a1ba4b70a20340e8 Mon Sep 17 00:00:00 2001 From: AdityaHirapara Date: Tue, 6 Jun 2023 15:51:34 +0530 Subject: [PATCH 3/8] Update download links --- lib/browserstack/localbinary.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/browserstack/localbinary.rb b/lib/browserstack/localbinary.rb index d3231e2..6b3c585 100644 --- a/lib/browserstack/localbinary.rb +++ b/lib/browserstack/localbinary.rb @@ -13,16 +13,16 @@ def initialize @http_path = case host_os when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ @windows = true - "https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe" + "https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal.exe" when /darwin|mac os/ - "https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-darwin-x64" + "https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-darwin-x64" when /linux-musl/ - "https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine" + "https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-alpine" when /linux/ if 1.size == 8 - "https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64" + "https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-x64" else - "https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32" + "https://www.browserstack.com/local-testing/downloads/binaries/BrowserStackLocal-linux-ia32" end end From e7c8b8d1ed658f452b72875bdd7c34a01ced9d14 Mon Sep 17 00:00:00 2001 From: AdityaHirapara Date: Tue, 6 Jun 2023 15:55:00 +0530 Subject: [PATCH 4/8] Bump up version to 1.4.2 --- CHANGELOG.md | 6 +++--- browserstack-local.gemspec | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83cfc2b..c39f880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - yyyy-mm-dd -## [1.4.1] - 2023-02-06 +## [1.4.2] - 2023-06-06 -### Fixed -Stop API in case of multiple instances on same machine +### Changed +Update download links diff --git a/browserstack-local.gemspec b/browserstack-local.gemspec index 9fa2746..2c426bd 100644 --- a/browserstack-local.gemspec +++ b/browserstack-local.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'browserstack-local' - s.version = '1.4.1' - s.date = '2023-02-06' + s.version = '1.4.2' + s.date = '2023-06-06' s.summary = "BrowserStack Local" s.description = "Ruby bindings for BrowserStack Local" s.authors = ["BrowserStack"] From 6da5511a1abd090d6a25b1e73d9bf534424a1478 Mon Sep 17 00:00:00 2001 From: bstack-security-github <116066275+bstack-security-github@users.noreply.github.com> Date: Wed, 21 Jun 2023 17:22:12 +0530 Subject: [PATCH 5/8] Adding Code Scanner Semgrep.yml workflow file --- .github/workflows/Semgrep.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/Semgrep.yml diff --git a/.github/workflows/Semgrep.yml b/.github/workflows/Semgrep.yml new file mode 100644 index 0000000..0347afd --- /dev/null +++ b/.github/workflows/Semgrep.yml @@ -0,0 +1,48 @@ +# Name of this GitHub Actions workflow. +name: Semgrep + +on: + # Scan changed files in PRs (diff-aware scanning): + # The branches below must be a subset of the branches above + pull_request: + branches: ["master", "main"] + push: + branches: ["master", "main"] + schedule: + - cron: '0 6 * * *' + + +permissions: + contents: read + +jobs: + semgrep: + # User definable name of this GitHub Actions job. + permissions: + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/upload-sarif to upload SARIF results + name: semgrep/ci + # If you are self-hosting, change the following `runs-on` value: + runs-on: ubuntu-latest + + container: + # A Docker image with Semgrep installed. Do not change this. + image: returntocorp/semgrep + + # Skip any PR created by dependabot to avoid permission issues: + if: (github.actor != 'dependabot[bot]') + + steps: + # Fetch project source with GitHub Actions Checkout. + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + # Run the "semgrep ci" command on the command line of the docker image. + - run: semgrep ci --sarif --output=semgrep.sarif + env: + # Add the rules that Semgrep uses by setting the SEMGREP_RULES environment variable. + SEMGREP_RULES: p/default # more at semgrep.dev/explore + + - name: Upload SARIF file for GitHub Advanced Security Dashboard + uses: github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0 + with: + sarif_file: semgrep.sarif + if: always() \ No newline at end of file From 7fee55fde16cca1cd71a5fcaf6e61bc5488cb622 Mon Sep 17 00:00:00 2001 From: bstack-security-github <116066275+bstack-security-github@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:09:06 +0530 Subject: [PATCH 6/8] Adding CODEOWNERS file --- CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..0e3a764 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @browserstack/local From 9199bbc326d093be40382ef854aeeb2f2896aa18 Mon Sep 17 00:00:00 2001 From: bstack-security-github <116066275+bstack-security-github@users.noreply.github.com> Date: Fri, 28 Jul 2023 17:12:47 +0530 Subject: [PATCH 7/8] Update CODEOWNERS --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 0e3a764..ddd85cc 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @browserstack/local +* @browserstack/local-dev From 8a2038f47893fb15a43f06ca9e36c3dfcf474119 Mon Sep 17 00:00:00 2001 From: Sanchay Pahalwani Date: Thu, 24 Aug 2023 11:41:25 +0530 Subject: [PATCH 8/8] Bump up the version to 1.4.3 --- CHANGELOG.md | 5 +++-- browserstack-local.gemspec | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c39f880..109f97d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - yyyy-mm-dd -## [1.4.2] - 2023-06-06 +## [ +1.4.3] - 2023-08-24 ### Changed -Update download links +Ruby 3 exists? deprecation fix diff --git a/browserstack-local.gemspec b/browserstack-local.gemspec index 2c426bd..9d1a650 100644 --- a/browserstack-local.gemspec +++ b/browserstack-local.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'browserstack-local' - s.version = '1.4.2' - s.date = '2023-06-06' + s.version = '1.4.3' + s.date = '2023-08-24' s.summary = "BrowserStack Local" s.description = "Ruby bindings for BrowserStack Local" s.authors = ["BrowserStack"]