ton-client-ruby 1.1.4 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c9fc5ae4ebbafa98b4dbac75c341a0fd8251b1b436d9144f38593ccf1c78b5f
4
- data.tar.gz: c755cab58bbd5c4732c4b1dbd7568e426df1800c01fff3e2c59f5b1b00316dbd
3
+ metadata.gz: fd84135f0e4bb61916a61ac64923859a91d37f361d3b67402c3b9a11bc9306eb
4
+ data.tar.gz: f9297d3056cd3c6c3a18ef1e070b6886ff7b98d281b960adee0e2de2e78cba24
5
5
  SHA512:
6
- metadata.gz: 31c10726a5fff5796d7c4e9a02baee4d4c2c4fc9176ee6a4aa08c4c8fc1d31c098022d65ddb32479553e95e960ad08e539e81928646c4d1f94e26f0a8600b0ba
7
- data.tar.gz: 58e39a1947f7254cfc9e082d7d77e4c64064886d96f5f8d94c1fe1cf79c6ad515475a1db970d6138a1b9670ae9b62cb8e6c56b1e5a854420bbf559bda14c6ddc
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