rspec_in_context 1.0.1.1 → 1.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git-hooks/pre_push/rubocop.rb +18 -0
- data/.github/workflows/test_and_publish.yml +18 -3
- data/.github/workflows/test_only.yml +15 -0
- data/.overcommit.yml +2 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +15 -0
- data/lib/rspec_in_context/version.rb +1 -1
- data/rspec_in_context.gemspec +3 -3
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08306b0c06181ef96f4acdc36980f27792715378cb624eb7ba633c4945e90c7e'
|
4
|
+
data.tar.gz: 2cd8c33b01f3ebcb9720e43bcc4cba0fc4562808681f040ca10cc47816e33c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c91690c0ad28afc64c1999a1bcdfa6c0e51556f808b7cf337ea9d2ec59ebf01b50d03a492bd96957596d319a1a69204232a001bc432c6001c5cd6a69e0b4316
|
7
|
+
data.tar.gz: 4d3b90906fbe61f9485c6f415e86b24dbb7d44343e87c0015915899f384bbae10f1044fbcf4b90cb585ef238fbbee65edb1e4b573968804d8f77a8a7203233be
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Overcommit
|
4
|
+
module Hook
|
5
|
+
module PrePush
|
6
|
+
# Runs `rubocop` on every files.
|
7
|
+
class Rubocop < Base
|
8
|
+
def run
|
9
|
+
result = execute(['rubocop', '-P'])
|
10
|
+
return :pass if result.success?
|
11
|
+
|
12
|
+
output = result.stdout + result.stderr
|
13
|
+
[:fail, output]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -51,8 +51,23 @@ jobs:
|
|
51
51
|
run: bundle exec rubocop
|
52
52
|
- name: Run tests
|
53
53
|
run: bundle exec rspec
|
54
|
+
test-3_0:
|
55
|
+
runs-on: ubuntu-latest
|
56
|
+
|
57
|
+
steps:
|
58
|
+
- uses: actions/checkout@v2
|
59
|
+
- name: Set up Ruby
|
60
|
+
uses: ruby/setup-ruby@v1
|
61
|
+
with:
|
62
|
+
ruby-version: 3.0
|
63
|
+
- name: Install dependencies
|
64
|
+
run: bundle install
|
65
|
+
- name: Run linter
|
66
|
+
run: bundle exec rubocop
|
67
|
+
- name: Run tests
|
68
|
+
run: bundle exec rspec
|
54
69
|
release:
|
55
|
-
needs: [test-2_5, test-2_6, test-2_7]
|
70
|
+
needs: [test-2_5, test-2_6, test-2_7, test-3_0]
|
56
71
|
runs-on: ubuntu-latest
|
57
72
|
|
58
73
|
steps:
|
@@ -60,13 +75,13 @@ jobs:
|
|
60
75
|
- name: Set up Ruby
|
61
76
|
uses: ruby/setup-ruby@v1
|
62
77
|
with:
|
63
|
-
ruby-version:
|
78
|
+
ruby-version: 3.0
|
64
79
|
- name: Install dependencies
|
65
80
|
run: bundle install
|
66
81
|
- name: Prepare credentials
|
67
82
|
env:
|
68
83
|
RUBYGEM_KEY: ${{ secrets.RUBYGEM_KEY }}
|
69
|
-
run: "echo -e \"---\\r\\n:rubygems_api_key: $RUBYGEM_KEY\" > ~/.gem/credentials && chmod 0600 ~/.gem/credentials"
|
84
|
+
run: "mkdir -p ~/.gem && echo -e \"---\\r\\n:rubygems_api_key: $RUBYGEM_KEY\" > ~/.gem/credentials && chmod 0600 ~/.gem/credentials"
|
70
85
|
- name: Setup username/email
|
71
86
|
run: "git config --global user.email zaratan@hey.com && git config --global user.name \"Denis <Zaratan> Pasin\""
|
72
87
|
- name: Publish
|
@@ -51,3 +51,18 @@ jobs:
|
|
51
51
|
run: bundle exec rubocop
|
52
52
|
- name: Run tests
|
53
53
|
run: bundle exec rspec
|
54
|
+
test-3_0:
|
55
|
+
runs-on: ubuntu-latest
|
56
|
+
|
57
|
+
steps:
|
58
|
+
- uses: actions/checkout@v2
|
59
|
+
- name: Set up Ruby
|
60
|
+
uses: ruby/setup-ruby@v1
|
61
|
+
with:
|
62
|
+
ruby-version: 3.0
|
63
|
+
- name: Install dependencies
|
64
|
+
run: bundle install
|
65
|
+
- name: Run linter
|
66
|
+
run: bundle exec rubocop
|
67
|
+
- name: Run tests
|
68
|
+
run: bundle exec rspec
|
data/.overcommit.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
9
|
+
## [1.0.1.2] - 2020-12-26
|
10
|
+
### Added
|
11
|
+
- Changelog
|
12
|
+
- Support ruby 3.0
|
13
|
+
|
14
|
+
[Unreleased]: https://github.com/zaratan/active_shotgun/compare/v1.0.1.2...HEAD
|
15
|
+
[1.0.1.2]: https://github.com/zaratan/active_shotgun/releases/tag/v1.0.1.2
|
data/rspec_in_context.gemspec
CHANGED
@@ -22,15 +22,15 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.bindir = "exe"
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
|
-
spec.required_ruby_version = '>= 2.5.8'
|
25
|
+
spec.required_ruby_version = '>= 2.5.8' # rubocop:disable Gemspec/RequiredRubyVersion
|
26
26
|
spec.license = 'MIT'
|
27
27
|
|
28
28
|
spec.add_dependency "activesupport", "> 2.0"
|
29
29
|
spec.add_dependency "rspec", "> 3.0"
|
30
30
|
|
31
|
-
spec.add_development_dependency "bundler"
|
31
|
+
spec.add_development_dependency "bundler"
|
32
32
|
spec.add_development_dependency "bundler-audit", "> 0.6.0"
|
33
|
-
spec.add_development_dependency "codacy-coverage", '
|
33
|
+
spec.add_development_dependency "codacy-coverage", '>= 2.1.0'
|
34
34
|
spec.add_development_dependency "faker", "> 1.8"
|
35
35
|
spec.add_development_dependency "guard-rspec", "> 4.7"
|
36
36
|
spec.add_development_dependency "overcommit", '> 0.46'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_in_context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.1.
|
4
|
+
version: 1.0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis <Zaratan> Pasin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -42,16 +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
|
-
version: '
|
47
|
+
version: '0'
|
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
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler-audit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
name: codacy-coverage
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 2.1.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 2.1.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
@@ -227,6 +227,7 @@ executables: []
|
|
227
227
|
extensions: []
|
228
228
|
extra_rdoc_files: []
|
229
229
|
files:
|
230
|
+
- ".git-hooks/pre_push/rubocop.rb"
|
230
231
|
- ".github/workflows/test_and_publish.yml"
|
231
232
|
- ".github/workflows/test_only.yml"
|
232
233
|
- ".github/workflows/verify_version_change.yml"
|
@@ -237,6 +238,7 @@ files:
|
|
237
238
|
- ".rubocop.yml"
|
238
239
|
- ".ruby-gemset"
|
239
240
|
- ".ruby-version"
|
241
|
+
- CHANGELOG.md
|
240
242
|
- Gemfile
|
241
243
|
- Guardfile
|
242
244
|
- README.md
|
@@ -267,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
269
|
- !ruby/object:Gem::Version
|
268
270
|
version: '0'
|
269
271
|
requirements: []
|
270
|
-
rubygems_version: 3.
|
272
|
+
rubygems_version: 3.2.3
|
271
273
|
signing_key:
|
272
274
|
specification_version: 4
|
273
275
|
summary: This gem is here to help DRYing your tests cases by giving a better "shared_examples".
|