testimonials 1.0.0 → 1.0.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: d114855497d2d5186be09b6e76bab5f0d78e079012cfb765dd2399b61271e191
4
- data.tar.gz: 0c3c906e8dd2aa883cf0261565b2c4f118c0ab8825c06683cbce18f4e59e3a17
3
+ metadata.gz: b121a26d5f4f69adffa693cf23c0aa979ec14838cc9eba0f7e59e1757756ec10
4
+ data.tar.gz: 6fc46e2f27afe6ef3c1f03f0f85b503ad6c48cb1ed13242e29f8895e304c97c1
5
5
  SHA512:
6
- metadata.gz: b9a26a9dd5f656c84cf657ed34bda8f130d3783be1efc98987d8bf438abb25728b6c34dc8c62b28e6e39a65a9a117baf411542da563ddfe9549b96edf1e545a9
7
- data.tar.gz: de494a843ba1747d54a500815eaa2e212b99bc66b5302f6e59aed64f0ea7afba73a1257af1967a5052e441db5a59f6ba56ec9cb578938e18e91450f4d761f88d
6
+ metadata.gz: 0c89f4dc032ed4e160da979a48b00e13d7aaf16aab3e0ec91fc1c79af6187fbec48761b5e68543ed137a009fa2bb483908a5c042645ca8316f82df2b46481708
7
+ data.tar.gz: '0397570a6e61b4cfa5e1bc788be5c1d667deb47038134d60e5d252bf06479082355ca8c0eb4dc3c6974751c3b9838024e47740e62ba1b2fabfe147ad20e4f340'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1 - 2026-08-11
4
+
5
+ - **Media responses now opt out of MIME sniffing.** Approved, consented media
6
+ keeps its existing authorization, streaming, and private cache behavior while
7
+ adding `X-Content-Type-Options: nosniff`.
8
+
3
9
  ## 1.0.0 - 2026-08-11
4
10
 
5
11
  - **The 1.x record names are settled.** `Testimonials::Testimonial`,
@@ -36,6 +36,7 @@ module Testimonials
36
36
 
37
37
  def stream(attachment)
38
38
  blob = attachment.blob
39
+ response.headers['X-Content-Type-Options'] = 'nosniff'
39
40
  response.headers['Cache-Control'] = 'private, no-store'
40
41
  if request.headers['Range'].present?
41
42
  send_blob_byte_range_data(blob, request.headers['Range'], disposition: disposition)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Testimonials
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testimonials
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Shmarov