vpr 2.0.0 → 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: 4516c709e0285fa6e52594f71e1e27c817c74b718fefb8706c8eeadfce5cd632
4
- data.tar.gz: 95aed1a43e03d35813b25861b2a92dd83a46153556f9cea87e640ff4e3a5e4b7
3
+ metadata.gz: 44e905ac7da6c2fe76a1303e3b655e4a134b4aec175d0f925446e2bbe4da549d
4
+ data.tar.gz: e2517ce89773c0ae9a3bb4c2ae20231f845b84a10a2438927c8a0068bf221855
5
5
  SHA512:
6
- metadata.gz: 5cb0ae8e22c48bb54f241e1c5c503a6f86e8afdcff676319333a851ca39fe4dd66b6a0fb5781f4a5eb3ccd160a147b70f38da21b0d6e0a6b42feb422bea02c7e
7
- data.tar.gz: 36e8af20c55e5fbf89061e57bace2313b32b333c9886791319bae979f5baa71a2ed1a9a2075a054aa73702a5f22c9389ba9fae30fbd70f30735a702d2a5c207a
6
+ metadata.gz: fce6e5c0d6f910998be41a9cf3cb0383aff936494700bb7ca00260a144a370d420bb81de88937102221692d23842ad0427306fd3cf1e0d38a333d1c2ad5f420f
7
+ data.tar.gz: 7311e4032232d131e901c4ebe83ae95d688640692dae70dd6e07ead2e7298e33f836f9a8665f73a5170773134af87e1bffd567e43ebae9d34a1f9106950f753c
@@ -0,0 +1,32 @@
1
+ name: CI
2
+ on:
3
+ pull_request:
4
+ branches: [ master ]
5
+ push:
6
+ branches: [ master ]
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ ruby_version: [ '2.5', '2.6', '2.7' ]
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v2
16
+ - name: Setup ruby ${{ matrix.ruby_version }}
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby_version }}
20
+ - name: Setup cache key and directory for gems cache
21
+ uses: actions/cache@v1
22
+ with:
23
+ path: vendor/bundle
24
+ key: ${{ runner.os }}-gem-use-ruby-${{ matrix.ruby_version }}-${{ hashFiles('**/Gemfile.lock') }}
25
+ - name: Bundle install
26
+ run: |
27
+ gem install bundler
28
+ bundle config path vendor/bundle
29
+ bundle install --jobs 4 --retry 3
30
+ - name: Run tests
31
+ run: |
32
+ bundle exec rspec --format progress
@@ -1,5 +1,29 @@
1
1
  # Change Log
2
2
 
3
+ ## [2.0.0](https://github.com/JuanCrg90/vpr/tree/2.0.0) (2019-11-09)
4
+ [Full Changelog](https://github.com/JuanCrg90/vpr/compare/v1.0.0...2.0.0)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Bump version 2 [\#31](https://github.com/JuanCrg90/vpr/pull/31) ([JuanCrg90](https://github.com/JuanCrg90))
9
+ - Add support vpr branch in bitbucket https://github.com/JuanCrg90/vpr/issues/18 [\#30](https://github.com/JuanCrg90/vpr/pull/30) ([n8chz](https://github.com/n8chz))
10
+ - Add vendor to gitignore [\#28](https://github.com/JuanCrg90/vpr/pull/28) ([JuanCrg90](https://github.com/JuanCrg90))
11
+ - Add test for search page url [\#27](https://github.com/JuanCrg90/vpr/pull/27) ([JuanCrg90](https://github.com/JuanCrg90))
12
+ - Bitbucket Pulls Command [\#26](https://github.com/JuanCrg90/vpr/pull/26) ([pathway27](https://github.com/pathway27))
13
+ - per "https://github.com/JuanCrg90/vpr/issues/20" corrected pathname f… [\#25](https://github.com/JuanCrg90/vpr/pull/25) ([n8chz](https://github.com/n8chz))
14
+ - Add standardrb checks to default rake task [\#24](https://github.com/JuanCrg90/vpr/pull/24) ([schmidt](https://github.com/schmidt))
15
+ - Allow to use vpr even if you are not in the root directory [\#23](https://github.com/JuanCrg90/vpr/pull/23) ([schmidt](https://github.com/schmidt))
16
+ - Allow pull command for Bitbucket repos [\#22](https://github.com/JuanCrg90/vpr/pull/22) ([pathway27](https://github.com/pathway27))
17
+ - Fix test suite [\#21](https://github.com/JuanCrg90/vpr/pull/21) ([EduardoGHdez](https://github.com/EduardoGHdez))
18
+ - Remove .travis.yml [\#16](https://github.com/JuanCrg90/vpr/pull/16) ([JuanCrg90](https://github.com/JuanCrg90))
19
+ - Add circle CI badge [\#15](https://github.com/JuanCrg90/vpr/pull/15) ([JuanCrg90](https://github.com/JuanCrg90))
20
+ - add standardrb [\#14](https://github.com/JuanCrg90/vpr/pull/14) ([andrewmcodes](https://github.com/andrewmcodes))
21
+ - Support to select remote branch to visit [\#13](https://github.com/JuanCrg90/vpr/pull/13) ([EduardoGHdez](https://github.com/EduardoGHdez))
22
+ - Add vpr --version command [\#11](https://github.com/JuanCrg90/vpr/pull/11) ([andrewmcodes](https://github.com/andrewmcodes))
23
+ - Update circle ci config [\#7](https://github.com/JuanCrg90/vpr/pull/7) ([JuanCrg90](https://github.com/JuanCrg90))
24
+ - Add basic circle ci configuration [\#6](https://github.com/JuanCrg90/vpr/pull/6) ([JuanCrg90](https://github.com/JuanCrg90))
25
+ - Add support for bitbucket in visit method [\#5](https://github.com/JuanCrg90/vpr/pull/5) ([JuanCrg90](https://github.com/JuanCrg90))
26
+
3
27
  ## [v1.0.0](https://github.com/JuanCrg90/vpr/tree/v1.0.0) (2019-07-12)
4
28
  [Full Changelog](https://github.com/JuanCrg90/vpr/compare/v0.2.0...v1.0.0)
5
29
 
@@ -1,29 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vpr (2.0.0)
5
- git (~> 1.5)
4
+ vpr (2.3.0)
5
+ git (~> 1.7)
6
6
  launchy (~> 2.4)
7
7
  thor (~> 0.20)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.2.3)
12
+ activesupport (6.0.3.1)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 0.7, < 2)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
+ zeitwerk (~> 2.2, >= 2.2.2)
17
18
  addressable (2.6.0)
18
19
  public_suffix (>= 2.0.2, < 4.0)
19
20
  ast (2.4.0)
20
- concurrent-ruby (1.1.5)
21
+ concurrent-ruby (1.1.6)
21
22
  diff-lcs (1.3)
22
23
  faraday (0.15.4)
23
24
  multipart-post (>= 1.2, < 3)
24
25
  faraday-http-cache (2.0.0)
25
26
  faraday (~> 0.8)
26
- git (1.5.0)
27
+ git (1.7.0)
28
+ rchardet (~> 1.8)
27
29
  github_changelog_generator (1.14.3)
28
30
  activesupport
29
31
  faraday-http-cache
@@ -32,12 +34,12 @@ GEM
32
34
  rainbow (>= 2.1)
33
35
  rake (>= 10.0)
34
36
  retriable (~> 2.1)
35
- i18n (1.6.0)
37
+ i18n (1.8.2)
36
38
  concurrent-ruby (~> 1.0)
37
39
  jaro_winkler (1.5.3)
38
40
  launchy (2.4.3)
39
41
  addressable (~> 2.3)
40
- minitest (5.11.3)
42
+ minitest (5.14.1)
41
43
  multi_json (1.13.1)
42
44
  multipart-post (2.1.1)
43
45
  octokit (4.14.0)
@@ -47,7 +49,8 @@ GEM
47
49
  ast (~> 2.4.0)
48
50
  public_suffix (3.1.1)
49
51
  rainbow (3.0.0)
50
- rake (10.5.0)
52
+ rake (13.0.1)
53
+ rchardet (1.8.0)
51
54
  retriable (2.1.0)
52
55
  rspec (3.8.0)
53
56
  rspec-core (~> 3.8.0)
@@ -82,21 +85,22 @@ GEM
82
85
  rubocop-performance (~> 1.4.0)
83
86
  thor (0.20.3)
84
87
  thread_safe (0.3.6)
85
- tzinfo (1.2.5)
88
+ tzinfo (1.2.7)
86
89
  thread_safe (~> 0.1)
87
90
  unicode-display_width (1.6.0)
91
+ zeitwerk (2.3.0)
88
92
 
89
93
  PLATFORMS
90
94
  ruby
91
95
 
92
96
  DEPENDENCIES
93
- bundler (~> 2.0)
97
+ bundler (~> 2.1)
94
98
  github_changelog_generator (~> 1.14)
95
- rake (~> 10.0)
99
+ rake (~> 13.0)
96
100
  rspec (~> 3.0)
97
101
  rspec_junit_formatter (~> 0.4)
98
102
  standard
99
103
  vpr!
100
104
 
101
105
  BUNDLED WITH
102
- 2.0.2
106
+ 2.1.4
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ![StandardRB](https://github.com/JuanCrg90/vpr/workflows/StandardRB/badge.svg)
2
- [![CircleCI](https://circleci.com/gh/JuanCrg90/vpr.svg?style=svg)](https://circleci.com/gh/JuanCrg90/vpr)
2
+ ![CI](https://github.com/JuanCrg90/vpr/workflows/CI/badge.svg)
3
3
 
4
4
  # vpr
5
5
 
data/Rakefile CHANGED
@@ -11,5 +11,5 @@ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
11
11
  config.user = "JuanCrg90"
12
12
  config.project = "vpr"
13
13
  config.since_tag = "0.1.0"
14
- config.future_release = "1.0.0"
14
+ config.future_release = "2.0.0"
15
15
  end
data/lib/vpr.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  #:nodoc:
2
2
  module Vpr
3
+ autoload :VERSION, "vpr/version"
3
4
  autoload :Configuration, "vpr/configuration"
4
5
  autoload :GitParser, "vpr/git_parser"
5
6
  autoload :Url, "vpr/url"
6
7
  autoload :CLI, "vpr/cli"
7
- autoload :VERSION, "vpr/version"
8
+ autoload :Services, "vpr/services"
8
9
  end
@@ -2,12 +2,14 @@ require "thor"
2
2
  require "launchy"
3
3
  require "vpr/url"
4
4
  require "vpr/configuration"
5
+ require "vpr/version"
5
6
 
6
7
  module Vpr
7
8
  class CLI < Thor
8
9
  def initialize(args = [], local_options = {}, config = {})
9
10
  super
10
11
  select_remote
12
+ @url = Url.new
11
13
  end
12
14
 
13
15
  map "--version" => :version
@@ -15,47 +17,47 @@ module Vpr
15
17
 
16
18
  desc "home", "visit the project page in github"
17
19
  def home
18
- Launchy.open(Url.home_url)
20
+ Launchy.open(url.home_url)
19
21
  end
20
22
 
21
23
  desc "pulls", "visit the project pull requests page in github"
22
24
  def pulls
23
- Launchy.open(Url.pulls_url)
25
+ Launchy.open(url.pulls_url)
24
26
  end
25
27
 
26
28
  desc "issues", "visit the project issues page in github"
27
29
  def issues
28
- Launchy.open(Url.issues_url)
30
+ Launchy.open(url.issues_url)
29
31
  end
30
32
 
31
33
  desc "branches", "visit the project branches page in github"
32
34
  def branches
33
- Launchy.open(Url.branches_url)
35
+ Launchy.open(url.branches_url)
34
36
  end
35
37
 
36
38
  desc "branch", "visit the current branch in github"
37
39
  def branch
38
- Launchy.open(Url.branch_url)
40
+ Launchy.open(url.branch_url)
39
41
  end
40
42
 
41
43
  desc "pull", "visit the pull request for the current branch (if exist) in github"
42
44
  def pull
43
- Launchy.open(Url.pull_url)
45
+ Launchy.open(url.pull_url)
44
46
  end
45
47
 
46
48
  desc "visit COMMIT", "visit the commit in github"
47
49
  def visit(commit)
48
- Launchy.open(Url.commit_url(commit))
50
+ Launchy.open(url.commit_url(commit))
49
51
  end
50
52
 
51
53
  desc "search COMMIT", "search the commit in github"
52
54
  def search(commit)
53
- Launchy.open(Url.search_url(commit))
55
+ Launchy.open(url.search_url(commit))
54
56
  end
55
57
 
56
58
  desc "version", "show the gem version"
57
59
  def version
58
- Vpr::VERSION
60
+ puts Vpr::VERSION
59
61
  end
60
62
 
61
63
  private
@@ -63,5 +65,7 @@ module Vpr
63
65
  def select_remote
64
66
  Configuration.remote = options[:remote].to_sym
65
67
  end
68
+
69
+ attr_reader :url
66
70
  end
67
71
  end
@@ -0,0 +1,7 @@
1
+ module Vpr
2
+ module Services
3
+ autoload :GitHub, "vpr/services/github"
4
+ autoload :Bitbucket, "vpr/services/bitbucket"
5
+ autoload :GitLab, "vpr/services/gitlab"
6
+ end
7
+ end
@@ -0,0 +1,39 @@
1
+ require "vpr/git_parser"
2
+
3
+ module Vpr
4
+ module Services
5
+ class Bitbucket
6
+ def self.home_url
7
+ GitParser.repo_url
8
+ end
9
+
10
+ def self.pulls_url
11
+ "#{GitParser.repo_url}/pull-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}/branch/#{GitParser.current_branch}"
24
+ end
25
+
26
+ def self.pull_url
27
+ "#{GitParser.repo_url}/pull-requests/new?source=#{GitParser.current_branch}"
28
+ end
29
+
30
+ def self.commit_url(commit)
31
+ "#{GitParser.repo_url}/commits/#{commit}"
32
+ end
33
+
34
+ def self.search_url(commit)
35
+ "#{GitParser.repo_url}/commits/all?search=#{commit}"
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,44 @@
1
+ require "vpr/git_parser"
2
+
3
+ module Vpr
4
+ module Services
5
+ class GitHub
6
+ def self.home_url
7
+ GitParser.repo_url
8
+ end
9
+
10
+ def self.pulls_url
11
+ "#{GitParser.repo_url}/pulls"
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
+ base_url = "#{GitParser.repo_url}/pull"
28
+ current_branch = GitParser.current_branch
29
+
30
+ base_url.concat("/new") if current_branch.match?(/\d+\/.+/)
31
+
32
+ "#{base_url}/#{current_branch}"
33
+ end
34
+
35
+ def self.commit_url(commit)
36
+ "#{GitParser.repo_url}/commit/#{commit}"
37
+ end
38
+
39
+ def self.search_url(commit)
40
+ "#{GitParser.repo_url}/search?q=#{commit}"
41
+ end
42
+ end
43
+ end
44
+ 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
@@ -1,60 +1,54 @@
1
1
  require "vpr/git_parser"
2
+ require "vpr/services"
2
3
 
3
4
  module Vpr
4
5
  class Url
5
- def self.home_url
6
- GitParser.repo_url
6
+ def initialize
7
+ @service = services[GitParser.host.to_sym]
7
8
  end
8
9
 
9
- def self.pulls_url
10
- path = {
11
- 'github.com': "pulls",
12
- 'bitbucket.org': "pull-requests",
13
- }
14
-
15
- "#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}"
10
+ def home_url
11
+ service.home_url
16
12
  end
17
13
 
18
- def self.issues_url
19
- "#{GitParser.repo_url}/issues"
14
+ def pulls_url
15
+ service.pulls_url
20
16
  end
21
17
 
22
- def self.branches_url
23
- "#{GitParser.repo_url}/branches"
18
+ def issues_url
19
+ service.issues_url
24
20
  end
25
21
 
26
- def self.branch_url
27
- path = {
28
- 'github.com': "tree",
29
- 'bitbucket.org': "branch",
30
- }
31
- "#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}/#{GitParser.current_branch}"
22
+ def branches_url
23
+ service.branches_url
32
24
  end
33
25
 
34
- def self.pull_url
35
- path = {
36
- 'github.com': "pull/#{GitParser.current_branch}",
37
- 'bitbucket.org': "pull-requests/new?source=#{GitParser.current_branch}",
38
- }
26
+ def branch_url
27
+ service.branch_url
28
+ end
39
29
 
40
- "#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}"
30
+ def pull_url
31
+ service.pull_url
41
32
  end
42
33
 
43
- def self.commit_url(commit)
44
- path = {
45
- 'github.com': "commit",
46
- 'bitbucket.org': "commits",
47
- }
34
+ def commit_url(commit)
35
+ service.commit_url(commit)
36
+ end
48
37
 
49
- "#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}/#{commit}"
38
+ def search_url(commit)
39
+ service.search_url(commit)
50
40
  end
51
41
 
52
- def self.search_url(commit)
53
- path = {
54
- 'github.com': "search?q=",
55
- 'bitbucket.org': "commits/all?search=",
42
+ private
43
+
44
+ def services
45
+ {
46
+ 'github.com': Vpr::Services::GitHub,
47
+ 'bitbucket.org': Vpr::Services::Bitbucket,
48
+ 'gitlab.com': Vpr::Services::GitLab,
56
49
  }
57
- "#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}#{commit}"
58
50
  end
51
+
52
+ attr_reader :service
59
53
  end
60
54
  end
@@ -1,3 +1,3 @@
1
1
  module Vpr
2
- VERSION = "2.0.0"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -23,14 +23,14 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_development_dependency "bundler", "~> 2.0"
26
+ spec.add_development_dependency "bundler", "~> 2.1"
27
27
  spec.add_development_dependency "github_changelog_generator", "~> 1.14"
28
- spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rake", "~> 13.0"
29
29
  spec.add_development_dependency "rspec", "~> 3.0"
30
30
  spec.add_development_dependency "rspec_junit_formatter", "~> 0.4"
31
31
  spec.add_development_dependency "standard"
32
32
 
33
- spec.add_runtime_dependency "git", "~> 1.5"
33
+ spec.add_runtime_dependency "git", "~> 1.7"
34
34
  spec.add_runtime_dependency "launchy", "~> 2.4"
35
35
  spec.add_runtime_dependency "thor", "~> 0.20"
36
36
  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.0.0
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: 2019-11-09 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: github_changelog_generator
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.5'
103
+ version: '1.7'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.5'
110
+ version: '1.7'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: launchy
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +144,7 @@ executables:
144
144
  extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
- - ".circleci/config.yml"
147
+ - ".github/workflows/ci.yml"
148
148
  - ".github/workflows/standardrb.yml"
149
149
  - ".gitignore"
150
150
  - ".rspec"
@@ -162,6 +162,10 @@ files:
162
162
  - lib/vpr/cli.rb
163
163
  - lib/vpr/configuration.rb
164
164
  - lib/vpr/git_parser.rb
165
+ - lib/vpr/services.rb
166
+ - lib/vpr/services/bitbucket.rb
167
+ - lib/vpr/services/github.rb
168
+ - lib/vpr/services/gitlab.rb
165
169
  - lib/vpr/url.rb
166
170
  - lib/vpr/version.rb
167
171
  - vpr.gemspec
@@ -184,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
188
  - !ruby/object:Gem::Version
185
189
  version: '0'
186
190
  requirements: []
187
- rubygems_version: 3.0.3
191
+ rubygems_version: 3.1.2
188
192
  signing_key:
189
193
  specification_version: 4
190
194
  summary: A CLI to visit quickly commits in github
@@ -1,54 +0,0 @@
1
- # Ruby CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
- #
5
- version: 2
6
- jobs:
7
- build:
8
- docker:
9
- # specify the version you desire here
10
- - image: circleci/ruby:2.6.4
11
-
12
- working_directory: ~/repo
13
-
14
- steps:
15
- - checkout
16
-
17
- # Download and cache dependencies
18
- - restore_cache:
19
- keys:
20
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
21
- # fallback to using the latest cache if no exact match is found
22
- - v1-dependencies-
23
-
24
- - run:
25
- name: install dependencies
26
- command: |
27
- gem install bundler
28
- bundle install --jobs=4 --retry=3 --path vendor/bundle
29
-
30
- - save_cache:
31
- paths:
32
- - ./vendor/bundle
33
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
34
-
35
- # run tests!
36
- - run:
37
- name: run tests
38
- command: |
39
- mkdir /tmp/test-results
40
- TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb")"
41
-
42
- bundle exec rspec \
43
- --format progress \
44
- --format RspecJunitFormatter \
45
- --out /tmp/test-results/rspec.xml \
46
- --format progress \
47
- $TEST_FILES
48
-
49
- # collect reports
50
- - store_test_results:
51
- path: /tmp/test-results
52
- - store_artifacts:
53
- path: /tmp/test-results
54
- destination: test-results