Skip to content
Permalink
master

Commits on Feb 22, 2021

  1. update mysql and sqlite drivers (#444)

    drujensen committed Feb 22, 2021
  2. Bumped version number to v0.22.0.

    drujensen committed Feb 22, 2021
  3. Bcardiff crystal 0.36.0 (#443)

    * Add type restriction to Base#clear(table_name : String)
    
    * Add type restrictions to Granite::Adapter::Base
    
    * Update to crystal-db ~> 0.10.0
    
    * remove UUID Converter
    
    The latest database libraries support UUID.  This removes the UUID
    converter.
    
    * restore Enum converter
    
    Co-authored-by: Brian J. Cardiff <bcardiff@gmail.com>
    drujensen and bcardiff committed Feb 22, 2021

Commits on Dec 15, 2020

  1. Change documentation to prefer micrate (#433)

    * Change documentation to prefer micrate (#432)
    
    * Remove migrator doc
    
    Co-authored-by: wonderix <wonderix@googlemail.com>
    Co-authored-by: robacarp <robacarp@users.noreply.github.com>
    wonderix and robacarp committed Dec 15, 2020
  2. Migrator: create columns with NOT NULL as appropriate (#429)

    The built-in Model.migrator.create_sql will create columns
    with NOT NULL unless the types are in fact nullable.
    yujiri8 committed Dec 15, 2020
  3. Drop argument type restrictions in FakeConnection (#434)

    crystal-db does not include a type restriction. Since 1.0.0-dev is more strict with abstract methods this change is required to make the FakeConnection honor the current DB::Connection API
    
    Co-authored-by: Dru Jensen <drujensen@gmail.com>
    bcardiff and drujensen committed Dec 15, 2020

Commits on Dec 14, 2020

  1. Add primary field to belongs_to relationships (#435)

    * Add primary option to belongs_to
    
    * Fix typo
    
    * Add specs
    
    * Update docs
    watzon committed Dec 14, 2020

Commits on Sep 26, 2020

  1. support symbols for table and adapter macros (#428)

    drujensen committed Sep 26, 2020
  2. Fix the grammar of a comment (#427)

    yujiri8 committed Sep 26, 2020
  3. Added a way to disable validation on save method (#414)

    * Added a way to disable validation on save method
    
    * Syntax improvement
    
    Co-authored-by: Dru Jensen <drujensen@gmail.com>
    D1ceWard and drujensen committed Sep 26, 2020
  4. Lower log severity of query builder to make adapter (#424)

    Co-authored-by: Dru Jensen <drujensen@gmail.com>
    Blacksmoke16 and drujensen committed Sep 26, 2020
  5. Documentation fixes for the following errors (#419)

    CustomView Example,
    
    ```
     1 | class CustomView < Granite:Base
                             ^
    Error: Granite is not a class, it's a module
    ```
    
    Create Index was failing silently when used with `amber db migrate`
    
    ```
    =# CREATE INDEX 'team_id_idx' ON coaches (team_id);
    ERROR:  syntax error at or near "'team_id_idx'"
    LINE 1: CREATE INDEX 'team_id_idx' ON coaches (team_id);
                         ^
    ```
    
    Signed-off-by: Aravinda Vishwanathapura <mail@aravindavk.in>
    
    Co-authored-by: Dru Jensen <drujensen@gmail.com>
    aravindavk and drujensen committed Sep 26, 2020
  6. Fix #416: Examples given in documentation do not compile (#420)

    yujiri8 committed Sep 26, 2020

Commits on Jul 11, 2020

  1. Bump Granite, Crystal, and Ameba versions (#412)

    Blacksmoke16 committed Jul 11, 2020

Commits on Jun 16, 2020

  1. fix infinity loop (#409)

    * fix infinity loop
    
    * formatig
    
    * fix spec description
    
    * more examples
    
    * format
    
    * better fix
    
    * fix
    
    * remove unused code
    
    * remove
    
    * fix
    
    * add more specs
    OpakAlex committed Jun 16, 2020

Commits on Jun 11, 2020

  1. Support Crystal 0.35.0 (#406)

    * Support Crystal 0.35.0
    
    * update docker image to 0.35.0
    drujensen committed Jun 11, 2020
  2. Define @@Setter with `class_getter` (#405)

    * Define @@Setter with `class_getter`
    
    Use the getter versus using the class var directly
    
    * Fix infinite recursion bug
    Blacksmoke16 committed Jun 11, 2020

Commits on May 27, 2020

  1. release latest changes

    drujensen committed May 27, 2020
  2. Support custom queries in builder (#403)

    * initial implementation
    
    * fix single replacement
    
    * implement custom SQL method for OR builder
    
    * document where with SQL string
    
    * Tweak where documentation
    
    * Make custom where value optional
    
    * specify database placeholders
    
    * Add tests for raw SQL #where, #and, #or
    
    * Make SQL placeholders DB specific
    Serdnad committed May 27, 2020

Commits on May 12, 2020

  1. Add a to_json method for Granite::Error (#401)

    void-witch committed May 12, 2020

Commits on May 5, 2020

  1. Fix read_attribute, see #396 (#397)

    * Fix read_attribute, see #396
    
    * Fix typo
    
    Co-authored-by: George Dietrich <george@dietrich.app>
    msa7 and Blacksmoke16 committed May 5, 2020

Commits on May 4, 2020

  1. Fix #394 by stripping the module name from the table name (#395)

    * Attempt to fix #394
    
    * Update spec/spec_models.cr
    
    Co-authored-by: George Dietrich <george@dietrich.app>
    
    Co-authored-by: Dru Jensen <drujensen@gmail.com>
    Co-authored-by: George Dietrich <george@dietrich.app>
    3 people committed May 4, 2020
  2. Fix: Ensure `Granite::Error#to_s` returns string (#386)

    See issue: #385
    
    Co-authored-by: Dru Jensen <drujensen@gmail.com>
    akadusei and drujensen committed May 4, 2020
  3. Add empty "else" statement for compatibility with Crystal 0.34.0 (#399)

    Co-authored-by: Sorcus <mail@sorcus.name>
    Co-authored-by: Dru Jensen <drujensen@gmail.com>
    MrSorcus and drujensen committed May 4, 2020
  4. Replace deprecated Logger via Log. (#398)

    * Replace deprecated Logger via Log.
    
    * Update ameba to ~> 0.12.0
    
    * Remove redundant usage of "Object#to_s"
    
    Co-authored-by: Sorcus <mail@sorcus.name>
    MrSorcus committed May 4, 2020

Commits on Apr 12, 2020

  1. Bumped version number to v0.20.0.

    drujensen committed Apr 12, 2020
  2. Support Crystal 0.34.0 (#389)

    * update shards
    
    * fix linting errors
    
    * rollback ameba
    
    * rollback ameba
    
    * update to crystal 0.34.0
    
    * set postgres password
    drujensen committed Apr 12, 2020

Commits on Jan 22, 2020

  1. Bumped version number to v0.19.0.

    drujensen committed Jan 22, 2020
  2. Update CI/deps (#377)

    Blacksmoke16 authored and drujensen committed Jan 22, 2020

Commits on Dec 21, 2019

  1. Handle `false` when a column has a default value (#374)

    Blacksmoke16 authored and drujensen committed Dec 21, 2019

Commits on Oct 5, 2019

  1. Allow #update to set column to nil (#369)

    Blacksmoke16 authored and drujensen committed Oct 5, 2019

Commits on Oct 3, 2019

  1. Merge branch 'master' of github.com:amberframework/granite

    drujensen committed Oct 3, 2019
  2. Bumped version number to v0.18.0.

    drujensen committed Oct 3, 2019

Commits on Sep 30, 2019

  1. Bump Crystal version in the Dockerfile (#366)

    Blacksmoke16 authored and drujensen committed Sep 30, 2019
Older