lib/QuickBaseClient.rb in quickbase_client-1.0.25 vs lib/QuickBaseClient.rb in quickbase_client-1.0.26
- old
+ new
@@ -104,15 +104,26 @@
@escapeBR = @ignoreCR = @ignoreLF = @ignoreTAB = true
toggleTraceInfo( showTrace ) if showTrace
setHTTPConnectionAndqbhost( useSSL, org, domain, proxy_options )
debugHTTPConnection() if debugHTTPConnection
@standardRequestHeaders = { "Content-Type" => "application/xml" }
+ if username and password
+ authenticate( username, password )
if appname and @errcode == "0"
findDBByname( appname )
if @dbid and @errcode == "0"
getDBInfo( @dbid )
getSchema( @dbid )
end
+ end
+ else
+ if appname and @errcode == "0"
+ findDBByname( appname )
+ if @dbid and @errcode == "0"
+ getDBInfo( @dbid )
+ getSchema( @dbid )
+ end
+ end
end
rescue Net::HTTPBadRequest => @lastError
rescue Net::HTTPBadResponse => @lastError
rescue Net::HTTPHeaderSyntaxError => @lastError
rescue StandardError => @lastError