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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bac194ef9fbca1538626db3620e567139b7c0f2cf2320120adad8b20f329eef6
4
- data.tar.gz: 6f36fc1731fa80197d63a33d5136c9ec0a95d1d3dfab25ced74dd51b149e8364
3
+ metadata.gz: fd84135f0e4bb61916a61ac64923859a91d37f361d3b67402c3b9a11bc9306eb
4
+ data.tar.gz: f9297d3056cd3c6c3a18ef1e070b6886ff7b98d281b960adee0e2de2e78cba24
5
5
  SHA512:
6
- metadata.gz: 70efcc921039887fa9c49ba46e82624aa0312625b2dc6d4a16632a701fcbda638b2a2e313f17d575c0cb18428a9d67882bc3755c11c044c2cf913c5645eecf5a
7
- data.tar.gz: bd84442454242779b80bfac1b83271e9566c686c0bb0767e7f81037dad9f3d925d4593efb1c38168ed5f9da86bcd5758569c7fdf6f5bd48fef4f0a37c36c9b26
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, __method__.to_s), payload: {}, &block)\n"
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, __method__.to_s), payload: payload, &block)\n"
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, __method__.to_s), payload: payload, &block)
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
@@ -1,4 +1,4 @@
1
1
  module TonClient
2
- VERSION = "1.1.9"
2
+ VERSION = "1.1.10"
3
3
  end
4
4
 
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.9
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-20 00:00:00.000000000 Z
11
+ date: 2021-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi