Skip to content

Add support of crystal v0.25.0#146

Merged
imdrasil merged 1 commit into
v0.6.0from
add_crystal_25_support
Jun 29, 2018
Merged

Add support of crystal v0.25.0#146
imdrasil merged 1 commit into
v0.6.0from
add_crystal_25_support

Conversation

@imdrasil

@imdrasil imdrasil commented Jun 28, 2018

Copy link
Copy Markdown
Owner

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

  • remove time_zone dependency
  • remove requiring "inflector/string"
  • adds cloning to Time::Location & Time::Location::Zone

QueryBuilder

  • all eager loading methods are extracted to separate module QueryBuilder::EagerLoading which is included in QueryBuilder::IModelQuery

Model

  • now Jennifer::Model::Authentication also checks a minimum allowed password size (1 character)
  • now Jennifer::Model::ParameterConverter.to_time uses lConfig.local_time_zone as default one
  • adds compatibility with postgres latest PG::Numeric type in Model::ParameterConverter.to_numeric
  • now next Resource static methods are abstract: actual_table_field_count, primary_field_name, build, all, superclass
  • Resource#inspect now returns simplified version (only class name and object id)
  • Resource.all now is a macro method
  • fixies Model::Transaltion.lookup_ancestors from breaking at compilation time
  • now all built-in validations use attribute getter methods instead of variables

Config

  • local_time_zone now is a Time::Location
  • local time zone is loaded using Time::Location.local as default value

Migration

  • Jennifer::Migration::Base.migrations returns a hash of version number => migration class instead of array of classes

@imdrasil imdrasil force-pushed the add_crystal_25_support branch 4 times, most recently from 6ff857d to f5e93a3 Compare June 29, 2018 19:53
@imdrasil imdrasil force-pushed the add_crystal_25_support branch from f5e93a3 to f0d9bde Compare June 29, 2018 20:04
@imdrasil imdrasil self-assigned this Jun 29, 2018
@imdrasil imdrasil merged commit e51b53a into v0.6.0 Jun 29, 2018
@imdrasil imdrasil deleted the add_crystal_25_support branch June 29, 2018 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant