rspec-time_stop 0.1.3 → 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: 1a95284e1adcc131376d5773c871b7421d4a538fa41237043c95fbf8875c0fab
4
- data.tar.gz: 80cbeb082f77c90039c9f564f692d30fd2452afe3b11b645253ec57337f8c95d
3
+ metadata.gz: 59c2a0f9749dd2bfe36ec56aad2c72de84eb0cebfa2b0b1f5f0e36ce26843089
4
+ data.tar.gz: 92a6c86a37079022ae3217e6b3f1cd4dc06ef02541c93060bdbefa3b6603bdde
5
5
  SHA512:
6
- metadata.gz: c8468fd2bfc92aac9a92d3254d4fba1bfc3d13b27148384bd73810e247b43baa6a14e8c5a7684b02c8e25db0d0512f1d91454b0d471e6f3c16e271671e75742a
7
- data.tar.gz: d3807dd818d6dbdd0ad7ea459aba50cfdf6011e28387c1b78ac5616946e3e485f96a32122f1c211158a386b2fd5483bc5257d2c323ed5b116d127d6c793f6046
6
+ metadata.gz: 7c05f5af1fc31ebf032c7184a9c35bd86e373efb51950dbcf0dc337398a748d18fc66b6d9add2ccb6a4497cd7c07c051c5524e9a60dbd9f829394ed64783946d
7
+ data.tar.gz: 998ea5f7e7de41ec01dd995b9291bc7ad080c2b30d15583cf52f34bd3ba7e1b29ab42714aa0864ebd8b8430179ff075a30116d2231515a953c0a45046be7903f
@@ -2,9 +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
11
+ interval: monthly
12
+ time: "05:00"
13
+ timezone: Asia/Tokyo
9
14
  assignees:
10
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,62 +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@v4
34
-
35
- - uses: ruby/setup-ruby@v1
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@v3
44
- - name: Upload artifact
45
- uses: actions/upload-pages-artifact@v2
46
- with:
47
- # Upload entire repository
48
- path: './doc'
49
- - name: Deploy to GitHub Pages
50
- id: deployment
51
- uses: actions/deploy-pages@main
52
-
53
- - name: Slack Notification (not success)
54
- uses: lazy-actions/slatify@master
55
- if: "! success()"
56
- continue-on-error: true
57
- with:
58
- job_name: "*pages*"
59
- type: ${{ job.status }}
60
- icon_emoji: ":octocat:"
61
- url: ${{ secrets.SLACK_WEBHOOK }}
62
- token: ${{ secrets.GITHUB_TOKEN }}
16
+ uses: sue445/workflows/.github/workflows/pages-yard.yml@main
17
+ secrets:
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -0,0 +1,14 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
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
12
+ permissions:
13
+ contents: write
14
+ id-token: write
@@ -29,44 +29,88 @@ jobs:
29
29
  - "3.0"
30
30
  - "3.1"
31
31
  - "3.2"
32
+ - "3.3"
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"
32
41
 
33
42
  steps:
34
- - uses: actions/checkout@v4
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'
35
52
 
36
- - uses: ruby/setup-ruby@v1
53
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
37
54
  with:
38
55
  ruby-version: ${{ matrix.ruby }}
39
56
  bundler-cache: true
57
+ rubygems: ${{ matrix.rubygems || 'default' }}
40
58
 
41
- - run: bundle update --jobs $(nproc) --retry 3
59
+ - run: bundle update --all --jobs $(nproc) --retry 3
42
60
 
43
61
  - run: bundle exec rspec
44
62
 
45
63
  - name: Slack Notification (not success)
46
- uses: lazy-actions/slatify@master
64
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
47
65
  if: "! success()"
48
66
  continue-on-error: true
49
67
  with:
50
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
51
- type: ${{ job.status }}
52
- icon_emoji: ":octocat:"
53
- url: ${{ secrets.SLACK_WEBHOOK }}
54
- token: ${{ secrets.GITHUB_TOKEN }}
68
+ status: ${{ job.status }}
69
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
70
+ matrix: ${{ toJson(matrix) }}
71
+
72
+ yard:
73
+ runs-on: ubuntu-latest
74
+
75
+ steps:
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()"
98
+ continue-on-error: true
99
+ with:
100
+ status: ${{ job.status }}
101
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
102
+
103
+ all-pass:
104
+ if: always()
55
105
 
56
- notify:
57
106
  needs:
58
107
  - test
108
+ - yard
59
109
 
60
- runs-on: ubuntu-latest
110
+ runs-on: ubuntu-slim
61
111
 
62
112
  steps:
63
- - name: Slack Notification (success)
64
- uses: lazy-actions/slatify@master
65
- if: always()
66
- continue-on-error: true
113
+ - name: check dependent jobs
114
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
67
115
  with:
68
- job_name: '*build*'
69
- type: ${{ job.status }}
70
- icon_emoji: ":octocat:"
71
- url: ${{ secrets.SLACK_WEBHOOK }}
72
- token: ${{ secrets.GITHUB_TOKEN }}
116
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.3...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
9
+
10
+ ## [v0.1.4](https://github.com/sue445/rspec-time_stop/releases/tag/v0.1.4)
11
+ [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.3...v0.1.4)
12
+
13
+ * Release gem from GitHub Actions
14
+ * https://github.com/sue445/rspec-time_stop/pull/48
3
15
 
4
16
  ## v0.1.3
5
17
  [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.2...v0.1.3)
data/Gemfile CHANGED
@@ -4,3 +4,14 @@ 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
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
@@ -4,9 +4,9 @@ Stop current time in example.
4
4
  This is a shorthand of `ActiveSupport::Testing::TimeHelpers`
5
5
 
6
6
  [![Gem Version](https://badge.fury.io/rb/rspec-time_stop.svg)](https://badge.fury.io/rb/rspec-time_stop)
7
- [![Build Status](https://github.com/sue445/rspec-time_stop/workflows/test/badge.svg?branch=master)](https://github.com/sue445/rspec-time_stop/actions?query=workflow%3Atest)
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.3"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -34,7 +34,11 @@ 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"
42
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
39
43
  spec.add_development_dependency "yard"
40
44
  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.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-10-06 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: activesupport
@@ -66,6 +65,34 @@ dependencies:
66
65
  - - ">="
67
66
  - !ruby/object:Gem::Version
68
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'
69
96
  - !ruby/object:Gem::Dependency
70
97
  name: rake
71
98
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +107,20 @@ dependencies:
80
107
  - - ">="
81
108
  - !ruby/object:Gem::Version
82
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'
83
124
  - !ruby/object:Gem::Dependency
84
125
  name: simplecov
85
126
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +135,20 @@ dependencies:
94
135
  - - ">="
95
136
  - !ruby/object:Gem::Version
96
137
  version: '0'
138
+ - !ruby/object:Gem::Dependency
139
+ name: term-ansicolor
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "!="
143
+ - !ruby/object:Gem::Version
144
+ version: 1.11.1
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "!="
150
+ - !ruby/object:Gem::Version
151
+ version: 1.11.1
97
152
  - !ruby/object:Gem::Dependency
98
153
  name: yard
99
154
  requirement: !ruby/object:Gem::Requirement
@@ -117,7 +172,10 @@ extra_rdoc_files: []
117
172
  files:
118
173
  - ".coveralls.yml"
119
174
  - ".github/dependabot.yml"
175
+ - ".github/release.yml"
176
+ - ".github/workflows/dependabot-manager.yml"
120
177
  - ".github/workflows/pages.yml"
178
+ - ".github/workflows/release_gem.yml"
121
179
  - ".github/workflows/test.yml"
122
180
  - ".gitignore"
123
181
  - ".rspec"
@@ -142,7 +200,6 @@ metadata:
142
200
  changelog_uri: https://github.com/sue445/rspec-time_stop/blob/master/CHANGELOG.md
143
201
  documentation_uri: https://sue445.github.io/rspec-time_stop/
144
202
  rubygems_mfa_required: 'true'
145
- post_install_message:
146
203
  rdoc_options: []
147
204
  require_paths:
148
205
  - lib
@@ -157,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
214
  - !ruby/object:Gem::Version
158
215
  version: '0'
159
216
  requirements: []
160
- rubygems_version: 3.4.10
161
- signing_key:
217
+ rubygems_version: 4.0.16
162
218
  specification_version: 4
163
219
  summary: Stop current time in example.
164
220
  test_files: []