rspec-temp_dir 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +11 -3
- data/.github/release.yml +31 -0
- data/.github/workflows/dependabot-manager.yml +28 -0
- data/.github/workflows/pages.yml +4 -45
- data/.github/workflows/release_gem.yml +4 -31
- data/.github/workflows/test.yml +57 -25
- data/CHANGELOG.md +7 -1
- data/README.md +1 -1
- data/lib/rspec/temp_dir/version.rb +1 -1
- data/rspec-temp_dir.gemspec +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ba07930bc4ca52be5ce3a0e91c43a2d95a45e48f3878d90951b6ffed364438d
|
|
4
|
+
data.tar.gz: 39793ef2bf29cbd27fafa7f8eb47d237452907b03909d9d4777add3556e04436
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c23c811df78f13765dee4a5c55f7faeb9093280d6f338f1072d41e12cd4f223f3fec6bd0ca47a1138bdacafa171f93439c48e73057811b8fc5e672d495436ced
|
|
7
|
+
data.tar.gz: 7fdaec625d57065418d8341c236fb06481ba102b1e1e34dd743807cbed78a16ceaff4e80d40cc581dbf54ddf46326cea071d56ff7c07dad47080fe058eeebe1c
|
data/.github/dependabot.yml
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
version: 2
|
|
3
3
|
|
|
4
4
|
updates:
|
|
5
|
+
###########################################################
|
|
6
|
+
# NOTE: following sections are auto generated. DO NOT EDIT!
|
|
7
|
+
###########################################################
|
|
5
8
|
- package-ecosystem: github-actions
|
|
6
9
|
directory: /
|
|
7
10
|
schedule:
|
|
8
|
-
interval:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
interval: monthly
|
|
12
|
+
time: "05:00"
|
|
13
|
+
timezone: Asia/Tokyo
|
|
11
14
|
assignees:
|
|
12
15
|
- sue445
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
18
|
+
exclude:
|
|
19
|
+
- ruby/setup-ruby
|
|
20
|
+
###########################################################
|
data/.github/release.yml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
|
|
2
|
+
|
|
3
|
+
changelog:
|
|
4
|
+
exclude:
|
|
5
|
+
labels:
|
|
6
|
+
- chore
|
|
7
|
+
|
|
8
|
+
categories:
|
|
9
|
+
- title: ":bomb: Breaking Changes"
|
|
10
|
+
labels:
|
|
11
|
+
- breaking change
|
|
12
|
+
|
|
13
|
+
- title: ":lock: Security Fix"
|
|
14
|
+
labels:
|
|
15
|
+
- security
|
|
16
|
+
|
|
17
|
+
- title: ":rocket: Features"
|
|
18
|
+
labels:
|
|
19
|
+
- enhancement
|
|
20
|
+
|
|
21
|
+
- title: ":bug: Bug Fixes"
|
|
22
|
+
labels:
|
|
23
|
+
- bug
|
|
24
|
+
|
|
25
|
+
- title: ":dependabot: Dependency updates"
|
|
26
|
+
labels:
|
|
27
|
+
- dependencies
|
|
28
|
+
|
|
29
|
+
- title: ":pencil: Other Changes"
|
|
30
|
+
labels:
|
|
31
|
+
- "*"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: dependabot-manager
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronize # PR branch is rebased
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
dependabot-auto-merge:
|
|
11
|
+
uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
|
|
12
|
+
with:
|
|
13
|
+
repo-name: sue445/rspec-temp_dir
|
|
14
|
+
secrets:
|
|
15
|
+
# TODO: Set secrets to Dependabot secrets
|
|
16
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
17
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
19
|
+
|
|
20
|
+
dependabot-security-alert:
|
|
21
|
+
uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
|
|
22
|
+
with:
|
|
23
|
+
repo-name: sue445/rspec-temp_dir
|
|
24
|
+
secrets:
|
|
25
|
+
# TODO: Set secrets to Dependabot secrets
|
|
26
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
27
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
28
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
data/.github/workflows/pages.yml
CHANGED
|
@@ -1,59 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
name: Deploy static content to Pages
|
|
1
|
+
name: Deploy yard to Pages
|
|
3
2
|
|
|
4
3
|
on:
|
|
5
|
-
# Runs on pushes targeting the default branch
|
|
6
4
|
push:
|
|
7
5
|
branches:
|
|
8
6
|
- master
|
|
9
|
-
|
|
10
|
-
# Allows you to run this workflow manually from the Actions tab
|
|
11
7
|
workflow_dispatch:
|
|
12
8
|
|
|
13
|
-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
9
|
permissions:
|
|
15
10
|
contents: read
|
|
16
11
|
pages: write
|
|
17
12
|
id-token: write
|
|
18
13
|
|
|
19
|
-
# Allow one concurrent deployment
|
|
20
|
-
concurrency:
|
|
21
|
-
group: "pages"
|
|
22
|
-
cancel-in-progress: true
|
|
23
|
-
|
|
24
14
|
jobs:
|
|
25
|
-
# Single deploy job since we're just deploying
|
|
26
15
|
deploy:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
steps:
|
|
32
|
-
- name: Checkout
|
|
33
|
-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
34
|
-
|
|
35
|
-
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
36
|
-
with:
|
|
37
|
-
ruby-version: ruby
|
|
38
|
-
bundler-cache: true
|
|
39
|
-
|
|
40
|
-
- run: bundle exec yard
|
|
41
|
-
|
|
42
|
-
- name: Setup Pages
|
|
43
|
-
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
|
44
|
-
- name: Upload artifact
|
|
45
|
-
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
|
46
|
-
with:
|
|
47
|
-
# Upload entire repository
|
|
48
|
-
path: './doc'
|
|
49
|
-
- name: Deploy to GitHub Pages
|
|
50
|
-
id: deployment
|
|
51
|
-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
52
|
-
|
|
53
|
-
- name: Slack Notification (not success)
|
|
54
|
-
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
55
|
-
if: "! success()"
|
|
56
|
-
continue-on-error: true
|
|
57
|
-
with:
|
|
58
|
-
status: ${{ job.status }}
|
|
59
|
-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
16
|
+
uses: sue445/workflows/.github/workflows/pages-yard.yml@main
|
|
17
|
+
secrets:
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
@@ -5,37 +5,10 @@ on:
|
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
release:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
name: rubygems.org
|
|
13
|
-
url: https://rubygems.org/gems/rspec-temp_dir
|
|
14
|
-
|
|
8
|
+
uses: sue445/workflows/.github/workflows/release_gem.yml@main
|
|
9
|
+
with:
|
|
10
|
+
repo-name: sue445/rspec-temp_dir
|
|
11
|
+
gem-name: rspec-temp_dir
|
|
15
12
|
permissions:
|
|
16
13
|
contents: write
|
|
17
14
|
id-token: write
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- name: Harden Runner
|
|
21
|
-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
-
with:
|
|
23
|
-
egress-policy: audit
|
|
24
|
-
|
|
25
|
-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
-
|
|
27
|
-
- name: Set up Ruby
|
|
28
|
-
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
29
|
-
with:
|
|
30
|
-
bundler-cache: true
|
|
31
|
-
ruby-version: ruby
|
|
32
|
-
|
|
33
|
-
- name: Publish to RubyGems
|
|
34
|
-
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
35
|
-
|
|
36
|
-
- name: Create GitHub release
|
|
37
|
-
run: |
|
|
38
|
-
tag_name="$(git describe --tags --abbrev=0)"
|
|
39
|
-
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
40
|
-
env:
|
|
41
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -34,54 +34,86 @@ jobs:
|
|
|
34
34
|
- "3.2"
|
|
35
35
|
- "3.3"
|
|
36
36
|
- "3.4"
|
|
37
|
+
- "4.0"
|
|
38
|
+
|
|
39
|
+
include:
|
|
40
|
+
# FIXME: Workaround for "ArgumentError: wrong number of arguments (given 4, expected 1)"
|
|
41
|
+
# c.f. https://github.com/ruby/setup-ruby#rubygems
|
|
42
|
+
- ruby: "2.5"
|
|
43
|
+
rubygems: "3.0.0"
|
|
37
44
|
|
|
38
45
|
steps:
|
|
39
|
-
- uses: actions/checkout@
|
|
46
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
47
|
+
|
|
48
|
+
# FIXME: Workaround for error in `bundle clean`
|
|
49
|
+
# /opt/hostedtoolcache/Ruby/2.5.9/x64/bin/bundle clean
|
|
50
|
+
# Cleaning all the gems on your system is dangerous! If you're sure you want to
|
|
51
|
+
# remove every system gem not in this bundle, run `bundle clean --force`.
|
|
52
|
+
- name: export BUNDLE_PATH
|
|
53
|
+
run: echo "BUNDLE_PATH=vendor/bundle" >> $GITHUB_ENV
|
|
54
|
+
if: matrix.ruby == '2.5'
|
|
40
55
|
|
|
41
|
-
- uses: ruby/setup-ruby@
|
|
56
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
42
57
|
with:
|
|
43
58
|
ruby-version: ${{ matrix.ruby }}
|
|
44
59
|
bundler-cache: true
|
|
60
|
+
rubygems: ${{ matrix.rubygems || 'default' }}
|
|
45
61
|
|
|
46
|
-
- run: bundle update --jobs $(nproc) --retry 3
|
|
62
|
+
- run: bundle update --all --jobs $(nproc) --retry 3
|
|
47
63
|
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
64
|
+
- run: bundle exec rspec
|
|
65
|
+
|
|
66
|
+
- name: Slack Notification (not success)
|
|
67
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
68
|
+
if: "! success()"
|
|
53
69
|
continue-on-error: true
|
|
70
|
+
with:
|
|
71
|
+
status: ${{ job.status }}
|
|
72
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
73
|
+
matrix: ${{ toJson(matrix) }}
|
|
54
74
|
|
|
55
|
-
|
|
75
|
+
yard:
|
|
76
|
+
runs-on: ubuntu-latest
|
|
56
77
|
|
|
57
|
-
|
|
58
|
-
|
|
78
|
+
steps:
|
|
79
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
80
|
+
|
|
81
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
59
82
|
with:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
83
|
+
ruby-version: ruby
|
|
84
|
+
bundler-cache: true
|
|
85
|
+
|
|
86
|
+
- name: bundle update
|
|
87
|
+
run: |
|
|
88
|
+
set -xe
|
|
89
|
+
bundle config path vendor/bundle
|
|
90
|
+
bundle update --all --jobs $(nproc) --retry 3
|
|
91
|
+
|
|
92
|
+
- name: yard generating test
|
|
93
|
+
run: |
|
|
94
|
+
set -xe
|
|
95
|
+
bundle exec yard
|
|
96
|
+
ls -ld doc/
|
|
64
97
|
|
|
65
98
|
- name: Slack Notification (not success)
|
|
66
|
-
uses: act10ns/slack@
|
|
99
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
67
100
|
if: "! success()"
|
|
68
101
|
continue-on-error: true
|
|
69
102
|
with:
|
|
70
103
|
status: ${{ job.status }}
|
|
71
104
|
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
72
|
-
matrix: ${{ toJson(matrix) }}
|
|
73
105
|
|
|
74
|
-
|
|
106
|
+
all-pass:
|
|
107
|
+
if: always()
|
|
108
|
+
|
|
75
109
|
needs:
|
|
76
110
|
- test
|
|
111
|
+
- yard
|
|
77
112
|
|
|
78
|
-
runs-on: ubuntu-
|
|
113
|
+
runs-on: ubuntu-slim
|
|
79
114
|
|
|
80
115
|
steps:
|
|
81
|
-
- name:
|
|
82
|
-
uses:
|
|
83
|
-
if: always()
|
|
84
|
-
continue-on-error: true
|
|
116
|
+
- name: check dependent jobs
|
|
117
|
+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
|
|
85
118
|
with:
|
|
86
|
-
|
|
87
|
-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
119
|
+
jobs: ${{ toJSON(needs) }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
## master
|
|
3
|
-
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.
|
|
3
|
+
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.3...master)
|
|
4
|
+
|
|
5
|
+
## [v1.1.3](https://github.com/sue445/rspec-temp_dir/releases/tag/v1.1.3)
|
|
6
|
+
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.2...v1.1.3)
|
|
7
|
+
|
|
8
|
+
* Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
|
|
9
|
+
* https://github.com/sue445/rspec-temp_dir/pull/103
|
|
4
10
|
|
|
5
11
|
## [v1.1.2](https://github.com/sue445/rspec-temp_dir/releases/tag/v1.1.2)
|
|
6
12
|
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.1...v1.1.2)
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This is inspired by Junit [TemporaryFolder](http://junit.org/junit4/javadoc/4.12
|
|
|
6
6
|
|
|
7
7
|
[](http://badge.fury.io/rb/rspec-temp_dir)
|
|
8
8
|
[](https://github.com/sue445/rspec-temp_dir/actions/workflows/test.yml)
|
|
9
|
-
[](https://qlty.sh/gh/sue445/projects/rspec-temp_dir)
|
|
10
10
|
[](https://coveralls.io/r/sue445/rspec-temp_dir)
|
|
11
11
|
|
|
12
12
|
## Requirements
|
data/rspec-temp_dir.gemspec
CHANGED
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
|
|
|
31
31
|
spec.add_development_dependency "bundler"
|
|
32
32
|
spec.add_development_dependency "coveralls_reborn"
|
|
33
33
|
spec.add_development_dependency "rake"
|
|
34
|
+
spec.add_development_dependency "rdoc"
|
|
34
35
|
spec.add_development_dependency "simplecov"
|
|
35
36
|
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
36
37
|
spec.add_development_dependency "yard"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-temp_dir
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
@@ -65,6 +65,20 @@ dependencies:
|
|
|
65
65
|
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '0'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: rdoc
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
type: :development
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0'
|
|
68
82
|
- !ruby/object:Gem::Dependency
|
|
69
83
|
name: simplecov
|
|
70
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -116,6 +130,8 @@ extra_rdoc_files: []
|
|
|
116
130
|
files:
|
|
117
131
|
- ".coveralls.yml"
|
|
118
132
|
- ".github/dependabot.yml"
|
|
133
|
+
- ".github/release.yml"
|
|
134
|
+
- ".github/workflows/dependabot-manager.yml"
|
|
119
135
|
- ".github/workflows/pages.yml"
|
|
120
136
|
- ".github/workflows/release_gem.yml"
|
|
121
137
|
- ".github/workflows/test.yml"
|
|
@@ -158,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
158
174
|
- !ruby/object:Gem::Version
|
|
159
175
|
version: '0'
|
|
160
176
|
requirements: []
|
|
161
|
-
rubygems_version:
|
|
177
|
+
rubygems_version: 4.0.16
|
|
162
178
|
specification_version: 4
|
|
163
179
|
summary: create automatically temporary directory at each examples
|
|
164
180
|
test_files:
|