rspec-time_stop 0.1.0 → 0.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: 64881d08eb4a1d783311c7b755d63ec40f5a37ead0bb566ef0dc85428b349470
4
- data.tar.gz: 36f3ac8390926784b392efc996ffd972fc758ce91e1a094b93d85d4ec28caa42
3
+ metadata.gz: ae9fca9900028d9b294a39c904570cc7fbe3fd9c7e29d3754640496f60442f03
4
+ data.tar.gz: 752f6cd0aa356522cca9e2db57767481d546974c66be88ceb1363048ec131738
5
5
  SHA512:
6
- metadata.gz: f87ffbffd02431e78e813bed2c023cf882405b375a90c2d83f2657d4142a757ccc25d53c26c567d07fa8f71524cb79a8f0f4e351c5eefeb30a4d3f405a709612
7
- data.tar.gz: 2c96caef7c1ddeaedc2c9eeb658644c8ca699a17d6b22fb8f647a691a3153080fb276a25c14a9c84c7abdc7129079bdb6ac8b83a501ea5674bd8338549d0824e
6
+ metadata.gz: a714d040b26b033413d2db5462a256fb82c249cd7ae476cf0813541acba2395554317e100af5eaad7a803da3c78f17f2e2b96e39df4bb2daab7388eb6dc84dee
7
+ data.tar.gz: 67cf598c4f1b8dba083b24cc196252c5f85f647017ef9db6a7599d97f31db29ed4455013998bd20abc2e5cc6e60d0a2cc4137b8534f74c27254f27e2a95383b6
@@ -0,0 +1,94 @@
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.3
30
+ - ruby:2.4
31
+ - ruby:2.5
32
+ - ruby:2.6
33
+ - ruby:2.7
34
+ - ruby:3.0
35
+ - rubylang/ruby:master-nightly-bionic
36
+ include:
37
+ - ruby: rubylang/ruby:master-nightly-bionic
38
+ allow_failures: "true"
39
+
40
+ steps:
41
+ - uses: actions/checkout@v2
42
+
43
+
44
+ - name: Cache vendor/bundle
45
+ uses: actions/cache@v1
46
+ id: cache_gem
47
+ with:
48
+ path: vendor/bundle
49
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
50
+ restore-keys: |
51
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
52
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
53
+
54
+ - name: bundle update
55
+ run: |
56
+ set -xe
57
+ bundle config path vendor/bundle
58
+ bundle update --jobs $(nproc) --retry 3
59
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
60
+
61
+ - name: Run test
62
+ run: |
63
+ set -xe
64
+ bundle exec rspec
65
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
66
+
67
+ - name: Slack Notification (not success)
68
+ uses: lazy-actions/slatify@master
69
+ if: "! success()"
70
+ continue-on-error: true
71
+ with:
72
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
73
+ type: ${{ job.status }}
74
+ icon_emoji: ":octocat:"
75
+ url: ${{ secrets.SLACK_WEBHOOK }}
76
+ token: ${{ secrets.GITHUB_TOKEN }}
77
+
78
+ notify:
79
+ needs:
80
+ - test
81
+
82
+ runs-on: ubuntu-latest
83
+
84
+ steps:
85
+ - name: Slack Notification (success)
86
+ uses: lazy-actions/slatify@master
87
+ if: always()
88
+ continue-on-error: true
89
+ with:
90
+ job_name: '*build*'
91
+ type: ${{ job.status }}
92
+ icon_emoji: ":octocat:"
93
+ url: ${{ secrets.SLACK_WEBHOOK }}
94
+ token: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.0...master)
2
+ [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.1...master)
3
+
4
+ ## v0.1.1
5
+ [full changelog](http://github.com/sue445/rspec-time_stop/compare/v0.1.0...v0.1.1)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/rspec-time_stop/pull/17
3
9
 
4
10
  ## v0.1.0
5
11
  * first release
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
- # Rspec::TimeStop
1
+ # RSpec::TimeStop
2
2
  Stop current time in example.
3
3
 
4
4
  This is a shorthand of `ActiveSupport::Testing::TimeHelpers`
5
5
 
6
- [![Build Status](https://travis-ci.org/sue445/rspec-time_stop.svg?branch=master)](https://travis-ci.org/sue445/rspec-time_stop)
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
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/rspec-time_stop/badge.svg)](https://coveralls.io/github/sue445/rspec-time_stop)
8
9
  [![Maintainability](https://api.codeclimate.com/v1/badges/9f437c78e286285f5605/maintainability)](https://codeclimate.com/github/sue445/rspec-time_stop/maintainability)
9
10
 
@@ -29,7 +30,7 @@ Add `:time_stop` to `it`, `describe` or `context`
29
30
 
30
31
  ## Example
31
32
  ```ruby
32
- RSpec.describe Rspec::TimeStop do
33
+ RSpec.describe RSpec::TimeStop do
33
34
  context "with :time_stop", :time_stop do
34
35
  it "current time is freezed" do
35
36
  before_time = Time.now
@@ -1,5 +1,5 @@
1
- module Rspec
1
+ module RSpec
2
2
  module TimeStop
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ require "rspec/time_stop/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rspec-time_stop"
8
- spec.version = Rspec::TimeStop::VERSION
8
+ spec.version = RSpec::TimeStop::VERSION
9
9
  spec.authors = ["sue445"]
10
10
  spec.email = ["sue445@sue445.net"]
11
11
 
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/rspec-time_stop"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
17
22
  # Specify which files should be added to the gem when it is released.
18
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
24
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
@@ -26,9 +31,8 @@ Gem::Specification.new do |spec|
26
31
  spec.add_dependency "activesupport", ">= 4.1.0"
27
32
  spec.add_dependency "rspec"
28
33
 
29
- spec.add_development_dependency "bundler", "~> 1.16"
30
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
34
+ spec.add_development_dependency "bundler", ">= 1.16"
31
35
  spec.add_development_dependency "coveralls"
32
- spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "rake"
33
37
  spec.add_development_dependency "simplecov"
34
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-time_stop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-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: activesupport
@@ -42,30 +42,16 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.16'
55
- - !ruby/object:Gem::Dependency
56
- name: codeclimate-test-reporter
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 1.0.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 1.0.0
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: coveralls
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +70,16 @@ dependencies:
84
70
  name: rake
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - "~>"
73
+ - - ">="
88
74
  - !ruby/object:Gem::Version
89
- version: '10.0'
75
+ version: '0'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - "~>"
80
+ - - ">="
95
81
  - !ruby/object:Gem::Version
96
- version: '10.0'
82
+ version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: simplecov
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -116,9 +102,9 @@ extensions: []
116
102
  extra_rdoc_files: []
117
103
  files:
118
104
  - ".coveralls.yml"
105
+ - ".github/workflows/test.yml"
119
106
  - ".gitignore"
120
107
  - ".rspec"
121
- - ".travis.yml"
122
108
  - CHANGELOG.md
123
109
  - Gemfile
124
110
  - LICENSE.txt
@@ -133,8 +119,12 @@ files:
133
119
  homepage: https://github.com/sue445/rspec-time_stop
134
120
  licenses:
135
121
  - MIT
136
- metadata: {}
137
- post_install_message:
122
+ metadata:
123
+ homepage_uri: https://github.com/sue445/rspec-time_stop
124
+ source_code_uri: https://github.com/sue445/rspec-time_stop
125
+ changelog_uri: https://github.com/sue445/rspec-time_stop/blob/master/CHANGELOG.md
126
+ rubygems_mfa_required: 'true'
127
+ post_install_message:
138
128
  rdoc_options: []
139
129
  require_paths:
140
130
  - lib
@@ -149,9 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
139
  - !ruby/object:Gem::Version
150
140
  version: '0'
151
141
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.7.6
154
- signing_key:
142
+ rubygems_version: 3.2.22
143
+ signing_key:
155
144
  specification_version: 4
156
145
  summary: Stop current time in example.
157
146
  test_files: []
data/.travis.yml DELETED
@@ -1,28 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3
4
- - 2.4
5
- - 2.5
6
- - ruby-head
7
- bundler_args: "--jobs=4"
8
- cache: bundler
9
- before_install:
10
- - gem update --system --no-document
11
- - gem install bundler --no-document
12
- before_script:
13
- - export CODECLIMATE_REPO_TOKEN=8ea5579e9642757116d044f4abdbfb90393ad21ebfb894170f4daaaedf7f7caf
14
- - export CI=true
15
- script:
16
- - bundle exec rspec
17
- - bundle exec codeclimate-test-reporter || true
18
- branches:
19
- only:
20
- - master
21
- notifications:
22
- email: false
23
- slack:
24
- secure: UTyW7J03ev+wlSOP0TNiPF7ztdCSSi0ZqP7g1+x+qfZ7nNVdr3CGLosyVt+fopoHPWbiE5vW0swCMvNDFVD3wFh6ivBg6KsKi+G0FEwWwbgXP2JOzW964vGLpU1t47ErEUh4Hkf5qBRIu2IPumoopOhlGysOA0/qpBQ7F5bPTDHk2/yEY5JglFyqG+ArbsD96pcoCwhn4exDPE5WHWqc70sRRx7ESTOurRC2xolQKlpXVb/LlSddIclNMRgwDrtfO4cw/3CAfmZ5D/Zqai0a1eK5Or6jwYGICaLv799kenGNONTDrzpGb6uE4MfU9gKV/e6QD5CKJunhir+OZ8gLI4ixbHtDXGYpwcEeemnEyMaghgUwGHZ1MzjSGsS9n6h6VGN9z9orIFzidCYT0NZ8V/kx4vTI6mNuPKezXB//+1bs3R66r9uWKpvwpcT2XLfHcbDpgBu4pHg/E73yPJCrRfGiXR/Hgsjf9IxzoM/MLdIU7htmJ6pMsRYcjuEBeT2IMMkITmOrYwWar/n80NLfNvPLfkWY2kdUqLs/kWoJCaCl37EnqPaJFrzpnm7VBUOgu2e3RpsDu9a8C9UtHZkN1LdjS7SpFb58pFfTxNIBHx938O7MwcAZvsSkt6Is016TMBsS1oZVp65DXaDVRHEs5n+iASmShDp8KIt25bKNYq4=
25
- matrix:
26
- allow_failures:
27
- - rvm: ruby-head
28
- sudo: false