activerecord-tidb-adapter 6.1.1 → 6.1.2
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/workflows/ci.yml +63 -8
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/activerecord-tidb-adapter.gemspec +1 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7a83c6f47ef9ff4341b013e4940eb694d3e12eb51c5965c0ceb1ab04e00f6e6
|
|
4
|
+
data.tar.gz: 14eab9c135c9c948fde48803e7e630fe6b570e080207bb6adf41b669aeebd7bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c3d8267b1985a86b3b1c9665d66a6c701f6da6eac9dd937bad83493c430c7abb1c38dc773370144ed8ebbe76bb6d1651615eaaf86ebe0f188ac5a04e8cb294f
|
|
7
|
+
data.tar.gz: ef90da031efbe077422fcb3f19acf9abb73129fce6b6ab2c02ff103e496a5812db761e470731c9574b56af35a43edcfa12762da137d629b04cd251a98f3496d8
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
name: activerecord-tidb-adapter
|
|
1
|
+
name: activerecord-tidb-adapter 6-1
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- 6-1-stable
|
|
7
7
|
paths-ignore:
|
|
8
8
|
- 'README*.md'
|
|
9
9
|
- 'docs/**'
|
|
10
10
|
pull_request:
|
|
11
11
|
branches:
|
|
12
|
-
-
|
|
12
|
+
- 6-1-stable
|
|
13
13
|
paths-ignore:
|
|
14
14
|
- 'README*.md'
|
|
15
15
|
- 'docs/**'
|
|
16
16
|
|
|
17
17
|
jobs:
|
|
18
|
-
|
|
18
|
+
tidb510:
|
|
19
19
|
if: ${{ !contains(github.event.commits[0].message, '[skip ci]') }}
|
|
20
20
|
runs-on: ubuntu-latest
|
|
21
21
|
services:
|
|
22
22
|
tidb:
|
|
23
|
-
image:
|
|
24
|
-
options: --entrypoint /entrypoint.sh
|
|
23
|
+
image: hooopo/tidb-playground:v5.1.0
|
|
25
24
|
env:
|
|
26
25
|
TIDB_VERSION: v5.1.0
|
|
27
26
|
ports: ["4000:4000"]
|
|
@@ -31,5 +30,61 @@ jobs:
|
|
|
31
30
|
with:
|
|
32
31
|
ruby-version: 2.7
|
|
33
32
|
bundler-cache: true
|
|
34
|
-
- run: MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake db:tidb:build
|
|
35
|
-
- run: MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake test:tidb
|
|
33
|
+
- run: sleep 30 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake db:tidb:build
|
|
34
|
+
- run: sleep 10 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake test:tidb
|
|
35
|
+
|
|
36
|
+
tidb503:
|
|
37
|
+
if: ${{ !contains(github.event.commits[0].message, '[skip ci]') }}
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
services:
|
|
40
|
+
tidb:
|
|
41
|
+
image: hooopo/tidb-playground:v5.0.3
|
|
42
|
+
env:
|
|
43
|
+
TIDB_VERSION: v5.0.3
|
|
44
|
+
ports: ["4000:4000"]
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v2
|
|
47
|
+
- uses: ruby/setup-ruby@v1
|
|
48
|
+
with:
|
|
49
|
+
ruby-version: 2.7
|
|
50
|
+
bundler-cache: true
|
|
51
|
+
- run: sleep 30 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake db:tidb:build
|
|
52
|
+
- run: mysql --host 127.0.0.1 --database activerecord_unittest --port 4000 -u root -e 'set @@global.tidb_enable_change_column_type = 1'
|
|
53
|
+
- run: mysql --host 127.0.0.1 --database activerecord_unittest2 --port 4000 -u root -e 'set @@global.tidb_enable_change_column_type = 1'
|
|
54
|
+
- run: sleep 10 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake test:tidb
|
|
55
|
+
|
|
56
|
+
tidb511:
|
|
57
|
+
if: ${{ !contains(github.event.commits[0].message, '[skip ci]') }}
|
|
58
|
+
runs-on: ubuntu-latest
|
|
59
|
+
services:
|
|
60
|
+
tidb:
|
|
61
|
+
image: hooopo/tidb-playground:v5.1.1
|
|
62
|
+
env:
|
|
63
|
+
TIDB_VERSION: v5.1.1
|
|
64
|
+
ports: ["4000:4000"]
|
|
65
|
+
steps:
|
|
66
|
+
- uses: actions/checkout@v2
|
|
67
|
+
- uses: ruby/setup-ruby@v1
|
|
68
|
+
with:
|
|
69
|
+
ruby-version: 2.7
|
|
70
|
+
bundler-cache: true
|
|
71
|
+
- run: sleep 30 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake db:tidb:build
|
|
72
|
+
- run: sleep 10 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake test:tidb
|
|
73
|
+
|
|
74
|
+
tidb520:
|
|
75
|
+
if: ${{ !contains(github.event.commits[0].message, '[skip ci]') }}
|
|
76
|
+
runs-on: ubuntu-latest
|
|
77
|
+
services:
|
|
78
|
+
tidb:
|
|
79
|
+
image: hooopo/tidb-playground:v5.2.0
|
|
80
|
+
env:
|
|
81
|
+
TIDB_VERSION: v5.2.0
|
|
82
|
+
ports: ["4000:4000"]
|
|
83
|
+
steps:
|
|
84
|
+
- uses: actions/checkout@v2
|
|
85
|
+
- uses: ruby/setup-ruby@v1
|
|
86
|
+
with:
|
|
87
|
+
ruby-version: 2.7
|
|
88
|
+
bundler-cache: true
|
|
89
|
+
- run: sleep 30 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake db:tidb:build
|
|
90
|
+
- run: sleep 10 && MYSQL_USER=root MYSQL_HOST=127.0.0.1 MYSQL_PORT=4000 tidb=1 ARCONN=tidb bundle exec rake test:tidb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ActiveRecord TiDB Adapter
|
|
2
|
-
[](https://buildkite.com/hooopo/tidb-dot-5-1-dot-0-ar-tidb-adapter-dot-6-1-stable)
|
|
3
2
|
|
|
4
|
-
TiDB adapter for ActiveRecord 5
|
|
3
|
+
TiDB adapter for ActiveRecord 5.2, 6.1 and 7.0
|
|
4
|
+
This is a lightweight extension of the mysql2 adapter that establishes compatibility with [TiDB](https://github.com/pingcap/tidb).
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
@@ -14,7 +14,7 @@ gem 'activerecord-tidb-adapter', "~> 6.1.0"
|
|
|
14
14
|
|
|
15
15
|
If you're using Rails 5.2, use the 5.2.x versions of this gem.
|
|
16
16
|
|
|
17
|
-
If you're using Rails
|
|
17
|
+
If you're using Rails 7.0, use the 7.0.x versions of this gem.
|
|
18
18
|
|
|
19
19
|
And then execute:
|
|
20
20
|
|
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = 'Allows the use of TiDB as a backend for ActiveRecord and Rails apps.'
|
|
13
13
|
spec.homepage = 'https://github.com/pingcap/activerecord-tidb-adapter'
|
|
14
14
|
spec.license = 'Apache-2.0'
|
|
15
|
-
spec.required_ruby_version = '>= 2.
|
|
15
|
+
spec.required_ruby_version = '>= 2.5.0'
|
|
16
16
|
|
|
17
17
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
|
|
18
18
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-tidb-adapter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.1.
|
|
4
|
+
version: 6.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hooopo Wang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-08
|
|
11
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
87
87
|
requirements:
|
|
88
88
|
- - ">="
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 2.
|
|
90
|
+
version: 2.5.0
|
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
93
|
- - ">="
|