mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-02 04:47:07 -03:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
a0ff4e0118 | |||
ece3d4163a | |||
3180168261 |
15
Dockerfile.static
Normal file
15
Dockerfile.static
Normal 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
|
@ -1,5 +1,5 @@
|
|||||||
name: tartrazine
|
name: tartrazine
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Roberto Alsina <roberto.alsina@gmail.com>
|
- Roberto Alsina <roberto.alsina@gmail.com>
|
||||||
|
@ -44,7 +44,8 @@ module Tartrazine
|
|||||||
theme.styles.has_key?(parent)
|
theme.styles.has_key?(parent)
|
||||||
}]
|
}]
|
||||||
end
|
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
|
# Intentionally not setting background color
|
||||||
colorized.mode(:bold) if s.bold
|
colorized.mode(:bold) if s.bold
|
||||||
colorized.mode(:italic) if s.italic
|
colorized.mode(:italic) if s.italic
|
||||||
|
@ -12,7 +12,7 @@ require "xml"
|
|||||||
|
|
||||||
module Tartrazine
|
module Tartrazine
|
||||||
extend self
|
extend self
|
||||||
VERSION = "0.1.0"
|
VERSION = "0.1.1"
|
||||||
|
|
||||||
Log = ::Log.for("tartrazine")
|
Log = ::Log.for("tartrazine")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user