rfacebook 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,20 +30,20 @@
30
30
  require "digest/md5"
31
31
  require "cgi"
32
32
 
33
- module RFacebook::Rails::SessionExtensions
33
+ module RFacebook::Rails::SessionExtensions # :nodoc:
34
34
 
35
- # SECTION: New Methods
36
- def force_to_be_new!
35
+ # :section: New Methods
36
+ def force_to_be_new! # :nodoc:
37
37
  @force_to_be_new = true
38
38
  end
39
39
 
40
- def using_facebook_session_id?
40
+ def using_facebook_session_id? # :nodoc:
41
41
  return (@fb_sig_session_id != nil)
42
42
  end
43
43
 
44
- # SECTION: Base Overrides
44
+ # :section: Base Overrides
45
45
 
46
- def new_session__RFACEBOOK
46
+ def new_session__RFACEBOOK # :nodoc:
47
47
  if @force_to_be_new
48
48
  return true
49
49
  else
@@ -51,7 +51,7 @@ module RFacebook::Rails::SessionExtensions
51
51
  end
52
52
  end
53
53
 
54
- def initialize__RFACEBOOK(request, options = {})
54
+ def initialize__RFACEBOOK(request, options = {}) # :nodoc:
55
55
 
56
56
  # only try to use the sig when we don't have a cookie (i.e., in the canvas)
57
57
  if in_facebook_canvas?(request)
@@ -71,9 +71,9 @@ module RFacebook::Rails::SessionExtensions
71
71
  initialize__ALIASED(request, options)
72
72
  end
73
73
 
74
- # SECTION: Extension Helpers
74
+ # :section: Extension Helpers
75
75
 
76
- def self.included(base)
76
+ def self.included(base) # :nodoc:
77
77
  base.class_eval'
78
78
  alias :initialize__ALIASED :initialize
79
79
  alias :initialize :initialize__RFACEBOOK
@@ -83,7 +83,7 @@ module RFacebook::Rails::SessionExtensions
83
83
  '
84
84
  end
85
85
 
86
- # SECTION: Private Helpers
86
+ # :section: Private Helpers
87
87
 
88
88
  private
89
89
 
@@ -91,7 +91,7 @@ module RFacebook::Rails::SessionExtensions
91
91
  # (not sure why the nil key bug doesn't seem to be fixed in my installation)
92
92
  # ...also, there seems to be some interaction with Mongrel as well that can
93
93
  # cause the parameters to fail
94
- def lookup_request_parameter(request, key)
94
+ def lookup_request_parameter(request, key) # :nodoc:
95
95
 
96
96
  # Depending on the user's version of Rails, this may fail due to a bug in Rails parsing of
97
97
  # nil keys: http://dev.rubyonrails.org/ticket/5137, so we have a backup plan
@@ -145,7 +145,7 @@ module RFacebook::Rails::SessionExtensions
145
145
  end
146
146
  end
147
147
 
148
- def in_facebook_canvas?(request)
148
+ def in_facebook_canvas?(request) # :nodoc:
149
149
  # TODO: we should probably be checking the fb_sig for validity here (template method needed)
150
150
  # ...we can only do this if we can grab the equivalent of a params hash
151
151
  return lookup_request_parameter(request, "fb_sig_in_canvas")
@@ -156,11 +156,11 @@ end
156
156
  # Module: SessionStoreExtensions
157
157
  #
158
158
  # Special initialize method that attempts to force any session store to use the Facebook session
159
- module RFacebook::Rails::SessionStoreExtensions
159
+ module RFacebook::Rails::SessionStoreExtensions # :nodoc:all
160
160
 
161
- # SECTION: Base Overrides
161
+ # :section: Base Overrides
162
162
 
163
- def initialize__RFACEBOOK(session, options, *extraParams)
163
+ def initialize__RFACEBOOK(session, options, *extraParams) # :nodoc:
164
164
 
165
165
  if session.using_facebook_session_id?
166
166
 
@@ -190,9 +190,9 @@ module RFacebook::Rails::SessionStoreExtensions
190
190
  end
191
191
  end
192
192
 
193
- # SECTION: Extension Helpers
193
+ # :section: Extension Helpers
194
194
 
195
- def self.included(base)
195
+ def self.included(base) # :nodoc:
196
196
  base.class_eval'
197
197
  alias :initialize__ALIASED :initialize
198
198
  alias :initialize :initialize__RFACEBOOK
@@ -0,0 +1,97 @@
1
+ <style type="text/css">
2
+
3
+ .RFacebook .backtrace
4
+ {
5
+ border-collapse: collapse;
6
+ background-color: #3B5998;
7
+ color: white;
8
+ }
9
+
10
+ .RFacebook .backtrace
11
+ {
12
+ padding: 30px;
13
+ background: #3B5998;
14
+ }
15
+
16
+ .RFacebook .backtrace h1
17
+ {
18
+ margin: 0px 0px 5px 0px;
19
+ padding: 0px;
20
+
21
+ color: #6D84B4;
22
+ font-size: 1.6em;
23
+ }
24
+
25
+ /*
26
+ .RFacebook table.backtrace td
27
+ {
28
+ padding: 10px 2px 10px 2px;
29
+ border-width: 1px 0px 1px 0px;
30
+
31
+ border-style: solid;
32
+ border-color: #ccc;
33
+ }
34
+ */
35
+
36
+ .RFacebook .backtrace div.summary
37
+ {
38
+ font-size: 1.2em;
39
+ padding: 2px;
40
+ color: #6D84B4;
41
+ }
42
+
43
+ .RFacebook .backtrace div.summary strong
44
+ {
45
+ color: white;
46
+ }
47
+
48
+
49
+ .RFacebook .backtrace div.summary em
50
+ {
51
+ color: white;
52
+ }
53
+
54
+ .RFacebook .backtrace div.rawsummary
55
+ {
56
+ font-size: 0.7em;
57
+ color: #6D84B4;
58
+ padding-left: 5px;
59
+ }
60
+
61
+ .RFacebook ul
62
+ {
63
+ margin: 0px;
64
+ padding: 0px;
65
+ list-style-type: none;
66
+ }
67
+
68
+ .RFacebook ul li
69
+ {
70
+ list-style-type: none;
71
+ padding: 5px;
72
+ }
73
+
74
+
75
+
76
+ </style>
77
+
78
+ <div class="RFacebook">
79
+ <div class="backtrace">
80
+
81
+ <h1>exception backtrace</h1>
82
+ <ul>
83
+ <% rfacebookBacktraceLines.each do |line| %>
84
+ <li>
85
+ <div class="summary">
86
+ <strong><%= line[:filename] %></strong>:<em><%= line[:line] %></em>
87
+ in <strong><%= line[:method] %></strong>
88
+ </div>
89
+ <div class="rawsummary">
90
+ <%= line[:rawsummary] %>
91
+ </div>
92
+ </li>
93
+ <% end %>
94
+ </ul>
95
+
96
+ </div>
97
+ </div>
metadata CHANGED
@@ -3,19 +3,19 @@ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: rfacebook
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.1
7
- date: 2007-08-20 00:00:00 -04:00
8
- summary: A Ruby interface to the Facebook API v1.0+ (F8 and beyond). Works with RFacebook on Rails plugin (see rfacebook.rubyforge.org).
6
+ version: 0.9.2
7
+ date: 2007-08-27 00:00:00 -04:00
8
+ summary: A Ruby interface to the Facebook API v1.0+. Works with RFacebook on Rails plugin (see http://rfacebook.rubyforge.org).
9
9
  require_paths:
10
10
  - lib
11
11
  email: matt@livelearncode.com
12
12
  homepage: http://livelearncode.com/
13
- rubyforge_project:
13
+ rubyforge_project: rfacebook
14
14
  description:
15
15
  autorequire: rfacebook
16
16
  default_executable:
17
17
  bindir: bin
18
- has_rdoc: false
18
+ has_rdoc: true
19
19
  required_ruby_version: !ruby/object:Gem::Version::Requirement
20
20
  requirements:
21
21
  - - ">"
@@ -48,6 +48,7 @@ files:
48
48
  - lib/rfacebook_on_rails/plugin/Rakefile.rb
49
49
  - lib/rfacebook_on_rails/plugin/uninstall.rb
50
50
  - lib/rfacebook_on_rails/templates/debug_panel.rhtml
51
+ - lib/rfacebook_on_rails/templates/exception_backtrace.rhtml
51
52
  - README
52
53
  test_files: []
53
54
 
@@ -59,8 +60,9 @@ executables: []
59
60
 
60
61
  extensions: []
61
62
 
62
- requirements: []
63
-
63
+ requirements:
64
+ - Hpricot version >= 0.6.0 (has better handling of XML than previous versions)
65
+ - Mocha version >= 0.5.3 (used for unit testing of the Gem and Rails Plugin)
64
66
  dependencies:
65
67
  - !ruby/object:Gem::Dependency
66
68
  name: hpricot
@@ -71,3 +73,12 @@ dependencies:
71
73
  - !ruby/object:Gem::Version
72
74
  version: 0.6.0
73
75
  version:
76
+ - !ruby/object:Gem::Dependency
77
+ name: mocha
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Version::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 0.5.3
84
+ version: