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
metadata
CHANGED
|
@@ -1,119 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: migration-lock-timeout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brad Urani
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-09-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: appraisal
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: database_cleaner
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: pg
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '1.1'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.1'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: pry
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rake
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 11.2.2
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 11.2.2
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rspec
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '3.0'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '3.0'
|
|
97
13
|
- !ruby/object:Gem::Dependency
|
|
98
14
|
name: activerecord
|
|
99
15
|
requirement: !ruby/object:Gem::Requirement
|
|
100
16
|
requirements:
|
|
101
17
|
- - ">="
|
|
102
18
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
19
|
+
version: '6.1'
|
|
104
20
|
- - "<"
|
|
105
21
|
- !ruby/object:Gem::Version
|
|
106
|
-
version: '8.
|
|
22
|
+
version: '8.2'
|
|
107
23
|
type: :runtime
|
|
108
24
|
prerelease: false
|
|
109
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
110
26
|
requirements:
|
|
111
27
|
- - ">="
|
|
112
28
|
- !ruby/object:Gem::Version
|
|
113
|
-
version: '
|
|
29
|
+
version: '6.1'
|
|
114
30
|
- - "<"
|
|
115
31
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '8.
|
|
32
|
+
version: '8.2'
|
|
117
33
|
description: Ruby gem that automatically adds a lock timeout to all Active Record
|
|
118
34
|
migrations
|
|
119
35
|
email:
|
|
@@ -123,7 +39,21 @@ executables: []
|
|
|
123
39
|
extensions: []
|
|
124
40
|
extra_rdoc_files: []
|
|
125
41
|
files:
|
|
126
|
-
- ".
|
|
42
|
+
- ".github/CODEOWNERS"
|
|
43
|
+
- ".github/ISSUE_TEMPLATE/bug.yml"
|
|
44
|
+
- ".github/ISSUE_TEMPLATE/config.yml"
|
|
45
|
+
- ".github/ISSUE_TEMPLATE/docs.yml"
|
|
46
|
+
- ".github/ISSUE_TEMPLATE/feature-request.yml"
|
|
47
|
+
- ".github/ISSUE_TEMPLATE/question-support.yml"
|
|
48
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
49
|
+
- ".github/dependabot.yaml"
|
|
50
|
+
- ".github/labeler.yml"
|
|
51
|
+
- ".github/workflows/auto-assign-author.yml"
|
|
52
|
+
- ".github/workflows/codeql.yml"
|
|
53
|
+
- ".github/workflows/labeler.yml"
|
|
54
|
+
- ".github/workflows/release.yml"
|
|
55
|
+
- ".github/workflows/stale.yml"
|
|
56
|
+
- ".github/workflows/test.yml"
|
|
127
57
|
- ".gitignore"
|
|
128
58
|
- ".rspec"
|
|
129
59
|
- ".ruby-version"
|
|
@@ -131,29 +61,43 @@ files:
|
|
|
131
61
|
- Appraisals
|
|
132
62
|
- CHANGELOG.md
|
|
133
63
|
- CODE_OF_CONDUCT.md
|
|
64
|
+
- CONTRIBUTING.md
|
|
134
65
|
- Gemfile
|
|
66
|
+
- Gemfile.lock
|
|
135
67
|
- LICENSE
|
|
136
68
|
- README.md
|
|
137
69
|
- Rakefile
|
|
70
|
+
- SECURITY.md
|
|
138
71
|
- bin/console
|
|
139
72
|
- bin/setup
|
|
140
73
|
- gemfiles/.bundle/config
|
|
141
|
-
- gemfiles/
|
|
142
|
-
- gemfiles/
|
|
143
|
-
- gemfiles/
|
|
144
|
-
- gemfiles/
|
|
145
|
-
- gemfiles/activerecord_6.gemfile
|
|
146
|
-
- gemfiles/activerecord_6_with_strong_migrations.gemfile
|
|
74
|
+
- gemfiles/activerecord_6_1.gemfile
|
|
75
|
+
- gemfiles/activerecord_6_1.gemfile.lock
|
|
76
|
+
- gemfiles/activerecord_6_1_with_strong_migrations.gemfile
|
|
77
|
+
- gemfiles/activerecord_6_1_with_strong_migrations.gemfile.lock
|
|
147
78
|
- gemfiles/activerecord_7.gemfile
|
|
79
|
+
- gemfiles/activerecord_7.gemfile.lock
|
|
80
|
+
- gemfiles/activerecord_7_1.gemfile
|
|
81
|
+
- gemfiles/activerecord_7_1.gemfile.lock
|
|
82
|
+
- gemfiles/activerecord_7_1_with_strong_migrations.gemfile
|
|
83
|
+
- gemfiles/activerecord_7_1_with_strong_migrations.gemfile.lock
|
|
148
84
|
- gemfiles/activerecord_7_with_strong_migrations.gemfile
|
|
85
|
+
- gemfiles/activerecord_7_with_strong_migrations.gemfile.lock
|
|
86
|
+
- gemfiles/activerecord_8_0.gemfile
|
|
87
|
+
- gemfiles/activerecord_8_0.gemfile.lock
|
|
88
|
+
- gemfiles/activerecord_8_0_with_strong_migrations.gemfile
|
|
89
|
+
- gemfiles/activerecord_8_0_with_strong_migrations.gemfile.lock
|
|
90
|
+
- gemfiles/activerecord_8_1.gemfile
|
|
91
|
+
- gemfiles/activerecord_8_1.gemfile.lock
|
|
92
|
+
- gemfiles/activerecord_8_1_with_strong_migrations.gemfile
|
|
93
|
+
- gemfiles/activerecord_8_1_with_strong_migrations.gemfile.lock
|
|
149
94
|
- lib/migration-lock-timeout.rb
|
|
150
95
|
- lib/migration_lock_timeout/config.rb
|
|
151
96
|
- lib/migration_lock_timeout/lock_manager.rb
|
|
152
97
|
- lib/migration_lock_timeout/migration_extensions.rb
|
|
153
98
|
- lib/migration_lock_timeout/version.rb
|
|
154
99
|
- migration-lock-timeout.gemspec
|
|
155
|
-
|
|
156
|
-
homepage: http://github.com/procore/migration-lock-timeout
|
|
100
|
+
homepage: http://github.com/procore-oss/migration-lock-timeout
|
|
157
101
|
licenses:
|
|
158
102
|
- MIT
|
|
159
103
|
metadata:
|
|
@@ -173,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
173
117
|
- !ruby/object:Gem::Version
|
|
174
118
|
version: '0'
|
|
175
119
|
requirements: []
|
|
176
|
-
rubygems_version: 3.
|
|
120
|
+
rubygems_version: 3.4.19
|
|
177
121
|
signing_key:
|
|
178
122
|
specification_version: 4
|
|
179
123
|
summary: Ruby gem that adds a lock timeout to Active Record migrations
|
data/.circleci/config.yml
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
version: 2.1
|
|
2
|
-
jobs:
|
|
3
|
-
build:
|
|
4
|
-
# working_directory: ~/appName
|
|
5
|
-
docker:
|
|
6
|
-
- image: cimg/ruby:2.7.7
|
|
7
|
-
environment:
|
|
8
|
-
PG_HOST: localhost
|
|
9
|
-
PG_USER: ubuntu
|
|
10
|
-
- image: cimg/postgres:15.1
|
|
11
|
-
environment:
|
|
12
|
-
POSTGRES_USER: ubuntu
|
|
13
|
-
POSTGRES_DB: circle_test
|
|
14
|
-
POSTGRES_PASSWORD: $POSTGRES_DB_PASSWORD
|
|
15
|
-
steps:
|
|
16
|
-
- checkout
|
|
17
|
-
- run:
|
|
18
|
-
name: Install Ruby Dependencies
|
|
19
|
-
command: bundle install
|
|
20
|
-
- run:
|
|
21
|
-
name: Install Appraisals Dependencies
|
|
22
|
-
command: bundle exec appraisal install
|
|
23
|
-
- run:
|
|
24
|
-
name: Run Appraisals Tests
|
|
25
|
-
environment:
|
|
26
|
-
POSTGRES_DB_USERNAME: ubuntu
|
|
27
|
-
POSTGRES_DB_DATABASE: circle_test
|
|
28
|
-
POSTGRES_DB_PASSWORD: $POSTGRES_DB_PASSWORD
|
|
29
|
-
command: bundle exec appraisal rspec
|
data/spec_helper.rb
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
require 'database_cleaner'
|
|
2
|
-
|
|
3
|
-
RSpec.configure do |config|
|
|
4
|
-
config.before(:suite) do
|
|
5
|
-
ActiveRecord::Base.establish_connection(
|
|
6
|
-
adapter: "postgresql",
|
|
7
|
-
database: ENV["POSTGRES_DB_DATABASE"] || "migration_lock_timeout_test",
|
|
8
|
-
username: ENV['POSTGRES_DB_USERNAME'],
|
|
9
|
-
password: ENV['POSTGRES_DB_PASSWORD'],
|
|
10
|
-
host: 'localhost'
|
|
11
|
-
)
|
|
12
|
-
DatabaseCleaner.strategy = :transaction
|
|
13
|
-
DatabaseCleaner.clean_with(:truncation)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
config.around(:each) do |example|
|
|
17
|
-
DatabaseCleaner.cleaning do
|
|
18
|
-
example.run
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|