lib/flipper/gate_values.rb in flipper-0.11.0.beta6 vs lib/flipper/gate_values.rb in flipper-0.11.0.beta7

- old
+ new

@@ -20,11 +20,11 @@ def initialize(adapter_values) @boolean = Typecast.to_boolean(adapter_values[:boolean]) @actors = Typecast.to_set(adapter_values[:actors]) @groups = Typecast.to_set(adapter_values[:groups]) - @percentage_of_actors = Typecast.to_integer(adapter_values[:percentage_of_actors]) - @percentage_of_time = Typecast.to_integer(adapter_values[:percentage_of_time]) + @percentage_of_actors = Typecast.to_percentage(adapter_values[:percentage_of_actors]) + @percentage_of_time = Typecast.to_percentage(adapter_values[:percentage_of_time]) end def [](key) if ivar = LegitIvars[key.to_s] instance_variable_get(ivar)