lib/iqvoc/configuration/instance_configuration.rb in iqvoc-4.11.1 vs lib/iqvoc/configuration/instance_configuration.rb in iqvoc-4.12.0

- old
+ new

@@ -114,10 +114,11 @@ # checks whether value type is supported def self.validate_value(value) # TODO: compare type to default's? (cf. controller) if value == nil raise TypeError, 'nil values not supported' end - unless [TrueClass, FalseClass, String, Fixnum, Float, Array].include?(value.class) + # 0.class enables support for Ruby 2.4 Fixnum/Bignum into Integer class merge + unless [TrueClass, FalseClass, String, 0.class, Float, Array].include?(value.class) raise TypeError, 'complex values not supported' end end end end