starkcore 0.2.0 → 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 +10 -10
- metadata +2 -2
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
@@ -196,7 +196,7 @@ module StarkCore
|
|
196
196
|
return StarkCore::Utils::API.from_api_json(resource_maker, entity)
|
197
197
|
end
|
198
198
|
|
199
|
-
def self.get_raw(sdk_version:, host:, api_version:, path:, user:, language:, timeout:, prefix:, raiseException
|
199
|
+
def self.get_raw(sdk_version:, host:, api_version:, path:, query:, user:, language:, timeout:, prefix:, raiseException:)
|
200
200
|
json = StarkCore::Utils::Request.fetch(
|
201
201
|
host: host,
|
202
202
|
sdk_version: sdk_version,
|
@@ -208,11 +208,11 @@ 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
|
|
215
|
-
def self.post_raw(sdk_version:, host:, api_version:, user:, language:, path:, payload:, timeout:, prefix:, raiseException
|
215
|
+
def self.post_raw(sdk_version:, host:, api_version:, user:, language:, path:, query:, payload:, timeout:, prefix:, raiseException:)
|
216
216
|
json = StarkCore::Utils::Request.fetch(
|
217
217
|
host: host,
|
218
218
|
sdk_version: sdk_version,
|
@@ -226,11 +226,11 @@ 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
|
|
233
|
-
def self.patch_raw(sdk_version:, host:, api_version:, user:, language:, path:, payload:, timeout:, prefix:, raiseException
|
233
|
+
def self.patch_raw(sdk_version:, host:, api_version:, user:, language:, path:, query:, payload:, timeout:, prefix:, raiseException:)
|
234
234
|
json = StarkCore::Utils::Request.fetch(
|
235
235
|
host: host,
|
236
236
|
sdk_version: sdk_version,
|
@@ -244,11 +244,11 @@ 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
|
|
251
|
-
def self.put_raw(sdk_version:, host:, api_version:, user:, language:, path:, payload:, timeout:, prefix:, raiseException
|
251
|
+
def self.put_raw(sdk_version:, host:, api_version:, user:, language:, path:, query:, payload:, timeout:, prefix:, raiseException:)
|
252
252
|
json = StarkCore::Utils::Request.fetch(
|
253
253
|
host: host,
|
254
254
|
sdk_version: sdk_version,
|
@@ -262,11 +262,11 @@ 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
|
|
269
|
-
def self.delete_raw(sdk_version:, host:, api_version:, user:, language:, path:, timeout:, prefix:, raiseException
|
269
|
+
def self.delete_raw(sdk_version:, host:, api_version:, user:, language:, path:, query:, timeout:, prefix:, raiseException:)
|
270
270
|
json = StarkCore::Utils::Request.fetch(
|
271
271
|
host: host,
|
272
272
|
sdk_version: sdk_version,
|
@@ -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
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: starkcore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- starkinfra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: starkbank-ecdsa
|