codeowner_validator 0.2.0 → 0.3.0
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/workflows/cd.yml +1 -1
- data/.github/workflows/ci.yml +2 -1
- data/.rubocop.yml +2 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/README.md +4 -2
- data/codeowner_validator.gemspec +4 -1
- data/lib/codeowner_validator/helpers/utility_helper.rb +12 -7
- data/lib/codeowner_validator/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d35f65763b9fadd44bcb19531f9562d50c50e4f2e2c4c0a5f3a732390b6cb994
|
4
|
+
data.tar.gz: c92f01df71595708c7b2545f4cd9062472ccd3e322eaee80ad5a7610c6de34fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e0ea092271b5c2bf7f2b5d2260dec6c0ab562332323ac21f5bd2787915228cb0e8b133ad8eec34e8bce91106cd3dfab74b2309b3a346557b506fe1dcf6241f9
|
7
|
+
data.tar.gz: c48f25546f3e3b369c1f4dbace312c9d08a3a5fb33b0fa01bb6a4a388b6c8802054a0bc01eab9e1fb6d94eaa75fbcca1c7d78f3cbaba0c84950401f2d71f4744
|
data/.github/workflows/cd.yml
CHANGED
data/.github/workflows/ci.yml
CHANGED
@@ -9,6 +9,7 @@ on:
|
|
9
9
|
branches: ['main']
|
10
10
|
schedule:
|
11
11
|
- cron: '0 1 * * SUN'
|
12
|
+
workflow_dispatch:
|
12
13
|
|
13
14
|
jobs:
|
14
15
|
tests:
|
@@ -17,9 +18,9 @@ jobs:
|
|
17
18
|
fail-fast: false
|
18
19
|
matrix:
|
19
20
|
ruby:
|
20
|
-
- 2.6
|
21
21
|
- 2.7
|
22
22
|
- 3.0
|
23
|
+
- 3.2
|
23
24
|
name: Ruby-${{matrix.ruby}}
|
24
25
|
continue-on-error: ${{matrix.ruby == 'head'}}
|
25
26
|
steps:
|
data/.rubocop.yml
CHANGED
@@ -2,6 +2,7 @@ require:
|
|
2
2
|
- rubocop-performance
|
3
3
|
|
4
4
|
AllCops:
|
5
|
+
TargetRubyVersion: 3.2
|
5
6
|
DisabledByDefault: true
|
6
7
|
Exclude:
|
7
8
|
- 'bin/{bundle,bundle-audit,bundler-audit,rackup,rake,rspec,rubocop}'
|
@@ -648,7 +649,7 @@ Style/GlobalVars:
|
|
648
649
|
Style/GuardClause:
|
649
650
|
Enabled: true
|
650
651
|
Style/HashSyntax:
|
651
|
-
Enabled:
|
652
|
+
Enabled: false
|
652
653
|
Style/IdenticalConditionalBranches:
|
653
654
|
Enabled: true
|
654
655
|
Style/IfInsideElse:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2
|
1
|
+
ruby-3.2
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# CODEOWNER Validator
|
2
2
|
|
3
|
-
](http://engineering.cerner.com/2014/01/cerner-and-open-source/)
|
4
|
+
[](https://github.com/cerner/codeowner_validator/blob/main/LICENSE)
|
5
|
+
[](https://github.com/cerner/codeowner_validator/actions/workflows/ci.yml)
|
4
6
|
|
5
7
|
This library provides interactions with the GitHub CODEOWNERS file for performing validation tasks that include
|
6
8
|
* ownership checks
|
@@ -157,4 +159,4 @@ Everyone interacting in the CodeownerValidator project’s codebases, issue trac
|
|
157
159
|
Shout-out to @jonatas and his project [codeowners-checker](https://github.com/toptal/codeowners-checker). The checker provided easy reusage which greatly reduced the
|
158
160
|
dependencies within this project.
|
159
161
|
|
160
|
-
[pathspec-ruby]: https://github.com/highb/pathspec-ruby
|
162
|
+
[pathspec-ruby]: https://github.com/highb/pathspec-ruby
|
data/codeowner_validator.gemspec
CHANGED
@@ -27,7 +27,10 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ['lib']
|
29
29
|
|
30
|
-
|
30
|
+
# rubocop:disable Gemspec/RequiredRubyVersion
|
31
|
+
# The intent is for supportability from ruby 2.7 and greater
|
32
|
+
spec.required_ruby_version = '>= 2.7.6'
|
33
|
+
# rubocop:enable Gemspec/RequiredRubyVersion
|
31
34
|
|
32
35
|
spec.add_dependency 'rainbow', '>= 2.0', '< 4.0.0'
|
33
36
|
spec.add_dependency 'thor', '>= 0.19'
|
@@ -13,18 +13,23 @@ module CodeownerValidator
|
|
13
13
|
def in_folder(folder)
|
14
14
|
raise "The folder location '#{folder}' does not exists" unless File.directory?(folder)
|
15
15
|
|
16
|
-
|
17
|
-
Bundler.with_clean_env do
|
18
|
-
Dir.chdir folder do
|
19
|
-
yield
|
20
|
-
end
|
21
|
-
end
|
22
|
-
else
|
16
|
+
with_clean_env do
|
23
17
|
Dir.chdir folder do
|
24
18
|
yield
|
25
19
|
end
|
26
20
|
end
|
27
21
|
end
|
22
|
+
|
23
|
+
def with_clean_env
|
24
|
+
return yield unless defined?(Bundler)
|
25
|
+
|
26
|
+
if Bundler.respond_to?(:with_unbundled_env)
|
27
|
+
Bundler.with_unbundled_env { yield }
|
28
|
+
else
|
29
|
+
# Deprecated on Bundler 2.1
|
30
|
+
Bundler.with_clean_env { yield }
|
31
|
+
end
|
32
|
+
end
|
28
33
|
end
|
29
34
|
end
|
30
35
|
# rubocop:enable Style/ImplicitRuntimeError
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeowner_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Howdeshell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -191,14 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
191
|
requirements:
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 2.6
|
194
|
+
version: 2.7.6
|
195
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
196
|
requirements:
|
197
197
|
- - ">="
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
|
-
rubygems_version: 3.
|
201
|
+
rubygems_version: 3.4.10
|
202
202
|
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: Write a short summary, because RubyGems requires one.
|