Skip to content

Commit f2f92e7

Browse files
Merge pull request #6847 from rubygems/release/bundler_2.4.18_rubygems_3.4.18
Prepare RubyGems 3.4.18 and Bundler 2.4.18
2 parents 36ea2bc + 71e4952 commit f2f92e7

File tree

358 files changed

+1660
-894
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+1660
-894
lines changed

.githooks/pre-commit-rubocop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ length=${#files}
55

66
# Run rubocop hook only when analyzable files are present
77
if [[ $length -ne 0 ]]; then
8-
./util/rubocop $files
8+
./bin/rubocop $files
99
else
1010
echo "No files to analyze"
1111
fi

.github/workflows/bundler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ permissions: # added using https://github.com/step-security/secure-workflows
1818
defaults:
1919
run:
2020
shell: bash
21-
working-directory: ./bundler
2221

2322
jobs:
2423
bundler:
@@ -80,4 +79,5 @@ jobs:
8079
- name: Run Test
8180
run: |
8281
bin/parallel_rspec
82+
working-directory: ./bundler
8383
timeout-minutes: ${{ matrix.timeout || 60 }}

.github/workflows/daily-bundler.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ permissions:
1010
defaults:
1111
run:
1212
shell: bash
13-
working-directory: ./bundler
1413

1514
jobs:
1615
daily_bundler:
@@ -39,7 +38,6 @@ jobs:
3938
- name: Run Test
4039
run: |
4140
bin/rake spec:all
42-
4341
- name: Get previous status
4442
if: always()
4543
run: echo "OLD_STATUS=$(curl -sS 'https://api.github.com/repos/rubygems/rubygems/actions/workflows/daily-bundler.yml/runs?event=schedule&branch=master' | jq '.workflow_runs | .[1].conclusion')" >> $GITHUB_ENV

.github/workflows/jruby-bundler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ permissions: # added using https://github.com/step-security/secure-workflows
1818
defaults:
1919
run:
2020
shell: bash
21-
working-directory: ./bundler
2221

2322
jobs:
2423
jruby_bundler:
@@ -52,10 +51,11 @@ jobs:
5251
- name: Run Test
5352
run: |
5453
bin/parallel_rspec --tag jruby_only --tag jruby
54+
working-directory: ./bundler
5555
if: startsWith(matrix.os.name, 'ubuntu')
5656
- name: Install local bundler
5757
run: |
58-
bin/rake install:local
58+
bin/rake bundler:install:local
5959
if: startsWith(matrix.os.name, 'ubuntu')
6060
- name: Run a warbler project
6161
run: |

.github/workflows/realworld-bundler.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,11 @@ jobs:
5555
bundler: none
5656
- name: Prepare dependencies
5757
run: bin/rake spec:deps
58-
working-directory: ./bundler
5958
- name: Replace version
6059
run: BUNDLER_SPEC_SUB_VERSION=${{ matrix.bundler.value }} bin/rake override_version
6160
if: matrix.bundler.value != ''
62-
working-directory: ./bundler
6361
- name: Run Test
6462
run: bin/rake spec:realworld
65-
working-directory: ./bundler
6663
- name: Upload used cassettes as artifact
6764
uses: actions/upload-artifact@v3
6865
with:
@@ -95,14 +92,11 @@ jobs:
9592
bundler: none
9693
- name: Prepare dependencies
9794
run: bin/rake spec:deps
98-
working-directory: ./bundler
9995
- name: Replace version
10096
run: BUNDLER_SPEC_SUB_VERSION=${{ matrix.bundler.value }} bin/rake override_version
10197
if: matrix.bundler.value != ''
102-
working-directory: ./bundler
10398
- name: Run Test
10499
run: bin/rake spec:realworld
105-
working-directory: ./bundler
106100
- name: Upload used cassettes as artifact
107101
uses: actions/upload-artifact@v3
108102
with:
@@ -127,4 +121,3 @@ jobs:
127121
path: ./bundler/spec/support/artifice/used_vcr_cassettes
128122
- name: Check unused cassettes
129123
run: bin/rake spec:realworld:check_unused_cassettes
130-
working-directory: ./bundler

.github/workflows/system-rubygems-bundler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ permissions: # added using https://github.com/step-security/secure-workflows
2222
defaults:
2323
run:
2424
shell: bash
25-
working-directory: ./bundler
2625

2726
jobs:
2827
system_rubygems_bundler:
@@ -60,6 +59,7 @@ jobs:
6059
- name: Run Test
6160
run: |
6261
bin/parallel_rspec
62+
working-directory: ./bundler
6363
- name: Save system RubyGems version to ENV
6464
run: |
6565
RGV=$(ruby -e 'puts Gem::VERSION.split(".")[0..2].join(".")')

.github/workflows/truffleruby-bundler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ permissions: # added using https://github.com/step-security/secure-workflows
1818
defaults:
1919
run:
2020
shell: bash
21-
working-directory: ./bundler
2221

2322
jobs:
2423
truffleruby_bundler:
@@ -38,4 +37,5 @@ jobs:
3837
- name: Run Test
3938
run: |
4039
bin/parallel_rspec --tag truffleruby_only --tag truffleruby
40+
working-directory: ./bundler
4141
timeout-minutes: 20

.github/workflows/ubuntu-lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ jobs:
3636
run: rake docs
3737
- name: Install & Check Dependencies
3838
run: bin/rake dev:frozen_deps
39-
working-directory: ./bundler
4039
- name: Misc checks
4140
run: bin/rake check_rvm_integration man:check check_rubygems_integration
42-
working-directory: ./bundler
4341
timeout-minutes: 15

.rubocop.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ AllCops:
1111
- 'tmp/**/*'
1212
TargetRubyVersion: 2.6
1313

14+
Layout/EmptyLineAfterMagicComment:
15+
Enabled: true
16+
Exclude:
17+
- test/rubygems/specifications/foo-0.0.1-x86-mswin32.gemspec
18+
1419
Layout/AccessModifierIndentation:
1520
Enabled: true
1621

@@ -137,6 +142,16 @@ Performance/StringReplacement:
137142
Security/Open:
138143
Enabled: true
139144

145+
Style/FrozenStringLiteralComment:
146+
Enabled: true
147+
EnforcedStyle: always
148+
Exclude:
149+
- test/rubygems/test_gem.rb
150+
- test/rubygems/specifications/foo-0.0.1-x86-mswin32.gemspec
151+
152+
Style/StderrPuts:
153+
Enabled: true
154+
140155
Style/AndOr:
141156
Enabled: true
142157
EnforcedStyle: always

.rubocop_bundler.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ Layout/ElseAlignment:
259259
Layout/EmptyComment:
260260
Enabled: true
261261

262-
Layout/EmptyLineAfterMagicComment:
263-
Enabled: true
264-
265262
Layout/EmptyLineBetweenDefs:
266263
Enabled: true
267264

@@ -609,10 +606,6 @@ Style/For:
609606
Style/FormatString:
610607
Enabled: true
611608

612-
Style/FrozenStringLiteralComment:
613-
Enabled: true
614-
EnforcedStyle: always
615-
616609
# 1.8.7 support
617610
Style/HashSyntax:
618611
Enabled: true
@@ -791,9 +784,6 @@ Style/SingleLineMethods:
791784
Style/StabbyLambdaParentheses:
792785
Enabled: true
793786

794-
Style/StderrPuts:
795-
Enabled: true
796-
797787
Style/StringLiterals:
798788
Enabled: true
799789
EnforcedStyle: double_quotes

0 commit comments

Comments
 (0)