fbauth 1.2.0.3 → 1.2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.mdown +5 -0
  2. data/lib/fbauth/http.rb +2 -2
  3. metadata +4 -4
data/README.mdown CHANGED
@@ -227,6 +227,11 @@ haven't (that we recall) come across the answers to these questions yet:
227
227
 
228
228
  # Change Log #
229
229
 
230
+ v1.2.0.4
231
+
232
+ - Added support for Facebook iFrame POST behaviour
233
+ - Fixed bug in Memcache client where we were using keys > 250 chars
234
+
230
235
  v1.1.0.2
231
236
 
232
237
  - Added memcached caching of Facebook GET data, 60 seconds expiry
data/lib/fbauth/http.rb CHANGED
@@ -23,7 +23,7 @@ module FacebookHttp
23
23
  json = nil
24
24
  uri = URI.parse(build_get_url(url, params))
25
25
 
26
- json = Rails.cache.read(uri.to_s) if caching_enabled?
26
+ json = Rails.cache.read(uri.to_s) if caching_enabled? && uri.to_s.size < 250
27
27
  if json.nil?
28
28
  bench = Benchmark.measure do
29
29
  http = Net::HTTP.new uri.host, uri.port
@@ -42,7 +42,7 @@ module FacebookHttp
42
42
  end
43
43
  end
44
44
  logger.warn("Facebook GET call to #{uri.to_s} completed in #{bench.real} seconds")
45
- Rails.cache.write(uri.to_s, json, :expires_in => 60) if json && caching_enabled?
45
+ Rails.cache.write(uri.to_s, json, :expires_in => 60) if caching_enabled? && json && uri.to_s.size < 250
46
46
  end
47
47
  json
48
48
  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: 73
4
+ hash: 71
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 0
10
- - 3
11
- version: 1.2.0.3
10
+ - 4
11
+ version: 1.2.0.4
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-09 00:00:00 -05:00
19
+ date: 2011-03-12 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies: []
22
22