Upgrade to crystal 1.14.0

This commit is contained in:
Edward Loveall
2025-10-26 14:18:23 -04:00
parent b092ba6dc1
commit 282bd65ebc
7 changed files with 15 additions and 15 deletions

View File

@@ -1 +1 @@
1.8.1
1.14.0

View File

@@ -1,3 +1,3 @@
nodejs 16.18.0
crystal 1.5.0
crystal 1.14.0
yarn 1.22.19

View File

@@ -1,9 +1,10 @@
Unreleased
2025-10-26
* Add a bunch of well-known, LLM scrapers to robots.txt
* Add command to tag releases
* Modernize nix config
* Added scribe.manasiwibi.com instance
* Upgrade to crystal 1.14.0
2023-12-18

View File

@@ -26,10 +26,9 @@ Avram::QueryLog.dexter.configure(:none)
# Skip logging static assets requests in development
Lucky::LogHandler.configure do |settings|
if LuckyEnv.development?
settings.skip_if = ->(context : HTTP::Server::Context) {
context.request.method.downcase == "get" &&
context.request.resource.starts_with?(/\/css\/|\/js\/|\/assets\/|\/favicon\.ico/)
}
end
settings.skip_if = ->(context : HTTP::Server::Context) {
LuckyEnv.development? &&
context.request.method.downcase == "get" &&
context.request.resource.starts_with?(/\/css\/|\/js\/|\/assets\/|\/favicon\.ico/)
}
end

View File

@@ -20,7 +20,7 @@ Lucky::ForceSSLHandler.configure do |settings|
# This will cause http requests to be redirected to https:
#
# settings.enabled = LuckyEnv.production?
# settings.strict_transport_security = {max_age: 1.year, include_subdomains: true}
settings.strict_transport_security = {max_age: 1.year, include_subdomains: true}
#
# Or, leave it disabled:
settings.enabled = false
@@ -31,9 +31,9 @@ Lucky::RequestIdHandler.configure do |settings|
# To enable the request ID, uncomment the lines below.
# You can set your own custom String, or use a random UUID.
#
# settings.set_request_id = ->(context : HTTP::Server::Context) {
# UUID.random.to_s
# }
settings.set_request_id = ->(context : HTTP::Server::Context) {
UUID.random.to_s
}
end
private def secret_key_from_env

View File

@@ -8,7 +8,7 @@ targets:
scribe:
main: src/scribe.cr
crystal: 1.8.1
crystal: 1.14.1
dependencies:
lucky:

View File

@@ -1,3 +1,3 @@
module Scribe
VERSION = "2023-12-18"
VERSION = "2025-10-26"
end