activerecord-mysql-enum 2.0.1.pre.ga.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +13 -38
- data/CHANGELOG.md +7 -3
- data/Gemfile.lock +2 -2
- data/lib/active_record/mysql/enum/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2084948247375121f6afd7e4c37a3d80b71370d301de92801bbe8c8659a359a1
|
4
|
+
data.tar.gz: 2f9c5a9fafb6ea306ec68fc7fcbfd7d1c0aa160990e2cff428ea6460088c9f44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 628fae94acef21e4d62a3c603c16924669f3f85118e1cb66c40ea6338c9273abb33aafc63d4e0e0c174143f2e53ae97da1b3e8bac2b55b3fb3721e87a76e6cce
|
7
|
+
data.tar.gz: '04157914bbeda6f17243216409fa612e357f643c6694c824551eaf4624e1b7d07ffd150b5f6d4c43dbb3acf57ebcb574af3b5737ac438692b5f7b813d4216312'
|
data/.github/workflows/test.yml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
name: ActiveRecord MySQL Enum
|
3
3
|
on: [push]
|
4
4
|
jobs:
|
5
|
-
test
|
6
|
-
name:
|
5
|
+
test:
|
6
|
+
name: Unit Tests
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
services:
|
9
9
|
mysql:
|
@@ -19,10 +19,20 @@ jobs:
|
|
19
19
|
strategy:
|
20
20
|
fail-fast: false
|
21
21
|
matrix:
|
22
|
-
ruby: [2.5.8, 2.6.5, 2.7]
|
22
|
+
ruby: [2.5.8, 2.6.5, 2.7, '3.0', 3.1]
|
23
23
|
gemfile:
|
24
|
+
- Gemfile
|
24
25
|
- gemfiles/rails_5.gemfile
|
25
26
|
- gemfiles/rails_6.gemfile
|
27
|
+
exclude:
|
28
|
+
- ruby: '3.0'
|
29
|
+
gemfile: Gemfile
|
30
|
+
- ruby: 3.1
|
31
|
+
gemfile: Gemfile
|
32
|
+
- ruby: '3.0'
|
33
|
+
gemfile: gemfiles/rails_5.gemfile
|
34
|
+
- ruby: 3.1
|
35
|
+
gemfile: gemfiles/rails_5.gemfile
|
26
36
|
env:
|
27
37
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
28
38
|
DATABASE_MYSQL_HOST: 127.0.0.1
|
@@ -37,38 +47,3 @@ jobs:
|
|
37
47
|
bundler-cache: true
|
38
48
|
- run: RAILS_ENV=test bundle exec rake db:create
|
39
49
|
- run: bundle exec rspec
|
40
|
-
|
41
|
-
test-ruby-3:
|
42
|
-
name: Ruby 3 Unit Tests
|
43
|
-
runs-on: ubuntu-latest
|
44
|
-
services:
|
45
|
-
mysql:
|
46
|
-
image: mysql:5.7
|
47
|
-
env:
|
48
|
-
MYSQL_DATABASE: activerecord_mysql_enum_test
|
49
|
-
MYSQL_USER: user
|
50
|
-
MYSQL_PASSWORD: password
|
51
|
-
MYSQL_ROOT_PASSWORD: rootpassword
|
52
|
-
ports:
|
53
|
-
- 3306:3306
|
54
|
-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
55
|
-
strategy:
|
56
|
-
fail-fast: false
|
57
|
-
matrix:
|
58
|
-
ruby: ['3.0', 3.1]
|
59
|
-
gemfile:
|
60
|
-
- gemfiles/rails_6.gemfile
|
61
|
-
env:
|
62
|
-
BUNDLE_GEMFILE: gemfiles/rails_6.gemfile
|
63
|
-
DATABASE_MYSQL_HOST: 127.0.0.1
|
64
|
-
DATABASE_MYSQL_USERNAME: user
|
65
|
-
DATABASE_MYSQL_PASSWORD: password
|
66
|
-
steps:
|
67
|
-
- uses: actions/checkout@v2
|
68
|
-
- uses: ruby/setup-ruby@v1
|
69
|
-
with:
|
70
|
-
ruby-version: ${{ matrix.ruby }}
|
71
|
-
bundler: 2.2.29
|
72
|
-
bundler-cache: true
|
73
|
-
- run: RAILS_ENV=test bundle exec rake db:create
|
74
|
-
- run: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,12 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [2.0
|
8
|
-
|
9
|
-
- Added
|
7
|
+
## [2.1.0] - 2022-04-11
|
8
|
+
### Added
|
9
|
+
- Added ruby 3 support
|
10
|
+
|
11
|
+
### Removed
|
12
|
+
- Dropped support for Rails less than 5
|
10
13
|
|
11
14
|
## [2.0.0] - 2021-08-10
|
12
15
|
### Removed
|
@@ -53,6 +56,7 @@ Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
|
|
53
56
|
### Changed
|
54
57
|
- Renamed the gem from `enum_column3` to `activerecord-mysql-enum`
|
55
58
|
|
59
|
+
[2.1.0]: https://github.com/Invoca/activerecord-mysql-enum/compare/v2.0.0...v2.1.0
|
56
60
|
[2.0.0]: https://github.com/Invoca/activerecord-mysql-enum/compare/v1.0.0...v2.0.0
|
57
61
|
[1.0.0]: https://github.com/Invoca/activerecord-mysql-enum/compare/v0.1.4...v1.0.0
|
58
62
|
[0.1.4]: https://github.com/Invoca/activerecord-mysql-enum/compare/v0.1.3...v0.1.4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
activerecord-mysql-enum (2.
|
4
|
+
activerecord-mysql-enum (2.1.0)
|
5
5
|
activerecord (>= 5.2, < 7)
|
6
6
|
mysql2 (>= 0.4.5, < 0.6)
|
7
7
|
|
@@ -184,4 +184,4 @@ DEPENDENCIES
|
|
184
184
|
rspec-rails (~> 5.0)
|
185
185
|
|
186
186
|
BUNDLED WITH
|
187
|
-
2.
|
187
|
+
2.3.11
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-mysql-enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pohodnya
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -103,11 +103,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- - "
|
106
|
+
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
108
|
+
version: '0'
|
109
109
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
110
|
+
rubygems_version: 3.3.11
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Enable enum type for the MySQL Adapter in ActiveRecord
|