fbauth 1.1.0.0 → 1.1.0.1

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.
@@ -37,7 +37,7 @@ private
37
37
  data = parse_cookie
38
38
  auth = validate_and_save(data) unless data.nil?
39
39
 
40
- logger.warn("Unable to parse any security params for request - cold authentication required")
40
+ logger.warn("Unable to parse any security params for request - cold authentication required") unless auth
41
41
 
42
42
  return auth
43
43
  end
@@ -59,6 +59,7 @@ private
59
59
  parms = JSON.parse(session[:fbauth])
60
60
  logger.warn("Parsed facebook params from existing rails session")
61
61
  rescue => e
62
+ logger.warn("Error parsing params from session - #{e}\n from #{session[:fbauth]}")
62
63
  session[:fbauth] = nil
63
64
  end
64
65
  end
@@ -85,11 +86,12 @@ private
85
86
  cookie = cookies["fbs_#{FacebookConfig['app_id']}"]
86
87
  unless cookie.nil?
87
88
  parms = {}
89
+ cookie = cookie.gsub(/^"/, '').gsub(/"$/, '')
88
90
  cookie.split("&").each do |pair|
89
91
  key, value = pair.split("=")
90
92
  parms[key] = value
91
93
  end
92
- logger.warn("Parsed facebook params from cookie")
94
+ logger.warn("Parsed facebook params from cookie - #{cookie.inspect}\n found #{parms.inspect}")
93
95
  end
94
96
  parms
95
97
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbauth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 87
5
- prerelease: false
4
+ hash: 85
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
9
  - 0
10
- - 0
11
- version: 1.1.0.0
10
+ - 1
11
+ version: 1.1.0.1
12
12
  platform: ruby
13
13
  authors:
14
14
  - Three Wise Men Inc.
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-03 00:00:00 -05:00
19
+ date: 2011-03-04 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements: []
73
73
 
74
74
  rubyforge_project:
75
- rubygems_version: 1.3.7
75
+ rubygems_version: 1.5.2
76
76
  signing_key:
77
77
  specification_version: 3
78
78
  summary: Authentication framework for Rails Facebook apps