rspec-temp_dir 1.1.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8672e2bef3db72eafc191d56a8fb001aa21835e58d6c87c735ae2844e3a0a8ef
4
- data.tar.gz: d068969084129500ba2184b89a984b39dcadee4e26828c80a619bde995334881
3
+ metadata.gz: 7886ebd9e54deab0132aca956112176ee55632bddcec66b3df1590142b725039
4
+ data.tar.gz: 253254719f5e58351105197acd0d59fff7a1f8cbb2f7557722ddf3e0b3cc7fbb
5
5
  SHA512:
6
- metadata.gz: 626f5f1bd5eff200d3cba82d0037a7c30b25e2989f691b696f9af4eb0251b1c4d2a37b645a54a53304d6c0b077e0fdc4d37f3264d4a3ee9614117565a27395e8
7
- data.tar.gz: 16236d3d5c8ccf2a0561f214d2ca2b2e635fc2ba79cf26f8ff596323214868732959519dcd6623182c681336913e3a9026ed1e6d7dba9bfdf805223488c6211b
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 }}
@@ -0,0 +1,87 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ jobs:
16
+ test:
17
+ runs-on: ubuntu-latest
18
+
19
+ strategy:
20
+ fail-fast: false
21
+
22
+ matrix:
23
+ ruby:
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"
37
+
38
+ steps:
39
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
40
+
41
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
42
+ with:
43
+ ruby-version: ${{ matrix.ruby }}
44
+ bundler-cache: true
45
+
46
+ - run: bundle update --jobs $(nproc) --retry 3
47
+
48
+ - name: Setup Code Climate Test Reporter
49
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
50
+ with:
51
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
52
+ command: before-build
53
+ continue-on-error: true
54
+
55
+ - run: bundle exec rspec
56
+
57
+ - name: Teardown Code Climate Test Reporter
58
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
59
+ with:
60
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
61
+ command: after-build
62
+ if: always()
63
+ continue-on-error: true
64
+
65
+ - name: Slack Notification (not success)
66
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
67
+ if: "! success()"
68
+ continue-on-error: true
69
+ with:
70
+ status: ${{ job.status }}
71
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
72
+ matrix: ${{ toJson(matrix) }}
73
+
74
+ notify:
75
+ needs:
76
+ - test
77
+
78
+ runs-on: ubuntu-latest
79
+
80
+ steps:
81
+ - name: Slack Notification (success)
82
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
83
+ if: always()
84
+ continue-on-error: true
85
+ with:
86
+ status: ${{ job.status }}
87
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # Changelog
2
2
  ## master
3
- [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.0...master)
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
10
+
11
+ ## v1.1.1
12
+ [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.0...v1.1.1)
13
+
14
+ * Enable MFA requirement for gem releasing
15
+ * https://github.com/sue445/rspec-temp_dir/pull/35
4
16
 
5
17
  ## v1.1.0
6
18
  [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.0.0...v1.1.0)
data/Gemfile CHANGED
@@ -2,3 +2,31 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in rspec-temp_dir.gemspec
4
4
  gemspec
5
+
6
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.0")
7
+ # NOTE: rake v13.0.0+ requires Ruby 2.2.0+
8
+ gem "rake", "< 13.0.0"
9
+ end
10
+
11
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
12
+ # NOTE: json 2.6.0+ requires Ruby 2.3.0+
13
+ gem "json", "< 2.6.0"
14
+
15
+ # NOTE: webrick 1.4.0+ requires Ruby 2.3.0+
16
+ gem "webrick", "< 1.4.0"
17
+ end
18
+
19
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
20
+ # NOTE: simplecov-html v0.11.0+ requires Ruby ~> 2.4
21
+ gem "simplecov-html", "< 0.11.0"
22
+ end
23
+
24
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
25
+ # NOTE: docile v1.4.0+ requires Ruby 2.5.0+
26
+ gem "docile", "< 1.4.0"
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
  [![Gem Version](https://badge.fury.io/rb/rspec-temp_dir.svg)](http://badge.fury.io/rb/rspec-temp_dir)
8
- [![Build Status](https://travis-ci.org/sue445/rspec-temp_dir.svg)](https://travis-ci.org/sue445/rspec-temp_dir)
8
+ [![test](https://github.com/sue445/rspec-temp_dir/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/rspec-temp_dir/actions/workflows/test.yml)
9
9
  [![Code Climate](https://codeclimate.com/github/sue445/rspec-temp_dir.png)](https://codeclimate.com/github/sue445/rspec-temp_dir)
10
10
  [![Coverage Status](https://img.shields.io/coveralls/sue445/rspec-temp_dir.svg)](https://coveralls.io/r/sue445/rspec-temp_dir)
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module TempDir
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
@@ -13,6 +13,12 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/sue445/rspec-temp_dir"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
19
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/rspec-temp_dir/"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
16
22
  spec.files = `git ls-files -z`.split("\x0")
17
23
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
24
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -23,8 +29,9 @@ Gem::Specification.new do |spec|
23
29
  spec.add_dependency "rspec", ">= 3.0"
24
30
 
25
31
  spec.add_development_dependency "bundler"
26
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
27
- spec.add_development_dependency "coveralls"
32
+ spec.add_development_dependency "coveralls_reborn"
28
33
  spec.add_development_dependency "rake"
29
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"
30
37
  end
data/spec/spec_helper.rb CHANGED
@@ -15,7 +15,7 @@
15
15
  #
16
16
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
17
 
18
- if ENV["COVERAGE"]
18
+ if ENV["CI"]
19
19
  require "simplecov"
20
20
  require "coveralls"
21
21
 
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.0
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: 2018-11-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rspec
@@ -39,21 +38,21 @@ dependencies:
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0'
41
40
  - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
41
+ name: coveralls_reborn
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - "~>"
44
+ - - ">="
46
45
  - !ruby/object:Gem::Version
47
- version: 1.0.0
46
+ version: '0'
48
47
  type: :development
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - "~>"
51
+ - - ">="
53
52
  - !ruby/object:Gem::Version
54
- version: 1.0.0
53
+ version: '0'
55
54
  - !ruby/object:Gem::Dependency
56
- name: coveralls
55
+ name: rake
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ">="
@@ -67,7 +66,7 @@ dependencies:
67
66
  - !ruby/object:Gem::Version
68
67
  version: '0'
69
68
  - !ruby/object:Gem::Dependency
70
- name: rake
69
+ name: simplecov
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ">="
@@ -81,7 +80,21 @@ dependencies:
81
80
  - !ruby/object:Gem::Version
82
81
  version: '0'
83
82
  - !ruby/object:Gem::Dependency
84
- name: simplecov
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
85
98
  requirement: !ruby/object:Gem::Requirement
86
99
  requirements:
87
100
  - - ">="
@@ -102,9 +115,13 @@ extensions: []
102
115
  extra_rdoc_files: []
103
116
  files:
104
117
  - ".coveralls.yml"
118
+ - ".github/dependabot.yml"
119
+ - ".github/workflows/pages.yml"
120
+ - ".github/workflows/release_gem.yml"
121
+ - ".github/workflows/test.yml"
105
122
  - ".gitignore"
106
123
  - ".rspec"
107
- - ".travis.yml"
124
+ - ".yardopts"
108
125
  - CHANGELOG.md
109
126
  - Gemfile
110
127
  - LICENSE.txt
@@ -121,8 +138,12 @@ files:
121
138
  homepage: https://github.com/sue445/rspec-temp_dir
122
139
  licenses:
123
140
  - MIT
124
- metadata: {}
125
- post_install_message:
141
+ metadata:
142
+ homepage_uri: https://github.com/sue445/rspec-temp_dir
143
+ source_code_uri: https://github.com/sue445/rspec-temp_dir
144
+ changelog_uri: https://github.com/sue445/rspec-temp_dir/blob/master/CHANGELOG.md
145
+ documentation_uri: https://sue445.github.io/rspec-temp_dir/
146
+ rubygems_mfa_required: 'true'
126
147
  rdoc_options: []
127
148
  require_paths:
128
149
  - lib
@@ -137,9 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
158
  - !ruby/object:Gem::Version
138
159
  version: '0'
139
160
  requirements: []
140
- rubyforge_project:
141
- rubygems_version: 2.7.6
142
- signing_key:
161
+ rubygems_version: 3.6.7
143
162
  specification_version: 4
144
163
  summary: create automatically temporary directory at each examples
145
164
  test_files:
data/.travis.yml DELETED
@@ -1,31 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0
4
- - 2.1
5
- - 2.2
6
- - 2.3
7
- - 2.4
8
- - 2.5
9
- - ruby-head
10
- cache: bundler
11
- bundler_args: "--jobs=2"
12
- before_install:
13
- - gem update --system --no-document
14
- - gem install bundler --no-document
15
- before_script:
16
- - export CODECLIMATE_REPO_TOKEN=329887587f83c7ce5a1ab75f426c00830ba5ffac290c90bc486713c88baea900
17
- - export COVERAGE=true
18
- script:
19
- - bundle exec rspec
20
- - bundle exec codeclimate-test-reporter
21
- branches:
22
- only:
23
- - master
24
- notifications:
25
- email: false
26
- slack:
27
- secure: FWlvqeogBihUPkAQh/2t9ajZXFEe6CXMxcHeH9uY/7GPPBX0e4gUf4RU0xt7Ep3eloa1dtYIGj4UCcE5wZGG6oDdXVTGCp+NDdfKcBCjHyncbynS475m8N4oGTyNJ7LiS7ksL1vjdixO+pJb+EZYHR+RI86M2aaaLRhQ8feOVCU=
28
- matrix:
29
- allow_failures:
30
- - rvm: ruby-head
31
- sudo: false