activerecord-mysql-enum 0.1.3 → 0.1.4.pre.1

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
- SHA256:
3
- metadata.gz: 55bc597834513644a73047cc9b1df7b853d2138a8bc9d72b2414ef85d38ccc44
4
- data.tar.gz: fb8e43c87e03d2a5be842a18f3ad82bc01481f2200ee251aca8c20bdf972a4bc
2
+ SHA1:
3
+ metadata.gz: 65f091ec84ca56cc57327fc3ed102b44d5144186
4
+ data.tar.gz: 93580fa1fe7b02bb89852aad0fe8f78114934bd4
5
5
  SHA512:
6
- metadata.gz: 0d33416541bb774bc5ca50ee8abf09303a40492fe6664c1d574d466d7a202c809e45f32753e4a98f4155507dd3395e1bb46465576850a1d50fd950ee63ea5274
7
- data.tar.gz: 922721961100bac1179f6f1aef232f7258834e516b73be14845b70fbf75f0d48243304beed0f0013d1f9d0526e76a8042864247a83fba0e3cef678ba661fec98
6
+ metadata.gz: 51727f428f088f3a4984566760a0634eeec7651982b8e587f8ca347e29a23edff865922d92c5c3fe68e359976692d1aa47d8921e6fe78cef756d48636e77ad9d
7
+ data.tar.gz: bf39dcfcfa03f9d0ead9b94da25fa762f1b2c438abea2f319504fbc43d0657d3f7fd33c9086518d56887a98eeca8c482181f709eef04045403e033793b4a1798
@@ -4,9 +4,14 @@ 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
8
+ ### Fixed
9
+ - Fixed bug in `mysql_adapter` where optional arguments being passed to `type_to_sql` would cause
10
+ an unexpected error
11
+
7
12
  ## [0.1.3] - 2020-08-19
8
13
  ### Changed
9
- - refactor mysql adapter
14
+ - refactor mysql adapter
10
15
 
11
16
  ## [0.1.2] - 2020-08-18
12
17
  ### Changed
@@ -23,4 +28,8 @@ Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
23
28
  ### Changed
24
29
  - Renamed the gem from `enum_column3` to `activerecord-mysql-enum`
25
30
 
26
- [0.1.0]: https://github.com/Invoca/activerecord-mysql-enum/tree/0.1.0
31
+ [0.1.4]: https://github.com/Invoca/activerecord-mysql-enum/compare/v0.1.3...v0.1.4
32
+ [0.1.3]: https://github.com/Invoca/activerecord-mysql-enum/compare/v0.1.2...v0.1.3
33
+ [0.1.2]: https://github.com/Invoca/activerecord-mysql-enum/compare/v0.1.1...v0.1.2
34
+ [0.1.1]: https://github.com/Invoca/activerecord-mysql-enum/compare/v0.1.0...v0.1.1
35
+ [0.1.0]: https://github.com/Invoca/activerecord-mysql-enum/tree/v0.1.0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-mysql-enum (0.1.3)
4
+ activerecord-mysql-enum (0.1.4.pre.1)
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)
31
+ def type_to_sql(type, limit = nil, precision = nil, scale = nil, **_options)
32
32
  if type.to_s == 'enum'
33
33
  column_type_sql =
34
34
  if (native_database_type = native_database_types[type])
@@ -41,7 +41,7 @@ module ActiveRecord
41
41
 
42
42
  "#{column_type_sql}(#{quoted_values})"
43
43
  else
44
- super(type, limit, precision, scale)
44
+ super
45
45
  end
46
46
  end
47
47
  else
@@ -58,7 +58,7 @@ module ActiveRecord
58
58
 
59
59
  "#{column_type_sql}(#{quoted_values})"
60
60
  else
61
- super(type, limit: limit, precision: precision, scale: scale, unsigned: unsigned)
61
+ super
62
62
  end
63
63
  end
64
64
  end
@@ -3,7 +3,7 @@
3
3
  module ActiveRecord
4
4
  module Mysql
5
5
  module Enum
6
- VERSION = "0.1.3"
6
+ VERSION = "0.1.4.pre.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-mysql-enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pohodnya
8
8
  - Invoca Development
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-19 00:00:00.000000000 Z
12
+ date: 2020-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -65,7 +65,7 @@ licenses: []
65
65
  metadata:
66
66
  source_code_uri: https://github.com/Invoca/activerecord-mysql-enum
67
67
  allowed_push_host: https://rubygems.org
68
- post_install_message:
68
+ post_install_message:
69
69
  rdoc_options: []
70
70
  require_paths:
71
71
  - lib
@@ -76,12 +76,13 @@ 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: '0'
81
+ version: 1.3.1
82
82
  requirements: []
83
- rubygems_version: 3.0.1
84
- signing_key:
83
+ rubyforge_project:
84
+ rubygems_version: 2.6.13
85
+ signing_key:
85
86
  specification_version: 4
86
87
  summary: Enable enum type for the MySQL Adapter in ActiveRecord
87
88
  test_files: []