hanami 2.0.1 → 2.0.2

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: feb360b6ea1b56e04569faecc65485d6bba65a6a59d4ef764830f0ae191fa62f
4
- data.tar.gz: 420ee35b85415b3db8a8c55c7a09ca5bb4d2207f19dd8d1cd47ad767c6c5681c
3
+ metadata.gz: '099623ad9ce0088b28fc658340d85094d493f27e4320df725d4dfc062ee4939c'
4
+ data.tar.gz: 759492d76fb078f025d00e57d8c81cc5840ca769e5a20a0e50d20a0221c9a599
5
5
  SHA512:
6
- metadata.gz: b85cb4483d1aff46916141a5802ac179f63603e124e10dc0ee71c3193e289becafec130fe67551ad6ca1da166611c91c2fcefd4aea636b84a79dfc129f9bb831
7
- data.tar.gz: 19aab9a7f4d054ccca8d311cb077967b0d4fad48b55b86b5fbe8d367a43f86a17406ef21a2712597cc5f5e8344e0e0bbd2e55964b6bcae4e9e8ada25a85c1a11
6
+ metadata.gz: fa25a5f37d22c1faf03906914f1c0a4f5d119ae39088df6878d75ef5c830b7be7632b2b633aa915619ff44990784016da4df666b5343b56166cb31a1f613a4ea
7
+ data.tar.gz: ff70c18b250591af4c2fbaf32532a7ca5cb00adbc17ab87a03e0bb0dddd0ca5a19a7440aa63d0abc9c1570d9784027a4981d2d097632852e7b69f150ebd56328
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  The web, with simplicity.
4
4
 
5
+ ## v2.0.2 - 2022-12-25
6
+
7
+ ### Added
8
+
9
+ - [Luca Guidi] Official support for Ruby 3.2
10
+
11
+ ### Fixed
12
+
13
+ - [Luca Guidi] Content Security Policy: remove deprecated `plugin-types`
14
+
5
15
  ## v2.0.1 - 2022-12-06
6
16
 
7
17
  ### Fixed
@@ -22,7 +22,6 @@ module Hanami
22
22
  img_src: "'self' https: data:",
23
23
  media_src: "'self'",
24
24
  object_src: "'none'",
25
- plugin_types: "application/pdf",
26
25
  script_src: "'self'",
27
26
  style_src: "'self' 'unsafe-inline' https:"
28
27
  }
@@ -7,7 +7,7 @@ module Hanami
7
7
  # @api private
8
8
  module Version
9
9
  # @api public
10
- VERSION = "2.0.1"
10
+ VERSION = "2.0.2"
11
11
 
12
12
  # @since 0.9.0
13
13
  # @api private
@@ -24,7 +24,6 @@ RSpec.describe Hanami::Config::Actions, "#content_security_policy" do
24
24
  %(img-src 'self' https: data:),
25
25
  %(media-src 'self'),
26
26
  %(object-src 'none'),
27
- %(plugin-types application/pdf),
28
27
  %(script-src 'self'),
29
28
  %(style-src 'self' 'unsafe-inline' https:)
30
29
  ].join(";")
@@ -62,10 +61,10 @@ RSpec.describe Hanami::Config::Actions, "#content_security_policy" do
62
61
  end
63
62
 
64
63
  it "nullifies value" do
65
- content_security_policy[:plugin_types] = nil
64
+ content_security_policy[:object_src] = nil
66
65
 
67
- expect(content_security_policy[:plugin_types]).to be(nil)
68
- expect(content_security_policy.to_s).to match("plugin-types ;")
66
+ expect(content_security_policy[:object_src]).to be(nil)
67
+ expect(content_security_policy.to_s).to match("object-src ;")
69
68
  end
70
69
 
71
70
  it "deletes key" do
@@ -2,6 +2,6 @@
2
2
 
3
3
  RSpec.describe "Hanami::VERSION" do
4
4
  it "returns current version" do
5
- expect(Hanami::VERSION).to eq("2.0.1")
5
+ expect(Hanami::VERSION).to eq("2.0.2")
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-06 00:00:00.000000000 Z
11
+ date: 2022-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -407,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
407
407
  - !ruby/object:Gem::Version
408
408
  version: '0'
409
409
  requirements: []
410
- rubygems_version: 3.3.3
410
+ rubygems_version: 3.4.1
411
411
  signing_key:
412
412
  specification_version: 4
413
413
  summary: The web, with simplicity