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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a61f4e8461df9033af51e5f8dc3f68fe8baf33c1
4
- data.tar.gz: be7e393f72d9c6440c519538a890ce149e5ad755
3
+ metadata.gz: 7a06213e3ee4013a1fe25d92d323c63cce983155
4
+ data.tar.gz: 665043f967551267637cc68d2dfd02e2065d6da7
5
5
  SHA512:
6
- metadata.gz: afb4f2976cc1e8f5d218250c1d787a856df19d92b4bc475b65f0c26a97c3848df0714695ef1aabd03fc93e486c4144e11a847679d86f0c6dc1e470953290f37f
7
- data.tar.gz: 503ba240a8d700f521ea79da83f27d3292ae986f0cf84da64dfff027b44ec8f414fc1642ff9160b643ec2c46222a187349343703539634ef8a054412627b12a8
6
+ metadata.gz: 10ac1ebccc00a4777bef5695df536c73752c2b74d27b9796ab88c0626950641fb1d5b45c9ae139ea25f22cddfa0644eacf490aabac6fc808a81a8e5b83009f1b
7
+ data.tar.gz: 3f8725495e23ab9fb3f287055c3dad37b4047f6b6764c9308537388f0e01d41962a190f3a7e8faeb99e282151b0b4f1f2e982afb8cfa271fe2ab675ba3593d8c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mixture (0.6.1)
4
+ mixture (0.6.2)
5
5
  thread_safe (~> 0.3)
6
6
 
7
7
  GEM
@@ -4,7 +4,7 @@ module Mixture
4
4
  module Coerce
5
5
  # Handles coercion of the boolean classes.
6
6
  class Boolean < Base
7
- type Types::Array
7
+ type Types::Boolean
8
8
 
9
9
  coerce_to(Types::Object, Itself)
10
10
  coerce_to(Types::Boolean, Itself)
@@ -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
@@ -5,5 +5,5 @@ module Mixture
5
5
  # The current version of Mixture.
6
6
  #
7
7
  # @return [String]
8
- VERSION = "0.6.1"
8
+ VERSION = "0.6.2"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixture
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi