everscale-client-ruby 1.1.34 → 1.1.42
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/api.json +10 -10
- data/lib/code_generator/api_converter.rb +0 -1
- data/lib/code_generator/code_generator.rb +5 -3
- data/lib/code_generator/helpers.rb +1 -2
- data/lib/everscale-client-ruby/version.rb +1 -1
- data/lib/everscale-client-ruby.rb +0 -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: 7783cddc1db07229987c81c69eb72463475588e0a9400dec911e90ec763fec58
|
4
|
+
data.tar.gz: b71007d082e0a73a3ffd1e22fee985eb91e92a50f73e4d92a91f233860de1880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80d51a8761a26138d819e028bc4b927f74d04588546b4764e81ef5fb78b92dfba28c9a9d1884806a6376b724e20b3f6b2d4561f2413dc3a0ca11a305073a0bc4
|
7
|
+
data.tar.gz: ed653ee71b16363f2cfd47d731b6dbf069fb293df7ba978bdf0e69600a51fc2000d665623107e435bc966bf2257d1a14aebcf2ba6ec7ceefdd42c087e3e68cf0
|
data/lib/code_generator/api.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.37.
|
2
|
+
"version": "1.37.1",
|
3
3
|
"modules": [
|
4
4
|
{
|
5
5
|
"name": "client",
|
@@ -7608,14 +7608,14 @@
|
|
7608
7608
|
}
|
7609
7609
|
],
|
7610
7610
|
"summary": "Pin the BOC with `pin` name.",
|
7611
|
-
"description": "Such BOC will not be removed from cache until it is unpinned"
|
7611
|
+
"description": "Such BOC will not be removed from cache until it is unpinned BOCs can have several pins and each of the pins has reference counter indicating how many\ntimes the BOC was pinned with the pin. BOC is removed from cache after all references for all\npins are unpinned with `cache_unpin` function calls."
|
7612
7612
|
},
|
7613
7613
|
{
|
7614
7614
|
"name": "Unpinned",
|
7615
7615
|
"type": "Struct",
|
7616
7616
|
"struct_fields": [],
|
7617
|
-
"summary": " ",
|
7618
|
-
"description":
|
7617
|
+
"summary": "BOC is placed into a common BOC pool with limited size regulated by LRU (least recently used) cache lifecycle.",
|
7618
|
+
"description": "BOC resides there until it is replaced with other BOCs if it is not used"
|
7619
7619
|
}
|
7620
7620
|
],
|
7621
7621
|
"summary": null,
|
@@ -8867,7 +8867,7 @@
|
|
8867
8867
|
},
|
8868
8868
|
{
|
8869
8869
|
"name": "cache_set",
|
8870
|
-
"summary": "Save BOC into cache",
|
8870
|
+
"summary": "Save BOC into cache or increase pin counter for existing pinned BOC",
|
8871
8871
|
"description": null,
|
8872
8872
|
"params": [
|
8873
8873
|
{
|
@@ -8905,8 +8905,8 @@
|
|
8905
8905
|
},
|
8906
8906
|
{
|
8907
8907
|
"name": "cache_unpin",
|
8908
|
-
"summary": "Unpin BOCs with specified pin
|
8909
|
-
"description":
|
8908
|
+
"summary": "Unpin BOCs with specified pin defined in the `cache_set`. Decrease pin reference counter for BOCs with specified pin defined in the `cache_set`. BOCs which have only 1 pin and its reference counter become 0 will be removed from cache",
|
8909
|
+
"description": null,
|
8910
8910
|
"params": [
|
8911
8911
|
{
|
8912
8912
|
"name": "context",
|
@@ -10681,7 +10681,7 @@
|
|
10681
10681
|
"number_type": "UInt",
|
10682
10682
|
"number_size": 64,
|
10683
10683
|
"summary": "Deprecated.",
|
10684
|
-
"description": "
|
10684
|
+
"description": "Contains the same data as ext_in_msg_fee field"
|
10685
10685
|
},
|
10686
10686
|
{
|
10687
10687
|
"name": "storage_fee",
|
@@ -10713,7 +10713,7 @@
|
|
10713
10713
|
"number_type": "UInt",
|
10714
10714
|
"number_size": 64,
|
10715
10715
|
"summary": "Deprecated.",
|
10716
|
-
"description": "
|
10716
|
+
"description": "Contains the same data as account_fees field"
|
10717
10717
|
},
|
10718
10718
|
{
|
10719
10719
|
"name": "total_output",
|
@@ -12554,7 +12554,7 @@
|
|
12554
12554
|
{
|
12555
12555
|
"name": "subscribe",
|
12556
12556
|
"summary": "Creates a subscription",
|
12557
|
-
"description": "The subscription is a persistent communication channel between\nclient and Everscale Network.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network
|
12557
|
+
"description": "The subscription is a persistent communication channel between\nclient and Everscale Network.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network breakes down.\nIn this situation the library attempts to reconnect to the network.\nThis reconnection sequence can take significant time.\nAll of this time the client is disconnected from the network.\n\nBad news is that all changes that happened while\nthe client was disconnected are lost.\n\nGood news is that the client report errors to the callback when\nit loses and resumes connection.\n\nSo, if the lost changes are important to the application then\nthe application must handle these error reports.\n\nLibrary reports errors with `responseType` == 101\nand the error object passed via `params`.\n\nWhen the library has successfully reconnected\nthe application receives callback with\n`responseType` == 101 and `params.code` == 614 (NetworkModuleResumed).\n\nApplication can use several ways to handle this situation:\n- If application monitors changes for the single\nobject (for example specific account): application\ncan perform a query for this object and handle actual data as a\nregular data from the subscription.\n- If application monitors sequence of some objects\n(for example transactions of the specific account): application must\nrefresh all cached (or visible to user) lists where this sequences presents.",
|
12558
12558
|
"params": [
|
12559
12559
|
{
|
12560
12560
|
"name": "context",
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'byebug'
|
2
1
|
require 'json'
|
3
2
|
require File.dirname(__FILE__) + '/helpers.rb'
|
4
3
|
|
@@ -53,12 +52,12 @@ class CodeGenerator
|
|
53
52
|
|
54
53
|
Install gem
|
55
54
|
```bash
|
56
|
-
gem install
|
55
|
+
gem install everscale-client-ruby
|
57
56
|
```
|
58
57
|
|
59
58
|
Install TON-SDK
|
60
59
|
```bash
|
61
|
-
|
60
|
+
everscale-client-ruby setup
|
62
61
|
# result - path to dylib file for everscale-client-ruby configuration
|
63
62
|
```
|
64
63
|
|
@@ -194,6 +193,9 @@ cd everscale-client-ruby\n
|
|
194
193
|
private def checkContent(content)
|
195
194
|
content.gsub!(/^([\s]+)# RESPONSE/, "\n\\1# RESPONSE")
|
196
195
|
content.gsub(/<Optional>/i, '<Optional>')
|
196
|
+
content.gsub(/(```ruby[\s\S]+?)<Optional>([\s\S]+?)```/, '\1<Optional>\2```')
|
197
|
+
content.gsub!(/ +# +# +/, " ")
|
198
|
+
content.gsub!(/ +# +/, '. ')
|
197
199
|
end
|
198
200
|
|
199
201
|
def customTypes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everscale-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nerzh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|