lib/stars/client.rb in stars-0.1.0 vs lib/stars/client.rb in stars-0.1.1
- old
+ new
@@ -1,9 +1,11 @@
module Stars
class Client
- def self.load!
+ def self.load!(new_username=nil)
+ remember_username(new_username) if new_username
favstar = Stars::Favstar.new(username)
+ puts "\n ★ by @#{username}"
puts Stars::Formatter.new(favstar.recent)
end
def self.username
File.exists?(config_path) ? File.read(config_path) : prompt_for_username
\ No newline at end of file