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 +4 -4
- data/lib/utils/parse.rb +4 -2
- data/lib/utils/rest.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9482e0276dfe9799cf2feb8ba3d0efd9f18c3bc14dcbcdb97f4db3cb4a3571a6
|
4
|
+
data.tar.gz: 68e52a75ad9c070c1c48a5914d03edf3694cb8de9c8582be6edbfbc21ce70e73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
)
|
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
|
-
)
|
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
|
-
)
|
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
|
-
)
|
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
|
-
)
|
282
|
+
)
|
283
283
|
return json
|
284
284
|
end
|
285
285
|
|