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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61e5ef9a735b128f2e0fb4f3f22f43d8e085a18d6f7108482ffdebb469e62cab
4
- data.tar.gz: 82f879101b6f305922d960560dafd44de66d655cbc57449a0f26ac33f9cee2cf
3
+ metadata.gz: 33874535f30776d05cc3fe700cf376aa1127087c2c686106a71a2c272ce7a0c3
4
+ data.tar.gz: 90dd4796f6ce49ee56f003d7a54a36ecc3db857824bad18feeb52705e47ea83d
5
5
  SHA512:
6
- metadata.gz: 0dbe7052112cc128e90221e2ac7658226d9939141a9949671e37d7091134ca94ab92cd5dfa9e60c5d021b4f328003a400d692358d735ef8196d937a0062643eb
7
- data.tar.gz: 75558e56ae4818a31187fa5c47d082fb98c407e5782e7cb8c2aaf06e65a86758d2dbf480d4031fcf5f48cc936af047977acd14f1bb3b4d530a2aab3fe46bf2b9
6
+ metadata.gz: 4ed48df741f314383614f19e57575662a9a2f3aaee4470b9f99c1b4b31f74209ca982d309a4378a46e07960d73fb5b0041dbbab4a52a37ca6bdd0886bcc2fcfb
7
+ data.tar.gz: 45fc4c967343d90ee2e9af860bda00ec82c5a0a03991b3dbff751bc65e3f21f6716a86584d51b00f68b87918c693bfac1c1f79726d747bc4788f857cc0ceeb13
@@ -43,6 +43,6 @@ jobs:
43
43
  build_success:
44
44
  name: Build Success
45
45
  runs-on: ubuntu-latest
46
- needs: tests
46
+ needs: test
47
47
  steps:
48
48
  - run: echo Done!
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.1)
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.1.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.13.2)
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.6)
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.0)
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.2)
210
+ rspec-rails (6.1.3)
211
211
  actionpack (>= 6.1)
212
212
  activesupport (>= 6.1)
213
213
  railties (>= 6.1)
@@ -3,7 +3,7 @@
3
3
  module ActiveRecord
4
4
  module Mysql
5
5
  module Enum
6
- VERSION = "2.4.1"
6
+ VERSION = "2.4.2"
7
7
  end
8
8
  end
9
9
  end
@@ -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.1
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-03 00:00:00.000000000 Z
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