ghost_adapter 0.3.0 → 0.4.2

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: b3ea686449861456ca4af2d1131a05a2a3b93d902204735d7e4d9b08db5558ce
4
- data.tar.gz: dd72fcde19d24978fbdc164de6b8484b1ed5af236cb518276328134e116468df
3
+ metadata.gz: d80bd988fa02baef1df1c337a4738a1b2066614b91781742c43f57083aed7b96
4
+ data.tar.gz: 987a7418fd4cdb664dee43d44b030bbce58ab1e632b521b9aef5b9e066a668e0
5
5
  SHA512:
6
- metadata.gz: 2e7ee85dcaa85e110c74f375b2ac84722cd14e873e78e4e36ea76308dac4382999e7bbbc0a625840e3aa5859e4b1a88a1536f7842429059469570192b96bfbd5
7
- data.tar.gz: 465882ed84263542c08736980d20fe01e8442019c85171cc587ae8283bc74b7c56c6750d8d3485dabc4bcc8c6b616b7a6e5b551ca09eb0a0cef77d8e474a273b
6
+ metadata.gz: fa3a445e9552d8614eebf6b999edf490e33b7bfbb2f2ce12523932788c33c57eda730fafb0856f410dc1c871266a6b13b5db48b671c92fb6df18b5e06c81ae05
7
+ data.tar.gz: f32b9d3949a62052cd0ba561c10b86cb064eb93f0f284915ed2e1c432e4b74e7f20322b8463e127826fcf87293b7754a4f0695ee6a063fa32da6c7cf4700eda5
@@ -24,6 +24,7 @@ jobs:
24
24
  - "gemfiles/activerecord-5.2.Gemfile"
25
25
  - "gemfiles/activerecord-6.0.Gemfile"
26
26
  - "gemfiles/activerecord-6.1.Gemfile"
27
+ - "gemfiles/activerecord-7.0.Gemfile"
27
28
  exclude:
28
29
  # Ruby 3 is not supported for ActiveRecord < 6.1
29
30
  - ruby-version: "3.0"
@@ -34,6 +35,11 @@ jobs:
34
35
  gemfile: "gemfiles/activerecord-5.2.Gemfile"
35
36
  - ruby-version: "3.0"
36
37
  gemfile: "gemfiles/activerecord-6.0.Gemfile"
38
+ # Ruby >= 2.7 is required for ActiveRecord >= 7
39
+ - ruby-version: "2.5"
40
+ gemfile: "gemfiles/activerecord-7.0.Gemfile"
41
+ - ruby-version: "2.6"
42
+ gemfile: "gemfiles/activerecord-7.0.Gemfile"
37
43
  steps:
38
44
  - uses: actions/checkout@v2
39
45
  - name: Set up Ruby
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.4.1
4
+ - Add support for ActiveRecord 7.0.1 ([#69](https://github.com/WeTransfer/ghost_adapter/pull/69))
5
+
6
+ ## 0.4.0
7
+ - Add support for ActiveRecord 7 ([#67](https://github.com/WeTransfer/ghost_adapter/pull/67))
8
+
3
9
  ## 0.3.0
4
10
  - Fix compatibility for ActiveRecord 6.1 ([#61](https://github.com/WeTransfer/ghost_adapter/pull/61))
5
11
 
data/CONTRIBUTORS.md CHANGED
@@ -1,2 +1,3 @@
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)
@@ -0,0 +1,5 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'activerecord', '~> 7.0'
4
+
5
+ gemspec path: '../'
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.metadata['homepage_uri'] = spec.homepage
16
16
  spec.metadata['source_code_uri'] = spec.homepage
17
+ spec.metadata['rubygems_mfa_required'] = 'true'
17
18
 
18
19
  # Specify which files should be added to the gem when it is released.
19
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -22,7 +23,7 @@ Gem::Specification.new do |spec|
22
23
  end
23
24
  spec.require_paths = ['lib']
24
25
 
25
- spec.add_dependency 'activerecord', '>= 5', '< 6.2'
26
+ spec.add_dependency 'activerecord', '>= 5', '<= 7.1'
26
27
  spec.add_dependency 'mysql2', '>= 0.4.0', '< 0.6.0'
27
28
 
28
29
  spec.add_development_dependency 'bump', '~> 0'
@@ -103,7 +103,7 @@ module ActiveRecord
103
103
  attr_reader :database, :dry_run
104
104
 
105
105
  ALTER_TABLE_PATTERN = /\AALTER\s+TABLE\W*(?<table_name>\w+)\W*(?<query>.*)$/i.freeze
106
- QUERY_ALLOWABLE_CHARS = /[^0-9a-z_\s():'"{},]/i.freeze
106
+ QUERY_ALLOWABLE_CHARS = /[^0-9a-z_\s():'"{},`]/i.freeze
107
107
  CREATE_TABLE_PATTERN = /\Acreate\stable/i.freeze
108
108
  DROP_TABLE_PATTERN = /\Acreate\stable/i.freeze
109
109
  INSERT_SCHEMA_MIGRATION_PATTERN = /\Ainsert\sinto\s`schema_migrations`/i.freeze
@@ -1,3 +1,3 @@
1
1
  module GhostAdapter
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.2'.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.3.0
4
+ version: 0.4.2
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: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5'
20
- - - "<"
20
+ - - "<="
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '5'
30
- - - "<"
30
+ - - "<="
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: mysql2
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -161,6 +161,7 @@ files:
161
161
  - gemfiles/activerecord-5.2.Gemfile
162
162
  - gemfiles/activerecord-6.0.Gemfile
163
163
  - gemfiles/activerecord-6.1.Gemfile
164
+ - gemfiles/activerecord-7.0.Gemfile
164
165
  - ghost_adapter.gemspec
165
166
  - lib/active_record/connection_adapters/mysql2_ghost_adapter.rb
166
167
  - lib/generators/ghost_adapter/install_generator.rb
@@ -180,7 +181,8 @@ licenses:
180
181
  metadata:
181
182
  homepage_uri: https://github.com/wetransfer/ghost_adapter
182
183
  source_code_uri: https://github.com/wetransfer/ghost_adapter
183
- post_install_message:
184
+ rubygems_mfa_required: 'true'
185
+ post_install_message:
184
186
  rdoc_options: []
185
187
  require_paths:
186
188
  - lib
@@ -195,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
197
  - !ruby/object:Gem::Version
196
198
  version: '0'
197
199
  requirements: []
198
- rubygems_version: 3.1.2
199
- signing_key:
200
+ rubygems_version: 3.2.32
201
+ signing_key:
200
202
  specification_version: 4
201
203
  summary: Run ActiveRecord migrations through gh-ost
202
204
  test_files: []