From bd1153df5daf419783f754a69644a2b5e0512bc8 Mon Sep 17 00:00:00 2001 From: laserlemon Date: Mon, 11 Oct 2010 15:52:24 -0400 Subject: [PATCH] Pass query parameter tests, changing the url_params method to return an array. --- lib/simple_oauth.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/simple_oauth.rb b/lib/simple_oauth.rb index a0d286a..a5cab5f 100644 --- a/lib/simple_oauth.rb +++ b/lib/simple_oauth.rb @@ -81,11 +81,11 @@ module SimpleOAuth end def signature_params - attributes.to_a + params.to_a + url_params.to_a + attributes.to_a + params.to_a + url_params end def url_params - CGI.parse(@uri.query || '') + CGI.parse(@uri.query || '').inject([]){|p,(k,vs)| p + vs.map{|v| [k, v] } } end end end