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 nodejs 16.18.0
crystal 1.5.0 crystal 1.14.0
yarn 1.22.19 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 a bunch of well-known, LLM scrapers to robots.txt
* Add command to tag releases * Add command to tag releases
* Modernize nix config * Modernize nix config
* Added scribe.manasiwibi.com instance * Added scribe.manasiwibi.com instance
* Upgrade to crystal 1.14.0
2023-12-18 2023-12-18

View File

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

View File

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

View File

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

View File

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