webpacker 6.0.0.rc.4 → 6.0.0.rc.5

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: 9aaa3b49c6c919292abe99a8699fdc70d32ff0ff514fa9793c6b025ee3ef55e7
4
- data.tar.gz: 5fbcbead474ec7cd0b2130f2535fc112b9d60ef9b5c752511e367827888787b6
3
+ metadata.gz: 308f1dcfbba68cb509f38d0990c5fc0bbab2f0d1291869057f4c11eb797cdc61
4
+ data.tar.gz: 816f1050b3df6a970119fa967e4ff9db2562dd240674d46eba91c0d6ae5aefa7
5
5
  SHA512:
6
- metadata.gz: f1a00e4e7469f729482447cd477072fecba5cf8a93ee79d58e5bb5d252706176b28bbd0222f1673db9cbf9e8588b6b59d146c0ce0eacb20c04ddd13a88828b04
7
- data.tar.gz: 21d5025540ae048dc4729f4d5b393bd3cf863f010764d8e3b084362cb5ff59db7bf6ebb0dfdc41360b300e8665a9f63b2c92dde34dc631e51e4350efe1c79906
6
+ metadata.gz: 4e3051f31353cd4f6ec9c0c7642ce00ab5b90f8093cfbfbb566a17468705e4a2c1ee691e0fb9b45dc55edd49b0cf62c60a8a4428b2843914dabb95ff2eb92f10
7
+ data.tar.gz: a00f04d5951f343a0e0c39bc942aec73863547630807ccd944e0d2a3a459ee52170ce77f4a3fd10c2019c5fed49f570ea174531679d61cf4e5051dea1e4036ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webpacker (6.0.0.rc.4)
4
+ webpacker (6.0.0.rc.5)
5
5
  activesupport (>= 5.2)
6
6
  rack-proxy (>= 0.6.1)
7
7
  railties (>= 5.2)
@@ -93,7 +93,7 @@ GEM
93
93
  nokogiri (1.12.3)
94
94
  mini_portile2 (~> 2.6.1)
95
95
  racc (~> 1.4)
96
- parallel (1.20.2)
96
+ parallel (1.19.1)
97
97
  parser (3.0.2.0)
98
98
  ast (~> 2.4.1)
99
99
  racc (1.5.2)
data/docs/v6_upgrade.md CHANGED
@@ -26,7 +26,7 @@ Example going to a specific version:
26
26
 
27
27
  ```ruby
28
28
  # Gemfile
29
- gem 'webpacker', '6.0.0.rc.4'
29
+ gem 'webpacker', '6.0.0.rc.5'
30
30
  ```
31
31
 
32
32
  ```bash
@@ -34,7 +34,7 @@ Example going to a specific version:
34
34
  ```
35
35
 
36
36
  ```bash
37
- yarn add @rails/webpacker@6.0.0-rc.4 --exact
37
+ yarn add @rails/webpacker@6.0.0-rc.5 --exact
38
38
  ```
39
39
 
40
40
  ```bash
@@ -1,4 +1,4 @@
1
1
  module Webpacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "6.0.0.rc.4".freeze
3
+ VERSION = "6.0.0.rc.5".freeze
4
4
  end
@@ -11,7 +11,7 @@ describe('Development environment', () => {
11
11
  describe('webpackConfig', () => {
12
12
  beforeEach(() => jest.resetModules())
13
13
 
14
- test('should use development config and environment including devServer if WEBPACK_DEV_SERVER', () => {
14
+ test('should use development config and environment including devServer if WEBPACK_SERVE', () => {
15
15
  process.env.RAILS_ENV = 'development'
16
16
  process.env.NODE_ENV = 'development'
17
17
  process.env.WEBPACK_DEV_SERVER = 'true'
@@ -28,7 +28,7 @@ describe('Development environment', () => {
28
28
  })
29
29
  })
30
30
 
31
- test('should use development config and environment if WEBPACK_DEV_SERVER', () => {
31
+ test('should use development config and environment if WEBPACK_SERVE', () => {
32
32
  process.env.RAILS_ENV = 'development'
33
33
  process.env.NODE_ENV = 'development'
34
34
  process.env.WEBPACK_DEV_SERVER = undefined
data/package/env.js CHANGED
@@ -16,10 +16,7 @@ const config = load(readFileSync(configPath), 'utf8')
16
16
  const availableEnvironments = Object.keys(config).join('|')
17
17
  const regex = new RegExp(`^(${availableEnvironments})$`, 'g')
18
18
 
19
- // v4 of webpack-dev-server will switch to WEBPACK_DEV_SERVE
20
- // https://github.com/rails/webpacker/issues/3057
21
- const runningWebpackDevServer = process.env.WEBPACK_DEV_SERVER === 'true' ||
22
- process.env.WEBPACK_DEV_SERVE === 'true'
19
+ const runningWebpackDevServer = process.env.WEBPACK_SERVE === 'true'
23
20
 
24
21
  module.exports = {
25
22
  railsEnv: railsEnv && railsEnv.match(regex) ? railsEnv : DEFAULT,
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/webpacker",
3
- "version": "6.0.0-rc.4",
3
+ "version": "6.0.0-rc.5",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "main": "package/index.js",
6
6
  "files": [
@@ -50,7 +50,7 @@ class DevServerRunnerTest < Webpacker::Test
50
50
  cmd = ["#{test_app_path}/node_modules/.bin/webpack", "serve", "--config", "#{test_app_path}/config/webpack/development.js"]
51
51
  env = Webpacker::Compiler.env.dup
52
52
  ENV["WEBPACKER_CONFIG"] = env["WEBPACKER_CONFIG"] = "#{test_app_path}/config/webpacker_other_location.yml"
53
- env["WEBPACK_DEV_SERVER"] = "true"
53
+ env["WEBPACK_SERVE"] = "true"
54
54
  verify_command(cmd, env: env)
55
55
  end
56
56
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.rc.4
4
+ version: 6.0.0.rc.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -262,8 +262,8 @@ homepage: https://github.com/rails/webpacker
262
262
  licenses:
263
263
  - MIT
264
264
  metadata:
265
- source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.rc.4
266
- changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.rc.4/CHANGELOG.md
265
+ source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.rc.5
266
+ changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.rc.5/CHANGELOG.md
267
267
  post_install_message:
268
268
  rdoc_options: []
269
269
  require_paths: