webpacker 4.0.2 → 5.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.js +8 -8
- data/.github/workflows/jest.yml +38 -0
- data/.github/workflows/js-lint.yml +39 -0
- data/.github/workflows/rubocop.yml +39 -0
- data/.github/workflows/ruby.yml +58 -0
- data/.gitignore +1 -0
- data/.node-version +1 -1
- data/.rubocop.yml +115 -14
- data/.travis.yml +16 -18
- data/CHANGELOG.md +329 -130
- data/Gemfile +1 -1
- data/Gemfile.lock +127 -105
- data/README.md +84 -217
- data/docs/assets.md +20 -10
- data/docs/css.md +126 -7
- data/docs/deployment.md +55 -10
- data/docs/docker.md +33 -14
- data/docs/engines.md +60 -2
- data/docs/env.md +0 -2
- data/docs/es6.md +24 -5
- data/docs/integrations.md +220 -0
- data/docs/target.md +22 -0
- data/docs/testing.md +2 -3
- data/docs/troubleshooting.md +46 -7
- data/docs/typescript.md +93 -26
- data/docs/v4-upgrade.md +12 -2
- data/docs/webpack-dev-server.md +2 -2
- data/docs/webpack.md +21 -7
- data/gemfiles/Gemfile-rails-edge +2 -3
- data/gemfiles/Gemfile-rails.5.2.x +1 -2
- data/gemfiles/Gemfile-rails.6.0.x +9 -0
- data/lib/install/bin/webpack +0 -1
- data/lib/install/bin/webpack-dev-server +0 -1
- data/lib/install/coffee.rb +1 -1
- data/lib/install/config/babel.config.js +24 -12
- data/lib/install/config/webpacker.yml +3 -6
- data/lib/install/elm.rb +3 -3
- data/lib/install/erb.rb +2 -2
- data/lib/install/examples/angular/hello_angular/polyfills.ts +2 -2
- data/lib/install/examples/react/babel.config.js +31 -15
- data/lib/install/examples/react/tsconfig.json +2 -1
- data/lib/install/examples/svelte/app.svelte +11 -0
- data/lib/install/examples/svelte/hello_svelte.js +20 -0
- data/lib/install/examples/typescript/tsconfig.json +2 -1
- data/lib/install/examples/vue/hello_vue.js +2 -3
- data/lib/install/loaders/elm.js +9 -6
- data/lib/install/loaders/svelte.js +9 -0
- data/lib/install/svelte.rb +29 -0
- data/lib/install/template.rb +12 -4
- data/lib/install/typescript.rb +6 -13
- data/lib/install/vue.rb +1 -1
- data/lib/tasks/installers.rake +1 -0
- data/lib/tasks/webpacker/check_node.rake +15 -8
- data/lib/tasks/webpacker/check_yarn.rake +16 -10
- data/lib/tasks/webpacker/clean.rake +25 -0
- data/lib/tasks/webpacker/clobber.rake +8 -4
- data/lib/tasks/webpacker/compile.rake +10 -15
- data/lib/tasks/webpacker/yarn_install.rake +11 -1
- data/lib/tasks/webpacker.rake +2 -0
- data/lib/webpacker/commands.rb +53 -1
- data/lib/webpacker/compiler.rb +24 -9
- data/lib/webpacker/configuration.rb +36 -13
- data/lib/webpacker/dev_server.rb +1 -1
- data/lib/webpacker/dev_server_proxy.rb +5 -9
- data/lib/webpacker/dev_server_runner.rb +10 -4
- data/lib/webpacker/env.rb +6 -2
- data/lib/webpacker/helper.rb +71 -26
- data/lib/webpacker/manifest.rb +4 -4
- data/lib/webpacker/railtie.rb +6 -43
- data/lib/webpacker/runner.rb +1 -0
- data/lib/webpacker/version.rb +1 -1
- data/lib/webpacker/webpack_runner.rb +6 -0
- data/lib/webpacker.rb +9 -1
- data/package/__tests__/config.js +12 -24
- data/package/__tests__/dev_server.js +2 -0
- data/package/__tests__/development.js +14 -1
- data/package/config.js +6 -11
- data/package/configPath.js +3 -0
- data/package/config_types/config_list.js +3 -3
- data/package/config_types/config_object.js +1 -1
- data/package/dev_server.js +1 -1
- data/package/env.js +1 -2
- data/package/environments/__tests__/base.js +30 -3
- data/package/environments/base.js +20 -10
- data/package/environments/development.js +39 -37
- data/package/environments/production.js +12 -2
- data/package/rules/babel.js +12 -5
- data/package/rules/file.js +3 -2
- data/package/rules/node_modules.js +3 -4
- data/package/rules/sass.js +11 -2
- data/package/utils/__tests__/get_style_rule.js +9 -0
- data/package/utils/deep_merge.js +5 -5
- data/package/utils/get_style_rule.js +7 -12
- data/package/utils/helpers.js +10 -10
- data/package.json +43 -42
- data/test/command_test.rb +6 -0
- data/test/compiler_test.rb +10 -6
- data/test/configuration_test.rb +40 -30
- data/test/dev_server_runner_test.rb +1 -1
- data/test/dev_server_test.rb +22 -0
- data/test/helper_test.rb +58 -9
- data/test/manifest_test.rb +37 -6
- data/test/rake_tasks_test.rb +17 -0
- data/test/test_app/app/javascript/packs/multi_entry.css +4 -0
- data/test/test_app/app/javascript/packs/multi_entry.js +4 -0
- data/test/test_app/bin/webpack +0 -1
- data/test/test_app/bin/webpack-dev-server +0 -1
- data/test/test_app/config/application.rb +0 -1
- data/test/test_app/config/webpacker.yml +8 -1
- data/test/test_app/public/packs/manifest.json +4 -0
- data/test/webpack_runner_test.rb +1 -1
- data/webpacker.gemspec +7 -4
- data/yarn.lock +4552 -4077
- metadata +73 -19
- data/gemfiles/Gemfile-rails.4.2.x +0 -10
- data/gemfiles/Gemfile-rails.5.0.x +0 -10
- data/gemfiles/Gemfile-rails.5.1.x +0 -10
- data/lib/install/loaders/typescript.js +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00dd2b0d467a3655a30845e4c4d6df2bd3281246aad18c04a666acb1c4ff7ae9
|
4
|
+
data.tar.gz: d6443bedb7c1f9e74cf654c06e016c3d4e378a3ddb962a05c597294c08143c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5287ab184e4ec80391ad2443ffffa0037cdfa2102e9a9020773f215033cbff4b975a3a34336f9f4c5a25886aacba2580e20708450a4e0ffde05df2d17b18771e
|
7
|
+
data.tar.gz: c29cbe442f4e2c29964ad29726cbb48c4460fbbb4f813f6e5c5b7816b3c16b3679ef4101af3889a2cf9c25a32a46632fc50798f548ca7cdf8004e232d34f8144
|
data/.eslintrc.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
module.exports = {
|
2
|
-
|
3
|
-
|
2
|
+
extends: 'airbnb',
|
3
|
+
rules: {
|
4
4
|
'comma-dangle': ['error', 'never'],
|
5
5
|
'import/no-unresolved': 'off',
|
6
6
|
'import/no-extraneous-dependencies': 'off',
|
7
7
|
'import/extensions': 'off',
|
8
|
-
semi: ['error', 'never']
|
8
|
+
semi: ['error', 'never']
|
9
9
|
},
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
}
|
10
|
+
env: {
|
11
|
+
browser: true,
|
12
|
+
node: true
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: Jest specs
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: Jest specs
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
os: [ubuntu-latest]
|
11
|
+
node: [10.x, 12.x, 14.x]
|
12
|
+
|
13
|
+
runs-on: ${{ matrix.os }}
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- name: Get yarn cache directory path
|
18
|
+
id: yarn-cache-dir-path
|
19
|
+
run: echo "::set-output name=dir::$(yarn cache dir)"
|
20
|
+
|
21
|
+
- uses: actions/cache@v2
|
22
|
+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
23
|
+
with:
|
24
|
+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
25
|
+
key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
26
|
+
restore-keys: |
|
27
|
+
${{ runner.os }}-${{ matrix.node }}-yarn-
|
28
|
+
|
29
|
+
- name: Use Node.js ${{ matrix.node }}
|
30
|
+
uses: actions/setup-node@v1
|
31
|
+
with:
|
32
|
+
node-version: ${{ matrix.node }}
|
33
|
+
|
34
|
+
- name: Install dependencies
|
35
|
+
run: yarn --frozen-lockfile
|
36
|
+
|
37
|
+
- name: Jest Specs
|
38
|
+
run: yarn test
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: JS lint
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: JS Lint
|
8
|
+
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
os: [ubuntu-latest]
|
12
|
+
node: [12.x]
|
13
|
+
|
14
|
+
runs-on: ${{ matrix.os }}
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Get yarn cache directory path
|
19
|
+
id: yarn-cache-dir-path
|
20
|
+
run: echo "::set-output name=dir::$(yarn cache dir)"
|
21
|
+
|
22
|
+
- uses: actions/cache@v2
|
23
|
+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
24
|
+
with:
|
25
|
+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
26
|
+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
27
|
+
restore-keys: |
|
28
|
+
${{ runner.os }}-yarn-
|
29
|
+
|
30
|
+
- name: Use Node.js ${{ matrix.node }}
|
31
|
+
uses: actions/setup-node@v1
|
32
|
+
with:
|
33
|
+
node-version: ${{ matrix.node }}
|
34
|
+
|
35
|
+
- name: Install dependencies
|
36
|
+
run: yarn --frozen-lockfile
|
37
|
+
|
38
|
+
- name: Lint
|
39
|
+
run: yarn lint
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: Rubocop
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: Rubocop
|
8
|
+
runs-on: ${{ matrix.os }}
|
9
|
+
env:
|
10
|
+
BUNDLE_JOBS: 4
|
11
|
+
BUNDLE_RETRY: 3
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
os: [ubuntu-latest]
|
15
|
+
ruby: [
|
16
|
+
2.7
|
17
|
+
]
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
- uses: actions/cache@v2
|
22
|
+
with:
|
23
|
+
path: /home/runner/bundle
|
24
|
+
key: bundle-use-ruby-gems-${{ hashFiles('**/Gemfile.lock') }}
|
25
|
+
restore-keys: |
|
26
|
+
bundle-use-ruby-gems-
|
27
|
+
|
28
|
+
- uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
31
|
+
|
32
|
+
- name: Bundle install
|
33
|
+
run: |
|
34
|
+
gem install bundler -v 2.1.4
|
35
|
+
bundle config path /home/runner/bundle
|
36
|
+
bundle install
|
37
|
+
|
38
|
+
- name: Ruby linter
|
39
|
+
run: bundle exec rubocop
|
@@ -0,0 +1,58 @@
|
|
1
|
+
name: Ruby specs
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: Ruby specs
|
8
|
+
runs-on: ${{ matrix.os }}
|
9
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
|
10
|
+
env:
|
11
|
+
BUNDLE_JOBS: 4
|
12
|
+
BUNDLE_RETRY: 3
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
os: [ubuntu-latest]
|
17
|
+
ruby: [
|
18
|
+
2.4,
|
19
|
+
2.5,
|
20
|
+
2.6,
|
21
|
+
2.7
|
22
|
+
]
|
23
|
+
gemfile: [
|
24
|
+
"gemfiles/Gemfile-rails.5.2.x",
|
25
|
+
"gemfiles/Gemfile-rails.6.0.x"
|
26
|
+
]
|
27
|
+
exclude:
|
28
|
+
- ruby: "2.4"
|
29
|
+
gemfile: gemfiles/Gemfile-rails.6.0.x
|
30
|
+
experimental: [false]
|
31
|
+
include:
|
32
|
+
- ruby: 2.7
|
33
|
+
os: ubuntu-latest
|
34
|
+
gemfile: gemfiles/Gemfile-rails-edge
|
35
|
+
experimental: true
|
36
|
+
|
37
|
+
steps:
|
38
|
+
- 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
|
+
|
46
|
+
- uses: ruby/setup-ruby@v1
|
47
|
+
with:
|
48
|
+
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
|
56
|
+
|
57
|
+
- name: Ruby specs
|
58
|
+
run: bundle exec rake test
|
data/.gitignore
CHANGED
data/.node-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
10.17.0
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
require: rubocop-performance
|
1
2
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
3
|
+
TargetRubyVersion: 2.4
|
3
4
|
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
4
5
|
# to ignore them, so only the ones explicitly set in this file are enabled.
|
5
6
|
DisabledByDefault: true
|
@@ -12,11 +13,6 @@ AllCops:
|
|
12
13
|
Style/AndOr:
|
13
14
|
Enabled: true
|
14
15
|
|
15
|
-
# Do not use braces for hash literals when they are the last argument of a
|
16
|
-
# method call.
|
17
|
-
Style/BracesAroundHashParameters:
|
18
|
-
Enabled: true
|
19
|
-
|
20
16
|
# Align `when` with `case`.
|
21
17
|
Layout/CaseIndentation:
|
22
18
|
Enabled: true
|
@@ -49,7 +45,11 @@ Style/HashSyntax:
|
|
49
45
|
# extra level of indentation.
|
50
46
|
Layout/IndentationConsistency:
|
51
47
|
Enabled: true
|
52
|
-
EnforcedStyle:
|
48
|
+
EnforcedStyle: indented_internal_methods
|
49
|
+
|
50
|
+
# Detect hard tabs, no hard tabs.
|
51
|
+
Layout/IndentationStyle:
|
52
|
+
Enabled: true
|
53
53
|
|
54
54
|
# Two spaces, no tabs (for indentation).
|
55
55
|
Layout/IndentationWidth:
|
@@ -71,7 +71,7 @@ Layout/SpaceAroundOperators:
|
|
71
71
|
Enabled: true
|
72
72
|
|
73
73
|
Layout/SpaceBeforeFirstArg:
|
74
|
-
|
74
|
+
Enabled: true
|
75
75
|
|
76
76
|
# Defining a method with parameters needs parentheses.
|
77
77
|
Style/MethodDefParentheses:
|
@@ -97,12 +97,8 @@ Style/StringLiterals:
|
|
97
97
|
Enabled: true
|
98
98
|
EnforcedStyle: double_quotes
|
99
99
|
|
100
|
-
# Detect hard tabs, no hard tabs.
|
101
|
-
Layout/Tab:
|
102
|
-
Enabled: true
|
103
|
-
|
104
100
|
# Blank lines should not have any spaces.
|
105
|
-
Layout/
|
101
|
+
Layout/TrailingEmptyLines:
|
106
102
|
Enabled: true
|
107
103
|
|
108
104
|
# No trailing whitespace.
|
@@ -110,7 +106,7 @@ Layout/TrailingWhitespace:
|
|
110
106
|
Enabled: true
|
111
107
|
|
112
108
|
# Use quotes for string literals when they are enough.
|
113
|
-
Style/
|
109
|
+
Style/RedundantPercentQ:
|
114
110
|
Enabled: true
|
115
111
|
|
116
112
|
# Align `end` with the matching keyword or starting expression except for
|
@@ -122,3 +118,108 @@ Layout/EndAlignment:
|
|
122
118
|
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
123
119
|
Lint/RequireParentheses:
|
124
120
|
Enabled: true
|
121
|
+
|
122
|
+
# Use `bind_call(obj, args, ...)` instead of `bind(obj).call(args, ...)`.
|
123
|
+
Performance/BindCall:
|
124
|
+
Enabled: true
|
125
|
+
|
126
|
+
# Use `caller(n..n)` instead of `caller`.
|
127
|
+
Performance/Caller:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
# Use `casecmp` for case comparison.
|
131
|
+
Performance/Casecmp:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
# Extract Array and Hash literals outside of loops into local variables or constants.
|
135
|
+
Performance/CollectionLiteralInLoop:
|
136
|
+
Enabled: true
|
137
|
+
|
138
|
+
# Prefer `sort_by(&:foo)` instead of `sort { |a, b| a.foo <=> b.foo }`.
|
139
|
+
Performance/CompareWithBlock:
|
140
|
+
Enabled: true
|
141
|
+
|
142
|
+
# Use `count` instead of `{select,find_all,filter,reject}...{size,count,length}`.
|
143
|
+
Performance/Count:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
# Use `delete_prefix` instead of `gsub`.
|
147
|
+
Performance/DeletePrefix:
|
148
|
+
Enabled: true
|
149
|
+
|
150
|
+
# Use `delete_suffix` instead of `gsub`.
|
151
|
+
Performance/DeleteSuffix:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
# Use `detect` instead of `select.first`, `find_all.first`, `filter.first`, `select.last`, `find_all.last`, and `filter.last`.
|
155
|
+
Performance/Detect:
|
156
|
+
Enabled: true
|
157
|
+
|
158
|
+
# Use `str.{start,end}_with?(x, ..., y, ...)` instead of `str.{start,end}_with?(x, ...) || str.{start,end}_with?(y, ...)`.
|
159
|
+
Performance/DoubleStartEndWith:
|
160
|
+
Enabled: true
|
161
|
+
|
162
|
+
# Use `end_with?` instead of a regex match anchored to the end of a string.
|
163
|
+
Performance/EndWith:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
# Do not compute the size of statically sized objects except in constants.
|
167
|
+
Performance/FixedSize:
|
168
|
+
Enabled: true
|
169
|
+
|
170
|
+
# Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1).
|
171
|
+
Performance/FlatMap:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
# Use `key?` or `value?` instead of `keys.include?` or `values.include?`.
|
175
|
+
Performance/InefficientHashSearch:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
# Use `Range#cover?` instead of `Range#include?` (or `Range#member?`).
|
179
|
+
Performance/RangeInclude:
|
180
|
+
Enabled: true
|
181
|
+
|
182
|
+
# Use `yield` instead of `block.call`.
|
183
|
+
Performance/RedundantBlockCall:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
# Use `=~` instead of `String#match` or `Regexp#match` in a context where the returned `MatchData` is not needed.
|
187
|
+
Performance/RedundantMatch:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
# Use Hash#[]=, rather than Hash#merge! with a single key-value pair.
|
191
|
+
Performance/RedundantMerge:
|
192
|
+
Enabled: true
|
193
|
+
|
194
|
+
# Use `match?` instead of `Regexp#match`, `String#match`, `Symbol#match`, `Regexp#===`, or `=~` when `MatchData` is not used.
|
195
|
+
Performance/RegexpMatch:
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
# Use `reverse_each` instead of `reverse.each`.
|
199
|
+
Performance/ReverseEach:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
# Use `size` instead of `count` for counting the number of elements in `Array` and `Hash`.
|
203
|
+
Performance/Size:
|
204
|
+
Enabled: true
|
205
|
+
|
206
|
+
# Use `start_with?` instead of a regex match anchored to the beginning of a string.
|
207
|
+
Performance/StartWith:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
# Use `tr` instead of `gsub` when you are replacing the same number of characters.
|
211
|
+
# Use `delete` instead of `gsub` when you are deleting characters.
|
212
|
+
Performance/StringReplacement:
|
213
|
+
Enabled: true
|
214
|
+
|
215
|
+
# Checks for .times.map calls.
|
216
|
+
Performance/TimesMap:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
# Use unary plus to get an unfrozen string literal.
|
220
|
+
Performance/UnfreezeString:
|
221
|
+
Enabled: true
|
222
|
+
|
223
|
+
# Use `URI::DEFAULT_PARSER` instead of `URI::Parser.new`.
|
224
|
+
Performance/UriDefaultParser:
|
225
|
+
Enabled: true
|
data/.travis.yml
CHANGED
@@ -1,18 +1,17 @@
|
|
1
|
-
sudo: false
|
2
1
|
language: ruby
|
2
|
+
dist: xenial
|
3
3
|
before_install:
|
4
|
-
- gem update
|
4
|
+
- gem install rubygems-update && update_rubygems
|
5
|
+
- yes | rvm @global do gem install bundler -v 2.1.4 || true
|
5
6
|
rvm:
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.5
|
9
|
-
- 2.
|
7
|
+
- 2.4.9
|
8
|
+
- 2.5.5
|
9
|
+
- 2.6.5
|
10
|
+
- 2.7.0
|
10
11
|
- ruby-head
|
11
12
|
gemfile:
|
12
|
-
- gemfiles/Gemfile-rails.4.2.x
|
13
|
-
- gemfiles/Gemfile-rails.5.0.x
|
14
|
-
- gemfiles/Gemfile-rails.5.1.x
|
15
13
|
- gemfiles/Gemfile-rails.5.2.x
|
14
|
+
- gemfiles/Gemfile-rails.6.0.x
|
16
15
|
- gemfiles/Gemfile-rails-edge
|
17
16
|
cache:
|
18
17
|
bundler: true
|
@@ -21,8 +20,8 @@ cache:
|
|
21
20
|
yarn: true
|
22
21
|
|
23
22
|
install:
|
24
|
-
- bundle install
|
25
|
-
- nvm install
|
23
|
+
- bundle install --jobs 3 --retry 3
|
24
|
+
- nvm install 12
|
26
25
|
- node -v
|
27
26
|
- npm i -g yarn
|
28
27
|
- yarn
|
@@ -33,13 +32,12 @@ script:
|
|
33
32
|
- bundle exec rake test
|
34
33
|
matrix:
|
35
34
|
allow_failures:
|
36
|
-
|
35
|
+
- gemfile: gemfiles/Gemfile-rails-edge
|
36
|
+
- rvm: ruby-head
|
37
37
|
exclude:
|
38
|
-
- rvm: 2.
|
39
|
-
gemfile: gemfiles/Gemfile-rails-edge
|
40
|
-
- rvm: 2.4.5
|
38
|
+
- rvm: 2.4.9
|
41
39
|
gemfile: gemfiles/Gemfile-rails-edge
|
42
|
-
- rvm: 2.5.
|
40
|
+
- rvm: 2.5.5
|
43
41
|
gemfile: gemfiles/Gemfile-rails-edge
|
44
|
-
- rvm:
|
45
|
-
gemfile: gemfiles/Gemfile-rails.
|
42
|
+
- rvm: 2.4.9
|
43
|
+
gemfile: gemfiles/Gemfile-rails.6.0.x
|