rspec-time_stop 0.1.3 → 0.1.4
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 +2 -0
- data/.github/workflows/pages.yml +8 -11
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +11 -14
- data/CHANGELOG.md +7 -1
- data/Gemfile +6 -0
- data/README.md +1 -1
- data/lib/rspec/time_stop/version.rb +1 -1
- data/rspec-time_stop.gemspec +1 -0
- metadata +18 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0adbef8ef0b9b3179e8ac80ffd0961d9b44ddc79098247defe178cad6090216
|
|
4
|
+
data.tar.gz: 8fb2cb3441661a1c93d874bfa592eda6cd5b48cd118938c3b1c1a547fb6e7d72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4f80271597e997278c1a4831845d25d30aa45f3774bbb430b7bb8c8f80623341f201ad224fde75642392b32953c2283d02b97024ac73e16df7aee67bbbf5dde
|
|
7
|
+
data.tar.gz: 2f77ca06c6aad6d480f38bb799d5143e65854c9ee20bed108297f31ce41fa2c3e243b876939c1e13d937f8d17e0e6ed519afdc13f0722fd1da3ff4ab07779adf
|
data/.github/dependabot.yml
CHANGED
data/.github/workflows/pages.yml
CHANGED
|
@@ -30,9 +30,9 @@ jobs:
|
|
|
30
30
|
runs-on: ubuntu-latest
|
|
31
31
|
steps:
|
|
32
32
|
- name: Checkout
|
|
33
|
-
uses: actions/checkout@
|
|
33
|
+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
34
34
|
|
|
35
|
-
- uses: ruby/setup-ruby@v1
|
|
35
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
36
36
|
with:
|
|
37
37
|
ruby-version: ruby
|
|
38
38
|
bundler-cache: true
|
|
@@ -40,23 +40,20 @@ jobs:
|
|
|
40
40
|
- run: bundle exec yard
|
|
41
41
|
|
|
42
42
|
- name: Setup Pages
|
|
43
|
-
uses: actions/configure-pages@
|
|
43
|
+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
|
44
44
|
- name: Upload artifact
|
|
45
|
-
uses: actions/upload-pages-artifact@
|
|
45
|
+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
|
46
46
|
with:
|
|
47
47
|
# Upload entire repository
|
|
48
48
|
path: './doc'
|
|
49
49
|
- name: Deploy to GitHub Pages
|
|
50
50
|
id: deployment
|
|
51
|
-
uses: actions/deploy-pages@
|
|
51
|
+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
52
52
|
|
|
53
53
|
- name: Slack Notification (not success)
|
|
54
|
-
uses:
|
|
54
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
55
55
|
if: "! success()"
|
|
56
56
|
continue-on-error: true
|
|
57
57
|
with:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
icon_emoji: ":octocat:"
|
|
61
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
62
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
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-time_stop'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/rspec-time_stop
|
|
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
|
@@ -29,11 +29,13 @@ jobs:
|
|
|
29
29
|
- "3.0"
|
|
30
30
|
- "3.1"
|
|
31
31
|
- "3.2"
|
|
32
|
+
- "3.3"
|
|
33
|
+
- "3.4"
|
|
32
34
|
|
|
33
35
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
36
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
35
37
|
|
|
36
|
-
- uses: ruby/setup-ruby@v1
|
|
38
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
37
39
|
with:
|
|
38
40
|
ruby-version: ${{ matrix.ruby }}
|
|
39
41
|
bundler-cache: true
|
|
@@ -43,15 +45,13 @@ jobs:
|
|
|
43
45
|
- run: bundle exec rspec
|
|
44
46
|
|
|
45
47
|
- name: Slack Notification (not success)
|
|
46
|
-
uses:
|
|
48
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
47
49
|
if: "! success()"
|
|
48
50
|
continue-on-error: true
|
|
49
51
|
with:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
54
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
52
|
+
status: ${{ job.status }}
|
|
53
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
54
|
+
matrix: ${{ toJson(matrix) }}
|
|
55
55
|
|
|
56
56
|
notify:
|
|
57
57
|
needs:
|
|
@@ -61,12 +61,9 @@ jobs:
|
|
|
61
61
|
|
|
62
62
|
steps:
|
|
63
63
|
- name: Slack Notification (success)
|
|
64
|
-
uses:
|
|
64
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
65
65
|
if: always()
|
|
66
66
|
continue-on-error: true
|
|
67
67
|
with:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
icon_emoji: ":octocat:"
|
|
71
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
72
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
68
|
+
status: ${{ job.status }}
|
|
69
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## master
|
|
2
|
-
[full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.
|
|
2
|
+
[full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.4...master)
|
|
3
|
+
|
|
4
|
+
## [v0.1.4](https://github.com/sue445/rspec-time_stop/releases/tag/v0.1.4)
|
|
5
|
+
[full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.3...v0.1.4)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/sue445/rspec-time_stop/pull/48
|
|
3
9
|
|
|
4
10
|
## v0.1.3
|
|
5
11
|
[full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.2...v0.1.3)
|
data/Gemfile
CHANGED
|
@@ -4,3 +4,9 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
|
4
4
|
|
|
5
5
|
# Specify your gem's dependencies in rspec-time_stop.gemspec
|
|
6
6
|
gemspec
|
|
7
|
+
|
|
8
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
|
|
9
|
+
# term-ansicolor 1.10.3+ doesn't work on Ruby < 2.4
|
|
10
|
+
# c.f. https://github.com/flori/term-ansicolor/commit/95f68f02ee38227c7f9e905a5ee3a48d3d3d98ca
|
|
11
|
+
gem "term-ansicolor", "< 1.10.3"
|
|
12
|
+
end
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Stop current time in example.
|
|
|
4
4
|
This is a shorthand of `ActiveSupport::Testing::TimeHelpers`
|
|
5
5
|
|
|
6
6
|
[](https://badge.fury.io/rb/rspec-time_stop)
|
|
7
|
-
[](https://github.com/sue445/rspec-time_stop/actions/workflows/test.yml)
|
|
8
8
|
[](https://coveralls.io/github/sue445/rspec-time_stop)
|
|
9
9
|
[](https://codeclimate.com/github/sue445/rspec-time_stop/maintainability)
|
|
10
10
|
|
data/rspec-time_stop.gemspec
CHANGED
|
@@ -36,5 +36,6 @@ Gem::Specification.new do |spec|
|
|
|
36
36
|
spec.add_development_dependency "coveralls_reborn"
|
|
37
37
|
spec.add_development_dependency "rake"
|
|
38
38
|
spec.add_development_dependency "simplecov"
|
|
39
|
+
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
39
40
|
spec.add_development_dependency "yard"
|
|
40
41
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-time_stop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
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: activesupport
|
|
@@ -94,6 +93,20 @@ dependencies:
|
|
|
94
93
|
- - ">="
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
95
|
version: '0'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: term-ansicolor
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "!="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: 1.11.1
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - "!="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: 1.11.1
|
|
97
110
|
- !ruby/object:Gem::Dependency
|
|
98
111
|
name: yard
|
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -118,6 +131,7 @@ files:
|
|
|
118
131
|
- ".coveralls.yml"
|
|
119
132
|
- ".github/dependabot.yml"
|
|
120
133
|
- ".github/workflows/pages.yml"
|
|
134
|
+
- ".github/workflows/release_gem.yml"
|
|
121
135
|
- ".github/workflows/test.yml"
|
|
122
136
|
- ".gitignore"
|
|
123
137
|
- ".rspec"
|
|
@@ -142,7 +156,6 @@ metadata:
|
|
|
142
156
|
changelog_uri: https://github.com/sue445/rspec-time_stop/blob/master/CHANGELOG.md
|
|
143
157
|
documentation_uri: https://sue445.github.io/rspec-time_stop/
|
|
144
158
|
rubygems_mfa_required: 'true'
|
|
145
|
-
post_install_message:
|
|
146
159
|
rdoc_options: []
|
|
147
160
|
require_paths:
|
|
148
161
|
- lib
|
|
@@ -157,8 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
157
170
|
- !ruby/object:Gem::Version
|
|
158
171
|
version: '0'
|
|
159
172
|
requirements: []
|
|
160
|
-
rubygems_version: 3.
|
|
161
|
-
signing_key:
|
|
173
|
+
rubygems_version: 3.6.7
|
|
162
174
|
specification_version: 4
|
|
163
175
|
summary: Stop current time in example.
|
|
164
176
|
test_files: []
|