codeowners-checker 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/codeowners-checker.gemspec +1 -0
- data/lib/codeowners/checker/code_owners.rb +2 -1
- data/lib/codeowners/checker/group.rb +1 -1
- data/lib/codeowners/checker/group/group_begin_comment.rb +1 -1
- data/lib/codeowners/checker/group/group_end_comment.rb +1 -1
- data/lib/codeowners/checker/group/pattern.rb +7 -3
- data/lib/codeowners/checker/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e2f46c087d367f8963223d632e6231db0b4b010595fba6190dc362b06846af6
|
4
|
+
data.tar.gz: 48aecfde1e7f978742558e66752f05e6b452b565f04a43a0a951caf4c431d333
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154979b0d6a14f51fd914bcf6a2422e83e90ecf9c2afb3dfe19c476bfe0868ea1018fa6c8e53b0ee99342e8cbc7837bef2153fe8aa9f0385ef177600fd630719
|
7
|
+
data.tar.gz: 15fef3967b0859b85a6c053b1cd8dfcea829e02f2cdcc701c26906e3fea03b9e8c3823cfa63691cb4cfe7b0fb9d5b76070bd4698f38ceba86a15a5f3c12efd66
|
data/README.md
CHANGED
data/codeowners-checker.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'rake', '~> 10.0'
|
29
29
|
spec.add_development_dependency 'rb-readline', '~> 0.5.5'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
|
31
32
|
spec.add_development_dependency 'rubocop', '~> 0.61.1'
|
32
33
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.30'
|
33
34
|
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
@@ -38,7 +38,8 @@ module Codeowners
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def list
|
41
|
-
@list ||=
|
41
|
+
@list ||= begin
|
42
|
+
list = @file_manager.content
|
42
43
|
transform_line_procs.each do |transform_line_proc|
|
43
44
|
list = list.flat_map { |line| transform_line_proc.call(line) }.compact
|
44
45
|
end
|
@@ -33,10 +33,14 @@ module Codeowners
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def match_file?(file)
|
36
|
-
|
37
|
-
|
36
|
+
File.fnmatch(pattern.gsub(%r{^/}, ''), file, fn_options)
|
37
|
+
end
|
38
|
+
|
39
|
+
def fn_options
|
40
|
+
if pattern.include?('**')
|
41
|
+
File::FNM_DOTMATCH
|
38
42
|
else
|
39
|
-
File
|
43
|
+
File::FNM_DOTMATCH | File::FNM_PATHNAME
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeowners-checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jônatas Davi Paganini
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fuzzy_match
|
@@ -124,6 +124,20 @@ dependencies:
|
|
124
124
|
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '3.0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rspec_junit_formatter
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.4.1
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 0.4.1
|
127
141
|
- !ruby/object:Gem::Dependency
|
128
142
|
name: rubocop
|
129
143
|
requirement: !ruby/object:Gem::Requirement
|