activerecord-mysql-enum 0.1.4.pre.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/lib/active_record/mysql/enum/mysql_adapter.rb +2 -2
- data/lib/active_record/mysql/enum/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 578ac3f22e8b3c8918ba90a0275b6cec90bc5b65
|
4
|
+
data.tar.gz: ee0b982c920256d50afeae9b9a2b8b4ec143e10f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe548ee120207058a9e1af2a87bcd95a120be896aa02b0e826ed856de893121d7604b106125d7f093695a0efd704959a3651eacd8940ea33779d474df3eada0f
|
7
|
+
data.tar.gz: 0e240650af84b1e562789fad514c9f1a01d11dedc3c39d67734632b51d0301a0e87b4d99c4814690c7cef107742d9b7f32c404cd9a622284d181a24c76948c02
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ 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
|
-
## [0.1.4] -
|
7
|
+
## [0.1.4] - 2020-08-20
|
8
8
|
### Fixed
|
9
9
|
- Fixed bug in `mysql_adapter` where optional arguments being passed to `type_to_sql` would cause
|
10
10
|
an unexpected error
|
data/Gemfile.lock
CHANGED
@@ -28,7 +28,7 @@ module ActiveRecord
|
|
28
28
|
#
|
29
29
|
# will generate enum('a', 'b', 'c') for :limit => [:a, :b, :c]
|
30
30
|
if Rails::VERSION::MAJOR < 5
|
31
|
-
def type_to_sql(type, limit = nil,
|
31
|
+
def type_to_sql(type, limit = nil, *args)
|
32
32
|
if type.to_s == 'enum'
|
33
33
|
column_type_sql =
|
34
34
|
if (native_database_type = native_database_types[type])
|
@@ -45,7 +45,7 @@ module ActiveRecord
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
else
|
48
|
-
def type_to_sql(type, limit: nil,
|
48
|
+
def type_to_sql(type, limit: nil, **_options) # :nodoc:
|
49
49
|
if type.to_s == 'enum'
|
50
50
|
column_type_sql =
|
51
51
|
if (native_database_type = native_database_types[type])
|
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: 0.1.4
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pohodnya
|
@@ -76,9 +76,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
84
|
rubygems_version: 2.6.13
|