activerecord-mysql-enum 2.4.1 → 2.4.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/test.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +6 -6
- data/lib/active_record/mysql/enum/version.rb +1 -1
- data/lib/active_record/mysql/enum.rb +0 -1
- metadata +2 -3
- data/lib/active_record/mysql/enum/quoting.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33874535f30776d05cc3fe700cf376aa1127087c2c686106a71a2c272ce7a0c3
|
4
|
+
data.tar.gz: 90dd4796f6ce49ee56f003d7a54a36ecc3db857824bad18feeb52705e47ea83d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ed48df741f314383614f19e57575662a9a2f3aaee4470b9f99c1b4b31f74209ca982d309a4378a46e07960d73fb5b0041dbbab4a52a37ca6bdd0886bcc2fcfb
|
7
|
+
data.tar.gz: 45fc4c967343d90ee2e9af860bda00ec82c5a0a03991b3dbff751bc65e3f21f6716a86584d51b00f68b87918c693bfac1c1f79726d747bc4788f857cc0ceeb13
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ 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.4.2] - 2024-07-31
|
8
|
+
### Removed
|
9
|
+
- Removed unnecessary patching of ActiveRecord::ConnectionAdapters::Quoting module
|
10
|
+
|
7
11
|
## [2.4.1] - 2024-07-03
|
8
12
|
### Fixed
|
9
13
|
- Fixed bug in Rails 7.0.x where migrations failed when changing an enum column.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
activerecord-mysql-enum (2.4.
|
4
|
+
activerecord-mysql-enum (2.4.2)
|
5
5
|
activerecord (>= 5.2)
|
6
6
|
mysql2 (>= 0.4.5)
|
7
7
|
|
@@ -86,7 +86,7 @@ GEM
|
|
86
86
|
bundler
|
87
87
|
rake
|
88
88
|
thor (>= 0.14.0)
|
89
|
-
appraisal-matrix (0.
|
89
|
+
appraisal-matrix (0.3.0)
|
90
90
|
appraisal (~> 2.2)
|
91
91
|
base64 (0.2.0)
|
92
92
|
bigdecimal (3.1.8)
|
@@ -112,7 +112,7 @@ GEM
|
|
112
112
|
i18n (1.14.5)
|
113
113
|
concurrent-ruby (~> 1.0)
|
114
114
|
io-console (0.7.2)
|
115
|
-
irb (1.
|
115
|
+
irb (1.14.0)
|
116
116
|
rdoc (>= 4.0.0)
|
117
117
|
reline (>= 0.4.2)
|
118
118
|
json (2.7.2)
|
@@ -153,7 +153,7 @@ GEM
|
|
153
153
|
psych (5.1.2)
|
154
154
|
stringio
|
155
155
|
racc (1.8.0)
|
156
|
-
rack (3.1.
|
156
|
+
rack (3.1.7)
|
157
157
|
rack-session (2.0.0)
|
158
158
|
rack (>= 3.0.0)
|
159
159
|
rack-test (2.1.0)
|
@@ -201,13 +201,13 @@ GEM
|
|
201
201
|
rspec-mocks (~> 3.13.0)
|
202
202
|
rspec-core (3.13.0)
|
203
203
|
rspec-support (~> 3.13.0)
|
204
|
-
rspec-expectations (3.13.
|
204
|
+
rspec-expectations (3.13.1)
|
205
205
|
diff-lcs (>= 1.2.0, < 2.0)
|
206
206
|
rspec-support (~> 3.13.0)
|
207
207
|
rspec-mocks (3.13.1)
|
208
208
|
diff-lcs (>= 1.2.0, < 2.0)
|
209
209
|
rspec-support (~> 3.13.0)
|
210
|
-
rspec-rails (6.1.
|
210
|
+
rspec-rails (6.1.3)
|
211
211
|
actionpack (>= 6.1)
|
212
212
|
activesupport (>= 6.1)
|
213
213
|
railties (>= 6.1)
|
@@ -9,7 +9,6 @@ module ActiveRecord
|
|
9
9
|
require 'active_record/mysql/enum/enum_type'
|
10
10
|
require 'active_record/mysql/enum/enum_column_adapter'
|
11
11
|
require 'active_record/mysql/enum/schema_definitions'
|
12
|
-
require 'active_record/mysql/enum/quoting'
|
13
12
|
require 'active_record/mysql/enum/validations'
|
14
13
|
end
|
15
14
|
end
|
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.
|
4
|
+
version: 2.4.2
|
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: 2024-07-
|
12
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -75,7 +75,6 @@ files:
|
|
75
75
|
- lib/active_record/mysql/enum/enum_column_adapter.rb
|
76
76
|
- lib/active_record/mysql/enum/enum_type.rb
|
77
77
|
- lib/active_record/mysql/enum/mysql_adapter.rb
|
78
|
-
- lib/active_record/mysql/enum/quoting.rb
|
79
78
|
- lib/active_record/mysql/enum/schema_definitions.rb
|
80
79
|
- lib/active_record/mysql/enum/validations.rb
|
81
80
|
- lib/active_record/mysql/enum/version.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ActiveRecord
|
4
|
-
module ConnectionAdapters # :nodoc:
|
5
|
-
module Quoting
|
6
|
-
alias __quote_enum quote
|
7
|
-
|
8
|
-
# Quote a symbol as a normal string. This will support quoting of
|
9
|
-
# enumerated values.
|
10
|
-
def quote(value)
|
11
|
-
if !value.is_a? Symbol
|
12
|
-
__quote_enum(value)
|
13
|
-
else
|
14
|
-
ActiveRecord::Base.send(:quote_bound_value, value.to_s)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|