vorx 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcf0bb2488590441bb3ba4d319508b19352afff8f12051e0b0a171d5283b5ed5
4
- data.tar.gz: e8daafe69c2cdb6fa9b9dc19e2c0fa8dcd72575c3fc65b0b42288ff7866f979e
3
+ metadata.gz: 5e76f39dbb307ad54da54b639276206446c9af7783fe405f0e1a06998d947700
4
+ data.tar.gz: 9c9b84305ea8c65ee34f1fe0eb474c95d18f56962f83553831c0f36fc199a18b
5
5
  SHA512:
6
- metadata.gz: 97f867eb985367a279327f75049605261653cf316bcfede5c91127d9dc14a63472d78c12d34043adb72722cc1d1d9b7d44721dcb391e91978940cf6dfec95a1a
7
- data.tar.gz: 2fac650cccb6c318584a687a30c84135aefff0f6f498f3df71147fcf292de7f9a56f2872c99c7da2e9afde2e97a9955d24fa4c12e77a3aa6c87587917c03cc94
6
+ metadata.gz: a7f41a1f86577ac4776c3e67d8120f3c590686519a2173b7736a803461c415c565d8b1bd4eab4e013ba876b0f66dad71bf569b88451ad4ad3d547f2c8981918b
7
+ data.tar.gz: 9f26a9f5eda296af583b5110926026bfab1171db1c5e739023ace6448daf6d07979956fe3c3a27d0b28ca34b7a1c0131d31bbd3aee6b5b5bd1af1d47a28b2750
data/CHANGELOG.md CHANGED
@@ -0,0 +1,4 @@
1
+ ## 0.1.1 - 05/03/2021
2
+ * [FIX] Git Reference support for '-' and '_'
3
+ * [FEATURE] Vorx Store
4
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vorx (0.1.0)
4
+ vorx (0.1.1)
5
5
  dry-cli (~> 0.6.0)
6
6
  dry-equalizer (~> 0.3.0)
7
7
  dry-struct (~> 1.3.0)
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Vorx
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/vorx`. To experiment with that code, run `bin/console` for an interactive prompt.
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
 
@@ -2,7 +2,9 @@
2
2
 
3
3
  module Vorx
4
4
  class GitReference
5
- GIT_URI_REGEXP = Regexp.new('(\w+://)(.+@)*([\w\d\.]+)(:[\d]+){0,1}/*(.*)')
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 = %r{([[:alnum:]]+:)?([[[:alnum:]]|/]+)(:\S+)?}.match(git_reference).captures
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vorx
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2021-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli