rspec-temp_dir 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8672e2bef3db72eafc191d56a8fb001aa21835e58d6c87c735ae2844e3a0a8ef
4
- data.tar.gz: d068969084129500ba2184b89a984b39dcadee4e26828c80a619bde995334881
3
+ metadata.gz: 579e33e011734d8de4ab41b4eadc63be3d63d0a5789e285d446e8f41cd4aefa7
4
+ data.tar.gz: 232f1e75fcd135d8dd961ae09fa08367809029f423b5c587f716a1161db37613
5
5
  SHA512:
6
- metadata.gz: 626f5f1bd5eff200d3cba82d0037a7c30b25e2989f691b696f9af4eb0251b1c4d2a37b645a54a53304d6c0b077e0fdc4d37f3264d4a3ee9614117565a27395e8
7
- data.tar.gz: 16236d3d5c8ccf2a0561f214d2ca2b2e635fc2ba79cf26f8ff596323214868732959519dcd6623182c681336913e3a9026ed1e6d7dba9bfdf805223488c6211b
6
+ metadata.gz: 26d3503fcee5866f7983007d8e10e543024f91aafc680eaabb54e1a3517c97cf3c450021b84292a31c6a266bdc4991d981c77f8c0b11b3fdbb386eab6ba1df8a
7
+ data.tar.gz: 8d54bcd20cd7019a84d21740ad0b1b3c51592144d323750664815d075827762e1b17b59606fae804d73b404a5f07959fc5e27c5927002d0250a6a315bdd6c75f
@@ -0,0 +1,113 @@
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
+ env:
16
+ CI: "true"
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ container: ${{ matrix.ruby }}
23
+
24
+ strategy:
25
+ fail-fast: false
26
+
27
+ matrix:
28
+ ruby:
29
+ - ruby:2.0
30
+ - ruby:2.1
31
+ - ruby:2.2
32
+ - ruby:2.3
33
+ - ruby:2.4
34
+ - ruby:2.5
35
+ - ruby:2.6
36
+ - ruby:2.7
37
+ - ruby:3.0
38
+ - rubylang/ruby:master-nightly-bionic
39
+ include:
40
+ - ruby: rubylang/ruby:master-nightly-bionic
41
+ allow_failures: "true"
42
+
43
+ steps:
44
+ - uses: actions/checkout@v2
45
+
46
+
47
+ - name: Cache vendor/bundle
48
+ uses: actions/cache@v1
49
+ id: cache_gem
50
+ with:
51
+ path: vendor/bundle
52
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
53
+ restore-keys: |
54
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
55
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
56
+
57
+ - name: bundle update
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' }}
63
+
64
+ - name: Setup Code Climate Test Reporter
65
+ uses: aktions/codeclimate-test-reporter@v1
66
+ with:
67
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
68
+ command: before-build
69
+ if: matrix.ruby >= 'ruby:2.4'
70
+ continue-on-error: true
71
+
72
+ - name: Run test
73
+ run: |
74
+ set -xe
75
+ bundle exec rspec
76
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
77
+
78
+ - name: Teardown Code Climate Test Reporter
79
+ uses: aktions/codeclimate-test-reporter@v1
80
+ with:
81
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
82
+ command: after-build
83
+ if: matrix.ruby >= 'ruby:2.4' && always()
84
+ continue-on-error: true
85
+
86
+ - name: Slack Notification (not success)
87
+ uses: lazy-actions/slatify@master
88
+ if: "! success()"
89
+ continue-on-error: true
90
+ with:
91
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
92
+ type: ${{ job.status }}
93
+ icon_emoji: ":octocat:"
94
+ url: ${{ secrets.SLACK_WEBHOOK }}
95
+ token: ${{ secrets.GITHUB_TOKEN }}
96
+
97
+ notify:
98
+ needs:
99
+ - test
100
+
101
+ runs-on: ubuntu-latest
102
+
103
+ steps:
104
+ - name: Slack Notification (success)
105
+ uses: lazy-actions/slatify@master
106
+ if: always()
107
+ continue-on-error: true
108
+ with:
109
+ job_name: '*build*'
110
+ type: ${{ job.status }}
111
+ icon_emoji: ":octocat:"
112
+ url: ${{ secrets.SLACK_WEBHOOK }}
113
+ token: ${{ secrets.GITHUB_TOKEN }}
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.0...master)
3
+ [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.1...master)
4
+
5
+ ## v1.1.1
6
+ [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.1.0...v1.1.1)
7
+
8
+ * Enable MFA requirement for gem releasing
9
+ * https://github.com/sue445/rspec-temp_dir/pull/35
4
10
 
5
11
  ## v1.1.0
6
12
  [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v1.0.0...v1.1.0)
data/Gemfile CHANGED
@@ -2,3 +2,23 @@ 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
+ end
15
+
16
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
17
+ # NOTE: simplecov-html v0.11.0+ requires Ruby ~> 2.4
18
+ gem "simplecov-html", "< 0.11.0"
19
+ end
20
+
21
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
22
+ # NOTE: docile v1.4.0+ requires Ruby 2.5.0+
23
+ gem "docile", "< 1.4.0"
24
+ 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
+ [![Build Status](https://github.com/sue445/rspec-temp_dir/workflows/test/badge.svg?branch=master)](https://github.com/sue445/rspec-temp_dir/actions?query=workflow%3Atest)
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.1"
4
4
  end
5
5
  end
@@ -13,6 +13,11 @@ 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["rubygems_mfa_required"] = "true"
20
+
16
21
  spec.files = `git ls-files -z`.split("\x0")
17
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -23,7 +28,6 @@ Gem::Specification.new do |spec|
23
28
  spec.add_dependency "rspec", ">= 3.0"
24
29
 
25
30
  spec.add_development_dependency "bundler"
26
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
27
31
  spec.add_development_dependency "coveralls"
28
32
  spec.add_development_dependency "rake"
29
33
  spec.add_development_dependency "simplecov"
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,14 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-25 00:00:00.000000000 Z
11
+ date: 2021-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 1.0.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: coveralls
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -102,9 +88,9 @@ extensions: []
102
88
  extra_rdoc_files: []
103
89
  files:
104
90
  - ".coveralls.yml"
91
+ - ".github/workflows/test.yml"
105
92
  - ".gitignore"
106
93
  - ".rspec"
107
- - ".travis.yml"
108
94
  - CHANGELOG.md
109
95
  - Gemfile
110
96
  - LICENSE.txt
@@ -121,8 +107,12 @@ files:
121
107
  homepage: https://github.com/sue445/rspec-temp_dir
122
108
  licenses:
123
109
  - MIT
124
- metadata: {}
125
- post_install_message:
110
+ metadata:
111
+ homepage_uri: https://github.com/sue445/rspec-temp_dir
112
+ source_code_uri: https://github.com/sue445/rspec-temp_dir
113
+ changelog_uri: https://github.com/sue445/rspec-temp_dir/blob/master/CHANGELOG.md
114
+ rubygems_mfa_required: 'true'
115
+ post_install_message:
126
116
  rdoc_options: []
127
117
  require_paths:
128
118
  - lib
@@ -137,9 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
127
  - !ruby/object:Gem::Version
138
128
  version: '0'
139
129
  requirements: []
140
- rubyforge_project:
141
- rubygems_version: 2.7.6
142
- signing_key:
130
+ rubygems_version: 3.2.22
131
+ signing_key:
143
132
  specification_version: 4
144
133
  summary: create automatically temporary directory at each examples
145
134
  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