From 6b4155dab1923bb1a8ce4c7d24295d1b6c652fe4 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 2 Jan 2021 14:49:56 +0100 Subject: [PATCH] Switch from ruby to crystal --- Gemfile | 9 ---- Gemfile.lock | 54 ------------------- shard.yml | 16 +++--- .../{node_create.rb => node_create.cr} | 0 .../{node_delete.rb => node_delete.cr} | 0 .../actions/{node_edit.rb => node_edit.cr} | 0 .../actions/{node_move.rb => node_move.cr} | 0 .../{node_rename.rb => node_rename.cr} | 0 src/lib/{cli.rb => cli.cr} | 0 src/lib/{config.rb => config.cr} | 0 src/lib/{gui.rb => gui.cr} | 0 src/lib/models/{node.rb => node.cr} | 0 .../utils/{auto_ajust.rb => auto_ajust.cr} | 0 src/lib/{version.rb => version.cr} | 0 src/lib/views/{help.rb => help.cr} | 0 src/lib/views/{main.rb => main.cr} | 0 16 files changed, 9 insertions(+), 70 deletions(-) delete mode 100644 Gemfile delete mode 100644 Gemfile.lock rename src/lib/actions/{node_create.rb => node_create.cr} (100%) rename src/lib/actions/{node_delete.rb => node_delete.cr} (100%) rename src/lib/actions/{node_edit.rb => node_edit.cr} (100%) rename src/lib/actions/{node_move.rb => node_move.cr} (100%) rename src/lib/actions/{node_rename.rb => node_rename.cr} (100%) rename src/lib/{cli.rb => cli.cr} (100%) rename src/lib/{config.rb => config.cr} (100%) rename src/lib/{gui.rb => gui.cr} (100%) rename src/lib/models/{node.rb => node.cr} (100%) rename src/lib/utils/{auto_ajust.rb => auto_ajust.cr} (100%) rename src/lib/{version.rb => version.cr} (100%) rename src/lib/views/{help.rb => help.cr} (100%) rename src/lib/views/{main.rb => main.cr} (100%) diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 4558ef4..0000000 --- a/Gemfile +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -source "https://rubygems.org" - -git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } - -# Specify your gem's dependencies in noozoid.gemspec -gemspec - diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 464901e..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,54 +0,0 @@ -PATH - remote: . - specs: - noozoid (0.1.0) - curses (~> 1.3) - nokogiri (~> 1.10) - thor - -GEM - remote: https://rubygems.org/ - specs: - ast (2.4.0) - coderay (1.1.2) - curses (1.3.2) - jaro_winkler (1.5.4) - method_source (0.9.2) - mini_portile2 (2.4.0) - minitest (5.13.0) - nokogiri (1.10.7) - mini_portile2 (~> 2.4.0) - parallel (1.19.1) - parser (2.7.0.0) - ast (~> 2.4.0) - pry (0.12.2) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - rainbow (3.0.0) - rake (12.3.3) - rubocop (0.78.0) - jaro_winkler (~> 1.5.1) - parallel (~> 1.10) - parser (>= 2.6) - rainbow (>= 2.2.2, < 4.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 1.7) - rubocop-rspec (1.37.1) - rubocop (>= 0.68.1) - ruby-progressbar (1.10.1) - thor (1.0.1) - unicode-display_width (1.6.0) - -PLATFORMS - ruby - -DEPENDENCIES - minitest (~> 5.0) - noozoid! - pry - rake (~> 12.0) - rubocop - rubocop-rspec - -BUNDLED WITH - 2.1.2 diff --git a/shard.yml b/shard.yml index 04e39d2..c8132fd 100644 --- a/shard.yml +++ b/shard.yml @@ -1,19 +1,21 @@ name: noozoid version: 0.1.0 -# authors: -# - name +authors: + - Glenn Y. Rolland # description: | # Short description of ttymindmap -# dependencies: -# pg: -# github: will/crystal-pg -# version: "~> 0.5" +dependencies: + clim: + github: at-grandpa/clim + version: 0.14.0 + ncurses: + github: agatan/ncurses.cr # development_dependencies: # webmock: # github: manastech/webmock.cr -# license: MIT +license: LGPL-3 diff --git a/src/lib/actions/node_create.rb b/src/lib/actions/node_create.cr similarity index 100% rename from src/lib/actions/node_create.rb rename to src/lib/actions/node_create.cr diff --git a/src/lib/actions/node_delete.rb b/src/lib/actions/node_delete.cr similarity index 100% rename from src/lib/actions/node_delete.rb rename to src/lib/actions/node_delete.cr diff --git a/src/lib/actions/node_edit.rb b/src/lib/actions/node_edit.cr similarity index 100% rename from src/lib/actions/node_edit.rb rename to src/lib/actions/node_edit.cr diff --git a/src/lib/actions/node_move.rb b/src/lib/actions/node_move.cr similarity index 100% rename from src/lib/actions/node_move.rb rename to src/lib/actions/node_move.cr diff --git a/src/lib/actions/node_rename.rb b/src/lib/actions/node_rename.cr similarity index 100% rename from src/lib/actions/node_rename.rb rename to src/lib/actions/node_rename.cr diff --git a/src/lib/cli.rb b/src/lib/cli.cr similarity index 100% rename from src/lib/cli.rb rename to src/lib/cli.cr diff --git a/src/lib/config.rb b/src/lib/config.cr similarity index 100% rename from src/lib/config.rb rename to src/lib/config.cr diff --git a/src/lib/gui.rb b/src/lib/gui.cr similarity index 100% rename from src/lib/gui.rb rename to src/lib/gui.cr diff --git a/src/lib/models/node.rb b/src/lib/models/node.cr similarity index 100% rename from src/lib/models/node.rb rename to src/lib/models/node.cr diff --git a/src/lib/utils/auto_ajust.rb b/src/lib/utils/auto_ajust.cr similarity index 100% rename from src/lib/utils/auto_ajust.rb rename to src/lib/utils/auto_ajust.cr diff --git a/src/lib/version.rb b/src/lib/version.cr similarity index 100% rename from src/lib/version.rb rename to src/lib/version.cr diff --git a/src/lib/views/help.rb b/src/lib/views/help.cr similarity index 100% rename from src/lib/views/help.rb rename to src/lib/views/help.cr diff --git a/src/lib/views/main.rb b/src/lib/views/main.cr similarity index 100% rename from src/lib/views/main.rb rename to src/lib/views/main.cr