activerecord-tidb-adapter 6.1.1 → 6.1.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: 841479ce689b846211133017869602520491030764a7844b5888946c5b71f606
4
- data.tar.gz: 141316e2fb3464a8eee551b1d27a156ac1d17d4fb85efedce8f5bf190cb71a13
3
+ metadata.gz: f7a83c6f47ef9ff4341b013e4940eb694d3e12eb51c5965c0ceb1ab04e00f6e6
4
+ data.tar.gz: 14eab9c135c9c948fde48803e7e630fe6b570e080207bb6adf41b669aeebd7bf
5
5
  SHA512:
6
- metadata.gz: 54d1ce5aba761df255809464ba50cc5ceaba25b2f68fb79a5f1e012e934bda42bc63f7946d74081c27d01972d90290a5736bc312bb41ef856a4d35f6dda338ec
7
- data.tar.gz: 9737ed2ead8e72a7ade7deeea3afeae186761f3a29cc3eaa6d01d3b9366eacb1a97167cdc31f71e16aeec216b3613687599f375d8bcfcf83b64f43b3a40c91bc
6
+ metadata.gz: 5c3d8267b1985a86b3b1c9665d66a6c701f6da6eac9dd937bad83493c430c7abb1c38dc773370144ed8ebbe76bb6d1651615eaaf86ebe0f188ac5a04e8cb294f
7
+ data.tar.gz: ef90da031efbe077422fcb3f19acf9abb73129fce6b6ab2c02ff103e496a5812db761e470731c9574b56af35a43edcfa12762da137d629b04cd251a98f3496d8
@@ -1,27 +1,26 @@
1
- name: activerecord-tidb-adapter ci
1
+ name: activerecord-tidb-adapter 6-1
2
2
 
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - main
6
+ - 6-1-stable
7
7
  paths-ignore:
8
8
  - 'README*.md'
9
9
  - 'docs/**'
10
10
  pull_request:
11
11
  branches:
12
- - main
12
+ - 6-1-stable
13
13
  paths-ignore:
14
14
  - 'README*.md'
15
15
  - 'docs/**'
16
16
 
17
17
  jobs:
18
- build:
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: hawkingrei/tind:v5.1.0
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
@@ -87,7 +87,7 @@ GIT
87
87
  PATH
88
88
  remote: .
89
89
  specs:
90
- activerecord-tidb-adapter (6.1.1)
90
+ activerecord-tidb-adapter (6.1.2)
91
91
  activerecord (~> 6.1)
92
92
  mysql2
93
93
 
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # ActiveRecord TiDB Adapter
2
- [![Build status](https://badge.buildkite.com/2cc593ab1a36b95eeb063ebc5cbecb40492177c03800ef33a4.svg)](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 and 6. This is a lightweight extension of the mysql2 adapter that establishes compatibility with [TiDB](https://github.com/pingcap/tidb).
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 6.1, use the 6.1.x versions of this gem.
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.4.0'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveRecord
4
- TIDB_ADAPTER_VERSION = '6.1.1'
4
+ TIDB_ADAPTER_VERSION = '6.1.2'
5
5
  end
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.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-21 00:00:00.000000000 Z
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.4.0
90
+ version: 2.5.0
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="