Add support of crystal v0.25.0#146
Merged
Merged
Conversation
6ff857d to
f5e93a3
Compare
f5e93a3 to
f0d9bde
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Introduce crystal 0.25.0 support and all related changes.
Any background context you want to provide?
Crystal 0.25.0 introduced a lot of breaking changes.
Release notes
General
time_zonedependency"inflector/string"Time::Location&Time::Location::ZoneQueryBuilder
QueryBuilder::EagerLoadingwhich is included inQueryBuilder::IModelQueryModel
Jennifer::Model::Authenticationalso checks a minimum allowed password size (1 character)Jennifer::Model::ParameterConverter.to_timeuseslConfig.local_time_zoneas default onePG::Numerictype inModel::ParameterConverter.to_numericResourcestatic methods are abstract:actual_table_field_count,primary_field_name,build,all,superclassResource#inspectnow returns simplified version (only class name and object id)Resource.allnow is a macro methodModel::Transaltion.lookup_ancestorsfrom breaking at compilation timeConfig
local_time_zonenow is aTime::LocationTime::Location.localas default valueMigration
Jennifer::Migration::Base.migrationsreturns a hash of version number => migration class instead of array of classes