ghost_adapter 0.5.0 → 0.7.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
  SHA256:
3
- metadata.gz: b98dc5855519562f982afa2e73b0022a1189c56d2b462eea08070fc4b67b80b1
4
- data.tar.gz: b00a22d2fb5c2e72f8d863a51e66ade75e79511c04cf0f70afebc3aa5fa5d890
3
+ metadata.gz: 45214d59b865d8d696a73ea4ce004156b14cfbddf0de11d18d2fe1a3b7f706fd
4
+ data.tar.gz: 364eb9bca40f35fc1fe8d2bdb05fe505de1e5788bb2e6b25e693259a129fc58c
5
5
  SHA512:
6
- metadata.gz: 58bfcb9d8dc770ed0568d2113370fc76978dadf7e13ce54e7fe8515f994328d0b1e38c214a428d4aa9d43e41c34b7b042212e59c7efd6eb84769a6e3fd7d4316
7
- data.tar.gz: e4d18d03186582228664f3c47626fdaec83b65ef50dc96bdf056feaf2a20e7e51089be036b73740d3f68ac48e979508f398abf9ecb731c510f3721f5247fefa7
6
+ metadata.gz: 419f490d7f4cf346e1bf74977b301250febe5f061814da6d625ff606fbf3be645c1283cf498dbb9dccd06935c5e2e19cb0eb9206505f555707208b564337d2aa
7
+ data.tar.gz: 47730199c0cde697c015644dd6937acccf9e666325a30020693e56904d011cc5923d12dac0a305c3c3e3f65aa52c57d535b1bea77ca97ffab4a61b1d5c07c0f7
@@ -0,0 +1 @@
1
+ * @WeTransfer/WeTransfer-CodeOwners
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ - package-ecosystem: github-actions
8
+ directory: /
9
+ schedule:
10
+ interval: weekly
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.7.0
4
+ - Chore: add short docs for how to release the gem ([#76](https://github.com/WeTransfer/ghost_adapter/pull/76))
5
+ - Update activerecord requirement from >= 5, <= 7.2 to >= 5, <= 8.1 ([#78](https://github.com/WeTransfer/ghost_adapter/pull/78))
6
+ - Add support for gh-ost v1.1.6 command line flags and drop deprecated flag ([#79](https://github.com/WeTransfer/ghost_adapter/pull/79))
7
+
8
+ ## 0.6.0
9
+ - Update activerecord requirement from >= 5, <= 7.1 to >= 5, <= 7.2 ([#75](https://github.com/WeTransfer/ghost_adapter/pull/75))
10
+
11
+ ## 0.5.0
12
+ - Add support for optional async argument ([#72](https://github.com/WeTransfer/ghost_adapter/pull/72))
13
+
14
+ ## 0.4.2
15
+ - Allow backticks in gh-ost query ([#71](https://github.com/WeTransfer/ghost_adapter/pull/71))
16
+
3
17
  ## 0.4.1
4
18
  - Add support for ActiveRecord 7.0.1 ([#69](https://github.com/WeTransfer/ghost_adapter/pull/69))
5
19
 
data/CODE_OF_CONDUCT.md CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
55
55
  ## Enforcement
56
56
 
57
57
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at austin.roos@wetransfer.com. All
58
+ reported by contacting the project team at engineering@wetransfer.com. All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
60
  is deemed necessary and appropriate to the circumstances. The project team is
61
61
  obligated to maintain confidentiality with regard to the reporter of an incident.
data/CONTRIBUTORS.md CHANGED
@@ -1,3 +1,4 @@
1
1
  - @acroos (Austin C. Roos, austin.roos@wetransfer.com)
2
2
  - @grdw (Gerard Westerhof, gerard@wetransfer.com)
3
- - @choncou (Unathi Chonco, unathi.chonco@wetransfer.com)
3
+ - @epintos (Esteban Pintos, esteban.pintos@wetransfer.com)
4
+ - @nickdowse (Nick Dowse, nick.dowse@wetransfer.com)
data/README.md CHANGED
@@ -66,7 +66,7 @@ If you have used the rails generator, you can set the variable to a falsey value
66
66
 
67
67
  To run the tests for all versions, run this script:
68
68
 
69
- ``` shell
69
+ ```shell
70
70
  bin/test_all_versions
71
71
  ```
72
72
 
@@ -77,6 +77,28 @@ Make sure to use the appropriate Ruby version! ActiveRecord <6.0 is not compatib
77
77
  Bug reports and pull requests are welcome on GitHub at https://github.com/wetransfer/ghost_adapter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](./CODE_OF_CONDUCT.md).
78
78
  Please add your name to the [CONTRIBUTORS.md](./CONTRIBUTORS.md)
79
79
 
80
+ ## Releasing
81
+
82
+ ### Updating version
83
+
84
+ Before releasing, make sure the version is updated appropriately. This can be done with:
85
+
86
+ ```shell
87
+ bundle exec bump [major|minor|patch]
88
+ ```
89
+
90
+ You should (at least roughly) follow [semver rules](https://semver.org/) for version updates.
91
+
92
+ ### Publishing
93
+
94
+ Upon each version update, the new gem should be published to rubygems.org. This can be done with:
95
+
96
+ ```shell
97
+ bundle exec rake release
98
+ ```
99
+
100
+ This will ask you to authenticate to rubygems.org. If you have need credentials, please reach out to one of the [contributors](./CONTRIBUTORS.md)
101
+
80
102
  ## License
81
103
 
82
104
  The gem is available as open source under the terms of the [Hippocratic License](https://firstdonoharm.dev/version/2/1/license.html).
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  end
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_dependency 'activerecord', '>= 5', '<= 7.1'
26
+ spec.add_dependency 'activerecord', '>= 5', '<= 8.1'
27
27
  spec.add_dependency 'mysql2', '>= 0.4.0', '< 0.6.0'
28
28
 
29
29
  spec.add_development_dependency 'bump', '~> 0'
@@ -5,10 +5,13 @@ module GhostAdapter
5
5
  allow_master_master
6
6
  allow_nullable_unique_key
7
7
  allow_on_master
8
+ allow_zero_in_date
8
9
  approve_renamed_columns
9
10
  assume_master_host
10
11
  assume_rbr
12
+ attempt_instant_ddl
11
13
  azure
14
+ binlogsyncer_max_reconnect_attempts
12
15
  check_flag
13
16
  chunk_size
14
17
  concurrent_rowcount
@@ -54,7 +57,6 @@ module GhostAdapter
54
57
  postpone_cut_over_flag_file
55
58
  quiet
56
59
  replica_server_id
57
- replication_lag_query
58
60
  serve_socket_file
59
61
  serve_tcp_port
60
62
  skip_foreign_key_checks
@@ -73,6 +75,8 @@ module GhostAdapter
73
75
  throttle_control_replicas
74
76
  throttle_flag_file
75
77
  throttle_http
78
+ throttle_http_interval_millis
79
+ throttle_http_timeout_millis
76
80
  throttle_query
77
81
  timestamp_old_table
78
82
  tungsten
@@ -1,3 +1,3 @@
1
1
  module GhostAdapter
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghost_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin C Roos
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2024-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5'
20
20
  - - "<="
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5'
30
30
  - - "<="
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: mysql2
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -141,15 +141,16 @@ executables: []
141
141
  extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
+ - ".github/CODEOWNERS"
144
145
  - ".github/ISSUE_TEMPLATE/bug_report.md"
145
146
  - ".github/ISSUE_TEMPLATE/feature_request.md"
146
147
  - ".github/PULL_REQUEST_TEMPLATE.md"
148
+ - ".github/dependabot.yml"
147
149
  - ".github/workflows/tests.yml"
148
150
  - ".gitignore"
149
151
  - ".rubocop.yml"
150
152
  - ".vscode/settings.json"
151
153
  - CHANGELOG.md
152
- - CODEOWNERS
153
154
  - CODE_OF_CONDUCT.md
154
155
  - CONTRIBUTORS.md
155
156
  - Gemfile
@@ -182,7 +183,7 @@ metadata:
182
183
  homepage_uri: https://github.com/wetransfer/ghost_adapter
183
184
  source_code_uri: https://github.com/wetransfer/ghost_adapter
184
185
  rubygems_mfa_required: 'true'
185
- post_install_message:
186
+ post_install_message:
186
187
  rdoc_options: []
187
188
  require_paths:
188
189
  - lib
@@ -197,8 +198,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
198
  - !ruby/object:Gem::Version
198
199
  version: '0'
199
200
  requirements: []
200
- rubygems_version: 3.1.6
201
- signing_key:
201
+ rubygems_version: 3.4.1
202
+ signing_key:
202
203
  specification_version: 4
203
204
  summary: Run ActiveRecord migrations through gh-ost
204
205
  test_files: []
data/CODEOWNERS DELETED
@@ -1,5 +0,0 @@
1
- # https://help.github.com/en/articles/about-code-owners
2
- # These owners will be the default owners for everything in
3
- # the repo. Unless a later match takes precedence, they
4
- # will be requested for review when someone opens a PR.
5
- * @acroos