neon_api 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neon_api/client.rb +2 -1
- data/lib/neon_api/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: 42da514fdc44536a11b8a0fa8ef95ef20726d3ea
|
4
|
+
data.tar.gz: 430901b66707e2ee5a069f9e536baa24cdba20f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20eeecc5f02c9a79b31f3a79db3dd86537a0fb3a3e0135ff6722cdfcfefbf6b8f7460affa21ee269c9c626bb252ce81666679d6fe79c4f653fc8c5d182c1ea79
|
7
|
+
data.tar.gz: d58222acc39564beaa608c28e95174b961b4fd971b93e2cfb77aebdc51a3b07a48c49a7d0f0dbd076c585538744310793efae83e8e1055c1e20505a05fb0464e
|
data/lib/neon_api/client.rb
CHANGED
@@ -20,7 +20,7 @@ module NeonApi
|
|
20
20
|
@decrypt_pem = decrypt_pem
|
21
21
|
@proxy = proxy
|
22
22
|
@time_klass = Time.respond_to?(:zone) ? Time.zone : Time
|
23
|
-
@expire_time = time_klass.now
|
23
|
+
@expire_time = time_klass.now - 3600 # initialize in an expired condition to force first authentication
|
24
24
|
|
25
25
|
RestClient.proxy = @proxy if @proxy
|
26
26
|
end
|
@@ -83,6 +83,7 @@ module NeonApi
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def update_auth(auth_answer)
|
86
|
+
@data_return = auth_answer['DataReturn']
|
86
87
|
@auth_token = auth_answer['DataReturn']['Token']
|
87
88
|
@aes_key = auth_answer['DataReturn']['AESKey']
|
88
89
|
@aes_iv = auth_answer['DataReturn']['AESIV']
|
data/lib/neon_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neon_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Hamdan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|