rage-rb 1.26.0 → 1.26.1

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: 7ad60525da974b198db62787784804444e9ad8cb768119a2eeea7f45aefaa93f
4
- data.tar.gz: 8bac8c6ac175b486e61bf64a1ca574e590e14bcbacbec0e0da6de59d905de3b9
3
+ metadata.gz: 1dab3bd5fbff6c838ff8bb686e7f81251f10a3734330f4788990791822484371
4
+ data.tar.gz: c7d03259c16c307078ed3f01f70cf5505b7ce70a49726f52a109377ec9f3ee44
5
5
  SHA512:
6
- metadata.gz: 1bd4700b5265c58df651b026c546a2cbe452577bd5f225cdbdfd4f0334d857c024d3d22743fed4db4d98be3eb71ad30e656106ecae80c55cbbc4f0883f0ae619
7
- data.tar.gz: 3033c718ad816739c81ff79fa825f662943ea02c9aeade6cd6c5bfb68be6800e9fa79c06d57c3430f623db9f0b41e015e921711bcdf407014e4c0fb62c96ba20
6
+ metadata.gz: 1d2d40b1bc876cfaf50fed91c34764798261f85c90e0ca8ffdd12f5039e4a4aa20b16e372be366ddbb9af07eb4de5a5a9b39c5bc603e604593255df347ef089f
7
+ data.tar.gz: 952f48b476cc8dcd1c6b604b771e565f1298d14e5c2857f24881f2a22abb7b32bd67b7c3d75497516ca3b72ce6e61165086ac4979471bbcf0c1d7140fd6eb1ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.26.1] - 2026-07-17
4
+
5
+ ### Fixed
6
+
7
+ - Correctly check content type for custom renderers (#357).
8
+
3
9
  ## [1.26.0] - 2026-07-07
4
10
 
5
11
  ### Added
@@ -425,7 +425,7 @@ class RageController::API
425
425
  end
426
426
  end # class << self
427
427
 
428
- DEFAULT_CONTENT_TYPE = "application/json; charset=utf-8"
428
+ DEFAULT_CONTENT_TYPE = "application/json; charset=utf-8".dup
429
429
  private_constant :DEFAULT_CONTENT_TYPE
430
430
 
431
431
  # @private
@@ -492,7 +492,7 @@ class RageController::API
492
492
  json.is_a?(String) ? json : json.to_json
493
493
  else
494
494
  ct = @__headers["content-type"]
495
- @__headers["content-type"] = "text/plain; charset=utf-8" if ct.nil? || ct == DEFAULT_CONTENT_TYPE
495
+ @__headers["content-type"] = "text/plain; charset=utf-8" if ct.nil? || ct.equal?(DEFAULT_CONTENT_TYPE)
496
496
  plain.to_s
497
497
  end
498
498
 
data/lib/rage/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rage
4
- VERSION = "1.26.0"
4
+ VERSION = "1.26.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Samoilov