3 Commits

Author SHA1 Message Date
a0ff4e0118 0.1.1 2024-08-09 11:11:17 -03:00
ece3d4163a Bug 2024-08-09 11:03:32 -03:00
3180168261 Added helper files 2024-08-09 10:32:15 -03:00
4 changed files with 19 additions and 3 deletions

15
Dockerfile.static Normal file
View File

@ -0,0 +1,15 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.20 AS build
RUN apk add --no-cache \
crystal \
shards \
yaml-dev \
yaml-static \
openssl-dev \
openssl-libs-static \
libxml2-dev \
libxml2-static \
zlib-dev \
zlib-static \
xz-dev \
xz-static \
make

View File

@ -1,5 +1,5 @@
name: tartrazine
version: 0.1.0
version: 0.1.1
authors:
- Roberto Alsina <roberto.alsina@gmail.com>

View File

@ -44,7 +44,8 @@ module Tartrazine
theme.styles.has_key?(parent)
}]
end
colorized = text.colorize(s.color.try &.colorize)
colorized = text.colorize
s.color.try { |c| colorized = colorized.fore(c.colorize) }
# Intentionally not setting background color
colorized.mode(:bold) if s.bold
colorized.mode(:italic) if s.italic

View File

@ -12,7 +12,7 @@ require "xml"
module Tartrazine
extend self
VERSION = "0.1.0"
VERSION = "0.1.1"
Log = ::Log.for("tartrazine")