ton-client-ruby 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code_generator/code_generator.rb +10 -2
- data/lib/ton-client-ruby/Client/Debot.rb +1 -1
- data/lib/ton-client-ruby/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: fd84135f0e4bb61916a61ac64923859a91d37f361d3b67402c3b9a11bc9306eb
|
4
|
+
data.tar.gz: f9297d3056cd3c6c3a18ef1e070b6886ff7b98d281b960adee0e2de2e78cba24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e22ba46ebc38685532cadaf35fdcf68c85e2b07f92cb2634d49636db6911599c6dfd8d00da88ba3b3eb3ae3a78bece3b01b2bce58e1fcc0c97a009cce81af336
|
7
|
+
data.tar.gz: 33c351ff4bb182a0dfdc6fe612cccad23ff68643eab9a220236eedfa0610ceb06ad345206e07cee3e960683851abf70b8aa0a7453878bc634109d73d150bd154
|
@@ -175,6 +175,13 @@ curl https://raw.githubusercontent.com/tonlabs/TON-SDK/master/tools/api.json > a
|
|
175
175
|
```\n\n
|
176
176
|
```\n
|
177
177
|
ton-client-ruby update ./api.json\n
|
178
|
+
```\n
|
179
|
+
or\n\n
|
180
|
+
```\n
|
181
|
+
cd ton-client-ruby\n
|
182
|
+
```\n\n
|
183
|
+
```\n
|
184
|
+
./bin/ton-client-ruby update\n
|
178
185
|
```\n
|
179
186
|
}
|
180
187
|
content = checkContent(content)
|
@@ -276,12 +283,13 @@ ton-client-ruby update ./api.json\n
|
|
276
283
|
private def gen_function(function, types)
|
277
284
|
content = getFunctionComment(function, types)
|
278
285
|
content << "#{TAB}#{TAB}def #{function.name}"
|
286
|
+
sdk_method_name = function.name == 'init' ? "'initialize'" : '__method__.to_s'
|
279
287
|
if function.arguments.empty?
|
280
288
|
content << "(&block)\n"
|
281
|
-
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE,
|
289
|
+
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, #{sdk_method_name}), payload: {}, &block)\n"
|
282
290
|
else
|
283
291
|
content << "(payload, &block)\n"
|
284
|
-
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE,
|
292
|
+
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, #{sdk_method_name}), payload: payload, &block)\n"
|
285
293
|
end
|
286
294
|
content << "#{TAB}#{TAB}end\n\n"
|
287
295
|
|
@@ -18,7 +18,7 @@ module TonClient
|
|
18
18
|
# debot_abi: String - # # Debot abi as json string.
|
19
19
|
# info: DebotInfo - # # Debot metadata.
|
20
20
|
def init(payload, &block)
|
21
|
-
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE,
|
21
|
+
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, 'initialize'), payload: payload, &block)
|
22
22
|
end
|
23
23
|
|
24
24
|
# INPUT: ParamsOfStart
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ton-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nerzh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|