Skip to content

Commit

Permalink
version 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Sep 16, 2021
1 parent 09429ef commit cea1e8d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 58 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

# Ruby Client for Free TON SDK

[![GEM](https://img.shields.io/badge/ruby-gem-green)]()
[![GEM](https://img.shields.io/badge/ruby-gem-orange)](https://rubygems.org/gems/ton-client-ruby)
[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.21.5-green)](https://github.com/tonlabs/TON-SDK)

## Install

Expand Down
8 changes: 4 additions & 4 deletions bin/ton-client-ruby
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require File.dirname(__FILE__) + '/../lib/code_generator/api_converter.rb'
require File.dirname(__FILE__) + '/../lib/code_generator/code_generator.rb'

GEM_DIR = File.dirname(__FILE__) + '/..'

if ARGV[0] == 'update' && ARGV[1] == nil
Expand All @@ -20,7 +19,7 @@ if ARGV[0] == 'update' && ARGV[1] == nil
types = converter.convert
generator = CodeGenerator.new(types, GEM_DIR)
generator.generate_self_code
system(%{bash -lc 'ruby #{script_file_path}/../release.rb'})
system(%{bash -lc 'ruby #{script_file_path}/../lib/code_generator/release.rb'})
elsif ARGV[0] == 'update'
api_json_path = ARGV[1]
json = ''
Expand All @@ -34,7 +33,7 @@ elsif ARGV[0] == 'update'
types = converter.convert
generator = CodeGenerator.new(types, GEM_DIR)
generator.generate_self_code
system(%{bash -lc 'ruby #{script_file_path}/../release.rb'})
system(%{bash -lc 'ruby #{script_file_path}/../lib/code_generator/release.rb'})

elsif ARGV[0] == 'setup'
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?
Expand All @@ -45,6 +44,7 @@ elsif ARGV[0] == 'setup'
system("cd #{GEM_DIR}/TON-SDK && cargo update")
system("cd #{GEM_DIR}/TON-SDK && cargo build --release")
puts ''
puts "PATH TO YOR DYNAMIC LIBRARY IS: #{GEM_DIR}/TON-SDK/target/release/libton_client.dylib"
puts "PATH TO YOR DYNAMIC LIBRARY FOR MACOS IS: #{GEM_DIR}/TON-SDK/target/release/libton_client.dylib"
puts "PATH TO YOR DYNAMIC LIBRARY FOR LINUX IS: #{GEM_DIR}/TON-SDK/target/release/libton_client.so"
puts ''
end
6 changes: 3 additions & 3 deletions lib/code_generator/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
puts "make release? Y/N"
option = gets
if option.strip.downcase == 'y'
system(%{cd #{script_file_path} && git add .})
system(%{cd #{script_file_path} && git commit -m 'version #{version}'})
system(%{cd #{script_file_path} && bash -lc 'rake release'})
system(%{cd #{GEM_DIR} && git add .})
system(%{cd #{GEM_DIR} && git commit -m 'version #{version}'})
system(%{cd #{GEM_DIR} && bash -lc 'rake release'})
end
end

2 changes: 1 addition & 1 deletion lib/ton-client-ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TonClient
VERSION = "1.1.4"
VERSION = "1.1.6"
end

49 changes: 0 additions & 49 deletions release.rb

This file was deleted.

0 comments on commit cea1e8d

Please sign in to comment.