Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
c7a2952419
|
|||
|
ad6eb06c57
|
|||
|
9526b1bb23
|
|||
|
e6cb5df286
|
|||
|
e9aa72c64a
|
|||
|
b5a1f33159
|
|||
|
0c9cfa07ba
|
|||
|
0a972355d7
|
|||
|
76755f1032
|
|||
|
d28f7649c4
|
|||
|
bf235ee526
|
|||
|
eb7f97a054
|
21
CHANGELOG.md
21
CHANGELOG.md
@@ -18,6 +18,27 @@
|
||||
|
||||
# Changelog (`docker-finance`)
|
||||
|
||||
## 1.1.1 - 2026-01-15
|
||||
|
||||
This patch release supports recent CoinGecko and PHP-CS-Fixer changes and also includes minor `dfi` developer enhancements/refactoring.
|
||||
|
||||
### 1.1.1 - Fixes
|
||||
|
||||
- Since CoinGecko now returns error 403 without a "descriptive" User-Agent, an agent has been added when fetching prices from CoinGecko ([#269](https://gitea.com/EvergreenCrypto/docker-finance/pulls/269))
|
||||
- PHP-CS-Fixer's 3.92 series now requires `init` before any `fix`ing or `check`ing ([#270](https://gitea.com/EvergreenCrypto/docker-finance/pulls/270)) ([#272](https://gitea.com/EvergreenCrypto/docker-finance/pulls/272))
|
||||
|
||||
### 1.1.1 - Enhancements
|
||||
|
||||
- Add `API_VERSION` to `fetch`'s PHP environment map ([#269](https://gitea.com/EvergreenCrypto/docker-finance/pulls/269))
|
||||
|
||||
### 1.1.1 - Refactoring
|
||||
|
||||
- Minor dev-tools' `lib_linter` refactoring ([#271](https://gitea.com/EvergreenCrypto/docker-finance/pulls/271)) ([#272](https://gitea.com/EvergreenCrypto/docker-finance/pulls/272))
|
||||
|
||||
### 1.1.1 - Contributors
|
||||
|
||||
- Aaron Fiore
|
||||
|
||||
## 1.1.0 - 2026-01-12
|
||||
|
||||
This release focuses on bringing substantial changes to the `root` system and improving `root` usage.
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#
|
||||
|
||||
# Release version (tag format)
|
||||
version: "v1.1.0"
|
||||
version: "v1.1.1"
|
||||
|
||||
# Container dependencies (used by `version` command)
|
||||
# NOTE: this must stay inline with Dockerfiles
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# docker-finance | modern accounting for the power-user
|
||||
#
|
||||
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
# Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -146,7 +146,7 @@ function lib_linter::__lint_bash()
|
||||
if [ -z "${_path[*]}" ]; then
|
||||
# Do all
|
||||
for _ext in "${_exts[@]}"; do
|
||||
lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \
|
||||
lib_docker::exec \
|
||||
"find ${DOCKER_FINANCE_CLIENT_REPO}/ ${DOCKER_FINANCE_CLIENT_PLUGINS}/ -type f -name \*.${_ext} \
|
||||
| while read _file
|
||||
do echo Linting \'\${_file}\'
|
||||
@@ -159,7 +159,7 @@ function lib_linter::__lint_bash()
|
||||
local _file
|
||||
_file="$(dirs +1)/${_p}"
|
||||
lib_utils::print_normal "Linting '${_file}'"
|
||||
lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \
|
||||
lib_docker::exec \
|
||||
"$_shfmt $_file $_file && $_shellcheck $_file"
|
||||
done
|
||||
fi
|
||||
@@ -182,7 +182,7 @@ function lib_linter::__lint_cpp()
|
||||
if [ -z "${_path[*]}" ]; then
|
||||
# Do all
|
||||
for _ext in "${_exts[@]}"; do
|
||||
lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \
|
||||
lib_docker::exec \
|
||||
"find ${DOCKER_FINANCE_CLIENT_REPO}/ ${DOCKER_FINANCE_CLIENT_PLUGINS}/ -type f -name \*.${_ext} \
|
||||
| while read _file
|
||||
do echo Linting \'\${_file}\'
|
||||
@@ -195,7 +195,7 @@ function lib_linter::__lint_cpp()
|
||||
local _file
|
||||
_file="$(dirs +1)/${_p}"
|
||||
lib_utils::print_normal "Linting '${_file}'"
|
||||
lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \
|
||||
lib_docker::exec \
|
||||
"$_clang_format $_file && $_cpplint $_file && $_cppcheck $_file"
|
||||
done
|
||||
fi
|
||||
@@ -206,13 +206,17 @@ function lib_linter::__lint_php()
|
||||
local -r _path=("$@")
|
||||
local -r _ext="php"
|
||||
|
||||
local -r _php_cs_fixer="time php-cs-fixer fix --rules=@PSR12 --verbose"
|
||||
local -r _php_cs_fixer_init="php-cs-fixer -n init"
|
||||
local -r _php_cs_fixer_fix="time php-cs-fixer fix --rules=@PSR12 --verbose"
|
||||
|
||||
local -r _phpstan="time phpstan analyse --debug --autoload-file /usr/local/lib/php/vendor/autoload.php --level 6" # TODO: incrementally increase to 9
|
||||
|
||||
if [ -z "${_path[*]}" ]; then
|
||||
# Do all
|
||||
lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \
|
||||
"$_php_cs_fixer $DOCKER_FINANCE_CLIENT_REPO && $_php_cs_fixer $DOCKER_FINANCE_CLIENT_PLUGINS \
|
||||
lib_docker::exec \
|
||||
"$_php_cs_fixer_init \
|
||||
&& $_php_cs_fixer_fix $DOCKER_FINANCE_CLIENT_REPO \
|
||||
&& $_php_cs_fixer_fix $DOCKER_FINANCE_CLIENT_PLUGINS \
|
||||
&& $_phpstan $DOCKER_FINANCE_CLIENT_REPO $DOCKER_FINANCE_CLIENT_PLUGINS"
|
||||
else
|
||||
# Do only given file(s)
|
||||
@@ -220,8 +224,10 @@ function lib_linter::__lint_php()
|
||||
local _file
|
||||
_file="$(dirs +1)/${_p}"
|
||||
lib_utils::print_normal "Linting '${_file}'"
|
||||
lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \
|
||||
"$_php_cs_fixer $_file && $_phpstan $_file"
|
||||
lib_docker::exec \
|
||||
"$_php_cs_fixer_init \
|
||||
&& $_php_cs_fixer_fix $_file \
|
||||
&& $_phpstan $_file"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -67,6 +67,7 @@ namespace dfi
|
||||
$env = new utils\Env();
|
||||
|
||||
// Fetch (API)
|
||||
$env->set_env('API_VERSION', getenv('DOCKER_FINANCE_VERSION')); // API version
|
||||
$env->set_env('API_FETCH_TYPE', strtolower($argv[1])); // API type
|
||||
$env->set_env('API_FETCH_SUBTYPE', strtolower($argv[2])); // API subtype
|
||||
$env->set_env('API_FETCH_YEAR', getenv('API_FETCH_YEAR')); // API year (to fetch)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -154,6 +154,7 @@ namespace dfi\prices\internal
|
||||
protected function request_impl(string $url, array $header): mixed
|
||||
{
|
||||
$headers = array(
|
||||
'User-Agent: docker-finance /' . $this->get_env()->get_env('API_VERSION'),
|
||||
'Accept: application/json',
|
||||
'Content-Type: application/json',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user