vite_hanami 0.5.2 → 0.5.3

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: e5ffa95eaa87e0db9fb386b160632b483aa5f13b5541992aeb8b858a104af91e
4
- data.tar.gz: d082156f827529da5a2e112cea26c5ef9db637d8108308890204d41ed4eaa2a6
3
+ metadata.gz: c05e6a41439ec52d366903f3e2df0583635275b60786e2ea60fba22f72514086
4
+ data.tar.gz: d195c70d50b7396934ed614e5638ec8f4b592228fb2e8b5427294b503b19f497
5
5
  SHA512:
6
- metadata.gz: 700c1f9e9f45a7a9904935d3c702c610575533a214d5a7dd055c6ece96b5839e128364c2a30038f2eb1082d1e9dd1dcc4e79466340f36a273c9f02d9768c5643
7
- data.tar.gz: b013d51d0e311a025234cdb7d73f26b44ca3e0e0489f3e88df851e176e1e697903b6eef2d7cf01525b12020c1c6615fb6eff279b88b705e45740038e66deb2bd
6
+ metadata.gz: 2287eae5ee873748b93802eeea78a088ff97c3828a542db97ade9d6e8245d42284a0ba15b1c4259b449adf336da79955a278c34fbf4f5fc0a4cea9b0b71fdbef
7
+ data.tar.gz: 6018adc93e657553a567357fbbac7e282d3946b35b5fa32be72948e8bbd4c5005fc2de7c2e9cf30d086cadd280c88a2b3ef5dc81fe35cbd9e9c935d12be960d1
data/CHANGELOG.md CHANGED
@@ -1,11 +1,15 @@
1
- ## [0.5.2](https://github.com/ElMassimo/vite_ruby/compare/vite_hanami@0.5.1...vite_hanami@0.5.2) (2021-03-07)
1
+ ## [0.5.3](https://github.com/ElMassimo/vite_ruby/compare/vite_hanami@0.5.2...vite_hanami@0.5.3) (2021-04-21)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * Create Vite.js integration with Padrino ([#17](https://github.com/ElMassimo/vite_ruby/issues/17)) ([9e9a0a6](https://github.com/ElMassimo/vite_ruby/commit/9e9a0a67abceed0a784d3c2e0554c717d7f5d1d6))
6
+ * Add helpers to enable HMR when using @vitejs/plugin-react-refresh ([a80f286](https://github.com/ElMassimo/vite_ruby/commit/a80f286d4305bbae29ea7cea42a4329a530f43fa))
7
+
7
8
 
8
9
 
10
+ ## [0.5.2](https://github.com/ElMassimo/vite_ruby/compare/vite_hanami@0.5.1...vite_hanami@0.5.2) (2021-03-07)
11
+
12
+ - Add a bounded requirement to `vite_ruby` dependency.
9
13
 
10
14
  ## Vite Hanami 0.5.1 (2020-02-10)
11
15
 
@@ -16,7 +16,7 @@ module ViteHanami::Installation
16
16
  # Allow @vite/client to hot reload changes in development
17
17
  security.content_security_policy(
18
18
  security.content_security_policy
19
- .sub('script-src', "script-src 'unsafe-eval'")
19
+ .sub('script-src', "script-src 'unsafe-eval' 'unsafe-inline'")
20
20
  .sub('connect-src', "connect-src ws://\#{ ViteRuby.config.host_with_port }")
21
21
  )
22
22
  CSP
@@ -9,6 +9,12 @@ module ViteHanami::TagHelpers
9
9
  html.script(src: src, type: 'module')
10
10
  end
11
11
 
12
+ # Public: Renders a script tag to enable HMR with React Refresh.
13
+ def vite_react_refresh
14
+ tag = vite_manifest.react_refresh_preamble
15
+ raw(tag) if tag
16
+ end
17
+
12
18
  # Public: Resolves the path for the specified Vite asset.
13
19
  #
14
20
  # Example:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteHanami
4
- VERSION = '0.5.2'
4
+ VERSION = '0.5.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_hanami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-07 00:00:00.000000000 Z
11
+ date: 2021-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vite_ruby
@@ -43,8 +43,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
43
43
  licenses:
44
44
  - MIT
45
45
  metadata:
46
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_hanami@0.5.2/vite_hanami
47
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_hanami@0.5.2/vite_hanami/CHANGELOG.md
46
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_hanami@0.5.3/vite_hanami
47
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_hanami@0.5.3/vite_hanami/CHANGELOG.md
48
48
  post_install_message:
49
49
  rdoc_options: []
50
50
  require_paths: