buddy 0.5.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/buddy/service.rb CHANGED
@@ -41,11 +41,11 @@ module Buddy
41
41
 
42
42
  fun = case api_method
43
43
  when 'fql.query'
44
- lambda { MiniFB.fql(params[:access_token], params[:query], options) }
44
+ -> { MiniFB.fql(params[:access_token], params[:query], options) }
45
45
  when 'fql.multiquery'
46
- lambda { MiniFB.multifql(params[:access_token], params[:queries], options) }
46
+ -> { MiniFB.multifql(params[:access_token], params[:queries], options) }
47
47
  else
48
- lambda do
48
+ -> do
49
49
  if params[:access_token]
50
50
  options[:params] = params
51
51
  MiniFB.rest(params[:access_token], api_method, options)
data/lib/buddy/session.rb CHANGED
@@ -43,7 +43,7 @@ module Buddy
43
43
  end
44
44
 
45
45
  def install_url(options = {})
46
- "http://www.facebook.com/connect/uiserver.php?app_id=#{Buddy.current_config['app_id']}&next=#{options[:next]}&display=page&canvas=1&legacy_return=1&method=permissions.request#{"&perms="+Buddy.current_config['perms'] if Buddy.current_config['perms']}"
46
+ "http://www.facebook.com/connect/uiserver.php?app_id=#{Buddy.current_config['app_id']}&next=#{options[:next]}&display=page&locale=de_DE&return_session=0&fbconnect=0&canvas=1&legacy_return=1&method=permissions.request#{"&perms="+Buddy.current_config['perms'] if Buddy.current_config['perms']}"
47
47
  end
48
48
 
49
49
  def initialize(app_id, secret_key)
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 5
8
- - 2
9
- version: 0.5.2
7
+ - 6
8
+ - 0
9
+ version: 0.6.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ole Riesenberg
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-17 00:00:00 +01:00
17
+ date: 2010-10-06 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency