lib/outliers/evaluation.rb in outliers-0.5.0.beta1 vs lib/outliers/evaluation.rb in outliers-0.5.0.beta2

- old
+ new

@@ -80,12 +80,12 @@ logger.info "Targeting all resources in '#{@resource_name}' collection." end end def convert_verification_arguments(arguments) - return Array(arguments) if arguments.is_a?(Array) || arguments.is_a?(String) + return Array(arguments) if arguments.is_a?(Array) || arguments.is_a?(String) || arguments.is_a?(Integer) return nil if arguments.is_a?(NilClass) - raise Outliers::Exceptions::InvalidArguments.new "Verification arguments '#{arguments}' invalid. Must be a string or array." + raise Outliers::Exceptions::InvalidArguments.new "Verification arguments '#{arguments}' invalid. Must be a string, integer or array." end def set_provider_name_array begin array = Outliers::Providers.name_map.fetch(provider_name).to_s.split('::')