rspec-time_stop 0.1.4 → 0.1.5

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: e0adbef8ef0b9b3179e8ac80ffd0961d9b44ddc79098247defe178cad6090216
4
- data.tar.gz: 8fb2cb3441661a1c93d874bfa592eda6cd5b48cd118938c3b1c1a547fb6e7d72
3
+ metadata.gz: 59c2a0f9749dd2bfe36ec56aad2c72de84eb0cebfa2b0b1f5f0e36ce26843089
4
+ data.tar.gz: 92a6c86a37079022ae3217e6b3f1cd4dc06ef02541c93060bdbefa3b6603bdde
5
5
  SHA512:
6
- metadata.gz: d4f80271597e997278c1a4831845d25d30aa45f3774bbb430b7bb8c8f80623341f201ad224fde75642392b32953c2283d02b97024ac73e16df7aee67bbbf5dde
7
- data.tar.gz: 2f77ca06c6aad6d480f38bb799d5143e65854c9ee20bed108297f31ce41fa2c3e243b876939c1e13d937f8d17e0e6ed519afdc13f0722fd1da3ff4ab07779adf
6
+ metadata.gz: 7c05f5af1fc31ebf032c7184a9c35bd86e373efb51950dbcf0dc337398a748d18fc66b6d9add2ccb6a4497cd7c07c051c5524e9a60dbd9f829394ed64783946d
7
+ data.tar.gz: 998ea5f7e7de41ec01dd995b9291bc7ad080c2b30d15583cf52f34bd3ba7e1b29ab42714aa0864ebd8b8430179ff075a30116d2231515a953c0a45046be7903f
@@ -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: weekly
9
- cooldown:
10
- default-days: 7
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
+ ###########################################################
@@ -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-time_stop
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-time_stop
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 }}
@@ -1,59 +1,18 @@
1
- # Simple workflow for deploying static content to GitHub Pages
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
- 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 }}
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
- 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
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/rspec-time_stop
11
+ gem-name: rspec-time_stop
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 }}
@@ -31,21 +31,37 @@ jobs:
31
31
  - "3.2"
32
32
  - "3.3"
33
33
  - "3.4"
34
+ - "4.0"
35
+
36
+ include:
37
+ # FIXME: Workaround for "ArgumentError: wrong number of arguments (given 4, expected 1)"
38
+ # c.f. https://github.com/ruby/setup-ruby#rubygems
39
+ - ruby: "2.5"
40
+ rubygems: "3.0.0"
34
41
 
35
42
  steps:
36
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
43
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
44
+
45
+ # FIXME: Workaround for error in `bundle clean`
46
+ # /opt/hostedtoolcache/Ruby/2.5.9/x64/bin/bundle clean
47
+ # Cleaning all the gems on your system is dangerous! If you're sure you want to
48
+ # remove every system gem not in this bundle, run `bundle clean --force`.
49
+ - name: export BUNDLE_PATH
50
+ run: echo "BUNDLE_PATH=vendor/bundle" >> $GITHUB_ENV
51
+ if: matrix.ruby == '2.5'
37
52
 
38
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
53
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
39
54
  with:
40
55
  ruby-version: ${{ matrix.ruby }}
41
56
  bundler-cache: true
57
+ rubygems: ${{ matrix.rubygems || 'default' }}
42
58
 
43
- - run: bundle update --jobs $(nproc) --retry 3
59
+ - run: bundle update --all --jobs $(nproc) --retry 3
44
60
 
45
61
  - run: bundle exec rspec
46
62
 
47
63
  - name: Slack Notification (not success)
48
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
64
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
49
65
  if: "! success()"
50
66
  continue-on-error: true
51
67
  with:
@@ -53,17 +69,48 @@ jobs:
53
69
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
54
70
  matrix: ${{ toJson(matrix) }}
55
71
 
56
- notify:
57
- needs:
58
- - test
59
-
72
+ yard:
60
73
  runs-on: ubuntu-latest
61
74
 
62
75
  steps:
63
- - name: Slack Notification (success)
64
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
65
- if: always()
76
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
77
+
78
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
79
+ with:
80
+ ruby-version: ruby
81
+ bundler-cache: true
82
+
83
+ - name: bundle update
84
+ run: |
85
+ set -xe
86
+ bundle config path vendor/bundle
87
+ bundle update --all --jobs $(nproc) --retry 3
88
+
89
+ - name: yard generating test
90
+ run: |
91
+ set -xe
92
+ bundle exec yard
93
+ ls -ld doc/
94
+
95
+ - name: Slack Notification (not success)
96
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
97
+ if: "! success()"
66
98
  continue-on-error: true
67
99
  with:
68
100
  status: ${{ job.status }}
69
101
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
102
+
103
+ all-pass:
104
+ if: always()
105
+
106
+ needs:
107
+ - test
108
+ - yard
109
+
110
+ runs-on: ubuntu-slim
111
+
112
+ steps:
113
+ - name: check dependent jobs
114
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
115
+ with:
116
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.4...master)
2
+ [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.5...master)
3
+
4
+ ## [v0.1.5](https://github.com/sue445/rspec-time_stop/releases/tag/v0.1.5)
5
+ [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.4...v0.1.5)
6
+
7
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
8
+ * https://github.com/sue445/rspec-time_stop/pull/92
3
9
 
4
10
  ## [v0.1.4](https://github.com/sue445/rspec-time_stop/releases/tag/v0.1.4)
5
11
  [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.3...v0.1.4)
data/Gemfile CHANGED
@@ -10,3 +10,8 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
10
10
  # c.f. https://github.com/flori/term-ansicolor/commit/95f68f02ee38227c7f9e905a5ee3a48d3d3d98ca
11
11
  gem "term-ansicolor", "< 1.10.3"
12
12
  end
13
+
14
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.2.0")
15
+ # NOTE: i18n 1.15.0+ requires Ruby 3.2+
16
+ gem "i18n", "< 1.15.0"
17
+ end
data/README.md CHANGED
@@ -6,7 +6,7 @@ This is a shorthand of `ActiveSupport::Testing::TimeHelpers`
6
6
  [![Gem Version](https://badge.fury.io/rb/rspec-time_stop.svg)](https://badge.fury.io/rb/rspec-time_stop)
7
7
  [![test](https://github.com/sue445/rspec-time_stop/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/rspec-time_stop/actions/workflows/test.yml)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/rspec-time_stop/badge.svg)](https://coveralls.io/github/sue445/rspec-time_stop)
9
- [![Maintainability](https://api.codeclimate.com/v1/badges/9f437c78e286285f5605/maintainability)](https://codeclimate.com/github/sue445/rspec-time_stop/maintainability)
9
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/rspec-time_stop/maintainability.svg)](https://qlty.sh/gh/sue445/projects/rspec-time_stop)
10
10
 
11
11
  ## Installation
12
12
 
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module TimeStop
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -34,7 +34,10 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_development_dependency "bundler", ">= 1.16"
36
36
  spec.add_development_dependency "coveralls_reborn"
37
+ spec.add_development_dependency "irb"
38
+ spec.add_development_dependency "ostruct"
37
39
  spec.add_development_dependency "rake"
40
+ spec.add_development_dependency "rdoc"
38
41
  spec.add_development_dependency "simplecov"
39
42
  spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
40
43
  spec.add_development_dependency "yard"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-time_stop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -65,6 +65,34 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: irb
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'
82
+ - !ruby/object:Gem::Dependency
83
+ name: ostruct
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
68
96
  - !ruby/object:Gem::Dependency
69
97
  name: rake
70
98
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +107,20 @@ dependencies:
79
107
  - - ">="
80
108
  - !ruby/object:Gem::Version
81
109
  version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rdoc
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
82
124
  - !ruby/object:Gem::Dependency
83
125
  name: simplecov
84
126
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +172,8 @@ extra_rdoc_files: []
130
172
  files:
131
173
  - ".coveralls.yml"
132
174
  - ".github/dependabot.yml"
175
+ - ".github/release.yml"
176
+ - ".github/workflows/dependabot-manager.yml"
133
177
  - ".github/workflows/pages.yml"
134
178
  - ".github/workflows/release_gem.yml"
135
179
  - ".github/workflows/test.yml"
@@ -170,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
214
  - !ruby/object:Gem::Version
171
215
  version: '0'
172
216
  requirements: []
173
- rubygems_version: 3.6.7
217
+ rubygems_version: 4.0.16
174
218
  specification_version: 4
175
219
  summary: Stop current time in example.
176
220
  test_files: []