starkcore 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 3c9293c96de36e40de9041b365e5e8022680065be489eaf39074dbb811ce1e0b
4
- data.tar.gz: be929408d2b8dbdc6eb4bf020be8df665b260dfc235cc215cf28695d64148812
3
+ metadata.gz: 9482e0276dfe9799cf2feb8ba3d0efd9f18c3bc14dcbcdb97f4db3cb4a3571a6
4
+ data.tar.gz: 68e52a75ad9c070c1c48a5914d03edf3694cb8de9c8582be6edbfbc21ce70e73
5
5
  SHA512:
6
- metadata.gz: 45b6a9058d61c39da5f8c1a4e95b0c05969b3bda2117dc3c3a8cdd700696b6e4d60d7debd7d554822f93211c838a00b409c2b316584cdb15b508b503729f0d91
7
- data.tar.gz: 3256cedeb812c826007f3db94bd24a9bf2ec762522e8a22a9511c72eca1559698465e07794df7e98e061d04e1a3e51bb41610ee575587f35491d1e21c4865148
6
+ metadata.gz: 8b39b6e8b54f94d07019aa2a07f48c80b29a5ac7001398b3495d131c72a832e2a18c676953cb174444a30274eb6380c0ab6dc7defa9cd09f9cef5fbc4fba6497
7
+ data.tar.gz: c04bd2311ec6d37a1a515df33d11969f094ca8ae6a6dcc9896e665667c4c308a10d4dfa8a9c3693b4e5231f23de9a1e02fbed3eaf51ee4871e932f7f21c9e101
data/lib/utils/parse.rb CHANGED
@@ -70,8 +70,10 @@ module StarkCore
70
70
  user: user,
71
71
  language: language,
72
72
  timeout: timeout,
73
- limit: 1
74
- )['publicKeys'][0]['content']
73
+ query: {"limit": 1},
74
+ prefix: nil,
75
+ raiseException: true
76
+ ).json['publicKeys'][0]['content']
75
77
  public_key = EllipticCurve::PublicKey.fromPem(pem)
76
78
  StarkCore::Utils::Cache.starkbank_public_key = public_key
77
79
  return public_key
data/lib/utils/rest.rb CHANGED
@@ -208,7 +208,7 @@ module StarkCore
208
208
  timeout: timeout,
209
209
  prefix: prefix,
210
210
  raiseException: raiseException
211
- ).json
211
+ )
212
212
  return json
213
213
  end
214
214
 
@@ -226,7 +226,7 @@ module StarkCore
226
226
  timeout: timeout,
227
227
  prefix: prefix,
228
228
  raiseException: raiseException
229
- ).json
229
+ )
230
230
  return json
231
231
  end
232
232
 
@@ -244,7 +244,7 @@ module StarkCore
244
244
  timeout: timeout,
245
245
  prefix: prefix,
246
246
  raiseException: raiseException
247
- ).json
247
+ )
248
248
  return json
249
249
  end
250
250
 
@@ -262,7 +262,7 @@ module StarkCore
262
262
  timeout: timeout,
263
263
  prefix: prefix,
264
264
  raiseException: raiseException
265
- ).json
265
+ )
266
266
  return json
267
267
  end
268
268
 
@@ -279,7 +279,7 @@ module StarkCore
279
279
  timeout: timeout,
280
280
  prefix: prefix,
281
281
  raiseException: raiseException
282
- ).json
282
+ )
283
283
  return json
284
284
  end
285
285
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starkcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - starkinfra