File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def timestamp
2727 end
2828
2929 def oauth_parameters
30- {
30+ out = {
3131 'oauth_body_hash' => options [ :body_hash ] ,
3232 'oauth_callback' => options [ :oauth_callback ] ,
3333 'oauth_consumer_key' => options [ :consumer ] . key ,
@@ -38,7 +38,11 @@ def oauth_parameters
3838 'oauth_verifier' => options [ :oauth_verifier ] ,
3939 'oauth_version' => ( options [ :oauth_version ] || '1.0' ) ,
4040 'oauth_session_handle' => options [ :oauth_session_handle ]
41- } . reject { |k , v | v . to_s == "" }
41+ }
42+ if !options [ :allow_empty_params ]
43+ out . reject! { |k , v | v . to_s == '' }
44+ end
45+ out
4246 end
4347
4448 def signature ( extra_options = { } )
Original file line number Diff line number Diff line change 11module OAuth
2- VERSION = "0.5.4 "
2+ VERSION = "0.5.5 "
33end
You can’t perform that action at this time.
0 commit comments