vae 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/site.rb +5 -4
- data/lib/vae_local.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39924c8d796d9a87ad852d2ee481a202700072c2
|
4
|
+
data.tar.gz: 9fc626218a52979e7bb0201022d0f1c4fbe8afc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dffb28f5f715e02402c63ea45908dd1a4ca9e282be6314487e07b51182eb61135c958c39294d01835379950f9c1a0fd2e1e2e57e2aa06533a264b37dddb20f37
|
7
|
+
data.tar.gz: 03e23527502a066b8bc8f04ced5b03d5a10abcb6031c0d9d235562716aa3f6ea80c2265f6a4ec99f90324d2cf23f4c1e880e2d721f763705d9b619c63018c340
|
data/lib/site.rb
CHANGED
@@ -32,16 +32,17 @@ class Site
|
|
32
32
|
end
|
33
33
|
res = fetch_from_server(req)
|
34
34
|
data = JSON.parse(res.body)
|
35
|
-
if data[
|
36
|
-
VaeLocal.write_auth_key(subdomain, data['auth_key'])
|
37
|
-
end
|
38
|
-
if data == nil
|
35
|
+
if data == nil or data == []
|
39
36
|
raise VaeError, "Invalid password or insufficient permissions."
|
40
37
|
elsif data['alert']
|
41
38
|
puts data['alert']
|
42
39
|
elsif data['valid'] != "valid"
|
43
40
|
raise VaeError, "Invalid password or insufficient permissions."
|
44
41
|
end
|
42
|
+
if data['auth_key'] and !auth_key
|
43
|
+
VaeLocal.write_auth_key(subdomain, data['auth_key'])
|
44
|
+
@auth_key = data['auth_key']
|
45
|
+
end
|
45
46
|
data
|
46
47
|
rescue JSON::ParserError
|
47
48
|
raise VaeError, "An unknown error occurred signing into Vae Platform. Please email support for help."
|
data/lib/vae_local.rb
CHANGED
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VER = "0.8.
|
1
|
+
VER = "0.8.7"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Action Verb, LLC
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-02
|
12
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chunky_png
|