vite_ruby 1.0.3 → 1.0.4
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/lib/vite_ruby.rb +3 -3
- data/lib/vite_ruby/dev_server_proxy.rb +1 -0
- data/lib/vite_ruby/version.rb +1 -1
- metadata +3 -4
- data/CONTRIBUTING.md +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8ef54a43f8457a31e8af99da6da97e50b9c406c7f0595f7840057dbf830c557
|
4
|
+
data.tar.gz: fa00714f7a3ad4c63562950b596c564ffc1a8a1592c88a7e313f8a74027a05cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65f96a4b01af3c5a773fb6545d893ec072b5eaea006a7456878f651fdac459bd27ea9172dca776b5194011e513b6a10ed623c3c73705f1206825f88dc4909f76
|
7
|
+
data.tar.gz: 60d845e48ac820e6791a7dafa4d5d549fb652b52c7e60bdcdca22cf6c62862717f04bef0043b9e3bbad6fddd9167eab58e93c5654ca1c5858c452960f07413a5
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [1.0.4](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.0.3...vite_ruby@1.0.4) (2021-02-25)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
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))
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
## [1.0.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.0.2...vite_ruby@1.0.3) (2021-02-25)
|
2
11
|
|
3
12
|
|
data/lib/vite_ruby.rb
CHANGED
@@ -17,11 +17,11 @@ class ViteRuby
|
|
17
17
|
ENV_PREFIX = 'VITE_RUBY'
|
18
18
|
|
19
19
|
# Internal: Versions used by default when running `vite install`.
|
20
|
-
DEFAULT_VITE_VERSION = '^2.0.
|
21
|
-
DEFAULT_PLUGIN_VERSION = '^1.0.
|
20
|
+
DEFAULT_VITE_VERSION = '^2.0.3'
|
21
|
+
DEFAULT_PLUGIN_VERSION = '^1.0.13'
|
22
22
|
|
23
23
|
# Internal: Ruby Frameworks that have a companion library for Vite Ruby.
|
24
|
-
SUPPORTED_FRAMEWORKS = %w[rails hanami roda].freeze
|
24
|
+
SUPPORTED_FRAMEWORKS = %w[rails hanami roda padrino sinatra].freeze
|
25
25
|
|
26
26
|
class << self
|
27
27
|
extend Forwardable
|
@@ -39,6 +39,7 @@ private
|
|
39
39
|
|
40
40
|
def forward_to_vite_dev_server(env)
|
41
41
|
rewrite_uri_for_vite(env)
|
42
|
+
env['QUERY_STRING'] ||= ''
|
42
43
|
env['HTTP_HOST'] = env['HTTP_X_FORWARDED_HOST'] = config.host
|
43
44
|
env['HTTP_X_FORWARDED_SERVER'] = config.host_with_port
|
44
45
|
env['HTTP_PORT'] = env['HTTP_X_FORWARDED_PORT'] = config.port.to_s
|
data/lib/vite_ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
@@ -103,7 +103,6 @@ extensions: []
|
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
105
|
- CHANGELOG.md
|
106
|
-
- CONTRIBUTING.md
|
107
106
|
- LICENSE.txt
|
108
107
|
- README.md
|
109
108
|
- default.vite.json
|
@@ -129,8 +128,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
129
128
|
licenses:
|
130
129
|
- MIT
|
131
130
|
metadata:
|
132
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@1.0.
|
133
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@1.0.
|
131
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@1.0.4/vite_ruby
|
132
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@1.0.4/vite_ruby/CHANGELOG.md
|
134
133
|
post_install_message:
|
135
134
|
rdoc_options: []
|
136
135
|
require_paths:
|
data/CONTRIBUTING.md
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
## Setting Up a Development Environment
|
2
|
-
|
3
|
-
1. Install [Yarn](https://yarnpkg.com/)
|
4
|
-
|
5
|
-
2. Run the following commands to set up the development environment.
|
6
|
-
|
7
|
-
```
|
8
|
-
bundle install
|
9
|
-
```
|
10
|
-
|
11
|
-
## Making sure your changes pass all tests
|
12
|
-
There are a number of automated checks which run on GitHub Actions when a pull request is created.
|
13
|
-
You can run those checks on your own locally to make sure that your changes would not break the CI build.
|
14
|
-
|
15
|
-
### 1. Check the code for JavaScript style violations
|
16
|
-
```
|
17
|
-
yarn lint
|
18
|
-
```
|
19
|
-
|
20
|
-
### 2. Check the code for Ruby style violations
|
21
|
-
```
|
22
|
-
bundle exec rubocop
|
23
|
-
```
|
24
|
-
|
25
|
-
### 3. Run the JavaScript test suite
|
26
|
-
```
|
27
|
-
yarn test
|
28
|
-
```
|
29
|
-
|
30
|
-
### 4. Run the Ruby test suite
|
31
|
-
```
|
32
|
-
bundle exec rake test
|
33
|
-
```
|