cardano_wallet 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cardano_wallet/misc.rb +10 -0
- data/lib/cardano_wallet/version.rb +1 -1
- 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: f9ad05abba294de18063a3e1e381ce3e06e95644f4209526eba555f9a2504dae
|
4
|
+
data.tar.gz: 24ee6eeb1fd928c07df71c9e2875fae4b150c6ac564ecfd1775001f1d712468b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a94ebe1b3dc75ed9da0c3a7da543e607c3228baa1f9f127f09cd8d3f50e37f54dca7c2c6e84176f8ae4f0c8e0933e5c38b6dc536efddc98b5a2b34e5db7c4adf
|
7
|
+
data.tar.gz: '042836808eb65faf1a67f5508dd7ea12fd4b82c61cd6e7d9da8f4cb728fd45e6d9bf96ef1ea1afeedba8fdb56d9e53ff16a49dd08987edf678bd64aeb657708c'
|
data/lib/cardano_wallet/misc.rb
CHANGED
@@ -117,6 +117,16 @@ module CardanoWallet
|
|
117
117
|
'Accept' => 'application/json'} )
|
118
118
|
end
|
119
119
|
|
120
|
+
# Current SMASH health
|
121
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getCurrentSmashHealth
|
122
|
+
#
|
123
|
+
# @example
|
124
|
+
# smash_health({url: "https://smash.cardano-mainnet.iohk.io/"})
|
125
|
+
def smash_health(q = {})
|
126
|
+
q.empty? ? query = '' : query = CardanoWallet::Utils.to_query(q)
|
127
|
+
self.class.get("/smash/health#{query}")
|
128
|
+
end
|
129
|
+
|
120
130
|
end
|
121
131
|
|
122
132
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Proxy
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cardano_wallet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Stachyra
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|