fbe 0.14.0 → 0.14.1
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/markdown-lint.yml +1 -1
- data/lib/fbe/unmask_repos.rb +1 -1
- data/lib/fbe.rb +1 -1
- data/test/fbe/test_unmask_repos.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c645873d437ec40589dca8b3bd3789b3dd859d5c5b365e25dae38b82bd4d5feb
|
4
|
+
data.tar.gz: d586ef4096f29632302503f72f24f39511567760e179b0ca4373626b8541eb8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a52fb8eaeab99279664d91e6b1bb50492f40f4c2583937c64e412822f84428863caaf6a33f330dc7706d1c0aad809761337b0a241163d4f914235b66c3fb59fc
|
7
|
+
data.tar.gz: 88d9ddc164b53f357515b223a69ac9622f1860258ff36fa94ce2ff6d7b3b6f996c81f495734c41f9a3fd5f5581bbf8085358a06c516f50b0466d7a2abe7eea7f
|
data/lib/fbe/unmask_repos.rb
CHANGED
@@ -17,7 +17,7 @@ require_relative 'octo'
|
|
17
17
|
def Fbe.mask_to_regex(mask)
|
18
18
|
org, repo = mask.split('/')
|
19
19
|
raise "Org '#{org}' can't have an asterisk" if org.include?('*')
|
20
|
-
Regexp.compile("#{org}/#{repo.gsub('*', '.*')}")
|
20
|
+
Regexp.compile("#{org}/#{repo.gsub('*', '.*')}", Regexp::IGNORECASE)
|
21
21
|
end
|
22
22
|
|
23
23
|
# Builds a list of repositories required by the +repositories+ option.
|
data/lib/fbe.rb
CHANGED
@@ -25,6 +25,12 @@ class TestUnmaskRepos < Fbe::Test
|
|
25
25
|
refute_includes(list, 'zerocracy/datum')
|
26
26
|
end
|
27
27
|
|
28
|
+
def test_finds_case_insensitive
|
29
|
+
opts = Judges::Options.new({ 'testing' => true, 'repositories' => 'Yegor256/*' })
|
30
|
+
list = Fbe.unmask_repos(options: opts, global: {}, loog: Loog::NULL)
|
31
|
+
assert_equal(2, list.size)
|
32
|
+
end
|
33
|
+
|
28
34
|
def test_live_usage
|
29
35
|
skip('Run it only manually, since it touches GitHub API')
|
30
36
|
opts = Judges::Options.new(
|