Placester/ruby-rets — pull request #4 by ptrippett (2012-04-10 01:55:11+00:00)
Title: Small bugfix plus strange finding

There was a line intiializing the rets_data var to nil which caused an error. it has a slight oddity which is workable for now at thats that only the first iteration can you see the rets_data, 2nd, 3rd ... iterations the rets_data var is being set to nil

More verbose output with inspect you can see the variable mysteriously being set to nil on subsequent iterations

#"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=2, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#>, @urls={:login=>#, :logout=>#, :search=>#, :getmetadata=>#, :getobject=>#}, @rets_data={:code=>"0", :text=>"Operation Successful", :count=>5, :delimiter=>"\t"}, @request_hash=nil, @request_size=nil>
Fetching Photos
#"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=3, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#>, @urls={:login=>#, :logout=>#, :search=>#, :getmetadata=>#, :getobject=>#}, @rets_data=nil, @request_hash="a0659c632365f64f2ee3d163367157b92e570924", @request_size=9149>
Fetching Photos
#"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=4, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#>, @urls={:login=>#, :logout=>#, :search=>#, :getmetadata=>#, :getobject=>#}, @rets_data=nil, @request_hash="309846ba52ad074e33ba995b9662579c8eef0695", @request_size=3700>
Fetching Photos
#"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=5, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#>, @urls={:login=>#, :logout=>#, :search=>#, :getmetadata=>#, :getobject=>#}, @rets_data=nil, @request_hash="a0659c632365f64f2ee3d163367157b92e570924", @request_size=9149>
Fetching Photos
#"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=6, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#>, @urls={:login=>#, :logout=>#, :search=>#, :getmetadata=>#, :getobject=>#}, @rets_data=nil, @request_hash="1d870bbdd958b11d89f37970b7225613d880fe61", @request_size=3705>
Fetching Photos