ton-client-ruby 1.1.4 → 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/bin/ton-client-ruby +4 -4
- data/lib/code_generator/api.json +12230 -0
- data/lib/code_generator/code_generator.rb +12 -3
- data/lib/code_generator/release.rb +48 -0
- data/lib/ton-client-ruby/Client/Abi.rb +22 -0
- data/lib/ton-client-ruby/Client/Boc.rb +56 -1
- data/lib/ton-client-ruby/Client/Debot.rb +1 -1
- data/lib/ton-client-ruby/version.rb +1 -1
- metadata +5 -3
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
|
data/bin/ton-client-ruby
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
require File.dirname(__FILE__) + '/../lib/code_generator/api_converter.rb'
|
4
4
|
require File.dirname(__FILE__) + '/../lib/code_generator/code_generator.rb'
|
5
|
-
|
6
5
|
GEM_DIR = File.dirname(__FILE__) + '/..'
|
7
6
|
|
8
7
|
if ARGV[0] == 'update' && ARGV[1] == nil
|
@@ -20,7 +19,7 @@ if ARGV[0] == 'update' && ARGV[1] == nil
|
|
20
19
|
types = converter.convert
|
21
20
|
generator = CodeGenerator.new(types, GEM_DIR)
|
22
21
|
generator.generate_self_code
|
23
|
-
system(%{bash -lc 'ruby #{script_file_path}/../release.rb'})
|
22
|
+
system(%{bash -lc 'ruby #{script_file_path}/../lib/code_generator/release.rb'})
|
24
23
|
elsif ARGV[0] == 'update'
|
25
24
|
api_json_path = ARGV[1]
|
26
25
|
json = ''
|
@@ -34,7 +33,7 @@ elsif ARGV[0] == 'update'
|
|
34
33
|
types = converter.convert
|
35
34
|
generator = CodeGenerator.new(types, GEM_DIR)
|
36
35
|
generator.generate_self_code
|
37
|
-
system(%{bash -lc 'ruby #{script_file_path}/../release.rb'})
|
36
|
+
system(%{bash -lc 'ruby #{script_file_path}/../lib/code_generator/release.rb'})
|
38
37
|
|
39
38
|
elsif ARGV[0] == 'setup'
|
40
39
|
raise "\nPLEASE INSTALL RUST TO YOUR SYSTEM. \nTry this command: \ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" if `which rustc`.strip.empty?
|
@@ -45,6 +44,7 @@ elsif ARGV[0] == 'setup'
|
|
45
44
|
system("cd #{GEM_DIR}/TON-SDK && cargo update")
|
46
45
|
system("cd #{GEM_DIR}/TON-SDK && cargo build --release")
|
47
46
|
puts ''
|
48
|
-
puts "PATH TO YOR DYNAMIC LIBRARY IS: #{GEM_DIR}/TON-SDK/target/release/libton_client.dylib"
|
47
|
+
puts "PATH TO YOR DYNAMIC LIBRARY FOR MACOS IS: #{GEM_DIR}/TON-SDK/target/release/libton_client.dylib"
|
48
|
+
puts "PATH TO YOR DYNAMIC LIBRARY FOR LINUX IS: #{GEM_DIR}/TON-SDK/target/release/libton_client.so"
|
49
49
|
puts ''
|
50
50
|
end
|