departure 6.7.0 → 6.8.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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +3 -12
  3. data/.gitignore +1 -0
  4. data/.rubocop.yml +1 -1
  5. data/Appraisals +2 -22
  6. data/CHANGELOG.md +10 -0
  7. data/Gemfile +5 -1
  8. data/Gemfile.lock +31 -22
  9. data/README.md +8 -0
  10. data/Rakefile +8 -0
  11. data/bin/rails +24 -0
  12. data/departure.gemspec +2 -2
  13. data/gemfiles/rails_6_1.gemfile.lock +31 -29
  14. data/gemfiles/rails_7_0.gemfile.lock +31 -29
  15. data/gemfiles/rails_7_1.gemfile +1 -1
  16. data/gemfiles/rails_7_1.gemfile.lock +47 -47
  17. data/gemfiles/{rails_6_0.gemfile → rails_7_2.gemfile} +2 -2
  18. data/gemfiles/rails_7_2.gemfile.lock +276 -0
  19. data/lib/active_record/connection_adapters/patch_connection_handling.rb +18 -0
  20. data/lib/active_record/connection_adapters/percona_adapter.rb +1 -35
  21. data/lib/active_record/connection_adapters/rails_7_2_departure_adapter.rb +215 -0
  22. data/lib/departure/command.rb +6 -2
  23. data/lib/departure/configuration.rb +2 -1
  24. data/lib/departure/rails_adapter.rb +106 -0
  25. data/lib/departure/rails_patches/active_record_migrator_with_advisory_lock_patch.rb +25 -0
  26. data/lib/departure/runner.rb +16 -4
  27. data/lib/departure/version.rb +1 -1
  28. data/lib/departure.rb +2 -5
  29. data/lib/lhm/column_with_sql.rb +1 -8
  30. data/test_database.rb +2 -6
  31. metadata +14 -17
  32. data/gemfiles/rails_6_0.gemfile.lock +0 -238
  33. data/gemfiles/ruby_2.7_rails_6_0.gemfile +0 -11
  34. data/gemfiles/ruby_2.7_rails_6_0.gemfile.lock +0 -239
  35. data/gemfiles/ruby_2.7_rails_6_1.gemfile +0 -11
  36. data/gemfiles/ruby_2.7_rails_6_1.gemfile.lock +0 -242
  37. data/gemfiles/ruby_2.7_rails_7_0.gemfile +0 -11
  38. data/gemfiles/ruby_2.7_rails_7_0.gemfile.lock +0 -241
  39. data/gemfiles/ruby_2.7_rails_7_1.gemfile +0 -11
  40. data/gemfiles/ruby_2.7_rails_7_1.gemfile.lock +0 -275
@@ -1,238 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- departure (6.7.0)
5
- activerecord (>= 6.0.0, < 7.2.0, != 7.0.0)
6
- mysql2 (>= 0.4.0, < 0.6.0)
7
- railties (>= 6.0.0, < 7.2.0, != 7.0.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (6.0.6.1)
13
- actionpack (= 6.0.6.1)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailbox (6.0.6.1)
17
- actionpack (= 6.0.6.1)
18
- activejob (= 6.0.6.1)
19
- activerecord (= 6.0.6.1)
20
- activestorage (= 6.0.6.1)
21
- activesupport (= 6.0.6.1)
22
- mail (>= 2.7.1)
23
- actionmailer (6.0.6.1)
24
- actionpack (= 6.0.6.1)
25
- actionview (= 6.0.6.1)
26
- activejob (= 6.0.6.1)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.0.6.1)
30
- actionview (= 6.0.6.1)
31
- activesupport (= 6.0.6.1)
32
- rack (~> 2.0, >= 2.0.8)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.0.6.1)
37
- actionpack (= 6.0.6.1)
38
- activerecord (= 6.0.6.1)
39
- activestorage (= 6.0.6.1)
40
- activesupport (= 6.0.6.1)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.0.6.1)
43
- activesupport (= 6.0.6.1)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.0.6.1)
49
- activesupport (= 6.0.6.1)
50
- globalid (>= 0.3.6)
51
- activemodel (6.0.6.1)
52
- activesupport (= 6.0.6.1)
53
- activerecord (6.0.6.1)
54
- activemodel (= 6.0.6.1)
55
- activesupport (= 6.0.6.1)
56
- activestorage (6.0.6.1)
57
- actionpack (= 6.0.6.1)
58
- activejob (= 6.0.6.1)
59
- activerecord (= 6.0.6.1)
60
- marcel (~> 1.0)
61
- activesupport (6.0.6.1)
62
- concurrent-ruby (~> 1.0, >= 1.0.2)
63
- i18n (>= 0.7, < 2)
64
- minitest (~> 5.1)
65
- tzinfo (~> 1.1)
66
- zeitwerk (~> 2.2, >= 2.2.2)
67
- appraisal (2.4.1)
68
- bundler
69
- rake
70
- thor (>= 0.14.0)
71
- ast (2.4.2)
72
- builder (3.2.4)
73
- byebug (11.1.3)
74
- climate_control (0.0.4)
75
- activesupport (>= 3.0)
76
- codeclimate-test-reporter (1.0.9)
77
- simplecov (<= 0.13)
78
- coderay (1.1.3)
79
- concurrent-ruby (1.2.3)
80
- crass (1.0.6)
81
- date (3.3.4)
82
- diff-lcs (1.5.1)
83
- docile (1.1.5)
84
- erubi (1.12.0)
85
- globalid (1.1.0)
86
- activesupport (>= 5.0)
87
- i18n (1.14.1)
88
- concurrent-ruby (~> 1.0)
89
- json (2.7.1)
90
- language_server-protocol (3.17.0.3)
91
- loofah (2.22.0)
92
- crass (~> 1.0.2)
93
- nokogiri (>= 1.12.0)
94
- mail (2.8.1)
95
- mini_mime (>= 0.1.1)
96
- net-imap
97
- net-pop
98
- net-smtp
99
- marcel (1.0.2)
100
- method_source (1.0.0)
101
- mini_mime (1.1.5)
102
- minitest (5.22.2)
103
- mysql2 (0.5.6)
104
- net-imap (0.4.10)
105
- date
106
- net-protocol
107
- net-pop (0.1.2)
108
- net-protocol
109
- net-protocol (0.2.2)
110
- timeout
111
- net-smtp (0.4.0.1)
112
- net-protocol
113
- nio4r (2.7.0)
114
- nokogiri (1.16.2-arm64-darwin)
115
- racc (~> 1.4)
116
- nokogiri (1.16.2-x86_64-linux)
117
- racc (~> 1.4)
118
- parallel (1.24.0)
119
- parser (3.3.0.5)
120
- ast (~> 2.4.1)
121
- racc
122
- pry (0.14.2)
123
- coderay (~> 1.1)
124
- method_source (~> 1.0)
125
- pry-byebug (3.10.1)
126
- byebug (~> 11.0)
127
- pry (>= 0.13, < 0.15)
128
- racc (1.7.3)
129
- rack (2.2.8)
130
- rack-test (2.1.0)
131
- rack (>= 1.3)
132
- rails (6.0.6.1)
133
- actioncable (= 6.0.6.1)
134
- actionmailbox (= 6.0.6.1)
135
- actionmailer (= 6.0.6.1)
136
- actionpack (= 6.0.6.1)
137
- actiontext (= 6.0.6.1)
138
- actionview (= 6.0.6.1)
139
- activejob (= 6.0.6.1)
140
- activemodel (= 6.0.6.1)
141
- activerecord (= 6.0.6.1)
142
- activestorage (= 6.0.6.1)
143
- activesupport (= 6.0.6.1)
144
- bundler (>= 1.3.0)
145
- railties (= 6.0.6.1)
146
- sprockets-rails (>= 2.0.0)
147
- rails-dom-testing (2.2.0)
148
- activesupport (>= 5.0.0)
149
- minitest
150
- nokogiri (>= 1.6)
151
- rails-html-sanitizer (1.6.0)
152
- loofah (~> 2.21)
153
- nokogiri (~> 1.14)
154
- railties (6.0.6.1)
155
- actionpack (= 6.0.6.1)
156
- activesupport (= 6.0.6.1)
157
- method_source
158
- rake (>= 0.8.7)
159
- thor (>= 0.20.3, < 2.0)
160
- rainbow (3.1.1)
161
- rake (13.1.0)
162
- regexp_parser (2.9.0)
163
- rexml (3.2.6)
164
- rspec (3.13.0)
165
- rspec-core (~> 3.13.0)
166
- rspec-expectations (~> 3.13.0)
167
- rspec-mocks (~> 3.13.0)
168
- rspec-core (3.13.0)
169
- rspec-support (~> 3.13.0)
170
- rspec-expectations (3.13.0)
171
- diff-lcs (>= 1.2.0, < 2.0)
172
- rspec-support (~> 3.13.0)
173
- rspec-its (1.3.0)
174
- rspec-core (>= 3.0.0)
175
- rspec-expectations (>= 3.0.0)
176
- rspec-mocks (3.13.0)
177
- diff-lcs (>= 1.2.0, < 2.0)
178
- rspec-support (~> 3.13.0)
179
- rspec-support (3.13.0)
180
- rubocop (1.60.2)
181
- json (~> 2.3)
182
- language_server-protocol (>= 3.17.0)
183
- parallel (~> 1.10)
184
- parser (>= 3.3.0.2)
185
- rainbow (>= 2.2.2, < 4.0)
186
- regexp_parser (>= 1.8, < 3.0)
187
- rexml (>= 3.2.5, < 4.0)
188
- rubocop-ast (>= 1.30.0, < 2.0)
189
- ruby-progressbar (~> 1.7)
190
- unicode-display_width (>= 2.4.0, < 3.0)
191
- rubocop-ast (1.30.0)
192
- parser (>= 3.2.1.0)
193
- rubocop-performance (1.20.2)
194
- rubocop (>= 1.48.1, < 2.0)
195
- rubocop-ast (>= 1.30.0, < 2.0)
196
- ruby-progressbar (1.13.0)
197
- simplecov (0.13.0)
198
- docile (~> 1.1.0)
199
- json (>= 1.8, < 3)
200
- simplecov-html (~> 0.10.0)
201
- simplecov-html (0.10.2)
202
- sprockets (4.2.1)
203
- concurrent-ruby (~> 1.0)
204
- rack (>= 2.2.4, < 4)
205
- sprockets-rails (3.4.2)
206
- actionpack (>= 5.2)
207
- activesupport (>= 5.2)
208
- sprockets (>= 3.0.0)
209
- thor (1.3.0)
210
- thread_safe (0.3.6)
211
- timeout (0.4.1)
212
- tzinfo (1.2.11)
213
- thread_safe (~> 0.1)
214
- unicode-display_width (2.5.0)
215
- websocket-driver (0.7.6)
216
- websocket-extensions (>= 0.1.0)
217
- websocket-extensions (0.1.5)
218
- zeitwerk (2.6.13)
219
-
220
- PLATFORMS
221
- arm64-darwin-23
222
- x86_64-linux
223
-
224
- DEPENDENCIES
225
- appraisal (~> 2.4.1)
226
- climate_control (~> 0.0.3)
227
- codeclimate-test-reporter (~> 1.0.3)
228
- departure!
229
- pry-byebug
230
- rails (= 6.0.6.1)
231
- rake (>= 10.0)
232
- rspec (~> 3.4, >= 3.4.0)
233
- rspec-its (~> 1.2)
234
- rubocop (~> 1.60.2)
235
- rubocop-performance (~> 1.20.2)
236
-
237
- BUNDLED WITH
238
- 2.4.22
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'codeclimate-test-reporter', '~> 1.0.3', group: :test, require: nil
6
- gem 'nokogiri', '< 1.16'
7
- gem 'rails', '6.0.6.1'
8
- gem 'rubocop', '~> 1.60.2', require: false
9
- gem 'rubocop-performance', '~> 1.20.2', require: false
10
-
11
- gemspec path: '../'
@@ -1,239 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- departure (6.7.0)
5
- activerecord (>= 6.0.0, < 7.2.0, != 7.0.0)
6
- mysql2 (>= 0.4.0, < 0.6.0)
7
- railties (>= 6.0.0, < 7.2.0, != 7.0.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (6.0.6.1)
13
- actionpack (= 6.0.6.1)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailbox (6.0.6.1)
17
- actionpack (= 6.0.6.1)
18
- activejob (= 6.0.6.1)
19
- activerecord (= 6.0.6.1)
20
- activestorage (= 6.0.6.1)
21
- activesupport (= 6.0.6.1)
22
- mail (>= 2.7.1)
23
- actionmailer (6.0.6.1)
24
- actionpack (= 6.0.6.1)
25
- actionview (= 6.0.6.1)
26
- activejob (= 6.0.6.1)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.0.6.1)
30
- actionview (= 6.0.6.1)
31
- activesupport (= 6.0.6.1)
32
- rack (~> 2.0, >= 2.0.8)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.0.6.1)
37
- actionpack (= 6.0.6.1)
38
- activerecord (= 6.0.6.1)
39
- activestorage (= 6.0.6.1)
40
- activesupport (= 6.0.6.1)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.0.6.1)
43
- activesupport (= 6.0.6.1)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.0.6.1)
49
- activesupport (= 6.0.6.1)
50
- globalid (>= 0.3.6)
51
- activemodel (6.0.6.1)
52
- activesupport (= 6.0.6.1)
53
- activerecord (6.0.6.1)
54
- activemodel (= 6.0.6.1)
55
- activesupport (= 6.0.6.1)
56
- activestorage (6.0.6.1)
57
- actionpack (= 6.0.6.1)
58
- activejob (= 6.0.6.1)
59
- activerecord (= 6.0.6.1)
60
- marcel (~> 1.0)
61
- activesupport (6.0.6.1)
62
- concurrent-ruby (~> 1.0, >= 1.0.2)
63
- i18n (>= 0.7, < 2)
64
- minitest (~> 5.1)
65
- tzinfo (~> 1.1)
66
- zeitwerk (~> 2.2, >= 2.2.2)
67
- appraisal (2.4.1)
68
- bundler
69
- rake
70
- thor (>= 0.14.0)
71
- ast (2.4.2)
72
- builder (3.2.4)
73
- byebug (11.1.3)
74
- climate_control (0.0.4)
75
- activesupport (>= 3.0)
76
- codeclimate-test-reporter (1.0.9)
77
- simplecov (<= 0.13)
78
- coderay (1.1.3)
79
- concurrent-ruby (1.2.3)
80
- crass (1.0.6)
81
- date (3.3.4)
82
- diff-lcs (1.5.1)
83
- docile (1.1.5)
84
- erubi (1.12.0)
85
- globalid (1.1.0)
86
- activesupport (>= 5.0)
87
- i18n (1.14.1)
88
- concurrent-ruby (~> 1.0)
89
- json (2.7.1)
90
- language_server-protocol (3.17.0.3)
91
- loofah (2.22.0)
92
- crass (~> 1.0.2)
93
- nokogiri (>= 1.12.0)
94
- mail (2.8.1)
95
- mini_mime (>= 0.1.1)
96
- net-imap
97
- net-pop
98
- net-smtp
99
- marcel (1.0.2)
100
- method_source (1.0.0)
101
- mini_mime (1.1.5)
102
- minitest (5.22.2)
103
- mysql2 (0.5.6)
104
- net-imap (0.4.10)
105
- date
106
- net-protocol
107
- net-pop (0.1.2)
108
- net-protocol
109
- net-protocol (0.2.2)
110
- timeout
111
- net-smtp (0.4.0.1)
112
- net-protocol
113
- nio4r (2.7.0)
114
- nokogiri (1.15.5-arm64-darwin)
115
- racc (~> 1.4)
116
- nokogiri (1.15.5-x86_64-linux)
117
- racc (~> 1.4)
118
- parallel (1.24.0)
119
- parser (3.3.0.5)
120
- ast (~> 2.4.1)
121
- racc
122
- pry (0.14.2)
123
- coderay (~> 1.1)
124
- method_source (~> 1.0)
125
- pry-byebug (3.10.1)
126
- byebug (~> 11.0)
127
- pry (>= 0.13, < 0.15)
128
- racc (1.7.3)
129
- rack (2.2.8)
130
- rack-test (2.1.0)
131
- rack (>= 1.3)
132
- rails (6.0.6.1)
133
- actioncable (= 6.0.6.1)
134
- actionmailbox (= 6.0.6.1)
135
- actionmailer (= 6.0.6.1)
136
- actionpack (= 6.0.6.1)
137
- actiontext (= 6.0.6.1)
138
- actionview (= 6.0.6.1)
139
- activejob (= 6.0.6.1)
140
- activemodel (= 6.0.6.1)
141
- activerecord (= 6.0.6.1)
142
- activestorage (= 6.0.6.1)
143
- activesupport (= 6.0.6.1)
144
- bundler (>= 1.3.0)
145
- railties (= 6.0.6.1)
146
- sprockets-rails (>= 2.0.0)
147
- rails-dom-testing (2.2.0)
148
- activesupport (>= 5.0.0)
149
- minitest
150
- nokogiri (>= 1.6)
151
- rails-html-sanitizer (1.6.0)
152
- loofah (~> 2.21)
153
- nokogiri (~> 1.14)
154
- railties (6.0.6.1)
155
- actionpack (= 6.0.6.1)
156
- activesupport (= 6.0.6.1)
157
- method_source
158
- rake (>= 0.8.7)
159
- thor (>= 0.20.3, < 2.0)
160
- rainbow (3.1.1)
161
- rake (13.1.0)
162
- regexp_parser (2.9.0)
163
- rexml (3.2.6)
164
- rspec (3.13.0)
165
- rspec-core (~> 3.13.0)
166
- rspec-expectations (~> 3.13.0)
167
- rspec-mocks (~> 3.13.0)
168
- rspec-core (3.13.0)
169
- rspec-support (~> 3.13.0)
170
- rspec-expectations (3.13.0)
171
- diff-lcs (>= 1.2.0, < 2.0)
172
- rspec-support (~> 3.13.0)
173
- rspec-its (1.3.0)
174
- rspec-core (>= 3.0.0)
175
- rspec-expectations (>= 3.0.0)
176
- rspec-mocks (3.13.0)
177
- diff-lcs (>= 1.2.0, < 2.0)
178
- rspec-support (~> 3.13.0)
179
- rspec-support (3.13.0)
180
- rubocop (1.60.2)
181
- json (~> 2.3)
182
- language_server-protocol (>= 3.17.0)
183
- parallel (~> 1.10)
184
- parser (>= 3.3.0.2)
185
- rainbow (>= 2.2.2, < 4.0)
186
- regexp_parser (>= 1.8, < 3.0)
187
- rexml (>= 3.2.5, < 4.0)
188
- rubocop-ast (>= 1.30.0, < 2.0)
189
- ruby-progressbar (~> 1.7)
190
- unicode-display_width (>= 2.4.0, < 3.0)
191
- rubocop-ast (1.30.0)
192
- parser (>= 3.2.1.0)
193
- rubocop-performance (1.20.2)
194
- rubocop (>= 1.48.1, < 2.0)
195
- rubocop-ast (>= 1.30.0, < 2.0)
196
- ruby-progressbar (1.13.0)
197
- simplecov (0.13.0)
198
- docile (~> 1.1.0)
199
- json (>= 1.8, < 3)
200
- simplecov-html (~> 0.10.0)
201
- simplecov-html (0.10.2)
202
- sprockets (4.2.1)
203
- concurrent-ruby (~> 1.0)
204
- rack (>= 2.2.4, < 4)
205
- sprockets-rails (3.4.2)
206
- actionpack (>= 5.2)
207
- activesupport (>= 5.2)
208
- sprockets (>= 3.0.0)
209
- thor (1.3.0)
210
- thread_safe (0.3.6)
211
- timeout (0.4.1)
212
- tzinfo (1.2.11)
213
- thread_safe (~> 0.1)
214
- unicode-display_width (2.5.0)
215
- websocket-driver (0.7.6)
216
- websocket-extensions (>= 0.1.0)
217
- websocket-extensions (0.1.5)
218
- zeitwerk (2.6.13)
219
-
220
- PLATFORMS
221
- arm64-darwin-23
222
- x86_64-linux
223
-
224
- DEPENDENCIES
225
- appraisal (~> 2.4.1)
226
- climate_control (~> 0.0.3)
227
- codeclimate-test-reporter (~> 1.0.3)
228
- departure!
229
- nokogiri (< 1.16)
230
- pry-byebug
231
- rails (= 6.0.6.1)
232
- rake (>= 10.0)
233
- rspec (~> 3.4, >= 3.4.0)
234
- rspec-its (~> 1.2)
235
- rubocop (~> 1.60.2)
236
- rubocop-performance (~> 1.20.2)
237
-
238
- BUNDLED WITH
239
- 2.4.22
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'codeclimate-test-reporter', '~> 1.0.3', group: :test, require: nil
6
- gem 'nokogiri', '< 1.16'
7
- gem 'rails', '6.1.7.6'
8
- gem 'rubocop', '~> 1.60.2', require: false
9
- gem 'rubocop-performance', '~> 1.20.2', require: false
10
-
11
- gemspec path: '../'