From 470c93af7f55c308a324ae0670c1a3c9583f8709 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Thu, 21 Feb 2019 18:47:58 +0100 Subject: [PATCH] make into "format" --- .editorconfig | 4 ++-- Dockerfile | 4 ++-- shard.yml | 6 +++--- src/{sales_backend.cr => authenticate.cr} | 6 +++--- src/{sales_backend => authenticate}/address.cr | 0 src/{sales_backend => authenticate}/category.cr | 0 src/{sales_backend => authenticate}/http/category.cr | 0 src/{sales_backend => authenticate}/http/product.cr | 0 src/{sales_backend => authenticate}/http/user.cr | 0 src/{sales_backend => authenticate}/invoice.cr | 0 src/{sales_backend => authenticate}/invoice_line.cr | 0 src/{sales_backend => authenticate}/product.cr | 0 src/{sales_backend => authenticate}/user.cr | 0 src/authenticate/version.cr | 3 +++ src/sales_backend/version.cr | 3 --- 15 files changed, 13 insertions(+), 13 deletions(-) rename src/{sales_backend.cr => authenticate.cr} (52%) rename src/{sales_backend => authenticate}/address.cr (100%) rename src/{sales_backend => authenticate}/category.cr (100%) rename src/{sales_backend => authenticate}/http/category.cr (100%) rename src/{sales_backend => authenticate}/http/product.cr (100%) rename src/{sales_backend => authenticate}/http/user.cr (100%) rename src/{sales_backend => authenticate}/invoice.cr (100%) rename src/{sales_backend => authenticate}/invoice_line.cr (100%) rename src/{sales_backend => authenticate}/product.cr (100%) rename src/{sales_backend => authenticate}/user.cr (100%) create mode 100644 src/authenticate/version.cr delete mode 100644 src/sales_backend/version.cr diff --git a/.editorconfig b/.editorconfig index 163eb75..e75be6c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,6 +4,6 @@ root = true charset = utf-8 end_of_line = lf insert_final_newline = true -indent_style = space -indent_size = 2 +indent_style = tabs +indent_size = 4 trim_trailing_whitespace = true diff --git a/Dockerfile b/Dockerfile index e53f7a8..6a1bee9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,6 @@ RUN cd /opt/app/ && crystal spec ENV KEMAL_ENV production -RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/sales_backend.cr +RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/authenticate.cr -CMD /opt/app/sales_backend \ No newline at end of file +CMD /opt/app/authenticate \ No newline at end of file diff --git a/shard.yml b/shard.yml index 100f870..db52172 100644 --- a/shard.yml +++ b/shard.yml @@ -1,12 +1,12 @@ -name: sales_backend +name: authenticate version: 0.1.0 authors: - Ludovic 'Archivist' Lagouardette targets: - sales_backend: - main: src/sales_backend.cr + authenticate: + main: src/authenticate.cr crystal: 0.25.0 diff --git a/src/sales_backend.cr b/src/authenticate.cr similarity index 52% rename from src/sales_backend.cr rename to src/authenticate.cr index 2a59514..3f7b0ec 100644 --- a/src/sales_backend.cr +++ b/src/authenticate.cr @@ -1,7 +1,7 @@ require "kemal" -require "./sales_backend/http/user" -require "./sales_backend/http/product" -require "./sales_backend/http/category" +require "./authenticate/http/user" +require "./authenticate/http/product" +require "./authenticate/http/category" get "/" do |context| context.response.content_type = "application/json" diff --git a/src/sales_backend/address.cr b/src/authenticate/address.cr similarity index 100% rename from src/sales_backend/address.cr rename to src/authenticate/address.cr diff --git a/src/sales_backend/category.cr b/src/authenticate/category.cr similarity index 100% rename from src/sales_backend/category.cr rename to src/authenticate/category.cr diff --git a/src/sales_backend/http/category.cr b/src/authenticate/http/category.cr similarity index 100% rename from src/sales_backend/http/category.cr rename to src/authenticate/http/category.cr diff --git a/src/sales_backend/http/product.cr b/src/authenticate/http/product.cr similarity index 100% rename from src/sales_backend/http/product.cr rename to src/authenticate/http/product.cr diff --git a/src/sales_backend/http/user.cr b/src/authenticate/http/user.cr similarity index 100% rename from src/sales_backend/http/user.cr rename to src/authenticate/http/user.cr diff --git a/src/sales_backend/invoice.cr b/src/authenticate/invoice.cr similarity index 100% rename from src/sales_backend/invoice.cr rename to src/authenticate/invoice.cr diff --git a/src/sales_backend/invoice_line.cr b/src/authenticate/invoice_line.cr similarity index 100% rename from src/sales_backend/invoice_line.cr rename to src/authenticate/invoice_line.cr diff --git a/src/sales_backend/product.cr b/src/authenticate/product.cr similarity index 100% rename from src/sales_backend/product.cr rename to src/authenticate/product.cr diff --git a/src/sales_backend/user.cr b/src/authenticate/user.cr similarity index 100% rename from src/sales_backend/user.cr rename to src/authenticate/user.cr diff --git a/src/authenticate/version.cr b/src/authenticate/version.cr new file mode 100644 index 0000000..bacfd77 --- /dev/null +++ b/src/authenticate/version.cr @@ -0,0 +1,3 @@ +module Authenticate + VERSION = "0.1.0" +end diff --git a/src/sales_backend/version.cr b/src/sales_backend/version.cr deleted file mode 100644 index 79aaa5b..0000000 --- a/src/sales_backend/version.cr +++ /dev/null @@ -1,3 +0,0 @@ -module SalesBackend - VERSION = "0.1.0" -end