mixin_bot 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixin_bot/api/user.rb +10 -1
- data/lib/mixin_bot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f2511bfcedc7830c107d0391dcf70b6312df06e6fe5e4a7a3fe87d9e01eecbb
|
4
|
+
data.tar.gz: 767b15073c03f315d25ddd28cc3fb6058d091d9705228608b09d324870eb9221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65c555699eae57ff19352a63618e555d7ab8feeb69f18c5199926c00255f20b11c6f954c201665ca8bce7cd3df1bddf54be3caa9e076209d3142c049f1427e3f
|
7
|
+
data.tar.gz: d78eeff877df1cd5b2d0e8a2491dfac42e93659cf18f3762b5b84d119df29c86c6d0b9442d29999437914fed2a95ebe49d2239eaf7ef2f7f5a16b7a3d456b7e3
|
data/lib/mixin_bot/api/user.rb
CHANGED
@@ -60,7 +60,16 @@ module MixinBot
|
|
60
60
|
# wait for tip pin update in server
|
61
61
|
sleep 1
|
62
62
|
|
63
|
-
|
63
|
+
@__retry__ = 0
|
64
|
+
begin
|
65
|
+
user_api.safe_register keystore[:spend_key]
|
66
|
+
rescue MixinBot::Error => e
|
67
|
+
@__retry__ += 1
|
68
|
+
raise e if @__retry__ > 3
|
69
|
+
|
70
|
+
sleep 1 + @__retry__
|
71
|
+
retry
|
72
|
+
end
|
64
73
|
|
65
74
|
keystore
|
66
75
|
end
|
data/lib/mixin_bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixin_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- an-lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
321
|
- !ruby/object:Gem::Version
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
|
-
rubygems_version: 3.5.
|
324
|
+
rubygems_version: 3.5.17
|
325
325
|
signing_key:
|
326
326
|
specification_version: 4
|
327
327
|
summary: A Ruby SDK for Mixin Nexwork
|