WinkerAI 0.0.02 → 0.0.03

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: fb8830fa21d5e89f783637e3054c565381e3d6b7
4
- data.tar.gz: c576014ef7919633c93268bb578b21d5762560d8
3
+ metadata.gz: 65d2253046c30ad2e2228305d0dffc4bf230d367
4
+ data.tar.gz: bf70da91e25dcc0edebb0cd985f2044f407f48ac
5
5
  SHA512:
6
- metadata.gz: 402837b989124f05e502a18d5e371e8f7d4cf4414c3c4db5a219b6afa4ede0aeb303998c0eadfad707728c9e6320a9a932dc8a19f9926ba28e2d187b1c5567f8
7
- data.tar.gz: 88af93279e7e53570a429e1fc0ed34ef659ede3b7ae2379407d6cc049216f8e877d9dfbcc0aee8126c9f73ec20a4fde05cb0b91a84a6683b78157a45f6bed9ce
6
+ metadata.gz: 5e436dc282ade0be1f9760ba4a6a4216707e89ceb8d1124338719cda92611b50c20e585b1a34a93b2a43cca57ce66965146e4559bf72774e3c0009b0f8664ad8
7
+ data.tar.gz: 0181aeec51925ef80def84b0ef28beb06a8daf527fccfa843be9d060ecbc14b0fb6ae06f27dd7ce4b35527c7955bf463c1a3c82097c08461024908399394de67
data/README.md CHANGED
@@ -36,6 +36,22 @@ First you will need to configure some ENV variables
36
36
  ENV['WINK_USERNAME']
37
37
  ENV['WINK_PASSWORD']
38
38
  ENV['WINK_ENDPOINT']
39
+ ENV['ECHO_SERVER_PORT'] #port that sinatra will run on
40
+
41
+ here is an example of my ~/.bash_profile
42
+
43
+ export WINK_CLIENT_ID="*******"
44
+ export WINK_CLIENT_SECRET="*******"
45
+ export WINK_ACCESS_TOKEN="********"
46
+ export WINK_REFRESH_TOKEN="********"
47
+ export WINK_USERNAME="email@domain.com"
48
+ export WINK_PASSWORD="*******"
49
+ export WINK_ENDPOINT="https://winkapi.quirky.com"
50
+
51
+ export ECHO_EMAIL="email@domain.com"
52
+ export ECHO_PASSWORD="**********"
53
+ export ECHO_SERVER_PORT="4567"
54
+ export ECHO_SERVER="http://localhost:$ECHO_SERVER_PORT/command"
39
55
 
40
56
  to run winker_ai server
41
57
 
@@ -2,6 +2,8 @@ require 'sinatra'
2
2
  module WinkerAI
3
3
  class HttpServer < Sinatra::Base
4
4
 
5
+ set :port, ENV["ECHO_SERVER_PORT"] rescue raise "You must specify the server port: ECHO_SERVER_PORT=4567"
6
+
5
7
  WinkerAI.setup
6
8
 
7
9
  get '/command' do
@@ -1,3 +1,3 @@
1
1
  module WinkerAI
2
- VERSION = "0.0.02"
2
+ VERSION = "0.0.03"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: WinkerAI
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.02
4
+ version: 0.0.03
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Mahan