Fix documentation and bump version to 0.7.1
diff --git a/lib/predictionio/client.rb b/lib/predictionio/client.rb
index f925c91..4ef2992 100644
--- a/lib/predictionio/client.rb
+++ b/lib/predictionio/client.rb
@@ -161,9 +161,9 @@
class U2IActionNotCreatedError < StandardError; end
# Create a new PredictionIO client with default:
- # - API entry point at http://localhost:8000
- # - API return data format of json
- # - 10 concurrent HTTP(S) connections
+ # - 10 concurrent HTTP(S) connections (threads)
+ # - API entry point at http://localhost:8000 (apiurl)
+ # - a 60-second timeout for each HTTP(S) connection (thread_timeout)
def initialize(appkey, threads = 10, apiurl = "http://localhost:8000", thread_timeout = 60)
@appkey = appkey
@apiformat = "json"
diff --git a/lib/predictionio/connection.rb b/lib/predictionio/connection.rb
index 9823aff..d9bdc28 100644
--- a/lib/predictionio/connection.rb
+++ b/lib/predictionio/connection.rb
@@ -13,7 +13,7 @@
attr_reader :timeout
# Spawns a number of threads with persistent HTTP connection to the specified URI.
- # Sets a default timeout of 5 seconds.
+ # Sets a default timeout of 60 seconds.
def initialize(uri, threads = 1, timeout = 60)
@packages = Queue.new
@counter_lock = Mutex.new
diff --git a/predictionio.gemspec b/predictionio.gemspec
index 28bbe94..5c612e4 100644
--- a/predictionio.gemspec
+++ b/predictionio.gemspec
@@ -6,7 +6,7 @@
provides convenient access of the PredictionIO API to Ruby programmers so that
they can focus on their application logic.
EOF
- s.version = "0.7.1.beta1"
+ s.version = "0.7.1"
s.author = "The PredictionIO Team"
s.email = "support@prediction.io"
s.homepage = "http://prediction.io"