idempotency 0.1.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a0df6614f2ebaa195e7e623c37291b92a5389470be51653c953539e50ced9a1
4
- data.tar.gz: de3abf16993841c219599816b253d10ddd9af3844549594ee6aae53d120eea9f
3
+ metadata.gz: 79c1c3a64979f50848f56726163b1210fef91763d50b77fd31f7ed87629a14df
4
+ data.tar.gz: 45305008439d1db703c550a4a684c44771329a7d2189faba567b94ec673d21d0
5
5
  SHA512:
6
- metadata.gz: 4b59892219aa2050b6b09a3b6769d60327e761a0bde4c9913e0918747952a15f549d9c7aef2e58b7083db615110931dae6492c77ed6febdf56206ce1b6f0daa1
7
- data.tar.gz: 7e01967a1b326c10222a2b4e49684ce28f31c8b7ba89c07f78c2336053671fd8477a9fd5d4f8c45e0886c92caf3d024067abd039dd208a7f718246ff53b388fa
6
+ metadata.gz: 9e9db8c50c5abccf8985e813cd096f4b6ea6198a2ad363877d962f0d9703cce77661415eb949e1216803e053dceff5ae8f943a3f66161ea95da02d5f774e15ff
7
+ data.tar.gz: 1d3c09a3f939065bc09a5fcc556fbc724c409335824ef92456148541a31b9b50d49139db6049299a4669f8fc7c8d41d9923602132d4cdd97a9431ce16fdf9b19
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Change Log]
2
2
 
3
+ ## [0.2.0] - 2025-07-28
4
+
5
+ - Enforce explicit monkey-patch requirement
6
+
3
7
  ## [0.1.5] - 2025-02-04
4
8
 
5
9
  - Set correct expiration time for idempotency cache
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- idempotency (0.1.5)
4
+ idempotency (0.2.0)
5
5
  base64
6
6
  dry-configurable
7
7
  dry-monitor
@@ -55,7 +55,7 @@ GEM
55
55
  byebug (~> 11.0)
56
56
  pry (>= 0.13, < 0.15)
57
57
  racc (1.8.1)
58
- rack (2.2.10)
58
+ rack (2.2.14)
59
59
  rainbow (3.1.1)
60
60
  redis (5.3.0)
61
61
  redis-client (>= 0.22.0)
data/README.md CHANGED
@@ -72,6 +72,7 @@ Add this to your controller:
72
72
 
73
73
  ```ruby
74
74
  require 'idempotency/hanami'
75
+ require 'idempotency/hanami_extend' # use this if around callback is necessary
75
76
 
76
77
  class Api::Controllers::Users::Create
77
78
  include Hanami::Action
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'hanami/action/callbacks'
4
+ require_relative 'hanami/utils/callbacks'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Idempotency
4
- VERSION = '0.1.5'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idempotency
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vu Hoang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-04 00:00:00.000000000 Z
11
+ date: 2025-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -98,12 +98,13 @@ files:
98
98
  - README.md
99
99
  - Rakefile
100
100
  - idempotency.gemspec
101
- - lib/hanami/action/callbacks.rb
102
- - lib/hanami/utils/callbacks.rb
103
101
  - lib/idempotency.rb
104
102
  - lib/idempotency/cache.rb
105
103
  - lib/idempotency/constants.rb
106
104
  - lib/idempotency/hanami.rb
105
+ - lib/idempotency/hanami/action/callbacks.rb
106
+ - lib/idempotency/hanami/utils/callbacks.rb
107
+ - lib/idempotency/hanami_extend.rb
107
108
  - lib/idempotency/instrumentation/statsd_listener.rb
108
109
  - lib/idempotency/rails.rb
109
110
  - lib/idempotency/testing/helpers.rb