From 4ea32077c82d71f3813bb831c50da4e2a2b9ae23 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Sat, 2 Mar 2024 15:34:03 +0900 Subject: [PATCH 1/4] Delete. --- tools/uninstall.rb | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 tools/uninstall.rb diff --git a/tools/uninstall.rb b/tools/uninstall.rb deleted file mode 100644 index 8097b98..0000000 --- a/tools/uninstall.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -require 'open3' -require 'fileutils' - -# UnInstaller runner. -class UnInstallerRunner - # default encoding utf-8, change encode here. - def self.encoding_style - Encoding.default_internal = 'UTF-8' - Encoding.default_external = 'UTF-8' - end - - def self.run - encoding_style - FileUtils.rm_rf(File.expand_path('~/config')) - stdout_rq, _stderr_rq, _status_rq = Open3.capture3('pip3 uninstall -y -r requirements.txt') - stdout_rq - end -end - -begin - UnInstallerRunner.run -rescue StandardError => e - puts e.backtrace -ensure - GC.compact -end - -__END__ From 4eb97e3ec4ca6fd1ed1439a2253cb56d7eadaf40 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Sat, 2 Mar 2024 15:34:10 +0900 Subject: [PATCH 2/4] Delete. --- tools/install.rb | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 tools/install.rb diff --git a/tools/install.rb b/tools/install.rb deleted file mode 100644 index bdf4897..0000000 --- a/tools/install.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -require 'open3' -require 'fileutils' - -# Installer runner. -class InstallerRunner - # default encoding utf-8, change encode here. - def self.encoding_style - Encoding.default_internal = 'UTF-8' - Encoding.default_external = 'UTF-8' - end - - def self.run - encoding_style - if Dir.exist?(File.expand_path('~/config')) - stdout_rq, _stderr_rq, _status_rq = Open3.capture3('pip3 install -r requirements.txt') - stdout_rq - else - stdout_gt, _stderr_gt, _status_gt = Open3.capture3('git clone git@github.com:takkii/config.git') - stdout_gt - FileUtils.mv("#{File.dirname(__FILE__)}/config", File.expand_path('~/')) - stdout_rq, _stderr_rq, _status_rq = Open3.capture3('pip3 install -r requirements.txt') - stdout_rq - end - end -end - -begin - InstallerRunner.run -rescue StandardError => e - puts e.backtrace -ensure - GC.compact -end - -__END__ From 56721bddfb169dd7021c84fc8389747163e4173b Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Sat, 2 Mar 2024 15:34:19 +0900 Subject: [PATCH 3/4] Delete. --- doc/go_straight.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/go_straight.txt b/doc/go_straight.txt index 55d2ec2..c377f19 100644 --- a/doc/go_straight.txt +++ b/doc/go_straight.txt @@ -1,6 +1,6 @@ *go_straight* -version: 2024/03/01 +version: 2024/03/02 Author: takkii License: MIT @@ -21,9 +21,7 @@ x = go_straight but less than 4.0 is recommended Load dictionary $HOME or vim-plug: Neovim/Vim Create log folder ruby ./tools/create.rb Delete log folder ruby ./tools/delete.rb -Automatic environment construction ruby ./tools/install.rb Machine learning (prototype) python ./lib/skl_straight.py -Delete Config folder and Requirements ruby ./tools/uninstall.rb Python version check (Windows) python pake.py Python version check (UNIX) ./pake From 535152b3e705243f1625cfc1af170bb22fbe7787 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Sat, 2 Mar 2024 15:34:27 +0900 Subject: [PATCH 4/4] Delete. --- doc/go_straight.jax | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/go_straight.jax b/doc/go_straight.jax index 36c84ff..cc5a36d 100644 --- a/doc/go_straight.jax +++ b/doc/go_straight.jax @@ -1,6 +1,6 @@ *go_straight* -version: 2024/03/01 +version: 2024/03/02 Author: takkii License: MIT @@ -21,9 +21,7 @@ x = go_straight 辞書読み込み $HOME or vim-plug: Neovim/Vim ログフォルダ作成 ruby ./tools/create.rb ログフォルダ削除 ruby ./tools/delete.rb -環境構築自動 ruby ./tools/install.rb 機械学習(試作) python ./lib/skl_straight.py -configフォルダ/requirements削除 ruby ./tools/uninstall.rb バージョンチェック(Windows) python pake.py バージョンチェック(UNIX) ./pake