vpr 2.2.1 → 2.3.0

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: f4392e553d246cbcdc5eae1a5f1489adf327b487ff6bbc9804cfbe2c84ee69bb
4
- data.tar.gz: a855bdaf9bc749e169b8c088d64de873749bf0ba6012f24f4a57965d5cdad303
3
+ metadata.gz: 44e905ac7da6c2fe76a1303e3b655e4a134b4aec175d0f925446e2bbe4da549d
4
+ data.tar.gz: e2517ce89773c0ae9a3bb4c2ae20231f845b84a10a2438927c8a0068bf221855
5
5
  SHA512:
6
- metadata.gz: 553418872ac7f362acfafa88f54a5674c9bcade97e7e1315a7914cb4fb9322789e3aa48404fb0196b7506468cc4dddbf70cda558c9daabcf494df65667d72901
7
- data.tar.gz: 7ca2e72a8062ee6c3ba139c35c5f8538052e1301d1b3d1e7b1f1b5706922111f7186d541552ae754a12d7c2748343db7ff8e67c451bd2156acb4d851cabfec6e
6
+ metadata.gz: fce6e5c0d6f910998be41a9cf3cb0383aff936494700bb7ca00260a144a370d420bb81de88937102221692d23842ad0427306fd3cf1e0d38a333d1c2ad5f420f
7
+ data.tar.gz: 7311e4032232d131e901c4ebe83ae95d688640692dae70dd6e07ead2e7298e33f836f9a8665f73a5170773134af87e1bffd567e43ebae9d34a1f9106950f753c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vpr (2.2.1)
4
+ vpr (2.3.0)
5
5
  git (~> 1.7)
6
6
  launchy (~> 2.4)
7
7
  thor (~> 0.20)
@@ -2,5 +2,6 @@ module Vpr
2
2
  module Services
3
3
  autoload :GitHub, "vpr/services/github"
4
4
  autoload :Bitbucket, "vpr/services/bitbucket"
5
+ autoload :GitLab, "vpr/services/gitlab"
5
6
  end
6
7
  end
@@ -0,0 +1,39 @@
1
+ require "vpr/git_parser"
2
+
3
+ module Vpr
4
+ module Services
5
+ class GitLab
6
+ def self.home_url
7
+ GitParser.repo_url
8
+ end
9
+
10
+ def self.pulls_url
11
+ "#{GitParser.repo_url}/-/merge_requests"
12
+ end
13
+
14
+ def self.issues_url
15
+ "#{GitParser.repo_url}/-/issues"
16
+ end
17
+
18
+ def self.branches_url
19
+ "#{GitParser.repo_url}/-/branches"
20
+ end
21
+
22
+ def self.branch_url
23
+ "#{GitParser.repo_url}/-/tree/#{GitParser.current_branch}"
24
+ end
25
+
26
+ def self.pull_url
27
+ "#{GitParser.repo_url}/-/merge_requests/#{GitParser.current_branch}"
28
+ end
29
+
30
+ def self.commit_url(commit)
31
+ "#{GitParser.repo_url}/-/commit/#{commit}"
32
+ end
33
+
34
+ def self.search_url(commit)
35
+ "#{GitParser.host}/search?search=#{commit}"
36
+ end
37
+ end
38
+ end
39
+ end
@@ -45,6 +45,7 @@ module Vpr
45
45
  {
46
46
  'github.com': Vpr::Services::GitHub,
47
47
  'bitbucket.org': Vpr::Services::Bitbucket,
48
+ 'gitlab.com': Vpr::Services::GitLab,
48
49
  }
49
50
  end
50
51
 
@@ -1,3 +1,3 @@
1
1
  module Vpr
2
- VERSION = "2.2.1"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Carlos Ruiz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-02 00:00:00.000000000 Z
11
+ date: 2020-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -165,6 +165,7 @@ files:
165
165
  - lib/vpr/services.rb
166
166
  - lib/vpr/services/bitbucket.rb
167
167
  - lib/vpr/services/github.rb
168
+ - lib/vpr/services/gitlab.rb
168
169
  - lib/vpr/url.rb
169
170
  - lib/vpr/version.rb
170
171
  - vpr.gemspec
@@ -187,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
188
  - !ruby/object:Gem::Version
188
189
  version: '0'
189
190
  requirements: []
190
- rubygems_version: 3.0.3
191
+ rubygems_version: 3.1.2
191
192
  signing_key:
192
193
  specification_version: 4
193
194
  summary: A CLI to visit quickly commits in github