redox 1.10.0 → 1.11.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: 03d0f20e443ff8a103213d86e4dcd8c0f4b9d9867b309052e436d39ced672e1c
4
- data.tar.gz: 5d1d8d66e06d593be56d3f90961dc2082f1e491122a2e50d564a7e14cc3a7596
3
+ metadata.gz: d7381604ec036a1daa97af763d7674fc8c5ad75ce4e37111969687c4bb806820
4
+ data.tar.gz: '048fa332dfe5018905dc6c56146dd38891de0448b27fdc88b22af975c0229033'
5
5
  SHA512:
6
- metadata.gz: 4042f4dcc4df79fa98f3b4a73fed816d0e98904575d0e6e5b1077872993ecf162e2d13d44387be5636c84b923aab6371421c0952134edc5819fb80cb52341969
7
- data.tar.gz: 4f31443549140a0bf2bd2f225aca746bf25d8acf40d21abbfd082a62f882b1cd63744a594b43fd5c07c0e4d66fa453b8570bb7fd7a684de72fb0862b9ecb710f
6
+ metadata.gz: 1249e59ad3decdd43242a2b11d6f5dad8d4e85d4f197da2be7440f48ecdd99b81b3820b1da0d345be37e94c757c9733c4cfe4d70834df8d84f4cbfec2dfccf1c
7
+ data.tar.gz: 1c4955af5bccb9007b72a800309f745790a06e251de06cebb741f9d530ad70cefb1c60cd4a9261e720191ac5dc3dd16c450fc66ed8b1169fca9e912b04fcf555
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.11.0] - 2025-12-30
8
+ ### Added
9
+ - JSON compatibility with Rails 7.1's ActiveSupport
10
+
7
11
  ## [1.10.0] - 2025-11-14
8
12
  ### Added
9
13
  - GitHub Actions CI support for Ruby 3.3 and 3.4
@@ -226,6 +230,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
226
230
  ### Added
227
231
  - Initial Release
228
232
 
233
+ [1.11.0]: https://github.com/WeInfuse/redox/compare/v1.10.0...v1.11.0
229
234
  [1.10.0]: https://github.com/WeInfuse/redox/compare/v1.9.0...v1.10.0
230
235
  [1.9.0]: https://github.com/WeInfuse/redox/compare/v1.8.7...v1.9.0
231
236
  [1.8.7]: https://github.com/WeInfuse/redox/compare/v1.8.6...v1.8.7
@@ -13,6 +13,7 @@ module Redox
13
13
  format :json
14
14
 
15
15
  def request(endpoint: DEFAULT_ENDPOINT, body: nil, headers: {}, auth: true)
16
+ body = body.as_json if body.is_a?(Hash) && body.respond_to?(:as_json) # compatibility with Rails 7.1+
16
17
  body = body.to_json if body.is_a?(Hash)
17
18
  headers = auth_header.merge(headers) if auth
18
19
 
@@ -69,7 +69,7 @@ module Redox
69
69
  result
70
70
  end
71
71
 
72
- def as_json(_args)
72
+ def as_json(_args = {})
73
73
  to_h
74
74
  end
75
75
  end
data/lib/redox/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Redox
4
- VERSION = '1.10.0'
4
+ VERSION = '1.11.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Clark