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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a619d10f5989579b9e6b7b9fecbbabe1da870e2
4
- data.tar.gz: 2a8684a0d10cb2f62bdf61e267b01ac47e235e23
3
+ metadata.gz: f9b1c5bcab7e5a412ebbbce7aada13b4bc7f72a5
4
+ data.tar.gz: 40fab9fcf770f14687f514573af74f317093b1c3
5
5
  SHA512:
6
- metadata.gz: 5ecc4823ab9b5a7c8e252c632225c2d009eb7fe3a560526ad3ac9407525c6943cb207b6cba02c269ffa4c8dfdea7ba983e97757620fe7a72192dc9d6d7906327
7
- data.tar.gz: af060b85d9066224932b22b5f05412bb26680222ffe80f523af9a17e01fa337eca69aeeb6670dd5d7a09ccf0536b5779a185488b44884171114d0ffc50d5bd1b
6
+ metadata.gz: 7f8e9dcde22d5a5e12b86f6ffe94cdcea8bcc9fb544400c17c38a34d5aacc90920d6c1c4d08f9a3fa8b01ae7e29d1fad2a4f21508c4e2987dd1c0593ae41a895
7
+ data.tar.gz: f4a5b1a8cdd182a09fc0294219a7c147614e4b98885af91d81a9fe7d85c4fbf78fbcc13fd3d11aa34481ce475d29ff57a857ec9b32196d95e55efe49cbefb3e0
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  *.gem
11
+ /gemfiles/*.gemfile.lock
@@ -0,0 +1,7 @@
1
+ appraise "activerecord-4" do
2
+ gem "activerecord", "4.2.7.1"
3
+ end
4
+
5
+ appraise "activerecord-5" do
6
+ gem "activerecord", "5.0.0.1"
7
+ end
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.default_lock_timeout = 5 #timeout in seconds
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
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.2.7.1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "5.0.0.1"
6
+
7
+ gemspec :path => "../"
@@ -1,3 +1,3 @@
1
1
  module MigrationLockTimeout
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -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 "bundler", "~> 1.12"
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", "~>4.2"
37
+ spec.add_runtime_dependency "activerecord", ">= 4.0", "< 6.0"
38
38
  end
@@ -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.0.0
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-09-01 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: appraisal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
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: '1.12'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: database_cleaner
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 11.2.2
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: 11.2.2
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: pg
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
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: '3.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: pg
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: database_cleaner
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
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: '0'
82
+ version: 11.2.2
83
83
  - !ruby/object:Gem::Dependency
84
- name: pry
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: '4.2'
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: '4.2'
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.6.6
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