mixin_bot 1.2.0 → 1.2.1
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34604a6a665ba47f14e69d97225780ca5b984df2344e5f32360f301eadab4616
|
4
|
+
data.tar.gz: 8d6fe1b40cada9bb7a693d91e77a924e055b36b31d808eecc61bee49c32af85f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 171af7dcf939b1c60b3cd24fc931c46507c22b09d417ba349005e6a4da02004319dd8665e4bcf6f655057a4569d1def480174e10fc1932df605cf03bd336389c
|
7
|
+
data.tar.gz: 7a7ca4e4b325a5ece9b04d6d8ffa621d630412a5911432056f88106813778c4dfa0f76eec8e2eafc169d448793f34bac053bff8c215e9fad9844f87116fdc994
|
data/lib/mixin_bot/api/user.rb
CHANGED
@@ -103,7 +103,16 @@ module MixinBot
|
|
103
103
|
# wait for tip pin update in server
|
104
104
|
sleep 1
|
105
105
|
|
106
|
-
|
106
|
+
@__retry__ = 0
|
107
|
+
begin
|
108
|
+
safe_register pin, spend_key
|
109
|
+
rescue MixinBot::Error => e
|
110
|
+
@__retry__ += 1
|
111
|
+
raise e if @__retry__ > 3
|
112
|
+
|
113
|
+
sleep 1 + @__retry__
|
114
|
+
retry
|
115
|
+
end
|
107
116
|
|
108
117
|
{
|
109
118
|
spend_key:
|
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.1
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|