Skip to content

Commit bf7db90

Browse files
authored
Merge branch 'master' into fix_testhelper_require
2 parents 1476ce1 + 0fdacef commit bf7db90

19 files changed

+83
-21
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0
13-
- uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0
13+
- uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0
1414
with:
1515
ruby-version: '3.0'
1616
- name: Install dependencies
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
# from https://github.com/gofiber/swagger/blob/main/.github/workflows/dependabot_automerge.yml
22
name: Dependabot auto-merge
33
on:
4-
pull_request_target:
4+
pull_request:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
59

610
jobs:
711
automerge:
812
runs-on: ubuntu-latest
9-
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
13+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'ruby/rake'
1014
steps:
1115
- name: Dependabot metadata
1216
uses: dependabot/fetch-metadata@v2
1317
id: metadata
18+
1419
- name: Wait for status checks
1520
uses: lewagon/[email protected]
1621
with:
1722
repo-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
1823
ref: ${{ github.event.pull_request.head.sha || github.sha }}
1924
check-regexp: test*
2025
wait-interval: 30
26+
2127
- name: Auto-merge for Dependabot PRs
2228
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
2329
run: gh pr merge --auto --merge "$PR_URL"
2430
env:
25-
PR_URL: ${{github.event.pull_request.html_url}}
31+
PR_URL: ${{ github.event.pull_request.html_url }}
2632
GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_TOKEN }}

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2323
- name: Setup Ruby
24-
uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.139.0
24+
uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.139.0
2525
with:
2626
ruby-version: '3.2'
2727
bundler-cache: true

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
continue-on-error: true
1212
steps:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0
14-
- uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0
14+
- uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0
1515
with:
1616
ruby-version: '3.0'
1717
bundler-cache: true

.github/workflows/push_gem.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish gem to rubygems.org
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
push:
13+
if: github.repository == 'ruby/rake'
14+
runs-on: ubuntu-latest
15+
16+
environment:
17+
name: rubygems.org
18+
url: https://rubygems.org/gems/rake
19+
20+
permissions:
21+
contents: write
22+
id-token: write
23+
24+
steps:
25+
- name: Harden Runner
26+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
27+
with:
28+
egress-policy: audit
29+
30+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
32+
- name: Set up Ruby
33+
uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0
34+
with:
35+
bundler-cache: true
36+
ruby-version: "ruby"
37+
38+
- name: Publish to RubyGems
39+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
40+
41+
- name: Create GitHub release
42+
run: |
43+
tag_name="$(git describe --tags --abbrev=0)"
44+
gh release create "${tag_name}" --verify-tag --generate-notes
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
ruby: jruby
3737
steps:
3838
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.3.0
39-
- uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0
39+
- uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0
4040
with:
4141
ruby-version: ${{ matrix.ruby }}
4242
- name: Install dependencies

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ group :development do
66
gem "test-unit"
77
gem "coveralls"
88
gem "rubocop"
9+
gem "rdoc"
910
end

README.rdoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ Type "rake --help" for all available options.
7474

7575
=== Rake Information
7676

77-
* {Rake command-line}[link:doc/command_line_usage.rdoc]
78-
* {Writing Rakefiles}[link:doc/rakefile.rdoc]
79-
* The original {Rake announcement}[link:doc/rational.rdoc]
80-
* Rake {glossary}[link:doc/glossary.rdoc]
77+
* {Rake command-line}[rdoc-ref:doc/command_line_usage.rdoc]
78+
* {Writing Rakefiles}[rdoc-ref:doc/rakefile.rdoc]
79+
* The original {Rake announcement}[rdoc-ref:doc/rational.rdoc]
80+
* Rake {glossary}[rdoc-ref:doc/glossary.rdoc]
8181

8282
=== Presentations and Articles about Rake
8383

lib/rake/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def standard_system_dir #:nodoc:
765765
end
766766
else
767767
def standard_system_dir #:nodoc:
768-
File.join(File.expand_path("~"), ".rake")
768+
File.join(Dir.home, ".rake")
769769
end
770770
end
771771
private :standard_system_dir

lib/rake/task_arguments.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ def fetch(*args, &block)
9494
@hash.fetch(*args, &block)
9595
end
9696

97+
def deconstruct_keys(keys)
98+
@hash.slice(*keys)
99+
end
100+
97101
protected
98102

99103
def lookup(name) # :nodoc:

0 commit comments

Comments
 (0)