rspec-temp_dir 1.1.1 → 1.1.2
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 +12 -0
- data/.github/workflows/pages.yml +59 -0
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +29 -55
- data/.yardopts +2 -0
- data/CHANGELOG.md +7 -1
- data/Gemfile +8 -0
- data/README.md +1 -1
- data/lib/rspec/temp_dir/version.rb +1 -1
- data/rspec-temp_dir.gemspec +4 -1
- metadata +37 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7886ebd9e54deab0132aca956112176ee55632bddcec66b3df1590142b725039
|
|
4
|
+
data.tar.gz: 253254719f5e58351105197acd0d59fff7a1f8cbb2f7557722ddf3e0b3cc7fbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94f8ad4d8a72e53b8cef8666dbeff495c189b34f2cbac79c403a75e35b1da0ef61c5afee32d0485cf2cffa68b6e2397b7d6f7c6ee63ce5ada070a95f5ac3feec
|
|
7
|
+
data.tar.gz: fcc20286a792e60c536b6d859e88560d275b72c4d03c6fee5b887304071b6b89c4de5db741b22c6648ac990d4e6d65322279b9ddbd17515f0169d465d4bdda4f
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: github-actions
|
|
6
|
+
directory: /
|
|
7
|
+
schedule:
|
|
8
|
+
interval: weekly
|
|
9
|
+
cooldown:
|
|
10
|
+
default-days: 7
|
|
11
|
+
assignees:
|
|
12
|
+
- sue445
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Simple workflow for deploying static content to GitHub Pages
|
|
2
|
+
name: Deploy static content to Pages
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# Runs on pushes targeting the default branch
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
|
|
10
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
pages: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
# Allow one concurrent deployment
|
|
20
|
+
concurrency:
|
|
21
|
+
group: "pages"
|
|
22
|
+
cancel-in-progress: true
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
# Single deploy job since we're just deploying
|
|
26
|
+
deploy:
|
|
27
|
+
environment:
|
|
28
|
+
name: github-pages
|
|
29
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
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 }}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'sue445/rspec-temp_dir'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/rspec-temp_dir
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
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
|
@@ -12,87 +12,64 @@ on:
|
|
|
12
12
|
schedule:
|
|
13
13
|
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
|
14
14
|
|
|
15
|
-
env:
|
|
16
|
-
CI: "true"
|
|
17
|
-
|
|
18
15
|
jobs:
|
|
19
16
|
test:
|
|
20
17
|
runs-on: ubuntu-latest
|
|
21
18
|
|
|
22
|
-
container: ${{ matrix.ruby }}
|
|
23
|
-
|
|
24
19
|
strategy:
|
|
25
20
|
fail-fast: false
|
|
26
21
|
|
|
27
22
|
matrix:
|
|
28
23
|
ruby:
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
|
|
24
|
+
- "2.0"
|
|
25
|
+
- "2.1"
|
|
26
|
+
- "2.2"
|
|
27
|
+
- "2.3"
|
|
28
|
+
- "2.4"
|
|
29
|
+
- "2.5"
|
|
30
|
+
- "2.6"
|
|
31
|
+
- "2.7"
|
|
32
|
+
- "3.0"
|
|
33
|
+
- "3.1"
|
|
34
|
+
- "3.2"
|
|
35
|
+
- "3.3"
|
|
36
|
+
- "3.4"
|
|
42
37
|
|
|
43
38
|
steps:
|
|
44
|
-
- uses: actions/checkout@
|
|
39
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
45
40
|
|
|
46
|
-
|
|
47
|
-
- name: Cache vendor/bundle
|
|
48
|
-
uses: actions/cache@v1
|
|
49
|
-
id: cache_gem
|
|
41
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
50
42
|
with:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
restore-keys: |
|
|
54
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
|
55
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
43
|
+
ruby-version: ${{ matrix.ruby }}
|
|
44
|
+
bundler-cache: true
|
|
56
45
|
|
|
57
|
-
-
|
|
58
|
-
run: |
|
|
59
|
-
set -xe
|
|
60
|
-
bundle config path vendor/bundle
|
|
61
|
-
bundle update --jobs $(nproc) --retry 3
|
|
62
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
46
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
|
63
47
|
|
|
64
48
|
- name: Setup Code Climate Test Reporter
|
|
65
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
49
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
66
50
|
with:
|
|
67
51
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
68
52
|
command: before-build
|
|
69
|
-
if: matrix.ruby >= 'ruby:2.4'
|
|
70
53
|
continue-on-error: true
|
|
71
54
|
|
|
72
|
-
-
|
|
73
|
-
run: |
|
|
74
|
-
set -xe
|
|
75
|
-
bundle exec rspec
|
|
76
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
55
|
+
- run: bundle exec rspec
|
|
77
56
|
|
|
78
57
|
- name: Teardown Code Climate Test Reporter
|
|
79
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
58
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
80
59
|
with:
|
|
81
60
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
82
61
|
command: after-build
|
|
83
|
-
if:
|
|
62
|
+
if: always()
|
|
84
63
|
continue-on-error: true
|
|
85
64
|
|
|
86
65
|
- name: Slack Notification (not success)
|
|
87
|
-
uses:
|
|
66
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
88
67
|
if: "! success()"
|
|
89
68
|
continue-on-error: true
|
|
90
69
|
with:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
95
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
70
|
+
status: ${{ job.status }}
|
|
71
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
72
|
+
matrix: ${{ toJson(matrix) }}
|
|
96
73
|
|
|
97
74
|
notify:
|
|
98
75
|
needs:
|
|
@@ -102,12 +79,9 @@ jobs:
|
|
|
102
79
|
|
|
103
80
|
steps:
|
|
104
81
|
- name: Slack Notification (success)
|
|
105
|
-
uses:
|
|
82
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
106
83
|
if: always()
|
|
107
84
|
continue-on-error: true
|
|
108
85
|
with:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
icon_emoji: ":octocat:"
|
|
112
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
113
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
86
|
+
status: ${{ job.status }}
|
|
87
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/.yardopts
ADDED
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.2...master)
|
|
4
|
+
|
|
5
|
+
## [v1.1.2](https://github.com/sue445/rspec-temp_dir/releases/tag/v1.1.2)
|
|
6
|
+
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.1...v1.1.2)
|
|
7
|
+
|
|
8
|
+
* Release gem from GitHub Actions
|
|
9
|
+
* https://github.com/sue445/rspec-temp_dir/pull/63
|
|
4
10
|
|
|
5
11
|
## v1.1.1
|
|
6
12
|
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.0...v1.1.1)
|
data/Gemfile
CHANGED
|
@@ -11,6 +11,9 @@ end
|
|
|
11
11
|
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
|
|
12
12
|
# NOTE: json 2.6.0+ requires Ruby 2.3.0+
|
|
13
13
|
gem "json", "< 2.6.0"
|
|
14
|
+
|
|
15
|
+
# NOTE: webrick 1.4.0+ requires Ruby 2.3.0+
|
|
16
|
+
gem "webrick", "< 1.4.0"
|
|
14
17
|
end
|
|
15
18
|
|
|
16
19
|
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
|
|
@@ -22,3 +25,8 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
|
|
|
22
25
|
# NOTE: docile v1.4.0+ requires Ruby 2.5.0+
|
|
23
26
|
gem "docile", "< 1.4.0"
|
|
24
27
|
end
|
|
28
|
+
|
|
29
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
|
|
30
|
+
# term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
|
|
31
|
+
gem "term-ansicolor", "< 1.9.0"
|
|
32
|
+
end
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ create automatically temporary directory at each examples
|
|
|
5
5
|
This is inspired by Junit [TemporaryFolder](http://junit.org/junit4/javadoc/4.12/org/junit/rules/TemporaryFolder.html)
|
|
6
6
|
|
|
7
7
|
[](http://badge.fury.io/rb/rspec-temp_dir)
|
|
8
|
-
[](https://github.com/sue445/rspec-temp_dir/actions/workflows/test.yml)
|
|
9
9
|
[](https://codeclimate.com/github/sue445/rspec-temp_dir)
|
|
10
10
|
[](https://coveralls.io/r/sue445/rspec-temp_dir)
|
|
11
11
|
|
data/rspec-temp_dir.gemspec
CHANGED
|
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
17
17
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
18
18
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
19
|
+
spec.metadata["documentation_uri"] = "https://sue445.github.io/rspec-temp_dir/"
|
|
19
20
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
20
21
|
|
|
21
22
|
spec.files = `git ls-files -z`.split("\x0")
|
|
@@ -28,7 +29,9 @@ Gem::Specification.new do |spec|
|
|
|
28
29
|
spec.add_dependency "rspec", ">= 3.0"
|
|
29
30
|
|
|
30
31
|
spec.add_development_dependency "bundler"
|
|
31
|
-
spec.add_development_dependency "
|
|
32
|
+
spec.add_development_dependency "coveralls_reborn"
|
|
32
33
|
spec.add_development_dependency "rake"
|
|
33
34
|
spec.add_development_dependency "simplecov"
|
|
35
|
+
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
36
|
+
spec.add_development_dependency "yard"
|
|
34
37
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rspec
|
|
@@ -39,7 +38,7 @@ dependencies:
|
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '0'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
41
|
+
name: coveralls_reborn
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - ">="
|
|
@@ -80,6 +79,34 @@ dependencies:
|
|
|
80
79
|
- - ">="
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '0'
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: term-ansicolor
|
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "!="
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: 1.11.1
|
|
89
|
+
type: :development
|
|
90
|
+
prerelease: false
|
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - "!="
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: 1.11.1
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: yard
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0'
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
83
110
|
description: create automatically temporary directory at each examples
|
|
84
111
|
email:
|
|
85
112
|
- sue445@sue445.net
|
|
@@ -88,9 +115,13 @@ extensions: []
|
|
|
88
115
|
extra_rdoc_files: []
|
|
89
116
|
files:
|
|
90
117
|
- ".coveralls.yml"
|
|
118
|
+
- ".github/dependabot.yml"
|
|
119
|
+
- ".github/workflows/pages.yml"
|
|
120
|
+
- ".github/workflows/release_gem.yml"
|
|
91
121
|
- ".github/workflows/test.yml"
|
|
92
122
|
- ".gitignore"
|
|
93
123
|
- ".rspec"
|
|
124
|
+
- ".yardopts"
|
|
94
125
|
- CHANGELOG.md
|
|
95
126
|
- Gemfile
|
|
96
127
|
- LICENSE.txt
|
|
@@ -111,8 +142,8 @@ metadata:
|
|
|
111
142
|
homepage_uri: https://github.com/sue445/rspec-temp_dir
|
|
112
143
|
source_code_uri: https://github.com/sue445/rspec-temp_dir
|
|
113
144
|
changelog_uri: https://github.com/sue445/rspec-temp_dir/blob/master/CHANGELOG.md
|
|
145
|
+
documentation_uri: https://sue445.github.io/rspec-temp_dir/
|
|
114
146
|
rubygems_mfa_required: 'true'
|
|
115
|
-
post_install_message:
|
|
116
147
|
rdoc_options: []
|
|
117
148
|
require_paths:
|
|
118
149
|
- lib
|
|
@@ -127,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
158
|
- !ruby/object:Gem::Version
|
|
128
159
|
version: '0'
|
|
129
160
|
requirements: []
|
|
130
|
-
rubygems_version: 3.
|
|
131
|
-
signing_key:
|
|
161
|
+
rubygems_version: 3.6.7
|
|
132
162
|
specification_version: 4
|
|
133
163
|
summary: create automatically temporary directory at each examples
|
|
134
164
|
test_files:
|