vorx 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -3
- data/lib/vorx/git_reference.rb +4 -2
- data/lib/vorx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e76f39dbb307ad54da54b639276206446c9af7783fe405f0e1a06998d947700
|
4
|
+
data.tar.gz: 9c9b84305ea8c65ee34f1fe0eb474c95d18f56962f83553831c0f36fc199a18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f41a1f86577ac4776c3e67d8120f3c590686519a2173b7736a803461c415c565d8b1bd4eab4e013ba876b0f66dad71bf569b88451ad4ad3d547f2c8981918b
|
7
|
+
data.tar.gz: 9f26a9f5eda296af583b5110926026bfab1171db1c5e739023ace6448daf6d07979956fe3c3a27d0b28ca34b7a1c0131d31bbd3aee6b5b5bd1af1d47a28b2750
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Vorx
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Vorx let you manage multiple git repositories with ruby code!
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
data/lib/vorx/git_reference.rb
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
module Vorx
|
4
4
|
class GitReference
|
5
|
-
GIT_URI_REGEXP =
|
5
|
+
GIT_URI_REGEXP = %r{(\w+://)(.+@)*([\w\d.]+)(:\d+){0,1}/*(.*)}.freeze
|
6
|
+
GIT_REFERENCE_REGEXP = %r{([[:alnum:]]+:)?([[[:alnum:]]/_-]+)(:\S+)?}.freeze
|
7
|
+
|
6
8
|
PROVIDERS = {
|
7
9
|
'github' => 'https://github.com',
|
8
10
|
'gitlab' => 'https://gitlab.com',
|
@@ -31,7 +33,7 @@ module Vorx
|
|
31
33
|
private
|
32
34
|
|
33
35
|
def extract_params(git_reference)
|
34
|
-
provider, reference, version =
|
36
|
+
provider, reference, version = GIT_REFERENCE_REGEXP.match(git_reference).captures
|
35
37
|
|
36
38
|
provider&.tr!(':', '')
|
37
39
|
version&.tr!(':', '')
|
data/lib/vorx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vorx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Atkinson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|