webpacker 5.4.2 → 5.4.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: b1fffe5b7638d5277bcdea3ec973e476ce99f969a963a724facd3acccac00cb0
4
- data.tar.gz: 46a6867ae973359de996b70da2a082331f85b841556c7e010feaa84c4d93d54a
3
+ metadata.gz: 0370a980c6e40b16b54b814c08883722bd218a9dcfc8a7d6678cb2d93bba9a46
4
+ data.tar.gz: caa8625ecc6fd35bd5906007574671c542232d1fc899304d0de5dec507afbaf2
5
5
  SHA512:
6
- metadata.gz: 671dfd0980abb4665adc7b6bab5a1e7e4e8478c77475e151f75ac02930384818c8835f95785bc4fa981480f2378783f56f4dc0f91e93ff485394cc152e11fe8c
7
- data.tar.gz: 3e7263bc2c9d30250f74f18b02a340064468cefc8ec07f33dd6866c986ccbfca0dfb4a98306801519f95f38b8191f1d2c92479fa8901f13d52c2bf493719b147
6
+ metadata.gz: 2a189c9360243cd577442a4373e2d10c98262730a0539dbfb35ea24f9fab45b365964b53f9184c3ee3c261bd561b2aa1bb504057318400b5bf94a87441ce1d1e
7
+ data.tar.gz: 53e0c0fcd2bd906ea5099c5d10bbccd6ef0e462c398b12345730dab201362e008d858c22bae89377144e4ddee18ae0942927f9c94b334816a137e79111581fa1
@@ -7,9 +7,6 @@ jobs:
7
7
  name: Ruby specs
8
8
  runs-on: ${{ matrix.os }}
9
9
  continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
10
- env:
11
- BUNDLE_JOBS: 4
12
- BUNDLE_RETRY: 3
13
10
  strategy:
14
11
  fail-fast: false
15
12
  matrix:
@@ -34,25 +31,16 @@ jobs:
34
31
  gemfile: gemfiles/Gemfile-rails-edge
35
32
  experimental: true
36
33
 
34
+ env:
35
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
37
36
  steps:
38
37
  - uses: actions/checkout@v2
39
- - uses: actions/cache@v2
40
- with:
41
- path: /home/runner/bundle
42
- key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
43
- restore-keys: |
44
- bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-
45
38
 
46
39
  - uses: ruby/setup-ruby@v1
47
40
  with:
48
41
  ruby-version: ${{ matrix.ruby }}
49
-
50
- - name: Bundle install
51
- run: |
52
- gem install bundler -v 2.1.4
53
- bundle config path /home/runner/bundle
54
- bundle config --global gemfile ${{ matrix.gemfile }}
55
- bundle install --jobs 4 --retry 3
42
+ bundler-cache: true
43
+ rubygems: ${{ matrix.ruby < '2.6' && 'default' || 'latest' }}
56
44
 
57
45
  - name: Ruby specs
58
46
  run: bundle exec rake test
data/.node-version CHANGED
@@ -1 +1 @@
1
- 16.2.0
1
+ 10.17.0
data/.rubocop.yml CHANGED
@@ -109,6 +109,9 @@ Layout/TrailingWhitespace:
109
109
  Style/RedundantPercentQ:
110
110
  Enabled: true
111
111
 
112
+ Lint/DeprecatedClassMethods:
113
+ Enabled: true
114
+
112
115
  # Align `end` with the matching keyword or starting expression except for
113
116
  # assignments, where it should be aligned with the LHS.
114
117
  Layout/EndAlignment:
data/CHANGELOG.md CHANGED
@@ -2,7 +2,15 @@
2
2
 
3
3
  **Please note that Webpacker 4.1.0 has an installer bug. Please use 4.2.0 or above**
4
4
 
5
- ## [[5.4.2]](https://github.com/rails/webpacker/compare/v5.4.0...v5.4.1) - 2021-08-20
5
+ ## [[5.4.4]](https://github.com/rails/webpacker/compare/v5.4.3...v5.4.4) - 2023-01-31
6
+
7
+ - Fix compatibility with Ruby 3.2. (#3306)
8
+
9
+ ## [[5.4.3]](https://github.com/rails/webpacker/compare/v5.4.2...v5.4.3) - 2021-09-14
10
+
11
+ - Specify webpack-dev-server to be v3, to avoid getting webpack-dev-server v4 (#3121)
12
+
13
+ ## [[5.4.2]](https://github.com/rails/webpacker/compare/v5.4.1...v5.4.2) - 2021-08-20
6
14
 
7
15
  - Fix babel warning about private-methods in @babel/plugin-proposal-private-property-in-object as well.
8
16
 
data/CONTRIBUTING.md CHANGED
@@ -9,7 +9,7 @@ yarn
9
9
  ```
10
10
 
11
11
  ## Making sure your changes pass all tests
12
- There are a number of automated checks which run on Travis CI when a pull request is created.
12
+ There are a number of automated checks which run on Github Actions when a pull request is created.
13
13
  You can run those checks on your own locally to make sure that your changes would not break the CI build.
14
14
 
15
15
  ### 1. Check the code for JavaScript style violations
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webpacker (5.4.0)
4
+ webpacker (5.4.4)
5
5
  activesupport (>= 5.2)
6
6
  rack-proxy (>= 0.6.1)
7
7
  railties (>= 5.2)
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Webpacker
2
2
 
3
- [![Build Status](https://travis-ci.org/rails/webpacker.svg?branch=master)](https://travis-ci.org/rails/webpacker)
3
+ [![Ruby specs](https://github.com/rails/webpacker/workflows/Ruby%20specs/badge.svg)](https://github.com/rails/webpacker/actions)
4
+ [![Jest specs](https://github.com/rails/webpacker/workflows/Jest%20specs/badge.svg)](https://github.com/rails/webpacker/actions)
5
+ [![Rubocop](https://github.com/rails/webpacker/workflows/Rubocop/badge.svg)](https://github.com/rails/webpacker/actions)
6
+ [![JS lint](https://github.com/rails/webpacker/workflows/JS%20lint/badge.svg)](https://github.com/rails/webpacker/actions)
7
+
4
8
  [![node.js](https://img.shields.io/badge/node-%3E%3D%2010.17.0-brightgreen.svg)](https://www.npmjs.com/package/@rails/webpacker)
5
9
  [![Gem](https://img.shields.io/gem/v/webpacker.svg)](https://rubygems.org/gems/webpacker)
6
10
 
@@ -13,7 +13,7 @@ copy_file "#{__dir__}/config/babel.config.js", "babel.config.js"
13
13
  say "Copying .browserslistrc to app root directory"
14
14
  copy_file "#{__dir__}/config/.browserslistrc", ".browserslistrc"
15
15
 
16
- if Dir.exists?(Webpacker.config.source_path)
16
+ if Dir.exist?(Webpacker.config.source_path)
17
17
  say "The JavaScript app source directory already exists"
18
18
  else
19
19
  say "Creating JavaScript app source directory"
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  apply "#{__dir__}/binstubs.rb"
24
24
 
25
- if File.exists?(".gitignore")
25
+ if File.exist?(".gitignore")
26
26
  append_to_file ".gitignore" do
27
27
  "\n" +
28
28
  "/public/packs\n" +
@@ -51,7 +51,7 @@ say "Installing webpack and webpack-cli as direct dependencies"
51
51
  run "yarn add webpack@#{webpack_version} webpack-cli@#{webpack_cli_version}"
52
52
 
53
53
  say "Installing dev server for live reloading"
54
- run "yarn add --dev webpack-dev-server"
54
+ run "yarn add --dev webpack-dev-server@^3"
55
55
 
56
56
  if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR > 1
57
57
  say "You need to allow webpack-dev-server host as allowed origin for connect-src.", :yellow
@@ -1,4 +1,4 @@
1
1
  module Webpacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "5.4.2".freeze
3
+ VERSION = "5.4.4".freeze
4
4
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/webpacker",
3
- "version": "5.4.2",
3
+ "version": "5.4.3",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "main": "package/index.js",
6
6
  "files": [
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: 5.4.2
4
+ version: 5.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-08-20 00:00:00.000000000 Z
12
+ date: 2023-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -126,7 +126,6 @@ files:
126
126
  - ".gitignore"
127
127
  - ".node-version"
128
128
  - ".rubocop.yml"
129
- - ".travis.yml"
130
129
  - CHANGELOG.md
131
130
  - CONTRIBUTING.md
132
131
  - Gemfile
@@ -306,8 +305,8 @@ homepage: https://github.com/rails/webpacker
306
305
  licenses:
307
306
  - MIT
308
307
  metadata:
309
- source_code_uri: https://github.com/rails/webpacker/tree/v5.4.2
310
- changelog_uri: https://github.com/rails/webpacker/blob/v5.4.2/CHANGELOG.md
308
+ source_code_uri: https://github.com/rails/webpacker/tree/v5.4.4
309
+ changelog_uri: https://github.com/rails/webpacker/blob/v5.4.4/CHANGELOG.md
311
310
  post_install_message:
312
311
  rdoc_options: []
313
312
  require_paths:
@@ -323,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
322
  - !ruby/object:Gem::Version
324
323
  version: '0'
325
324
  requirements: []
326
- rubygems_version: 3.1.4
325
+ rubygems_version: 3.1.2
327
326
  signing_key:
328
327
  specification_version: 4
329
328
  summary: Use webpack to manage app-like JavaScript modules in Rails
data/.travis.yml DELETED
@@ -1,43 +0,0 @@
1
- language: ruby
2
- dist: xenial
3
- before_install:
4
- - gem install rubygems-update && update_rubygems
5
- - yes | rvm @global do gem install bundler -v 2.1.4 || true
6
- rvm:
7
- - 2.4.9
8
- - 2.5.5
9
- - 2.6.5
10
- - 2.7.0
11
- - ruby-head
12
- gemfile:
13
- - gemfiles/Gemfile-rails.5.2.x
14
- - gemfiles/Gemfile-rails.6.0.x
15
- - gemfiles/Gemfile-rails-edge
16
- cache:
17
- bundler: true
18
- directories:
19
- - node_modules
20
- yarn: true
21
-
22
- install:
23
- - bundle install --jobs 3 --retry 3
24
- - nvm install 12
25
- - node -v
26
- - npm i -g yarn
27
- - yarn
28
- script:
29
- - yarn lint
30
- - yarn test
31
- - bundle exec rubocop
32
- - bundle exec rake test
33
- matrix:
34
- allow_failures:
35
- - gemfile: gemfiles/Gemfile-rails-edge
36
- - rvm: ruby-head
37
- exclude:
38
- - rvm: 2.4.9
39
- gemfile: gemfiles/Gemfile-rails-edge
40
- - rvm: 2.5.5
41
- gemfile: gemfiles/Gemfile-rails-edge
42
- - rvm: 2.4.9
43
- gemfile: gemfiles/Gemfile-rails.6.0.x