search for: raw_str

Displaying 2 results from an estimated 2 matches for "raw_str".

Did you mean: rawstr
2008 Mar 11
0
Facebooker-talk Digest, Vol 5, Issue 12
...ssion.rb MUST REFACTOR def signature_for(params) facebook_sig_params = params.inject({}) do |collection, pair| collection[pair.first.sub(/^fb_sig_/, '''')] = pair.last if pair.first[0,7] == ''fb_sig_'' collection end raw_string = facebook_sig_params.map{ |*args| args.join(''='') }.sort.join actual_sig = Digest::MD5.hexdigest([raw_string, Facebooker::Session.secret_key].join) Digest::MD5.hexdigest([raw_string, Facebooker::Session.secret_key].join) end end end end I had want...
2008 Mar 11
0
Facebook_request in unit tests
...rom session.rb MUST REFACTOR def signature_for(params) facebook_sig_params = params.inject({}) do |collection, pair| collection[pair.first.sub(/^fb_sig_/, '''')] = pair.last if pair.first[0,7] == ''fb_sig_'' collection end raw_string = facebook_sig_params.map{ |*args| args.join(''='') }.sort.join actual_sig = Digest::MD5.hexdigest([raw_string, Facebooker::Session.secret_key].join) Digest::MD5.hexdigest([raw_string, Facebooker::Session.secret_key].join) end end end end I had wanted to...