percy-common 3.1.8 → 3.2.0.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daf5d5179a57be833d015e4d87092e2725622c8762f199d4cee9655fc1989508
4
- data.tar.gz: aebf200ac7329d26c1e848dd5ba2967ab7ed7d87767c6e2f59e587fb3b448a00
3
+ metadata.gz: 299d0ad7d3fce8f5a113a959a09f37764cbaf8e1c5d36d6e7c60683049e09b44
4
+ data.tar.gz: d703cd546b3417d78984a3553df427e0f9a68c1541fd3bb6b7cb243f5b95123c
5
5
  SHA512:
6
- metadata.gz: 583cba5530413ec3d418409a67cc78b881109f79aff5ed7d70191d6bb53f15b54835adf815de95f273c85cce1bfa4bf30d233adef4f340e1a9b3ef2670f7ecac
7
- data.tar.gz: 1bbea03cfeb84ebde6fb7d9d3fdafa58b56a33e6f81420fcf794ee383c7d6abb44fa3147d3a879db720a1bc4434706a578603f8397c47a0e652bed9bf1cb5fd4
6
+ metadata.gz: 1a573e0c8457bfe24c98180eeea796a84106bf3fa0ac78e2981624564b5499a4adb91049508089c9659af00463f32cef6dd5d2bb885e20cdbc573afc64039480
7
+ data.tar.gz: a3d6a7cc76aadedf8d394b1b7859d84f304a652f169a0ac6c7f71c4b427c3149192594f1a369cd579d36dbe94599ac7f8f0549641bbe2360d6923550f0452234
@@ -0,0 +1,48 @@
1
+ # Name of this GitHub Actions workflow.
2
+ name: Semgrep
3
+
4
+ on:
5
+ # Scan changed files in PRs (diff-aware scanning):
6
+ # The branches below must be a subset of the branches above
7
+ pull_request:
8
+ branches: ["master", "main"]
9
+ push:
10
+ branches: ["master", "main"]
11
+ schedule:
12
+ - cron: '0 6 * * *'
13
+
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ semgrep:
20
+ # User definable name of this GitHub Actions job.
21
+ permissions:
22
+ contents: read # for actions/checkout to fetch code
23
+ security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
24
+ name: semgrep/ci
25
+ # If you are self-hosting, change the following `runs-on` value:
26
+ runs-on: ubuntu-latest
27
+
28
+ container:
29
+ # A Docker image with Semgrep installed. Do not change this.
30
+ image: returntocorp/semgrep
31
+
32
+ # Skip any PR created by dependabot to avoid permission issues:
33
+ if: (github.actor != 'dependabot[bot]')
34
+
35
+ steps:
36
+ # Fetch project source with GitHub Actions Checkout.
37
+ - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
38
+ # Run the "semgrep ci" command on the command line of the docker image.
39
+ - run: semgrep ci --sarif --output=semgrep.sarif
40
+ env:
41
+ # Add the rules that Semgrep uses by setting the SEMGREP_RULES environment variable.
42
+ SEMGREP_RULES: p/default # more at semgrep.dev/explore
43
+
44
+ - name: Upload SARIF file for GitHub Advanced Security Dashboard
45
+ uses: github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0
46
+ with:
47
+ sarif_file: semgrep.sarif
48
+ if: always()
data/CODEOWNERS ADDED
@@ -0,0 +1 @@
1
+ * @percy/percy-product-reviewers
data/README.md CHANGED
@@ -16,7 +16,7 @@ Or, for a Ruby library, add this to your gemspec:
16
16
  spec.add_development_dependency 'percy-common'
17
17
  ```
18
18
 
19
- And then run:
19
+ And then run
20
20
 
21
21
  ```bash
22
22
  $ bundle install
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Common
3
- VERSION = '3.1.8'.freeze
3
+ VERSION = '3.2.0.alpha.1'.freeze
4
4
  end
5
5
  end
@@ -10,9 +10,9 @@ module Percy
10
10
  class ServerDown < RuntimeError; end
11
11
  class OpenPortNotFound < RuntimeError; end
12
12
 
13
- def self.random_open_port
13
+ def self.random_open_port(min_port: MIN_PORT, max_port: MAX_PORT)
14
14
  MAX_PORT_ATTEMPTS.times do
15
- port = rand(MIN_PORT..MAX_PORT)
15
+ port = rand(min_port..max_port)
16
16
  return port if port_open? port
17
17
  end
18
18
 
data/percy-common.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_dependency 'dogstatsd-ruby', '>= 4.4', '< 4.9'
23
- spec.add_dependency 'excon', '~> 0.57'
23
+ spec.add_dependency 'excon', '>= 0.57'
24
24
  spec.add_dependency 'redis', '>= 4.1.3', '< 5.0.0'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.8
4
+ version: 3.2.0.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-04 00:00:00.000000000 Z
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dogstatsd-ruby
@@ -34,14 +34,14 @@ dependencies:
34
34
  name: excon
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0.57'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0.57'
47
47
  - !ruby/object:Gem::Dependency
@@ -156,10 +156,12 @@ extensions: []
156
156
  extra_rdoc_files: []
157
157
  files:
158
158
  - ".buildkite/pipeline.yml"
159
+ - ".github/workflows/Semgrep.yml"
159
160
  - ".gitignore"
160
161
  - ".rspec"
161
162
  - ".rubocop.yml"
162
163
  - ".rubocop_todo.yml"
164
+ - CODEOWNERS
163
165
  - Dockerfile
164
166
  - Gemfile
165
167
  - Guardfile
@@ -184,7 +186,7 @@ files:
184
186
  homepage: ''
185
187
  licenses: []
186
188
  metadata: {}
187
- post_install_message:
189
+ post_install_message:
188
190
  rdoc_options: []
189
191
  require_paths:
190
192
  - lib
@@ -195,12 +197,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
197
  version: '2.6'
196
198
  required_rubygems_version: !ruby/object:Gem::Requirement
197
199
  requirements:
198
- - - ">="
200
+ - - ">"
199
201
  - !ruby/object:Gem::Version
200
- version: '0'
202
+ version: 1.3.1
201
203
  requirements: []
202
- rubygems_version: 3.1.2
203
- signing_key:
204
+ rubygems_version: 3.4.19
205
+ signing_key:
204
206
  specification_version: 4
205
207
  summary: Server-side common library for Percy.
206
208
  test_files: []