Skip to content

Commit

Permalink
Release v0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MoskitoHero committed Jun 17, 2024
1 parent 9b92a8d commit bfac7a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## v0.6.2 (2024-06-17)

### ✨New features
- Improved error handling of type inconsistencies: now the serializer will raise a `Barley::InvalidAttributeError` if the object's attribute is not of the specified type. This error will include the attribute name, the expected type, and the actual type of the attribute.
```ruby
class UserSerializer < Barley::Serializer
attributes name: Types::Strict::Integer
end

Serializer.new(User.last).serializable_hash
# => Barley::InvalidAttributeError: Invalid value type found for attribute name::Integer: Bob::String"
```

## v0.6.1 (2024-06-14)

`v0.6.1` is a patch release that fixes a bug in the `scope` argument of the `many` method.
Expand Down
2 changes: 1 addition & 1 deletion lib/barley/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Barley
VERSION = "0.6.1"
VERSION = "0.6.2"
end

0 comments on commit bfac7a5

Please sign in to comment.