predictionio 0.7.1.beta1 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/predictionio/client.rb +3 -3
- data/lib/predictionio/connection.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a0cd7b4e99c6db76f57ca47d07b96c3c53820e8
|
4
|
+
data.tar.gz: d46e42deee2a425b7fdd9bc77f146ef6ed722a21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39451eb1e6eb960b0213d88e3f3c46b6f6ba99117ad2be4c012e63451c6a993d53520535703c015db0c2043948bd1b23d5b9e80f7c54423723cd37bc8e416923
|
7
|
+
data.tar.gz: 1c5e961a5933288e91af6616cd53376811dc5d4b62f27b469e6fa929f138cc5748a0fd9618ab117d29db228103f4d352d7055164bffdfd07b5f3c746a44fba7d
|
data/lib/predictionio/client.rb
CHANGED
@@ -161,9 +161,9 @@ module PredictionIO
|
|
161
161
|
class U2IActionNotCreatedError < StandardError; end
|
162
162
|
|
163
163
|
# Create a new PredictionIO client with default:
|
164
|
-
# -
|
165
|
-
# - API
|
166
|
-
# -
|
164
|
+
# - 10 concurrent HTTP(S) connections (threads)
|
165
|
+
# - API entry point at http://localhost:8000 (apiurl)
|
166
|
+
# - a 60-second timeout for each HTTP(S) connection (thread_timeout)
|
167
167
|
def initialize(appkey, threads = 10, apiurl = "http://localhost:8000", thread_timeout = 60)
|
168
168
|
@appkey = appkey
|
169
169
|
@apiformat = "json"
|
@@ -13,7 +13,7 @@ module PredictionIO
|
|
13
13
|
attr_reader :timeout
|
14
14
|
|
15
15
|
# Spawns a number of threads with persistent HTTP connection to the specified URI.
|
16
|
-
# Sets a default timeout of
|
16
|
+
# Sets a default timeout of 60 seconds.
|
17
17
|
def initialize(uri, threads = 1, timeout = 60)
|
18
18
|
@packages = Queue.new
|
19
19
|
@counter_lock = Mutex.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: predictionio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.1
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The PredictionIO Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
PredictionIO is a prediction server for building smart applications. This gem
|
@@ -38,9 +38,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '1.9'
|
39
39
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - '
|
41
|
+
- - '>='
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: '0'
|
44
44
|
requirements: []
|
45
45
|
rubyforge_project:
|
46
46
|
rubygems_version: 2.0.14
|