migration-lock-timeout 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Appraisals +7 -0
- data/README.md +3 -3
- data/circle.yml +11 -1
- data/gemfiles/activerecord_4.gemfile +7 -0
- data/gemfiles/activerecord_5.gemfile +7 -0
- data/lib/migration_lock_timeout/version.rb +1 -1
- data/migration-lock-timeout.gemspec +5 -5
- data/spec_helper.rb +2 -3
- metadata +42 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9b1c5bcab7e5a412ebbbce7aada13b4bc7f72a5
|
4
|
+
data.tar.gz: 40fab9fcf770f14687f514573af74f317093b1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f8e9dcde22d5a5e12b86f6ffe94cdcea8bcc9fb544400c17c38a34d5aacc90920d6c1c4d08f9a3fa8b01ae7e29d1fad2a4f21508c4e2987dd1c0593ae41a895
|
7
|
+
data.tar.gz: f4a5b1a8cdd182a09fc0294219a7c147614e4b98885af91d81a9fe7d85c4fbf78fbcc13fd3d11aa34481ce475d29ff57a857ec9b32196d95e55efe49cbefb3e0
|
data/.gitignore
CHANGED
data/Appraisals
ADDED
data/README.md
CHANGED
@@ -24,12 +24,12 @@ Configure the default lock timeout in a Rails initializer
|
|
24
24
|
```ruby
|
25
25
|
#config/initializers/migration_lock_timeout.rb
|
26
26
|
|
27
|
-
MigrationLockTimeout.configure |config|
|
28
|
-
config.
|
27
|
+
MigrationLockTimeout.configure do |config|
|
28
|
+
config.default_timeout = 5 #timeout in seconds
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|
32
|
-
And that's all! Now every migration will execute
|
32
|
+
And that's all! Now every `up` migration will execute
|
33
33
|
```psql
|
34
34
|
SET LOCAL lock_timeout = '5s';
|
35
35
|
```
|
data/circle.yml
CHANGED
@@ -3,6 +3,16 @@ machine:
|
|
3
3
|
POSTGRES_DB_DATABASE: circle_test
|
4
4
|
POSTGRES_DB_USERNAME: ubuntu
|
5
5
|
POSTGRES_DB_PASSWORD: ''
|
6
|
+
ruby:
|
7
|
+
version: 2.3.3
|
8
|
+
|
6
9
|
database:
|
7
|
-
override:
|
10
|
+
override:
|
8
11
|
- echo 'using circle_test'
|
12
|
+
|
13
|
+
dependencies:
|
14
|
+
post:
|
15
|
+
- bundle exec appraisal install
|
16
|
+
test:
|
17
|
+
override:
|
18
|
+
- bundle exec appraisal rspec
|
@@ -27,12 +27,12 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.add_development_dependency "
|
31
|
-
spec.add_development_dependency "rake", "~> 11.2.2"
|
32
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
-
spec.add_development_dependency "pg"
|
30
|
+
spec.add_development_dependency "appraisal"
|
34
31
|
spec.add_development_dependency "database_cleaner"
|
32
|
+
spec.add_development_dependency "pg"
|
35
33
|
spec.add_development_dependency "pry"
|
34
|
+
spec.add_development_dependency "rake", "~> 11.2.2"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
36
|
|
37
|
-
spec.add_runtime_dependency "activerecord", "
|
37
|
+
spec.add_runtime_dependency "activerecord", ">= 4.0", "< 6.0"
|
38
38
|
end
|
data/spec_helper.rb
CHANGED
@@ -11,12 +11,11 @@ RSpec.configure do |config|
|
|
11
11
|
)
|
12
12
|
DatabaseCleaner.strategy = :transaction
|
13
13
|
DatabaseCleaner.clean_with(:truncation)
|
14
|
-
end
|
14
|
+
end
|
15
15
|
|
16
16
|
config.around(:each) do |example|
|
17
17
|
DatabaseCleaner.cleaning do
|
18
18
|
example.run
|
19
|
-
end
|
19
|
+
end
|
20
20
|
end
|
21
21
|
end
|
22
|
-
|
metadata
CHANGED
@@ -1,59 +1,59 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migration-lock-timeout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.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: 2016-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: appraisal
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: database_cleaner
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: pg
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,47 +67,53 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 11.2.2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 11.2.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '3.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '3.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: activerecord
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.0'
|
104
|
+
- - "<"
|
102
105
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
106
|
+
version: '6.0'
|
104
107
|
type: :runtime
|
105
108
|
prerelease: false
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
|
-
- - "
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '4.0'
|
114
|
+
- - "<"
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
116
|
+
version: '6.0'
|
111
117
|
description: Ruby gem that automatically adds a lock timeout to all Active Record
|
112
118
|
migrations
|
113
119
|
email:
|
@@ -120,6 +126,7 @@ files:
|
|
120
126
|
- ".gitignore"
|
121
127
|
- ".rspec"
|
122
128
|
- ".travis.yml"
|
129
|
+
- Appraisals
|
123
130
|
- CODE_OF_CONDUCT.md
|
124
131
|
- Gemfile
|
125
132
|
- LICENSE
|
@@ -128,6 +135,8 @@ files:
|
|
128
135
|
- bin/console
|
129
136
|
- bin/setup
|
130
137
|
- circle.yml
|
138
|
+
- gemfiles/activerecord_4.gemfile
|
139
|
+
- gemfiles/activerecord_5.gemfile
|
131
140
|
- lib/migration-lock-timeout.rb
|
132
141
|
- lib/migration_lock_timeout/config.rb
|
133
142
|
- lib/migration_lock_timeout/lock_manager.rb
|
@@ -156,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
165
|
version: '0'
|
157
166
|
requirements: []
|
158
167
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.5.2
|
160
169
|
signing_key:
|
161
170
|
specification_version: 4
|
162
171
|
summary: Ruby gem that adds a lock timeout to Active Record migrations
|