predictionio 0.8.0 → 0.8.2.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc02d867a2b406fd1b936187c0cc13a3ca3352cb
4
- data.tar.gz: 4b29fa04ca835cfe1294080f3f40e3d5a83b6af4
3
+ metadata.gz: dd30688d83aedd5e4f1d2f6f7bd52daf0a3294dc
4
+ data.tar.gz: 6b59b2ab5ab48e4874e15ea8bfaab49fc1dcadda
5
5
  SHA512:
6
- metadata.gz: fd0f40e0dcf0492fbb2c74af5c104ccd07d66832a416bb39fec3ed52525bddbf8636a0879f9034b7d489832747aa10fd3b6f6206e88d36c4f047c4e470caca83
7
- data.tar.gz: 934022684046923e653e5f13ae6ce395c6e921f60242a36d221d69689f39e93e7958f416d6585d46fd9e482ddf1874781e935fe986e5e53941f0a271045b98bb
6
+ metadata.gz: 933590624c4c612dc5192eb4c3ed458edc3d5a557067a78ecff9b7c5a72d8036d6cd9eb1fd1b3a9bfe29f312d4338b054ea1a86c64b983f6a71aaaf54e882b87
7
+ data.tar.gz: 8547a8cb09a0eeeac158523a9c86d7a8949da7beabe30d428cf454de99bcef03240110aac5b61d37a5e5b3f35362523593c749c48d85d47fb819251fa04bdb35
@@ -49,7 +49,7 @@ module PredictionIO
49
49
 
50
50
  # Create a new PredictionIO Event Client with defaults:
51
51
  # - 1 concurrent HTTP(S) connections (threads)
52
- # - API entry point at http://localhost:7070 (apiurl)
52
+ # - API entry point at http://localhost:8000 (apiurl)
53
53
  # - a 60-second timeout for each HTTP(S) connection (thread_timeout)
54
54
  def initialize(apiurl = 'http://localhost:8000', threads = 1,
55
55
  thread_timeout = 60)
@@ -41,7 +41,7 @@ module PredictionIO
41
41
  # # Include the PredictionIO SDK
42
42
  # require 'predictionio'
43
43
  #
44
- # client = PredictionIO::EventClient.new(<app_id>)
44
+ # client = PredictionIO::EventClient.new(<access_key>)
45
45
  #
46
46
  # === Import a User Record from Your App (with asynchronous/non-blocking
47
47
  # requests)
@@ -84,9 +84,9 @@ module PredictionIO
84
84
  # - 1 concurrent HTTP(S) connections (threads)
85
85
  # - API entry point at http://localhost:7070 (apiurl)
86
86
  # - a 60-second timeout for each HTTP(S) connection (thread_timeout)
87
- def initialize(app_id, apiurl = 'http://localhost:7070', threads = 1,
87
+ def initialize(access_key, apiurl = 'http://localhost:7070', threads = 1,
88
88
  thread_timeout = 60)
89
- @app_id = app_id
89
+ @access_key = access_key
90
90
  @http = PredictionIO::Connection.new(URI(apiurl), threads, thread_timeout)
91
91
  end
92
92
 
@@ -135,11 +135,12 @@ module PredictionIO
135
135
  def acreate_event(event, entity_type, entity_id, optional = {})
136
136
  h = optional
137
137
  h.key?('eventTime') || h['eventTime'] = DateTime.now.to_s
138
- h['appId'] = @app_id
139
138
  h['event'] = event
140
139
  h['entityType'] = entity_type
141
140
  h['entityId'] = entity_id
142
- @http.apost(PredictionIO::AsyncRequest.new('/events.json', h.to_json))
141
+ @http.apost(PredictionIO::AsyncRequest.new(
142
+ "/events.json?accessKey=#{@access_key}", h.to_json
143
+ ))
143
144
  end
144
145
 
145
146
  # :category: Synchronous Methods
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.8.0
4
+ version: 0.8.2.pre
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-09-23 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  PredictionIO is a prediction server for building smart applications. This gem
@@ -41,9 +41,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
41
  version: '1.9'
42
42
  required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ">="
44
+ - - ">"
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
46
+ version: 1.3.1
47
47
  requirements: []
48
48
  rubyforge_project:
49
49
  rubygems_version: 2.2.2