vite_hanami 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/lib/vite_hanami/installation.rb +1 -1
- data/lib/vite_hanami/tag_helpers.rb +6 -0
- data/lib/vite_hanami/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c05e6a41439ec52d366903f3e2df0583635275b60786e2ea60fba22f72514086
|
4
|
+
data.tar.gz: d195c70d50b7396934ed614e5638ec8f4b592228fb2e8b5427294b503b19f497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2287eae5ee873748b93802eeea78a088ff97c3828a542db97ade9d6e8245d42284a0ba15b1c4259b449adf336da79955a278c34fbf4f5fc0a4cea9b0b71fdbef
|
7
|
+
data.tar.gz: 6018adc93e657553a567357fbbac7e282d3946b35b5fa32be72948e8bbd4c5005fc2de7c2e9cf30d086cadd280c88a2b3ef5dc81fe35cbd9e9c935d12be960d1
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
-
## [0.5.
|
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
|
-
*
|
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:
|
data/lib/vite_hanami/version.rb
CHANGED
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.
|
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-
|
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.
|
47
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_hanami@0.5.
|
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:
|