neon_api 0.1.6 → 0.1.7

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: e3ad67af734dbf0937cbd2619b09fa7f0a9b69fd
4
- data.tar.gz: c462a501ad976b369bacbcda3d8d69adfda6c515
3
+ metadata.gz: 42da514fdc44536a11b8a0fa8ef95ef20726d3ea
4
+ data.tar.gz: 430901b66707e2ee5a069f9e536baa24cdba20f2
5
5
  SHA512:
6
- metadata.gz: be704db7bed792423df83b9c651d05b9aa26e9c03f0d337a7a2ae642cf0d95ad110a222d72b7bbd09c5a3147ddf47e7d00e2a4ac95329a670e2f5e1681e14333
7
- data.tar.gz: a9d0f8c449e8f0f9523c71c3ed258bad6dc4a962c6c73b3e4d06441e3428ad14328edf0f6cc9adfe5d46ca428e44aa80731c65f3b7cfc1947d5b488997033650
6
+ metadata.gz: 20eeecc5f02c9a79b31f3a79db3dd86537a0fb3a3e0135ff6722cdfcfefbf6b8f7460affa21ee269c9c626bb252ce81666679d6fe79c4f653fc8c5d182c1ea79
7
+ data.tar.gz: d58222acc39564beaa608c28e95174b961b4fd971b93e2cfb77aebdc51a3b07a48c49a7d0f0dbd076c585538744310793efae83e8e1055c1e20505a05fb0464e
@@ -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']
@@ -1,3 +1,3 @@
1
1
  module NeonApi
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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: 2017-12-24 00:00:00.000000000 Z
11
+ date: 2018-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler