lib/ayadn/status.rb in ayadn-1.5.1 vs lib/ayadn/status.rb in ayadn-1.6.0
- old
+ new
@@ -120,10 +120,13 @@
"\nUser #{username} has been unblocked.\n".color(:green)
end
def self.blocked(username)
"\nUser #{username} has been blocked.\n".color(:green)
end
+ def self.error_missing_title
+ "\nYou have to specify (part of) a movie title.\n".color(:red)
+ end
def self.error_missing_username
"\nYou have to specify a username.\n".color(:red)
end
def self.error_missing_post_id
"\nYou have to specify a post id.\n".color(:red)
@@ -153,12 +156,16 @@
"\nPosting as ".color(:cyan) + "#{Settings.config[:identity][:handle]}".color(:green) + ".".color(:cyan)
end
def self.yourpost
"Your post:\n\n".color(:cyan)
end
- def self.yourmessage
- "Your message:\n\n".color(:cyan)
+ def self.yourmessage username = nil
+ if username.nil?
+ "Your message:\n\n".color(:cyan)
+ else
+ "Your message to ".color(:cyan) + username.color(:green) + ":\n\n".color(:cyan)
+ end
end
def self.message_from(username)
"\nMessage from ".color(:cyan) + "#{Settings.config[:identity][:handle]} ".color(:green) + "to ".color(:cyan) + "#{username[0]}".color(:yellow) + ".".color(:cyan)
end
def self.replying_to(post_id)
@@ -290,8 +297,17 @@
def self.itunes_store
"Fetching informations from the Itunes Store...\n".color(:green)
end
def self.fetching_from source
"\nFetching informations from #{source}...\n".color(:green)
+ end
+ def self.no_movie
+ "\nSorry, can't find this movie.\n".color(:blue)
+ end
+ def self.no_show
+ "\nSorry, can't find this show.\n".color(:blue)
+ end
+ def self.no_show_infos
+ "\nSorry, can't find informations about this show.\n".color(:blue)
end
end
end