Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Change Log]

## [0.2.0] - 2025-07-28

- Enforce explicit monkey-patch requirement

## [0.1.5] - 2025-02-04

- Set correct expiration time for idempotency cache
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
idempotency (0.1.5)
idempotency (0.2.0)
base64
dry-configurable
dry-monitor
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Add this to your controller:

```ruby
require 'idempotency/hanami'
require 'idempotency/hanami_extend' # use this if around callback is necessary

class Api::Controllers::Users::Create
include Hanami::Action
Expand Down
4 changes: 4 additions & 0 deletions lib/idempotency/hanami_extend.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

require_relative 'hanami/action/callbacks'
require_relative 'hanami/utils/callbacks'
Comment thread
hieuk09 marked this conversation as resolved.
2 changes: 1 addition & 1 deletion lib/idempotency/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

class Idempotency
VERSION = '0.1.5'
VERSION = '0.2.0'
end
3 changes: 1 addition & 2 deletions spec/hanami/action/callbacks_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# frozen_string_literal: true

require 'hanami-controller'
require_relative '../../../lib/hanami/action/callbacks'
require_relative '../../../lib/hanami/utils/callbacks'
require_relative '../../../lib/idempotency/hanami_extend'

RSpec.describe Hanami::Action::Callbacks do
describe 'callbacks' do
Expand Down