migration-lock-timeout 1.4.0 → 2.0.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 +64 -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 +17 -0
- data/.github/dependabot.yaml +7 -0
- data/.github/labeler.yml +9 -0
- data/.github/workflows/auto-assign-author.yml +15 -0
- data/.github/workflows/codeql.yml +35 -0
- data/.github/workflows/labeler.yml +15 -0
- data/.github/workflows/release.yml +43 -0
- data/.github/workflows/stale.yml +40 -0
- data/.github/workflows/test.yml +46 -0
- data/.gitignore +0 -2
- data/.ruby-version +1 -1
- data/Appraisals +27 -24
- data/CHANGELOG.md +13 -0
- data/CODE_OF_CONDUCT.md +58 -31
- data/CONTRIBUTING.md +23 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +87 -0
- data/README.md +5 -8
- data/SECURITY.md +9 -0
- data/gemfiles/activerecord_6_1.gemfile +20 -0
- data/gemfiles/activerecord_6_1.gemfile.lock +83 -0
- data/gemfiles/activerecord_6_1_with_strong_migrations.gemfile +21 -0
- data/gemfiles/activerecord_6_1_with_strong_migrations.gemfile.lock +86 -0
- data/gemfiles/activerecord_7.gemfile +14 -1
- data/gemfiles/activerecord_7.gemfile.lock +90 -0
- data/gemfiles/activerecord_7_1.gemfile +20 -0
- data/gemfiles/activerecord_7_1.gemfile.lock +94 -0
- data/gemfiles/activerecord_7_1_with_strong_migrations.gemfile +21 -0
- data/gemfiles/activerecord_7_1_with_strong_migrations.gemfile.lock +97 -0
- data/gemfiles/activerecord_7_with_strong_migrations.gemfile +14 -1
- data/gemfiles/activerecord_7_with_strong_migrations.gemfile.lock +93 -0
- data/gemfiles/activerecord_8_0.gemfile +20 -0
- data/gemfiles/activerecord_8_0.gemfile.lock +107 -0
- data/gemfiles/activerecord_8_0_with_strong_migrations.gemfile +21 -0
- data/gemfiles/activerecord_8_0_with_strong_migrations.gemfile.lock +96 -0
- data/gemfiles/activerecord_8_1.gemfile +20 -0
- data/gemfiles/activerecord_8_1.gemfile.lock +94 -0
- data/gemfiles/activerecord_8_1_with_strong_migrations.gemfile +21 -0
- data/gemfiles/activerecord_8_1_with_strong_migrations.gemfile.lock +97 -0
- data/lib/migration_lock_timeout/version.rb +4 -1
- data/migration-lock-timeout.gemspec +2 -9
- metadata +44 -100
- data/.circleci/config.yml +0 -29
- data/gemfiles/activerecord_4.gemfile +0 -9
- data/gemfiles/activerecord_4_with_strong_migrations.gemfile +0 -10
- data/gemfiles/activerecord_5.gemfile +0 -8
- data/gemfiles/activerecord_5_with_strong_migrations.gemfile +0 -9
- data/gemfiles/activerecord_6.gemfile +0 -7
- data/gemfiles/activerecord_6_with_strong_migrations.gemfile +0 -8
- data/spec_helper.rb +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23a039c3b5418a45787e521fb863cf3527bd02e8d158561ece67ae0043212172
|
|
4
|
+
data.tar.gz: 0b5d8d845b5c2afbbc444e7dd0ac37ce09b399483553005400b3e5208bb78af7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82a5a7418ded1b677ad089bd7b9b8cdbe9b783e84716c8f5da4dd5155e05dc7ea3e7780714f6367b03d3df8196eb82b15c66bdc0226fcbeac0ce0c08d069b344
|
|
7
|
+
data.tar.gz: 8555e3b5aaacc84503c2bd710415659f9dff1e7f75c8db2a895bae1195267cae72e96647aa0565f7e9c0b8d8294771ebf3eabb53802c6b95376a3e7ee0647386
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @procore-oss/procore-migration-lock-timeout
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
value: |
|
|
51
|
+
- OS:
|
|
52
|
+
- Browser Name and version:
|
|
53
|
+
render: markdown
|
|
54
|
+
validations:
|
|
55
|
+
required: true
|
|
56
|
+
- type: textarea
|
|
57
|
+
attributes:
|
|
58
|
+
label: Anything else?
|
|
59
|
+
description: |
|
|
60
|
+
Links? References? Anything that will give us more context about the issue you are encountering!
|
|
61
|
+
|
|
62
|
+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
|
|
63
|
+
validations:
|
|
64
|
+
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 think 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 feature you'd like to see implemented
|
|
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,17 @@
|
|
|
1
|
+
|
|
2
|
+
Checklist:
|
|
3
|
+
|
|
4
|
+
* [ ] I have updated the necessary documentation
|
|
5
|
+
* [ ] I have updated the changelog, if necessary (CHANGELOG.md)
|
|
6
|
+
* [ ] I have signed off all my commits as required by [DCO](../CONTRIBUTING.md)
|
|
7
|
+
* [ ] My build is green
|
|
8
|
+
|
|
9
|
+
<!--
|
|
10
|
+
Note on DCO:
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
Note on Versioning:
|
|
15
|
+
|
|
16
|
+
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.
|
|
17
|
+
-->
|
data/.github/labeler.yml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: "Auto Author Assign"
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened, reopened, synchronize]
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
pull-requests: write
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
assign:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: toshimaru/auto-author-assign@4d585cc37690897bd9015942ed6e766aa7cdb97f # v3.0.1
|
|
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
|
|
26
|
+
- name: Initialize CodeQL
|
|
27
|
+
uses: github/codeql-action/init@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3
|
|
28
|
+
with:
|
|
29
|
+
languages: ${{ matrix.language }}
|
|
30
|
+
- name: Autobuild
|
|
31
|
+
uses: github/codeql-action/autobuild@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3
|
|
32
|
+
- name: Perform CodeQL Analysis
|
|
33
|
+
uses: github/codeql-action/analyze@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3
|
|
34
|
+
with:
|
|
35
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: "Pull Request Labeler"
|
|
2
|
+
on:
|
|
3
|
+
pull_request_target:
|
|
4
|
+
|
|
5
|
+
permissions:
|
|
6
|
+
contents: read
|
|
7
|
+
pull-requests: write
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
labeler:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
|
|
14
|
+
with:
|
|
15
|
+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
@@ -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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
|
|
16
|
+
- name: Check if version has been updated
|
|
17
|
+
id: check
|
|
18
|
+
uses: tj-actions/changed-files@3c4bc6fa0ca4718d438e0a4bd3ea81fbb0e6e2be # v44
|
|
19
|
+
with:
|
|
20
|
+
files: lib/migration_lock_timeout/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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # 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,40 @@
|
|
|
1
|
+
name: "Close stale issues and PR"
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "30 1 * * *" # https://crontab.guru/#30_1_*_*_* (everyday at 0130)
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
issues: write
|
|
9
|
+
pull-requests: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
stale:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
|
|
16
|
+
with:
|
|
17
|
+
operations-per-run: 200
|
|
18
|
+
ascending: true
|
|
19
|
+
delete-branch: true
|
|
20
|
+
stale-issue-message: >
|
|
21
|
+
This issue is stale because it has been open 10 days with no activity.
|
|
22
|
+
Replace the `no-issue-activity` label with a `work-in-progress` label or comment or
|
|
23
|
+
this will be closed in 5 days.
|
|
24
|
+
close-issue-message: >
|
|
25
|
+
This issue was closed because it has been stalled for 5 days with no activity.
|
|
26
|
+
days-before-issue-stale: 10
|
|
27
|
+
days-before-issue-close: 5
|
|
28
|
+
stale-issue-label: "no-issue-activity"
|
|
29
|
+
exempt-issue-labels: "awaiting-approval,work-in-progress"
|
|
30
|
+
stale-pr-message: >
|
|
31
|
+
This PR is stale because it has been open 20 days with no activity.
|
|
32
|
+
Replace the `no-pr-activity` label with a `work-in-progress` label or comment or
|
|
33
|
+
this will be closed in 5 days.
|
|
34
|
+
close-pr-message: >
|
|
35
|
+
This PR was closed because it has been stalled for 5 days with no activity.
|
|
36
|
+
days-before-pr-stale: 20
|
|
37
|
+
days-before-pr-close: 5
|
|
38
|
+
stale-pr-label: "no-pr-activity"
|
|
39
|
+
exempt-pr-labels: "awaiting-approval,work-in-progress,dependencies"
|
|
40
|
+
exempt-pr-assignees: "snyk-github"
|
|
@@ -0,0 +1,46 @@
|
|
|
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.2', '3.3', '3.4']
|
|
15
|
+
postgres: ['15.1', '15.14']
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
services:
|
|
18
|
+
postgres:
|
|
19
|
+
image: postgres:${{ matrix.postgres }}
|
|
20
|
+
env:
|
|
21
|
+
POSTGRES_PASSWORD: postgres
|
|
22
|
+
ports:
|
|
23
|
+
- 5432:5432
|
|
24
|
+
options: >-
|
|
25
|
+
--health-cmd pg_isready
|
|
26
|
+
--health-interval 10s
|
|
27
|
+
--health-timeout 5s
|
|
28
|
+
--health-retries 5
|
|
29
|
+
env:
|
|
30
|
+
POSTGRES_DB_HOST: postgres
|
|
31
|
+
POSTGRES_DB_USERNAME: postgres
|
|
32
|
+
POSTGRES_DB_DATABASE: postgres
|
|
33
|
+
POSTGRES_DB_PASSWORD: postgres
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
|
|
36
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
|
37
|
+
uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1
|
|
38
|
+
with:
|
|
39
|
+
ruby-version: ${{ matrix.ruby }}
|
|
40
|
+
bundler-cache: true
|
|
41
|
+
- name: Install Ruby Dependencies
|
|
42
|
+
run: bundle check || bundle install
|
|
43
|
+
- name: Install Appraisals Dependencies
|
|
44
|
+
run: bundle exec appraisal install
|
|
45
|
+
- name: Run Appraisals Tests
|
|
46
|
+
run: bundle exec appraisal rspec
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.1.6
|
data/Appraisals
CHANGED
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
appraise "
|
|
2
|
-
gem "activerecord", "
|
|
3
|
-
gem "pg", "~> 0.21"
|
|
4
|
-
gem "bigdecimal", "1.3.5"
|
|
1
|
+
appraise "activerecord_6_1" do
|
|
2
|
+
gem "activerecord", "~> 6.1.0"
|
|
5
3
|
end
|
|
6
4
|
|
|
7
|
-
appraise "
|
|
8
|
-
gem "activerecord", "
|
|
5
|
+
appraise "activerecord_6_1_with_strong_migrations" do
|
|
6
|
+
gem "activerecord", "~> 6.1.0"
|
|
9
7
|
gem "strong_migrations", "0.2"
|
|
10
|
-
gem "pg", "~> 0.21"
|
|
11
|
-
gem "bigdecimal", "1.3.5"
|
|
12
8
|
end
|
|
13
9
|
|
|
14
|
-
appraise "
|
|
15
|
-
gem "activerecord", "
|
|
16
|
-
gem "pg", "~> 0.21"
|
|
10
|
+
appraise "activerecord_7" do
|
|
11
|
+
gem "activerecord", "~> 7.0.1"
|
|
17
12
|
end
|
|
18
13
|
|
|
19
|
-
appraise "
|
|
20
|
-
gem "activerecord", "
|
|
21
|
-
gem "strong_migrations"
|
|
22
|
-
gem "pg", "~> 0.21"
|
|
14
|
+
appraise "activerecord_7_with_strong_migrations" do
|
|
15
|
+
gem "activerecord", "~> 7.0.1"
|
|
16
|
+
gem "strong_migrations"
|
|
23
17
|
end
|
|
24
18
|
|
|
25
|
-
appraise "
|
|
26
|
-
gem "activerecord", "
|
|
19
|
+
appraise "activerecord_7_1" do
|
|
20
|
+
gem "activerecord", "~> 7.1.0"
|
|
27
21
|
end
|
|
28
22
|
|
|
29
|
-
appraise "
|
|
30
|
-
gem "activerecord", "
|
|
31
|
-
gem "strong_migrations"
|
|
23
|
+
appraise "activerecord_7_1_with_strong_migrations" do
|
|
24
|
+
gem "activerecord", "~> 7.1.0"
|
|
25
|
+
gem "strong_migrations"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
appraise "activerecord_8_0" do
|
|
29
|
+
gem "activerecord", "~> 8.0.0"
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
appraise "activerecord_8_0_with_strong_migrations" do
|
|
33
|
+
gem "activerecord", "~> 8.0.0"
|
|
34
|
+
gem "strong_migrations"
|
|
32
35
|
end
|
|
33
36
|
|
|
34
|
-
appraise "
|
|
35
|
-
gem "activerecord", "
|
|
37
|
+
appraise "activerecord_8_1" do
|
|
38
|
+
gem "activerecord", "~> 8.1.0"
|
|
36
39
|
end
|
|
37
40
|
|
|
38
|
-
appraise "
|
|
39
|
-
gem "activerecord", "
|
|
41
|
+
appraise "activerecord_8_1_with_strong_migrations" do
|
|
42
|
+
gem "activerecord", "~> 8.1.0"
|
|
40
43
|
gem "strong_migrations"
|
|
41
44
|
end
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [2.0.0]
|
|
10
|
+
### Removed
|
|
11
|
+
- Dropped support for Ruby 3.1
|
|
12
|
+
### Added
|
|
13
|
+
- Support for Rails 8.0 and 8.1
|
|
14
|
+
|
|
15
|
+
## [1.5.0]
|
|
16
|
+
### Removed
|
|
17
|
+
- Dropped support for Rails 6.0 and earlier
|
|
18
|
+
- Dropped support for Ruby 3.0 and earlier
|
|
19
|
+
|
|
7
20
|
## [1.4.0]
|
|
8
21
|
### Added
|
|
9
22
|
- Support for Rails 7
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,24 +1,41 @@
|
|
|
1
|
-
# Contributor Code of Conduct
|
|
1
|
+
# Contributor Covenant 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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to make participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
16
|
+
|
|
17
|
+
* Using welcoming and inclusive language
|
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
|
19
|
+
* Gracefully accepting constructive criticism
|
|
20
|
+
* Focusing on what is best for the community
|
|
21
|
+
* Showing empathy towards other community members
|
|
12
22
|
|
|
13
23
|
Examples of unacceptable behavior by participants include:
|
|
14
24
|
|
|
15
|
-
* The use of sexualized language or imagery
|
|
16
|
-
|
|
17
|
-
* Trolling
|
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
18
28
|
* Public or private harassment
|
|
19
|
-
* Publishing
|
|
20
|
-
|
|
21
|
-
* Other
|
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
22
39
|
|
|
23
40
|
Project maintainers have the right and responsibility to remove, edit, or
|
|
24
41
|
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
@@ -26,24 +43,34 @@ that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
|
26
43
|
permanently any contributor for other behaviors that they deem inappropriate,
|
|
27
44
|
threatening, offensive, or harmful.
|
|
28
45
|
|
|
29
|
-
|
|
30
|
-
fairly and consistently applying these principles to every aspect of managing
|
|
31
|
-
this project. Project maintainers who do not follow or enforce the Code of
|
|
32
|
-
Conduct may be permanently removed from the project team.
|
|
46
|
+
## Scope
|
|
33
47
|
|
|
34
|
-
This
|
|
35
|
-
when an individual is representing the project or its community.
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
36
54
|
|
|
37
|
-
|
|
38
|
-
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting the project team at <opensource@procore.com>. All
|
|
39
59
|
complaints will be reviewed and investigated and will result in a response that
|
|
40
|
-
is deemed necessary and appropriate to the circumstances.
|
|
41
|
-
obligated to maintain confidentiality
|
|
42
|
-
|
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
+
obligated to maintain confidentiality concerning the reporter of an incident.
|
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
|
63
|
+
|
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
+
members of the project's leadership.
|
|
67
|
+
|
|
68
|
+
## Attribution
|
|
69
|
+
|
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
|
|
43
72
|
|
|
44
|
-
|
|
45
|
-
version 1.3.0, available at
|
|
46
|
-
[http://contributor-covenant.org/version/1/3/0/][version]
|
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
|
47
74
|
|
|
48
|
-
|
|
49
|
-
|
|
75
|
+
For answers to common questions about this code of conduct, see
|
|
76
|
+
<https://www.contributor-covenant.org/faq>
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# **Contributing**
|
|
2
|
+
|
|
3
|
+
When contributing to this repository, please first discuss the change you wish to make via issue,
|
|
4
|
+
email, or any other method with the owners of this repository before making a change.
|
|
5
|
+
|
|
6
|
+
Please note we have a [code of conduct](CODE_OF_CONDUCT.md); please follow it in all your interactions with the project.
|
|
7
|
+
|
|
8
|
+
## Pull Request Process
|
|
9
|
+
|
|
10
|
+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
|
|
11
|
+
build.
|
|
12
|
+
2. Update the README.md with details of changes to the interface; this includes new environment variables, exposed ports, valid file locations and container parameters.
|
|
13
|
+
3. Increase the version numbers in any examples files and the README.md to the new version that this
|
|
14
|
+
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
|
|
15
|
+
4. You may merge the Pull Request once you have the sign-off of two other developers, or if you
|
|
16
|
+
do not have permission to do that, you may request the second reviewer to merge it for you.
|
|
17
|
+
|
|
18
|
+
## Issue Report Process
|
|
19
|
+
|
|
20
|
+
1. Go to the project's issues.
|
|
21
|
+
2. Select the template that better fits your issue.
|
|
22
|
+
3. Read the instructions carefully and write within the template guidelines.
|
|
23
|
+
4. Submit it and wait for support.
|
data/Gemfile
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
source 'https://rubygems.org'
|
|
2
4
|
|
|
3
5
|
# Specify your gem's dependencies in migration-lock-timeout.gemspec
|
|
4
6
|
gemspec
|
|
7
|
+
|
|
8
|
+
group :development, :test do
|
|
9
|
+
gem 'appraisal', require: false
|
|
10
|
+
gem 'base64', require: false
|
|
11
|
+
gem 'bigdecimal', require: false
|
|
12
|
+
gem 'benchmark', require: false
|
|
13
|
+
gem 'database_cleaner', require: false
|
|
14
|
+
gem 'pg', '~> 1.1', require: false
|
|
15
|
+
gem 'logger', require: false
|
|
16
|
+
gem 'mutex_m', require: false
|
|
17
|
+
gem 'rake', '~> 13', require: false
|
|
18
|
+
gem 'rspec', '~> 3.2', require: false
|
|
19
|
+
end
|