jekyll-vite 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/jekyll/vite/proxy.rb +5 -2
- data/lib/jekyll/vite/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: f8d5f8c77007fcdffb37b4767cdd813174bef94133776d8d82bfa5ecec398e67
|
4
|
+
data.tar.gz: 5a0fb0b03874beb634c8a95c14d608a3ecb7cac70501227672a58f36caab699e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e44cd99b45d1fa61d7b393c24c51ab3ecbcc94dee2107fd61063e5a571b0a2c545195a1c1a2e1fc156550f5e5317894c1c3193e76decbde09430cbb84129a5d
|
7
|
+
data.tar.gz: c30b269c431a66a5b7ca129d719ed9de7a03f50d3e041d37d447ce16999a40a3b09072d942cc9759f3b008e2a0ac9793b81b8d4417b5f0302b5a75426f2b8842
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [0.0.2](https://github.com/ElMassimo/vite_ruby/compare/v0.0.1...v0.0.2) (2021-07-03)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Do not serve files with custom status in local development server ([86cf47b](https://github.com/ElMassimo/vite_ruby/commit/86cf47b485520879c7b7e7a79c7245dc0ba92b16))
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
## 0.0.1 (2021-07-02)
|
2
11
|
|
3
12
|
### Features
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
</p>
|
31
31
|
</h1>
|
32
32
|
|
33
|
-
[
|
33
|
+
[vite ruby]: https://github.com/ElMassimo/vite-ruby
|
34
34
|
[website]: https://vite-ruby.netlify.app/
|
35
35
|
[jekyll]: https://jekyllrb.com/
|
36
36
|
[configuration reference]: https://vite-ruby.netlify.app/config/
|
data/lib/jekyll/vite/proxy.rb
CHANGED
@@ -8,7 +8,7 @@ require 'jekyll/commands/serve/servlet'
|
|
8
8
|
# forward asset requests to the Vite.js development server.
|
9
9
|
module Jekyll::Vite::Proxy
|
10
10
|
# Internal: Used to detect proxied requests since it's not a valid status code.
|
11
|
-
STATUS_SERVE_ORIGINAL =
|
11
|
+
STATUS_SERVE_ORIGINAL = 7
|
12
12
|
|
13
13
|
def initialize(server, *args)
|
14
14
|
@server = server
|
@@ -28,7 +28,10 @@ module Jekyll::Vite::Proxy
|
|
28
28
|
# default Jekyll response instead.
|
29
29
|
def service(req, res)
|
30
30
|
proxy_servlet.service(req, res)
|
31
|
-
|
31
|
+
if res.status == STATUS_SERVE_ORIGINAL
|
32
|
+
res.status = nil
|
33
|
+
super
|
34
|
+
end
|
32
35
|
end
|
33
36
|
|
34
37
|
private
|
data/lib/jekyll/vite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-vite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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-07-
|
11
|
+
date: 2021-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -86,8 +86,8 @@ homepage: https://github.com/ElMassimo/jekyll-vite
|
|
86
86
|
licenses:
|
87
87
|
- MIT
|
88
88
|
metadata:
|
89
|
-
source_code_uri: https://github.com/ElMassimo/jekyll-vite/tree/v0.0.
|
90
|
-
changelog_uri: https://github.com/ElMassimo/jekyll-vite/blob/v0.0.
|
89
|
+
source_code_uri: https://github.com/ElMassimo/jekyll-vite/tree/v0.0.2
|
90
|
+
changelog_uri: https://github.com/ElMassimo/jekyll-vite/blob/v0.0.2/CHANGELOG.md
|
91
91
|
post_install_message:
|
92
92
|
rdoc_options: []
|
93
93
|
require_paths:
|