Skip to content
Browse files

Removed text confirming connection success.

Added information on server version.
  • Loading branch information...
1 parent ec4eb9f commit 2813f55752e08a1ac8eee8ddedc013fb37167be0 @frcepeda committed May 22, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 letscrate.rb
View
7 letscrate.rb
@@ -34,7 +34,7 @@
require 'digest/sha1'
require 'date'
-VERSION = "v1.9.5"
+VERSION = "v1.9.5.1"
APIVERSION = "1"
BaseURL = "https://api.letscrate.com/1/"
@@ -199,8 +199,7 @@ def IDsvalid?(ids)
end
def requestSuccess?(response) # This checks if the request was successful or prints error messages if it went wrong.
- if response.success?
- info "Got response from server."
+ if response.success?
return true
elsif response.timed_out?
printError(STR_TIMEOUT, "TimeOut")
@@ -448,6 +447,8 @@ def latestversion?
current = current * 10
end
+ info "Server has version #{data[0][1..-1]}."
+
if local < current
info "New version detected. #{data[0]}"
return false

0 comments on commit 2813f55

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