Skip to content

Commit

Permalink
Release version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
momeni committed Feb 16, 2024
1 parent 65a6364 commit 7ba634a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

Remove this line after moving [Unreleased] to [1.1.0] - 202Y-MM-DD.
## [1.1.0] - 2024-02-16

### Added

Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ lint:

SRC_DB_DIR := dist/.db/caweb1_0_0
.PHONY: src-db src-db-psql
src-db: $(SRC_DB_DIR)/caweb.pass
src-db: $(SRC_DB_DIR)/.pgpass
podman start caweb1_0_0-pg16-dbms

$(SRC_DB_DIR)/caweb.pass:
$(SRC_DB_DIR)/.pgpass:
adminpass="$$(head -c16 /dev/random | sha1sum | cut -d' ' -f1)" && \
cawebpass="$$(head -c16 /dev/random | sha1sum | cut -d' ' -f1)" && \
mkdir -p $(SRC_DB_DIR)/data && \
Expand All @@ -70,15 +70,15 @@ $(SRC_DB_DIR)/caweb.pass:
docker.io/postgres:16-bookworm

src-db-psql: src-db
PGPASSFILE=$(SRC_DB_DIR)/caweb.pass \
PGPASSFILE=$(SRC_DB_DIR)/.pgpass \
psql -h 127.0.0.1 -p 5455 -U admin -d caweb1_0_0

DST_DB_DIR := dist/.db/caweb1_1_0
.PHONY: dst-db dst-db-psql
dst-db: $(DST_DB_DIR)/caweb.pass
dst-db: $(DST_DB_DIR)/.pgpass
podman start caweb1_1_0-pg16-dbms

$(DST_DB_DIR)/caweb.pass:
$(DST_DB_DIR)/.pgpass:
adminpass="$$(head -c16 /dev/random | sha1sum | cut -d' ' -f1)" && \
cawebpass="$$(head -c16 /dev/random | sha1sum | cut -d' ' -f1)" && \
mkdir -p $(DST_DB_DIR)/data && \
Expand All @@ -96,7 +96,7 @@ $(DST_DB_DIR)/caweb.pass:
docker.io/postgres:16-bookworm

dst-db-psql: dst-db
PGPASSFILE=$(DST_DB_DIR)/caweb.pass \
PGPASSFILE=$(DST_DB_DIR)/.pgpass \
psql -h 127.0.0.1 -p 5456 -U admin -d caweb1_1_0

.PHONY: grep
Expand Down
27 changes: 12 additions & 15 deletions configs/sample-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# Copyright (c) 2023-2024 Behnam Momeni
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

---
database:
host: 127.0.0.1
port: 5432
name: caweb1_0_0
role: caweb
pass-file: dist/.db/caweb1_0_0/caweb.pass
host: 127.0.0.1
port: 5456
name: caweb1_1_0
pass-dir: dist/.db/caweb1_1_0
auth-method: scram-sha-256
gin:
logger: true
recovery: true
logger: true
recovery: true
usecases:
cars:
old-parking-method-delay: 15s
cars:
delay-of-old-parking-method: 15s
versions:
database: 1.1.0
config: 2.0.0

0 comments on commit 7ba634a

Please sign in to comment.