vpr 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vpr/services.rb +1 -0
- data/lib/vpr/services/gitlab.rb +39 -0
- data/lib/vpr/url.rb +1 -0
- data/lib/vpr/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44e905ac7da6c2fe76a1303e3b655e4a134b4aec175d0f925446e2bbe4da549d
|
4
|
+
data.tar.gz: e2517ce89773c0ae9a3bb4c2ae20231f845b84a10a2438927c8a0068bf221855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce6e5c0d6f910998be41a9cf3cb0383aff936494700bb7ca00260a144a370d420bb81de88937102221692d23842ad0427306fd3cf1e0d38a333d1c2ad5f420f
|
7
|
+
data.tar.gz: 7311e4032232d131e901c4ebe83ae95d688640692dae70dd6e07ead2e7298e33f836f9a8665f73a5170773134af87e1bffd567e43ebae9d34a1f9106950f753c
|
data/Gemfile.lock
CHANGED
data/lib/vpr/services.rb
CHANGED
@@ -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
|
data/lib/vpr/url.rb
CHANGED
data/lib/vpr/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|