mixture 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mixture/coerce/boolean.rb +1 -1
- data/lib/mixture/coerce.rb +5 -0
- data/lib/mixture/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a06213e3ee4013a1fe25d92d323c63cce983155
|
4
|
+
data.tar.gz: 665043f967551267637cc68d2dfd02e2065d6da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10ac1ebccc00a4777bef5695df536c73752c2b74d27b9796ab88c0626950641fb1d5b45c9ae139ea25f22cddfa0644eacf490aabac6fc808a81a8e5b83009f1b
|
7
|
+
data.tar.gz: 3f8725495e23ab9fb3f287055c3dad37b4047f6b6764c9308537388f0e01d41962a190f3a7e8faeb99e282151b0b4f1f2e982afb8cfa271fe2ab675ba3593d8c
|
data/Gemfile.lock
CHANGED
data/lib/mixture/coerce.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require "mixture/coerce/base"
|
4
4
|
require "mixture/coerce/array"
|
5
|
+
require "mixture/coerce/boolean"
|
5
6
|
require "mixture/coerce/class"
|
6
7
|
require "mixture/coerce/date"
|
7
8
|
require "mixture/coerce/datetime"
|
@@ -70,11 +71,15 @@ module Mixture
|
|
70
71
|
end
|
71
72
|
end
|
72
73
|
|
74
|
+
# rubocop:disable Metrics/AbcSize
|
75
|
+
# rubocop:disable Metrics/MethodLength
|
76
|
+
|
73
77
|
# Registers the default coercions.
|
74
78
|
#
|
75
79
|
# @return [void]
|
76
80
|
def self.finalize
|
77
81
|
register Array
|
82
|
+
register Boolean
|
78
83
|
register Class
|
79
84
|
register Date
|
80
85
|
register DateTime
|
data/lib/mixture/version.rb
CHANGED