lib/stars/client.rb in stars-0.5.0 vs lib/stars/client.rb in stars-0.5.1
- old
+ new
@@ -39,10 +39,10 @@
#
# Returns nothing.
def display(service=nil)
Stars.config.prompt_for_service if Stars.installed_services.empty?
- if service
+ if service && service != 'add'
posts = service.constantize.posts
else
posts = Stars.installed_services.collect{ |service|
service.constantize.posts }.flatten
end