Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
fridgerator committed Jan 31, 2018
1 parent 69fb9df commit eae3cd6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.8.4] 2018-01-31
* Added support for crystal `Logger`
* Fixed Logger support [@grig191](https://github.com/grig191)
* Added type cast (non nilable) attributes [@jianghengle](https://github.com/jianghengle)

## [0.8.3] 2018-01-14
* Updated for Crystal 0.24.1

Expand Down Expand Up @@ -143,6 +148,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
* Query
* Postgres Adapter

[0.8.4]: https://github.com/fridgerator/crecto/compare/v0.8.3...v0.8.4
[0.8.3]: https://github.com/fridgerator/crecto/compare/v0.8.2...v0.8.3
[0.8.2]: https://github.com/fridgerator/crecto/compare/v0.8.1...v0.8.2
[0.8.1]: https://github.com/fridgerator/crecto/compare/v0.8.0...v0.8.1
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,15 @@ If there are any errors in any of the transactions, the database will rollback a
multi.errors.any?
```

#### Non-nillable attributes

If you wish to access attributes of a model without having to check for nil, in the case that you are using a `NOT NULL` database constraint you can use the non-nillable attribute accessors. CAUTION: Mis-use of this could lead to Nil reference runtime errors.

```crystal
user.name!
user.age!
```

#### JSON type

_(Postgres only)_
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: crecto
version: 0.8.3
version: 0.8.4

authors:
- Nick Franken <shnick@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/crecto/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Crecto
VERSION = "0.8.3"
VERSION = "0.8.4"
end

0 comments on commit eae3cd6

Please sign in to comment.