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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 242828366bfdf4b15faff9cf0a68916517f880bb0a0d1e11daf6b5ff750dedaa
4
- data.tar.gz: 8aa7317529f8ceb29fde7dc13169a9e6fefc5e6fd98e97dc3683b9e8835f498c
3
+ metadata.gz: f8ef54a43f8457a31e8af99da6da97e50b9c406c7f0595f7840057dbf830c557
4
+ data.tar.gz: fa00714f7a3ad4c63562950b596c564ffc1a8a1592c88a7e313f8a74027a05cb
5
5
  SHA512:
6
- metadata.gz: 7cb7509eaa4ad11adccce94b10030663d10697147e95b7cf2a1e4a9ffbe7089dd51bc91042e6a7730adf24b30e5f2195b09aa6811728c430c74d3f41a366630e
7
- data.tar.gz: b36dfe1ff813dce98fac7ba483ce2b30c31dd1a3f6f47cb5f5e43a97295d186ba971db92fb99602a1c836ae95f5ff9910b00949bf2072914ea2ffe657089b037
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.0-beta.65'
21
- DEFAULT_PLUGIN_VERSION = '^1.0.8'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
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.3
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.3/vite_ruby
133
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@1.0.3/vite_ruby/CHANGELOG.md
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
- ```