codeowners-checker 1.0.2 → 1.0.3

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: 8746f9f4f89d25fb07b5bc71b4c39f6c9ce29642df70e8b7e1ae8b6eba2bcf1d
4
- data.tar.gz: cc2e562c42fb371f71e3b855c545e82ffb0975cf9f24dab00a3a1221f42f8822
3
+ metadata.gz: b2ab2f62e2427574e64399dc1a1f3681aafc9280af254f04214f1b9be7d50944
4
+ data.tar.gz: 562d0c9c43d6f49694820b25ed7b47ad7474f72ba097b98dcd4c1292cacdc62e
5
5
  SHA512:
6
- metadata.gz: 0ce771c4b8366145f61cf8349c6f1a92b7fc3d5412a07de202df27f509718b8883517ad585eda6423c8a006cfbfddf58507b5fa0eb9fffb48b5eaa29d6c262ae
7
- data.tar.gz: 20aad4c158197f6b4c2e6e6ed366d7c2fbf1811a0cfa19441ae0ab963d05e36e7197ff82e154d36a904bb58326c02c4b1d5cdf3e8a967294557d8625ab1d93c5
6
+ metadata.gz: 2c0cac23ce8db93e59db7466709a33a90acd43e8168d1ddc22ad57ba1ceff569df2c4d14bc43b71d2fd08a476c182fc467837862c630315db6eeffce9b11c5ab
7
+ data.tar.gz: a4541d789b24f3baf6adae817bde3d1fd04cf49e2c26e0fea177067c4186a2724b31515ec3811e58286624a83e9f7b1adfd05cb964a6fd9b3170f5f1c0e4f36f
@@ -0,0 +1,29 @@
1
+ problems
2
+
3
+ - linked lines groups serve to attach or dettach specific info into a chunk of text
4
+ - linked lines belong to a group and group belong to file
5
+
6
+
7
+ what we're trying to solve
8
+
9
+ 1. we have a file that have a tree structure without holding the tree
10
+ CodeOwners holds the flat structure
11
+
12
+ 2. we need to interpret and parse the tree structure from the file
13
+ Group holds the tree structure with LineGroupers and pure lines
14
+
15
+ 3. we need to iterate over the lines to verify the file consistency
16
+ Checker do that.
17
+
18
+ 3.1 we interact with user when find similar and duplicated lines
19
+
20
+ 4. we need to remove a line and remove a group if the line was the last pattern
21
+ in the group.
22
+ - the Line knows how to remove them selves.
23
+
24
+ 5. we need to add or change lines
25
+ - the Group knows what file it belongs and allow to insert a pattern in the
26
+ middle or in the bottom of the file
27
+
28
+
29
+
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Codeowners
4
4
  class Checker
5
- VERSION = '1.0.2'
5
+ VERSION = '1.0.3'
6
6
  end
7
7
  end
@@ -26,7 +26,7 @@ module Codeowners
26
26
 
27
27
  # Checks if fzf is installed.
28
28
  def self.installed_fzf?
29
- `command -v fzf` != ''
29
+ system('fzf --version > /dev/null 2>&1')
30
30
  end
31
31
  end
32
32
 
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.2
4
+ version: 1.0.3
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-05-02 00:00:00.000000000 Z
13
+ date: 2019-07-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fuzzy_match
@@ -179,6 +179,7 @@ files:
179
179
  - README.md
180
180
  - bin/codeowners-checker
181
181
  - codeowners-checker.gemspec
182
+ - issues.md
182
183
  - lib/codeowners/checker.rb
183
184
  - lib/codeowners/checker/array.rb
184
185
  - lib/codeowners/checker/code_owners.rb
@@ -220,7 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
221
  - !ruby/object:Gem::Version
221
222
  version: '0'
222
223
  requirements: []
223
- rubygems_version: 3.0.1
224
+ rubyforge_project:
225
+ rubygems_version: 2.7.6
224
226
  signing_key:
225
227
  specification_version: 4
226
228
  summary: Check consistency of Github CODEOWNERS and git changes.