handcuffs 1.4.1 → 2.1.0
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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/ISSUE_TEMPLATE/bug.yml +66 -0
- data/.github/ISSUE_TEMPLATE/config.yml +1 -0
- data/.github/ISSUE_TEMPLATE/docs.yml +18 -0
- data/.github/ISSUE_TEMPLATE/feature-request.yml +36 -0
- data/.github/ISSUE_TEMPLATE/question-support.yml +18 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +15 -0
- data/.github/dependabot.yaml +36 -0
- data/.github/workflows/auto-assign-author.yaml +15 -0
- data/.github/workflows/codeql.yaml +35 -0
- data/.github/workflows/release.yaml +43 -0
- data/.github/workflows/stale.yaml +34 -0
- data/.github/workflows/test.yaml +52 -0
- data/.gitignore +2 -1
- data/Appraisals +6 -27
- data/CHANGELOG.md +43 -0
- data/CODE_OF_CONDUCT.md +117 -36
- data/CONTRIBUTING.md +37 -0
- data/README.md +92 -59
- data/SECURITY.md +19 -0
- data/gemfiles/rails_6.1.gemfile +1 -1
- data/gemfiles/{rails_5.2.gemfile → rails_7.0.gemfile} +1 -1
- data/gemfiles/{rails_6.gemfile → rails_7.1.gemfile} +1 -1
- data/handcuffs.gemspec +9 -5
- data/lib/handcuffs/configuration.rb +4 -2
- data/lib/handcuffs/errors.rb +1 -1
- data/lib/handcuffs/extensions.rb +4 -4
- data/lib/handcuffs/pending_filter_ext.rb +19 -0
- data/lib/handcuffs/phase_filter.rb +2 -2
- data/lib/handcuffs/phases.rb +41 -0
- data/lib/handcuffs/version.rb +3 -1
- data/lib/tasks/handcuffs.rake +26 -31
- metadata +50 -21
- data/.circleci/config.yml +0 -98
- data/gemfiles/rails_4.gemfile +0 -8
- data/gemfiles/rails_5.1.gemfile +0 -8
- data/gemfiles/rails_5.gemfile +0 -8
- /data/{LICENSE.txt → LICENSE.md} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6151bce2a0641c7d959760ed968af5ca1a6dde4961a3ac7d68182e57239ec86
|
4
|
+
data.tar.gz: ab80386265b6c8081bb00d1c7840860463098c0651d9022b6d129e175b489c28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77c5b7f5cfcb95ca3136bccd62606beb0f215046900c0d1bc70568186c693eed2d7133d622d89b73bc7e8c3ba1ac417fd18e107bb263127d02891f9483cf9c2c
|
7
|
+
data.tar.gz: 04567d40823a197a7cc428d0146903e1254fd7c408b20a155e8c8243efa82e698cc61f9fd802a53027315c78d916636527d1a8ba14d8a776120d0aee4f3869d7
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @procore-oss/procore-ospo @procore-oss/procore-handcuffs
|
@@ -0,0 +1,66 @@
|
|
1
|
+
name: 🐞 Bug
|
2
|
+
description: File a bug/issue
|
3
|
+
title: "[bug] <title>"
|
4
|
+
labels: [bug, needs-triage]
|
5
|
+
body:
|
6
|
+
- type: checkboxes
|
7
|
+
attributes:
|
8
|
+
label: Is there an existing issue for this?
|
9
|
+
description: Please search to see if an issue already exists for the bug you encountered.
|
10
|
+
options:
|
11
|
+
- label: I have searched the existing issues
|
12
|
+
required: true
|
13
|
+
- type: checkboxes
|
14
|
+
attributes:
|
15
|
+
label: Is this a regression?
|
16
|
+
description: Did this behavior work before?
|
17
|
+
options:
|
18
|
+
- label: Yes, this used to work before
|
19
|
+
required: false
|
20
|
+
- type: textarea
|
21
|
+
attributes:
|
22
|
+
label: Current Behavior
|
23
|
+
description: A concise description of what you're experiencing.
|
24
|
+
validations:
|
25
|
+
required: false
|
26
|
+
- type: textarea
|
27
|
+
attributes:
|
28
|
+
label: Expected Behavior
|
29
|
+
description: A concise description of what you expected to happen.
|
30
|
+
validations:
|
31
|
+
required: false
|
32
|
+
- type: textarea
|
33
|
+
attributes:
|
34
|
+
label: Steps To Reproduce
|
35
|
+
description: Steps to reproduce the behavior.
|
36
|
+
placeholder: |
|
37
|
+
1.
|
38
|
+
2.
|
39
|
+
3.
|
40
|
+
4.
|
41
|
+
validations:
|
42
|
+
required: true
|
43
|
+
- type: textarea
|
44
|
+
attributes:
|
45
|
+
label: Environment
|
46
|
+
description: |
|
47
|
+
examples:
|
48
|
+
- **OS**: OSX 13.3.1
|
49
|
+
- **Browser Name and Version**: Chrome Version 112.0.5615.49 (Official Build) (arm64)
|
50
|
+
- **Ruby Version**: 3.0.0
|
51
|
+
value: |
|
52
|
+
- OS:
|
53
|
+
- Browser Name and version:
|
54
|
+
- Ruby Version:
|
55
|
+
render: markdown
|
56
|
+
validations:
|
57
|
+
required: true
|
58
|
+
- type: textarea
|
59
|
+
attributes:
|
60
|
+
label: Anything else?
|
61
|
+
description: |
|
62
|
+
Links? References? Anything that will give us more context about the issue you are encountering!
|
63
|
+
|
64
|
+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
|
65
|
+
validations:
|
66
|
+
required: false
|
@@ -0,0 +1 @@
|
|
1
|
+
blank_issues_enabled: false
|
@@ -0,0 +1,18 @@
|
|
1
|
+
name: 📚 Documentation or README.md issue report
|
2
|
+
description: File a bug/issue for docs or README.md
|
3
|
+
title: "[bug] <title>"
|
4
|
+
labels: [docs, needs-triage]
|
5
|
+
body:
|
6
|
+
- type: checkboxes
|
7
|
+
attributes:
|
8
|
+
label: Is there an existing issue for this?
|
9
|
+
description: Please search to see if an issue already exists for the bug you encountered.
|
10
|
+
options:
|
11
|
+
- label: I have searched the existing issues
|
12
|
+
required: true
|
13
|
+
- type: textarea
|
14
|
+
attributes:
|
15
|
+
label: Docs/README.md Part to update
|
16
|
+
description: A concise description of what you thing should be updated
|
17
|
+
validations:
|
18
|
+
required: true
|
@@ -0,0 +1,36 @@
|
|
1
|
+
name: 🚀🆕 Feature Request
|
2
|
+
description: Suggest an idea or possible new feature for this project
|
3
|
+
title: "[Feature Request] <title>"
|
4
|
+
labels: [feature, needs-triage]
|
5
|
+
body:
|
6
|
+
- type: checkboxes
|
7
|
+
attributes:
|
8
|
+
label: Is there an existing issue for this?
|
9
|
+
description: Please search to see if an issue already exists for the bug you encountered.
|
10
|
+
options:
|
11
|
+
- label: I have searched the existing issues
|
12
|
+
required: true
|
13
|
+
- type: textarea
|
14
|
+
attributes:
|
15
|
+
label: Is your feature request related to a problem? Please describe
|
16
|
+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
17
|
+
validations:
|
18
|
+
required: true
|
19
|
+
- type: textarea
|
20
|
+
attributes:
|
21
|
+
label: Describe the solution you'd lik
|
22
|
+
description: A clear and concise description of what you want to happen
|
23
|
+
validations:
|
24
|
+
required: true
|
25
|
+
- type: textarea
|
26
|
+
attributes:
|
27
|
+
label: Describe alternatives you've considered
|
28
|
+
description: A clear and concise description of any alternative solutions or features you've considered
|
29
|
+
validations:
|
30
|
+
required: false
|
31
|
+
- type: textarea
|
32
|
+
attributes:
|
33
|
+
label: Additional context
|
34
|
+
description: Add any other context or additional information about the problem here
|
35
|
+
validations:
|
36
|
+
required: false
|
@@ -0,0 +1,18 @@
|
|
1
|
+
name: ❓ Question or Support Request
|
2
|
+
description: Questions and requests for support
|
3
|
+
title: "[Question/Support] <title>"
|
4
|
+
labels: [question, support, needs-triage]
|
5
|
+
body:
|
6
|
+
- type: checkboxes
|
7
|
+
attributes:
|
8
|
+
label: Is there an existing issue for this?
|
9
|
+
description: Please search to see if an issue already exists for the bug you encountered.
|
10
|
+
options:
|
11
|
+
- label: I have searched the existing issues
|
12
|
+
required: true
|
13
|
+
- type: textarea
|
14
|
+
attributes:
|
15
|
+
label: Describe your question or ask for support
|
16
|
+
description: A concise description of what you would like support with
|
17
|
+
validations:
|
18
|
+
required: true
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Checklist:
|
2
|
+
|
3
|
+
* [ ] I have updated the necessary documentation
|
4
|
+
* [ ] I have signed off all my commits as required by [DCO](https://github.com/procore-oss/handcuffs/blob/main/CONTRIBUTING.md)
|
5
|
+
* [ ] My build is green
|
6
|
+
|
7
|
+
<!--
|
8
|
+
Note on DCO:
|
9
|
+
|
10
|
+
If the DCO check fails, one or more of your commits are not signed off. Please click on the *Details* link next to the DCO action for instructions on how to resolve this.
|
11
|
+
|
12
|
+
Note on Versioning:
|
13
|
+
|
14
|
+
Maintainers will bump the version and do a release when they are ready to release (possibly multiple merged PRs). Please do not bump the version in your PRs.
|
15
|
+
-->
|
@@ -0,0 +1,36 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: "github-actions"
|
4
|
+
directory: /
|
5
|
+
schedule:
|
6
|
+
interval: "weekly"
|
7
|
+
timezone: "America/Los_Angeles"
|
8
|
+
labels:
|
9
|
+
- "dependabot"
|
10
|
+
- "dependencies"
|
11
|
+
- "github-actions"
|
12
|
+
commit-message:
|
13
|
+
prefix: "chore(deps)"
|
14
|
+
groups:
|
15
|
+
dependencies:
|
16
|
+
applies-to: version-updates
|
17
|
+
update-types:
|
18
|
+
- "minor"
|
19
|
+
- "patch"
|
20
|
+
- package-ecosystem: "bundler"
|
21
|
+
directory: /
|
22
|
+
schedule:
|
23
|
+
interval: "weekly"
|
24
|
+
timezone: "America/Los_Angeles"
|
25
|
+
labels:
|
26
|
+
- "dependabot"
|
27
|
+
- "dependencies"
|
28
|
+
- "bundler"
|
29
|
+
commit-message:
|
30
|
+
prefix: "chore(deps)"
|
31
|
+
groups:
|
32
|
+
dependencies:
|
33
|
+
applies-to: version-updates
|
34
|
+
update-types:
|
35
|
+
- "minor"
|
36
|
+
- "patch"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: 'Auto Author Assign'
|
2
|
+
on:
|
3
|
+
pull_request_target:
|
4
|
+
types: [opened, reopened]
|
5
|
+
permissions:
|
6
|
+
contents: read
|
7
|
+
jobs:
|
8
|
+
assign-author:
|
9
|
+
permissions:
|
10
|
+
pull-requests: write
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- uses: toshimaru/auto-author-assign@ebd30f10fb56e46eb0759a14951f36991426fed0 # v2.1.0
|
14
|
+
with:
|
15
|
+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -0,0 +1,35 @@
|
|
1
|
+
name: "Custom CodeQL"
|
2
|
+
on:
|
3
|
+
workflow_dispatch:
|
4
|
+
push:
|
5
|
+
branches: ["main"]
|
6
|
+
pull_request:
|
7
|
+
branches: ["main"]
|
8
|
+
permissions:
|
9
|
+
contents: read
|
10
|
+
jobs:
|
11
|
+
analyze:
|
12
|
+
name: Analyze
|
13
|
+
runs-on: Ubuntu-latest
|
14
|
+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
|
15
|
+
permissions:
|
16
|
+
actions: read
|
17
|
+
contents: read
|
18
|
+
security-events: write
|
19
|
+
strategy:
|
20
|
+
fail-fast: false
|
21
|
+
matrix:
|
22
|
+
language: ['ruby']
|
23
|
+
steps:
|
24
|
+
- name: Checkout repository
|
25
|
+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
26
|
+
- name: Initialize CodeQL
|
27
|
+
uses: github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
|
28
|
+
with:
|
29
|
+
languages: ${{ matrix.language }}
|
30
|
+
- name: Autobuild
|
31
|
+
uses: github/codeql-action/autobuild@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
|
32
|
+
- name: Perform CodeQL Analysis
|
33
|
+
uses: github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
|
34
|
+
with:
|
35
|
+
category: "/language:${{matrix.language}}"
|
@@ -0,0 +1,43 @@
|
|
1
|
+
name: Release
|
2
|
+
on:
|
3
|
+
workflow_run:
|
4
|
+
workflows: [Test]
|
5
|
+
types: [completed]
|
6
|
+
branches: [main]
|
7
|
+
workflow_dispatch: # allow manual deployment through GitHub Action UI
|
8
|
+
jobs:
|
9
|
+
version-check:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
12
|
+
outputs:
|
13
|
+
changed: ${{ steps.check.outputs.any_changed }}
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
16
|
+
- name: Check if version has been updated
|
17
|
+
id: check
|
18
|
+
uses: tj-actions/changed-files@d6babd6899969df1a11d14c368283ea4436bca78 # v44
|
19
|
+
with:
|
20
|
+
files: lib/handcuffs/version.rb
|
21
|
+
release:
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
needs: version-check
|
24
|
+
if: ${{ github.event_name == 'workflow_dispatch' || needs.version-check.outputs.changed == 'true' }}
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
27
|
+
- name: Set up Ruby
|
28
|
+
uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1
|
29
|
+
with:
|
30
|
+
ruby-version: 3.2
|
31
|
+
bundler-cache: true
|
32
|
+
- name: Installing dependencies
|
33
|
+
run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
|
34
|
+
- name: Build gem file
|
35
|
+
run: bundle exec rake build
|
36
|
+
- uses: fac/ruby-gem-setup-credentials-action@5f62d5f2f56a11c7422a92f81fbb29af01e1c00f # v2
|
37
|
+
with:
|
38
|
+
user: ""
|
39
|
+
key: rubygems
|
40
|
+
token: ${{secrets.RUBY_GEMS_API_KEY}}
|
41
|
+
- uses: fac/ruby-gem-push-action@81d77bf568ff6659d7fae0f0c5a036bb0aeacb1a # v2
|
42
|
+
with:
|
43
|
+
key: rubygems
|
@@ -0,0 +1,34 @@
|
|
1
|
+
## Reference: https://github.com/actions/stale
|
2
|
+
name: Mark stale issues and pull requests
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: "30 1 * * *"
|
6
|
+
permissions:
|
7
|
+
contents: read
|
8
|
+
jobs:
|
9
|
+
stale:
|
10
|
+
permissions:
|
11
|
+
issues: write # for actions/stale to close stale issues
|
12
|
+
pull-requests: write # for actions/stale to close stale PRs
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
steps:
|
15
|
+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
|
16
|
+
with:
|
17
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
18
|
+
# Number of days of inactivity before an issue becomes stale
|
19
|
+
days-before-stale: 60
|
20
|
+
# Number of days of inactivity before a stale issue is closed
|
21
|
+
days-before-close: 7
|
22
|
+
# Issues with these labels will never be considered stale
|
23
|
+
exempt-issue-labels: "on-hold,pinned,security"
|
24
|
+
exempt-pr-labels: "on-hold,pinned,security"
|
25
|
+
# Comment to post when marking an issue as stale.
|
26
|
+
stale-issue-message: >
|
27
|
+
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
|
28
|
+
|
29
|
+
stale-pr-message: >
|
30
|
+
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
|
31
|
+
|
32
|
+
# Label to use when marking an issue as stale
|
33
|
+
stale-issue-label: 'no-issue-activity'
|
34
|
+
stale-pr-label: 'no-pr-activity'
|
@@ -0,0 +1,52 @@
|
|
1
|
+
name: Test
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [main]
|
5
|
+
pull_request:
|
6
|
+
branches: [main]
|
7
|
+
permissions:
|
8
|
+
contents: read
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
os: ['ubuntu-latest']
|
14
|
+
ruby: ['3.0', '3.1', '3.2', '3.3']
|
15
|
+
postgres: ['16-bullseye', '15-bullseye', '14-bullseye', '13-bullseye', '12-bullseye']
|
16
|
+
name: Ruby ${{ matrix.ruby }} - PostgreSQL ${{ matrix.postgres }}
|
17
|
+
# https://docs.github.com/en/actions/learn-github-actions/expressions#example
|
18
|
+
runs-on: ${{ matrix.os }}
|
19
|
+
services:
|
20
|
+
postgres:
|
21
|
+
image: postgres:${{ matrix.postgres }}
|
22
|
+
env:
|
23
|
+
POSTGRES_USER: ubuntu
|
24
|
+
POSTGRES_DB: handcuffs_test
|
25
|
+
POSTGRES_HOST_AUTH_METHOD: trust
|
26
|
+
options: >-
|
27
|
+
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
28
|
+
ports:
|
29
|
+
- 5432:5432
|
30
|
+
env:
|
31
|
+
PGHOST: localhost
|
32
|
+
PGUSER: ubuntu
|
33
|
+
RAILS_ENV: test
|
34
|
+
BUNDLER_VERSION: 2.4.22
|
35
|
+
steps:
|
36
|
+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
37
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
38
|
+
uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1
|
39
|
+
with:
|
40
|
+
ruby-version: ${{ matrix.ruby }}
|
41
|
+
bundler: ${{ env.BUNDLER_VERSION }}
|
42
|
+
bundler-cache: true
|
43
|
+
- name: Installing dependencies
|
44
|
+
run: bundle install && cd spec/dummy && bundle install
|
45
|
+
- name: Install Apprasals Dependencies
|
46
|
+
run: bundle exec appraisal install && cd spec/dummy && bundle exec appraisal install
|
47
|
+
- name: Setup Database
|
48
|
+
run: cd spec/dummy && bundle exec rake db:create db:migrate --trace
|
49
|
+
- name: Run Appraisals Tests
|
50
|
+
run: bundle exec appraisal rspec
|
51
|
+
- name: Run Dummy App Tests
|
52
|
+
run: cd spec/dummy && bundle exec appraisal bin/rspec
|
data/.gitignore
CHANGED
data/Appraisals
CHANGED
@@ -1,32 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
appraise "rails-4" do
|
4
|
-
gem "rails", "~> 4.2.8"
|
5
|
-
gem 'pg', '~> 0.15'
|
6
|
-
end
|
1
|
+
appraise "rails-6.1" do
|
2
|
+
gem "rails", "~> 6.1.0"
|
7
3
|
end
|
8
4
|
|
9
|
-
appraise "rails-
|
10
|
-
gem "rails", "~>
|
11
|
-
gem 'pg', '~> 0.18'
|
5
|
+
appraise "rails-7.0" do
|
6
|
+
gem "rails", "~> 7.0.0"
|
12
7
|
end
|
13
8
|
|
14
|
-
appraise "rails-
|
15
|
-
gem "rails", "~>
|
16
|
-
gem 'pg', '~> 0.18'
|
17
|
-
end
|
18
|
-
|
19
|
-
appraise "rails-5.2" do
|
20
|
-
gem "rails", "~> 5.2.3"
|
21
|
-
end
|
22
|
-
|
23
|
-
# Rails >= 6 requires Ruby >= 2.5
|
24
|
-
if RUBY_VERSION >= "2.5"
|
25
|
-
appraise "rails-6" do
|
26
|
-
gem "rails", "~> 6.0.1"
|
27
|
-
end
|
28
|
-
|
29
|
-
appraise "rails-6.1" do
|
30
|
-
gem "rails", "~> 6.1"
|
31
|
-
end
|
9
|
+
appraise "rails-7.1" do
|
10
|
+
gem "rails", "~> 7.1.0"
|
32
11
|
end
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [Unreleased] [diff](https://github.com/procore-oss/handcuffs/compare/v2.1.0..main)
|
9
|
+
|
10
|
+
## 2.1.0 : 2025-01-24 [diff](https://github.com/procore-oss/handcuffs/compare/v2.0.0..v2.1.0)
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Ability to specify prerequisite phases in a non-linear order
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
|
18
|
+
- (internal) bumped rspec-rails gem version in development dependencies
|
19
|
+
- (internal) bumped minimum gem versions in test Rails app
|
20
|
+
- (internal) update github workflow
|
21
|
+
|
22
|
+
|
23
|
+
## 2.0.0 : 2024-02-20 [diff](https://github.com/procore-oss/handcuffs/compare/v1.4.1..v2.0.0)
|
24
|
+
|
25
|
+
### Removed
|
26
|
+
|
27
|
+
- **BREAKING CHANGE**: Removed support for Ruby < 2.7, Rails < 6.1, PostgreSQL < 12.
|
28
|
+
|
29
|
+
### Added
|
30
|
+
|
31
|
+
- CHANGELOG.md
|
32
|
+
- Code coverage for specs
|
33
|
+
|
34
|
+
### Changed
|
35
|
+
|
36
|
+
- Switched to new `cimg` docker imaged for CircleCI testing.
|
37
|
+
- Switched to matrix testing for
|
38
|
+
- PostgreSQL 12, 13, 14, 15, 16;
|
39
|
+
- Ruby 2.7, 3.0, 3.1, 3.2, 3.3;
|
40
|
+
- Rails 6.1, 7.0, 7.1 (via Appraisal).
|
41
|
+
- Updated Bundler to 2.4.22.
|
42
|
+
- Added Appraisal for dummy app testing.
|
43
|
+
- Moved repo to procore-oss
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,49 +1,130 @@
|
|
1
|
-
#
|
1
|
+
# Code of Conduct
|
2
2
|
|
3
|
-
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
3
|
+
## Our Pledge
|
7
4
|
|
8
|
-
We
|
9
|
-
experience for everyone, regardless of
|
10
|
-
|
11
|
-
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
10
|
+
and orientation.
|
12
11
|
|
13
|
-
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
13
|
+
diverse, inclusive, and healthy community.
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
## Our Standards
|
16
|
+
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
18
|
+
community include:
|
19
|
+
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
24
|
+
and learning from the experience
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
26
|
+
overall community
|
27
|
+
|
28
|
+
Examples of unacceptable behavior include:
|
29
|
+
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or
|
31
|
+
advances of any kind
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
18
33
|
* Public or private harassment
|
19
|
-
* Publishing
|
20
|
-
|
21
|
-
*
|
34
|
+
* Publishing others' private information, such as a physical or email
|
35
|
+
address, without their explicit permission
|
36
|
+
* Spam or other deceptive practices that take advantage of the community
|
37
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
38
|
+
professional setting
|
39
|
+
|
40
|
+
## Enforcement Responsibilities
|
41
|
+
|
42
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
43
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
44
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
45
|
+
or harmful.
|
46
|
+
|
47
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
48
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
49
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
50
|
+
decisions when appropriate.
|
22
51
|
|
23
|
-
|
24
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
-
threatening, offensive, or harmful.
|
52
|
+
## Scope
|
28
53
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
54
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
55
|
+
an individual is officially representing the community in public spaces.
|
56
|
+
Examples of representing our community include using an official e-mail address,
|
57
|
+
posting via an official social media account, or acting as an appointed
|
58
|
+
representative at an online or offline event.
|
33
59
|
|
34
|
-
|
35
|
-
when an individual is representing the project or its community.
|
60
|
+
## Enforcement
|
36
61
|
|
37
62
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
-
reported
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
63
|
+
reported to the community leaders responsible for enforcement at
|
64
|
+
<opensource@procore.com>.
|
65
|
+
All complaints will be reviewed and investigated promptly and fairly by
|
66
|
+
the Procore Open Source Program Office (OSPO)
|
67
|
+
|
68
|
+
All community leaders are obligated to respect the privacy and security of the
|
69
|
+
reporter of any incident.
|
70
|
+
|
71
|
+
## Enforcement Guidelines
|
72
|
+
|
73
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
74
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
75
|
+
|
76
|
+
### 1. Correction
|
77
|
+
|
78
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
79
|
+
unprofessional or unwelcome in the community.
|
80
|
+
|
81
|
+
**Consequence**: A private, written warning from community leaders, providing
|
82
|
+
clarity around the nature of the violation and an explanation of why the
|
83
|
+
behavior was inappropriate. A public apology may be requested.
|
84
|
+
|
85
|
+
### 2. Warning
|
86
|
+
|
87
|
+
**Community Impact**: A violation through a single incident or series
|
88
|
+
of actions.
|
89
|
+
|
90
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
91
|
+
interaction with the people involved, including unsolicited interaction with
|
92
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
93
|
+
includes avoiding interactions in community spaces as well as external channels
|
94
|
+
like social media. Violating these terms may lead to a temporary or
|
95
|
+
permanent ban.
|
96
|
+
|
97
|
+
### 3. Temporary Ban
|
98
|
+
|
99
|
+
**Community Impact**: A serious violation of community standards, including
|
100
|
+
sustained inappropriate behavior.
|
101
|
+
|
102
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
103
|
+
communication with the community for a specified period of time. No public or
|
104
|
+
private interaction with the people involved, including unsolicited interaction
|
105
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
106
|
+
Violating these terms may lead to a permanent ban.
|
107
|
+
|
108
|
+
### 4. Permanent Ban
|
109
|
+
|
110
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
111
|
+
standards, including sustained inappropriate behavior, harassment of an
|
112
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
113
|
+
|
114
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
115
|
+
the community.
|
116
|
+
|
117
|
+
## Attribution
|
43
118
|
|
44
119
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
-
version
|
46
|
-
|
120
|
+
version 2.0, available at
|
121
|
+
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
|
122
|
+
|
123
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
124
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
125
|
+
|
126
|
+
[homepage]: https://www.contributor-covenant.org
|
47
127
|
|
48
|
-
|
49
|
-
|
128
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
129
|
+
<https://www.contributor-covenant.org/faq>. Translations are available at
|
130
|
+
<https://www.contributor-covenant.org/translations>.
|