ghost_adapter 0.6.0 → 0.7.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/CHANGELOG.md +14 -0
- data/CODE_OF_CONDUCT.md +1 -1
- data/CONTRIBUTORS.md +2 -1
- data/README.md +23 -1
- data/ghost_adapter.gemspec +1 -1
- data/lib/ghost_adapter/config.rb +5 -1
- data/lib/ghost_adapter/version.rb +1 -1
- metadata +6 -6
- data/CODEOWNERS +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45214d59b865d8d696a73ea4ce004156b14cfbddf0de11d18d2fe1a3b7f706fd
|
|
4
|
+
data.tar.gz: 364eb9bca40f35fc1fe8d2bdb05fe505de1e5788bb2e6b25e693259a129fc58c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 419f490d7f4cf346e1bf74977b301250febe5f061814da6d625ff606fbf3be645c1283cf498dbb9dccd06935c5e2e19cb0eb9206505f555707208b564337d2aa
|
|
7
|
+
data.tar.gz: 47730199c0cde697c015644dd6937acccf9e666325a30020693e56904d011cc5923d12dac0a305c3c3e3f65aa52c57d535b1bea77ca97ffab4a61b1d5c07c0f7
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @WeTransfer/WeTransfer-CodeOwners
|
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
|
|
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
|
-
- @
|
|
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
|
-
```
|
|
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).
|
data/ghost_adapter.gemspec
CHANGED
|
@@ -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', '<=
|
|
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'
|
data/lib/ghost_adapter/config.rb
CHANGED
|
@@ -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
|
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.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin C Roos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
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: '
|
|
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: '
|
|
32
|
+
version: '8.1'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: mysql2
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -141,6 +141,7 @@ 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"
|
|
@@ -150,7 +151,6 @@ files:
|
|
|
150
151
|
- ".rubocop.yml"
|
|
151
152
|
- ".vscode/settings.json"
|
|
152
153
|
- CHANGELOG.md
|
|
153
|
-
- CODEOWNERS
|
|
154
154
|
- CODE_OF_CONDUCT.md
|
|
155
155
|
- CONTRIBUTORS.md
|
|
156
156
|
- Gemfile
|
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
198
198
|
- !ruby/object:Gem::Version
|
|
199
199
|
version: '0'
|
|
200
200
|
requirements: []
|
|
201
|
-
rubygems_version: 3.4.
|
|
201
|
+
rubygems_version: 3.4.1
|
|
202
202
|
signing_key:
|
|
203
203
|
specification_version: 4
|
|
204
204
|
summary: Run ActiveRecord migrations through gh-ost
|