From 730305c5b6866898c9bab1a6681b3fe094b37002 Mon Sep 17 00:00:00 2001 From: Vladislav Trotsenko Date: Sun, 4 Feb 2024 00:13:53 +0100 Subject: [PATCH 1/3] Technical/Update license (#88) --- LICENSE.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.txt b/LICENSE.txt index 6c4c953..a4cc3ba 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020-2023 Vladislav Trotsenko +Copyright (c) 2020-2024 Vladislav Trotsenko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 5354485c361e10b574164e94c6fed1a5b04204aa Mon Sep 17 00:00:00 2001 From: Vladislav Trotsenko Date: Sat, 2 Mar 2024 21:19:53 +0100 Subject: [PATCH 2/3] Technical/Add commitspell linter (#90) * Added commitspell linter, configuration * Updated lefthook config --- .circleci/linter_configs/.commitspell.yml | 27 +++++++++++++++++++++++ .circleci/linter_configs/.lefthook.yml | 2 ++ .circleci/scripts/commitspell.sh | 22 ++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .circleci/linter_configs/.commitspell.yml create mode 100755 .circleci/scripts/commitspell.sh diff --git a/.circleci/linter_configs/.commitspell.yml b/.circleci/linter_configs/.commitspell.yml new file mode 100644 index 0000000..4109c18 --- /dev/null +++ b/.circleci/linter_configs/.commitspell.yml @@ -0,0 +1,27 @@ +--- + +enableGlobDot: true + +patterns: + - name: GithubUser + pattern: /\[@.+\]/gmx + +languageSettings: + - languageId: markdown + ignoreRegExpList: + - Email + - GithubUser + +words: + - autoreleasing + - gitter + - trotsenko + - vladislav + - bestwebua + - codebases + - dockerhub + - dockerized + - healthcheck + - truemail + - lefthook + - commitspell diff --git a/.circleci/linter_configs/.lefthook.yml b/.circleci/linter_configs/.lefthook.yml index e1759a4..aac2c84 100644 --- a/.circleci/linter_configs/.lefthook.yml +++ b/.circleci/linter_configs/.lefthook.yml @@ -6,6 +6,8 @@ skip_output: linters: commands: + commitspell: + run: .circleci/scripts/commitspell.sh -c '.circleci/linter_configs/.commitspell.yml' cspell: run: cspell-cli lint -c '.circleci/linter_configs/.cspell.yml' '**/*.{txt,md}' markdownlint: diff --git a/.circleci/scripts/commitspell.sh b/.circleci/scripts/commitspell.sh new file mode 100755 index 0000000..d284cd0 --- /dev/null +++ b/.circleci/scripts/commitspell.sh @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +configuration=$(if [ "$2" = "" ]; then echo "$2"; else echo " $1 $2"; fi) +latest_commit=$(git rev-parse HEAD) + +spellcheck_info() { + echo "Checking the spelling of the latest commit ($latest_commit) message..." +} + +compose_cspell_command() { + echo "cspell-cli lint stdin$configuration" +} + +cspell="$(compose_cspell_command)" + +spellcheck_latest_commit() { + git log -1 --pretty=%B | $cspell +} + +spellcheck_info +spellcheck_latest_commit From 582df80912bb9bc99cb7d831184baa91992cc1a1 Mon Sep 17 00:00:00 2001 From: Vladislav Trotsenko Date: Sat, 2 Mar 2024 21:21:43 +0100 Subject: [PATCH 3/3] Technical/Update image (#89) * Switch to truemail-rack 0.10.0 --- CHANGELOG.md | 4 ++++ Dockerfile | 6 +++--- README.md | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 867bcc9..f3de354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.10.0] - 2024-03-02 + +### Switch to truemail-rack 0.10.0 + ## [0.9.0] - 2023-11-02 ### Switch to truemail-rack 0.9.0 diff --git a/Dockerfile b/Dockerfile index ee2c5e9..fa55253 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM ruby:3.2.0-alpine as Builder +FROM ruby:3.3.0-alpine as Builder ENV APP_HOME="/var/lib/truemail-rack" \ TMP="/var/lib/truemail-rack/tmp" RUN apk add --virtual build-dependencies git && \ git clone https://github.com/truemail-rb/truemail-rack.git $TMP -q && \ - cd $TMP && git checkout v0.9.0 -q && \ + cd $TMP && git checkout v0.10.0 -q && \ mv app config config.ru .ruby-version Gemfile* $APP_HOME && rm -rf $TMP && \ apk del build-dependencies WORKDIR $APP_HOME @@ -15,7 +15,7 @@ RUN apk add --virtual build-dependencies make cmake g++ && \ find /usr/local/bundle/gems/ -regex ".*\.[coh]" -delete && \ apk del build-dependencies -FROM ruby:3.2.0-alpine +FROM ruby:3.3.0-alpine ENV INFO="Truemail lightweight rack based web API 🚀" \ APP_USER="truemail" \ APP_HOME="/var/lib/truemail-rack" \ diff --git a/README.md b/README.md index 4906962..c177e1b 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ version: "3.7" services: truemail: - image: truemail/truemail-rack:v0.9.0 # for latest version you can use just truemail/truemail-rack:latest + image: truemail/truemail-rack:v0.10.0 # for latest version you can use just truemail/truemail-rack:latest ports: - 9292:9292 environment: