omniauth-raven 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Raven
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-raven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: