Compare commits
22 Commits
7e6d7d716d
...
e33beaaf4f
Author | SHA1 | Date |
---|---|---|
Pablo Santiago Blum de Aguiar | e33beaaf4f | 3 years ago |
Itzik Ephraim | c71f87bb7e | 2 years ago |
Manu [tennox] | 90f875e02d | 2 years ago |
Simon Plakolb | 55da5f7b6f | 2 years ago |
Pablo Santiago Blum de Aguiar | 252566fd68 | 2 years ago |
Pablo Santiago Blum de Aguiar | 0eeacf0684 | 2 years ago |
Pablo Santiago Blum de Aguiar | dc9d2c32d5 | 3 years ago |
Pablo Santiago Blum de Aguiar | 8ad49c583b | 3 years ago |
Pablo Santiago Blum de Aguiar | 37a208177e | 2 years ago |
Pablo Santiago Blum de Aguiar | 5e1a4bfc47 | 2 years ago |
Pablo Santiago Blum de Aguiar | 32a7e595be | 2 years ago |
Pablo Santiago Blum de Aguiar | d428b723c8 | 2 years ago |
fdeitylink | 029a67518d | 2 years ago |
fdeitylink | 0cda2c0c1f | 2 years ago |
Karan Verma | b27b3b5aba | 2 years ago |
Emily Grace Seville | ab05441000 | 2 years ago |
jjangga0214 | 446a94a766 | 2 years ago |
jjangga0214 | 700f7cad54 | 2 years ago |
Pablo Aguiar | 7aee034a80 | 2 years ago |
Pablo Santiago Blum de Aguiar | 05616d85e9 | 3 years ago |
Pablo Santiago Blum de Aguiar | da109ff44e | 3 years ago |
Brian Thompson | 59de68c4ca | 3 years ago |
@ -0,0 +1,23 @@
|
||||
# Security Policy
|
||||
|
||||
<!-- ## Supported Versions
|
||||
|
||||
Use this section to tell people about which versions of your project are
|
||||
currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 5.1.x | :white_check_mark: |
|
||||
| 5.0.x | :x: |
|
||||
| 4.0.x | :white_check_mark: |
|
||||
| < 4.0 | :x: | -->
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
To report a vulnerability, please contact the current maintainer:
|
||||
|
||||
https://github.com/scorphus (keybase: https://keybase.io/pablito)
|
||||
|
||||
<!-- Tell them where to go, how often they can expect to get an update on a
|
||||
reported vulnerability, what to expect if the vulnerability is accepted or
|
||||
declined, etc. -->
|
@ -1 +1 @@
|
||||
bb1f4025934600ea6feef2ec11660e17e2b6449c5a23c033860aed712ad328c9 install
|
||||
429a76e5b5e692c921aa03456a41258b614374426f959535167222a28b676201 install
|
||||
|
@ -1,3 +1,3 @@
|
||||
function omf.packages.name -a name_or_url
|
||||
command basename $name_or_url | sed -E 's/^(omf-)?((plugin|pkg|theme)-)?//;s/.git$//'
|
||||
command basename $name_or_url | sed -E 's/^(omf-)?((plugin|pkg|theme)-)?//;s/\\.git$//'
|
||||
end
|
||||
|
@ -0,0 +1,13 @@
|
||||
function omf.repo.remote_uri -a repo_dir -a branch
|
||||
test -z "$repo_dir"; and set repo_dir "$PWD"
|
||||
set -l git_dir (command git -C "$repo_dir" rev-parse --show-toplevel 2>/dev/null)
|
||||
and test "$git_dir" = "$repo_dir"
|
||||
or return 1
|
||||
|
||||
test -z "$branch"; and set branch 'master'
|
||||
|
||||
set -l remote (command git -C "$repo_dir" config --get branch."$branch".remote)
|
||||
or set -l remote origin
|
||||
|
||||
command git -C "$repo_dir" config --get remote."$remote".url
|
||||
end
|
@ -0,0 +1,23 @@
|
||||
function omf.repo.uri_components -a uri
|
||||
test -n "$uri"
|
||||
or return 1
|
||||
|
||||
switch $uri
|
||||
case 'git@*'
|
||||
echo $uri | sed -r 's/git@([^:]+):([^/]+)\/([^.]+).*/\1 \2 \3/g'
|
||||
case 'http*://*'
|
||||
echo $uri | sed -r 's/https?:\/\/([^:/]+)(:\d+)?\/([^/]+)\/([^./]+).*/\1 \3 \4/g'
|
||||
case 'ftp*://*'
|
||||
echo $uri | sed -r 's/ftps?:\/\/([^:/]+)(:\d+)?\/([^/]+)\/([^./]+).*/\1 \3 \4/g'
|
||||
case 'ssh://*'
|
||||
echo $uri | sed -r 's/ssh:\/\/([^@]+@)?([^:/]+)(:\d+)?\/([^/]+)\/([^./]+).*/\2 \4 \5/g'
|
||||
case 'git://*'
|
||||
echo $uri | sed -r 's/git:\/\/([^:/]+)(:\d+)?\/([^/]+)\/([^./]+).*/\1 \3 \4/g'
|
||||
case '*@*'
|
||||
echo $uri | sed -r 's/([^@]+@)?([^:]+):([^/]+)\/([^./]+).*/\2 \3 \4/g'
|
||||
case '*'
|
||||
echo $uri
|
||||
return 1
|
||||
end
|
||||
return 0
|
||||
end
|
@ -0,0 +1,77 @@
|
||||
function describe_omf_packages_tests
|
||||
function before_all
|
||||
set -gx CI WORKAROUND
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_name
|
||||
set -l output (omf.packages.name foo)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_of_a_plugin_package
|
||||
set -l output (omf.packages.name plugin-foo)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_of_a_theme_package
|
||||
set -l output (omf.packages.name theme-foo)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_name_ended_in_dot_git
|
||||
set -l output (omf.packages.name foo.git)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_name_with_dot
|
||||
set -l output (omf.packages.name foo.bar)
|
||||
assert 0 = $status
|
||||
assert "foo.bar" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_name_ended_in_git
|
||||
set -l output (omf.packages.name foobargit)
|
||||
assert 0 = $status
|
||||
assert "foobargit" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_url
|
||||
set -l output (omf.packages.name http://github.com/user/foo)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_url_of_a_plugin_package
|
||||
set -l output (omf.packages.name http://github.com/user/plugin-foo)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_url_of_a_theme_package
|
||||
set -l output (omf.packages.name http://github.com/user/theme-foo)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_url_ended_in_dot_git
|
||||
set -l output (omf.packages.name http://github.com/user/foo.git)
|
||||
assert 0 = $status
|
||||
assert "foo" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_url_with_dot
|
||||
set -l output (omf.packages.name http://github.com/user/foo.bar)
|
||||
assert 0 = $status
|
||||
assert "foo.bar" = "$output"
|
||||
end
|
||||
|
||||
function it_can_extract_name_from_url_ended_in_git
|
||||
set -l output (omf.packages.name http://github.com/user/foobargit)
|
||||
assert 0 = $status
|
||||
assert "foobargit" = "$output"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue