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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65f091ec84ca56cc57327fc3ed102b44d5144186
4
- data.tar.gz: 93580fa1fe7b02bb89852aad0fe8f78114934bd4
3
+ metadata.gz: 578ac3f22e8b3c8918ba90a0275b6cec90bc5b65
4
+ data.tar.gz: ee0b982c920256d50afeae9b9a2b8b4ec143e10f
5
5
  SHA512:
6
- metadata.gz: 51727f428f088f3a4984566760a0634eeec7651982b8e587f8ca347e29a23edff865922d92c5c3fe68e359976692d1aa47d8921e6fe78cef756d48636e77ad9d
7
- data.tar.gz: bf39dcfcfa03f9d0ead9b94da25fa762f1b2c438abea2f319504fbc43d0657d3f7fd33c9086518d56887a98eeca8c482181f709eef04045403e033793b4a1798
6
+ metadata.gz: fe548ee120207058a9e1af2a87bcd95a120be896aa02b0e826ed856de893121d7604b106125d7f093695a0efd704959a3651eacd8940ea33779d474df3eada0f
7
+ data.tar.gz: 0e240650af84b1e562789fad514c9f1a01d11dedc3c39d67734632b51d0301a0e87b4d99c4814690c7cef107742d9b7f32c404cd9a622284d181a24c76948c02
@@ -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] - Unreleased
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-mysql-enum (0.1.4.pre.1)
4
+ activerecord-mysql-enum (0.1.4)
5
5
  activerecord (>= 4.2, < 7)
6
6
 
7
7
  GEM
@@ -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, precision = nil, scale = nil, **_options)
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, precision: nil, scale: nil, unsigned: nil, **_options) # :nodoc:
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])
@@ -3,7 +3,7 @@
3
3
  module ActiveRecord
4
4
  module Mysql
5
5
  module Enum
6
- VERSION = "0.1.4.pre.1"
6
+ VERSION = "0.1.4"
7
7
  end
8
8
  end
9
9
  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: 0.1.4.pre.1
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: 1.3.1
81
+ version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
84
  rubygems_version: 2.6.13