Skip to content

Commit

Permalink
Release 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andriusch committed Aug 19, 2022
1 parent 5369676 commit 83dfdf3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# master (not released yet)

# Version 0.14.0

* Introduce instrumentation and RSpec matcher to check if action was performed:
https://toptal.github.io/granite/testing/#testing-composition
* Introduce `Action.with` as a more powerful replacement for `Action.as`, that allows passing more than
just performer: https://toptal.github.io/granite/#context-performer

# Version 0.13.0

* Fix Ruby 3 Warnings
Expand Down
5 changes: 2 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ after execute_perform

Every BA has a context which is a hash that can be assigned via `.with` class method before BA
initialization. Context is usually used to pass performer of the action which is so common that there
are methods defined to access & set performer
`performer` specifically.
are methods defined to access & set `performer` specifically.

```ruby
action = MyAction.with(performer: Admin.first).new(params)
Expand All @@ -146,7 +145,7 @@ module GraniteContext
end

def with(data)
Granite::ContextProxy::Proxy.new(self, BaseAction::ContextData.wrap(data))
Granite::ContextProxy::Proxy.new(self, GraniteContext::Data.wrap(data))
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/granite/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Granite
VERSION = '0.13.0'.freeze
VERSION = '0.14.0'.freeze
end
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ markdown_extensions:
- toc:
permalink: true
copyright: 'Copyright © 2013 - 2018 Toptal'
pages:
nav:
- Home: index.md
- Projectors: projectors.md
- Testing: testing.md
Expand Down

0 comments on commit 83dfdf3

Please sign in to comment.