Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tidy up

  • Loading branch information...
commit 44299900c65743a0fbf96577d37d235eb062e1db 1 parent 58c5e41
Paul Gallagher authored June 30, 2009
4  lib/oauth_system.rb
@@ -58,9 +58,9 @@ def callback
58 58
 
59 59
 protected
60 60
   
61  
-    # Inclusion hook to make #current_user, #logged_in?, :authorized? available as ActionView helper methods.
  61
+    # Inclusion hook to make #current_user, #logged_in? available as ActionView helper methods.
62 62
     def self.included(base)
63  
-      base.send :helper_method, :current_user, :logged_in?,:authorized? if base.respond_to? :helper_method
  63
+		base.send :helper_method, :current_user, :logged_in? if base.respond_to? :helper_method
64 64
     end
65 65
 
66 66
 
25  lib/twitter_oauth.rb
@@ -47,12 +47,6 @@ def exchange_request_for_access_token( request_token,  request_token_secret, oau
47 47
 			raise err
48 48
 		end
49 49
 	end
50  
-	
51  
-	# helper 
52  
-#	def  request_token( request_token,  request_token_secret )
53  
-#		#RAILS_DEFAULT_LOGGER.info "TwitterOauth. request_token: request_token=#{request_token}, request_token_secret=#{request_token_secret}" 
54  
-#		OAuth::RequestToken.new(self.consumer, request_token, request_token_secret)
55  
-#   end
56 50
 
57 51
 	# gets a request token to be used for the authorization request to twitter 
58 52
 	def get_request_token( oauth_callback = TWOAUTH_CALLBACK )
@@ -289,6 +283,25 @@ def mentions( since_id = nil, max_id = nil , count = nil, page = nil )
289 283
 	end
290 284
 	
291 285
 
  286
+	# debug routines
  287
+	
  288
+	def dump_friends( screen_name = nil )
  289
+		puts "friends list for #{ screen_name ? screen_name : 'self' }.."
  290
+		friends = self.friends( screen_name )
  291
+		friends.each do |friend|
  292
+			puts "\t#{friend['screen_name']}"
  293
+		end
  294
+		puts "end friends list for #{ screen_name ? screen_name : 'self' }.."
  295
+	end
  296
+	
  297
+	def dump_followers( screen_name = nil )
  298
+		puts "followers list for #{ screen_name ? screen_name : 'self' }.."
  299
+		friends = self.followers( screen_name )
  300
+		friends.each do |friend|
  301
+			puts "\t#{friend['screen_name']}"
  302
+		end
  303
+		puts "end followers list for #{ screen_name ? screen_name : 'self' }.."
  304
+	end	
292 305
 	
293 306
 end
294 307
 

0 notes on commit 4429990

Please sign in to comment.
Something went wrong with that request. Please try again.