fastlane_core/lib/fastlane_core/configuration/config_item.rb
# Returns an updated value type (if necessary)
Returns an updated value type (if necessary)
Returns an updated value type ( if necessary )
def auto_convert_value(value)
      case
      when data_type == Array
        return value.split(',') if value.kind_of?(String)
      when data_type == Integer
        return value.to_i
      when data_type == Float
        return value.to_f
      else
        if %w(YES yes true TRUE).include?(value)
          return true
        elsif %w(NO no false FALSE).include?(value)
          return false
        end
      end
      return value 
    end
def auto_convert_value ( value ) case when data_type == Array return value . split ( ',' ) if value . kind_of? ( String ) when data_type == Integer return value . to_i when data_type == Float return value . to_f else if %w( YES yes true TRUE ) . include? ( value ) return true elsif %w( NO no false FALSE ) . include? ( value ) return false end end return value end
Returns an updated value type (if necessary)
Returns an updated value type ( if necessary )
# Weird because of https://stackoverflow.com/questions/9537895/using-a-class-object-in-case-statement # Special treatment if the user specififed true, false or YES, NO # There is no boolean type, so we just do it here # fallback to not doing anything
value
<not_specific>