omniauth-raven 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth/raven/version.rb +1 -1
- data/lib/omniauth/strategies/raven.rb +6 -1
- metadata +1 -1
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'omniauth'
|
2
|
-
require 'cgi'
|
3
2
|
|
4
3
|
module OmniAuth
|
5
4
|
module Strategies
|
@@ -17,6 +16,12 @@ module OmniAuth
|
|
17
16
|
second = rfc3339[ 13..14 ].to_i
|
18
17
|
return Time.gm( year, month, day, hour, minute, second)
|
19
18
|
end
|
19
|
+
|
20
|
+
def escape(string)
|
21
|
+
string.gsub(/([^ a-zA-Z0-9_.-]+)/) do
|
22
|
+
'%' + $1.unpack('H2' * $1.bytesize).join('%').upcase
|
23
|
+
end.tr(' ', '+')
|
24
|
+
end
|
20
25
|
end
|
21
26
|
|
22
27
|
|