codeowner_validator 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- 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 +6 -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: 624518c4812a8172b2b08fb3afc5f5c67f862333bcf46e4ded910962d8219d8c
|
4
|
+
data.tar.gz: af12af2b285d3e7232e00933b8a594b4d2798d1bdc7fb79aec4177b93fa2cbdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebebb11fdb1788a4599c8e691f1752bb0e6bd259e4130bc388407566312e0825aa0f46181ac1f021158cbbc2091b1d38eb39773ce052adba753e0117e9dc5532
|
7
|
+
data.tar.gz: 03d6770e812e540f641e8ddc2c193c3ded2a07a37eea2e75c4b8beb991f773501ce8911cde8e474eebe39944c69eeec5b48bf4acf389006df339e023c0e7d821
|
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
@@ -6,3 +6,9 @@
|
|
6
6
|
|
7
7
|
# 0.2.0
|
8
8
|
- Update version of thor to have a broader availability ([#6](https://github.com/cerner/codeowner_validator/pull/6))
|
9
|
+
|
10
|
+
# 0.3.0
|
11
|
+
- Update to support ruby 3.2 ([#9](https://github.com/cerner/codeowner_validator/pull/9))
|
12
|
+
|
13
|
+
# 0.3.1
|
14
|
+
- Back version of ruby to be in RVM supported set ([#10](https://github.com/cerner/codeowner_validator/pull/10))
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# CODEOWNER Validator
|
2
2
|
|
3
|
-
![
|
3
|
+
[![Cerner OSS](https://badgen.net/badge/Cerner/OSS/blue)](http://engineering.cerner.com/2014/01/cerner-and-open-source/)
|
4
|
+
[![License](https://badgen.net/github/license/cerner/codeowner_validator)](https://github.com/cerner/codeowner_validator/blob/main/LICENSE)
|
5
|
+
[![Build Status](https://github.com/cerner/codeowner_validator/actions/workflows/ci.yml/badge.svg)](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.2'
|
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.1
|
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.
|
194
|
+
version: 2.7.2
|
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.
|