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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c2974493d451a951be87eec5c8909963f7bc8ce
4
- data.tar.gz: 65a3d3072f97d3afa44a49f88a5316dde1a83b7d
3
+ metadata.gz: 39924c8d796d9a87ad852d2ee481a202700072c2
4
+ data.tar.gz: 9fc626218a52979e7bb0201022d0f1c4fbe8afc4
5
5
  SHA512:
6
- metadata.gz: 4eb6a694232c72d9211f86a947ccbb66019a2638b3f43621d97e3ef28a11e738cea336a115c4855e64f97069b4244c5c89086391401b74e7493142e91caf1877
7
- data.tar.gz: ca4a4ad054d4397f917dae5cdc2249e5a6d4ae9ce599eb3495b0da6101514e862e1907a8f09b52db76340f27957b4a8c17b3eee4b25c98277cb8d88a647cb0dc
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['auth_key'] and !auth_key
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
@@ -168,7 +168,7 @@ class VaeLocal
168
168
  else
169
169
  show_job_status(res, site)
170
170
  end
171
- rescue RestClient::Found
171
+ rescue RestClient::Found => e
172
172
  raise VaeError, "Invalid username/password or insufficient permissions."
173
173
  end
174
174
 
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VER = "0.8.6"
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.6
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-09 00:00:00.000000000 Z
12
+ date: 2018-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png