rfacebook 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -148,8 +148,6 @@ module RFacebook
148
148
 
149
149
  def handle_facebook_login
150
150
 
151
- puts params.inspect
152
-
153
151
  if (params["auth_token"] and !in_facebook_canvas?)
154
152
 
155
153
  # create a session
@@ -94,6 +94,7 @@ production:
94
94
  desc "Start a reverse tunnel to develop from localhost. Please ensure that you have a properly configured config/facebook.yml file."
95
95
  task "start" => "environment" do
96
96
 
97
+ remoteUsername = FACEBOOK['tunnel']['username']
97
98
  remoteHost = FACEBOOK['tunnel']['host']
98
99
  remotePort = FACEBOOK['tunnel']['port']
99
100
  localPort = FACEBOOK['tunnel']['local_port']
@@ -122,7 +123,7 @@ Host #{remoteHost}
122
123
  ServerAliveInterval 120
123
124
  "
124
125
  puts "======================================================"
125
- exec "#{cmd} -nNT -g -R *:#{remotePort}:0.0.0.0:#{localPort} #{remoteHost}"
126
+ exec "#{cmd} -nNT -g -R *:#{remotePort}:0.0.0.0:#{localPort} #{remoteUsername}@#{remoteHost}"
126
127
 
127
128
 
128
129
  end
@@ -131,7 +132,7 @@ Host #{remoteHost}
131
132
  ######################################################################################
132
133
  desc "Check if reverse tunnel is running"
133
134
  task "status" => "environment" do
134
- if `ssh #{FACEBOOK['tunnel']['host']} netstat -an |
135
+ if `ssh #{FACEBOOK['tunnel']['username']}@#{FACEBOOK['tunnel']['host']} netstat -an |
135
136
  egrep "tcp.*:#{FACEBOOK['tunnel']['port']}.*LISTEN" | wc`.to_i > 0
136
137
  puts "Tunnel still running"
137
138
  else
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rfacebook
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.8.2
6
+ version: 0.8.3
7
7
  date: 2007-08-07 00:00:00 -07:00
8
8
  summary: A Ruby interface to the Facebook API v1.0+ (F8 and beyond). Works with RFacebook on Rails plugin (see rfacebook.rubyforge.org).
9
9
  require_paths: