vpr 1.0.0 → 2.0.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 +4 -4
- data/.circleci/config.yml +54 -0
- data/.github/workflows/standardrb.yml +20 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -2
- data/Gemfile.lock +25 -2
- data/README.md +3 -0
- data/Rakefile +7 -6
- data/exe/vpr +1 -2
- data/lib/vpr.rb +5 -5
- data/lib/vpr/cli.rb +31 -11
- data/lib/vpr/configuration.rb +26 -0
- data/lib/vpr/git_parser.rb +35 -13
- data/lib/vpr/url.rb +29 -6
- data/lib/vpr/version.rb +1 -1
- data/vpr.gemspec +22 -21
- metadata +33 -3
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4516c709e0285fa6e52594f71e1e27c817c74b718fefb8706c8eeadfce5cd632
|
|
4
|
+
data.tar.gz: 95aed1a43e03d35813b25861b2a92dd83a46153556f9cea87e640ff4e3a5e4b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cb0ae8e22c48bb54f241e1c5c503a6f86e8afdcff676319333a851ca39fe4dd66b6a0fb5781f4a5eb3ccd160a147b70f38da21b0d6e0a6b42feb422bea02c7e
|
|
7
|
+
data.tar.gz: 36e8af20c55e5fbf89061e57bace2313b32b333c9886791319bae979f5baa71a2ed1a9a2075a054aa73702a5f22c9389ba9fae30fbd70f30735a702d2a5c207a
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: StandardRB
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- '*'
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
standard:
|
|
13
|
+
name: StandardRB Check Action
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@master
|
|
17
|
+
- name: Standard
|
|
18
|
+
uses: CultureHQ/actions-bundler@master
|
|
19
|
+
with:
|
|
20
|
+
args: install && bundle exec standardrb --format progress
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [
|
|
4
|
-
[Full Changelog](https://github.com/JuanCrg90/vpr/compare/v0.2.0...
|
|
3
|
+
## [v1.0.0](https://github.com/JuanCrg90/vpr/tree/v1.0.0) (2019-07-12)
|
|
4
|
+
[Full Changelog](https://github.com/JuanCrg90/vpr/compare/v0.2.0...v1.0.0)
|
|
5
5
|
|
|
6
6
|
**Merged pull requests:**
|
|
7
7
|
|
|
8
|
+
- Bump version 1.0.0 [\#4](https://github.com/JuanCrg90/vpr/pull/4) ([JuanCrg90](https://github.com/JuanCrg90))
|
|
9
|
+
- Add changelog [\#3](https://github.com/JuanCrg90/vpr/pull/3) ([JuanCrg90](https://github.com/JuanCrg90))
|
|
8
10
|
- Add regular GitHub project actions [\#2](https://github.com/JuanCrg90/vpr/pull/2) ([JuanCrg90](https://github.com/JuanCrg90))
|
|
9
11
|
|
|
10
12
|
## [v0.2.0](https://github.com/JuanCrg90/vpr/tree/v0.2.0) (2019-07-10)
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
vpr (
|
|
4
|
+
vpr (2.0.0)
|
|
5
5
|
git (~> 1.5)
|
|
6
6
|
launchy (~> 2.4)
|
|
7
7
|
thor (~> 0.20)
|
|
@@ -16,6 +16,7 @@ GEM
|
|
|
16
16
|
tzinfo (~> 1.1)
|
|
17
17
|
addressable (2.6.0)
|
|
18
18
|
public_suffix (>= 2.0.2, < 4.0)
|
|
19
|
+
ast (2.4.0)
|
|
19
20
|
concurrent-ruby (1.1.5)
|
|
20
21
|
diff-lcs (1.3)
|
|
21
22
|
faraday (0.15.4)
|
|
@@ -33,6 +34,7 @@ GEM
|
|
|
33
34
|
retriable (~> 2.1)
|
|
34
35
|
i18n (1.6.0)
|
|
35
36
|
concurrent-ruby (~> 1.0)
|
|
37
|
+
jaro_winkler (1.5.3)
|
|
36
38
|
launchy (2.4.3)
|
|
37
39
|
addressable (~> 2.3)
|
|
38
40
|
minitest (5.11.3)
|
|
@@ -40,6 +42,9 @@ GEM
|
|
|
40
42
|
multipart-post (2.1.1)
|
|
41
43
|
octokit (4.14.0)
|
|
42
44
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
45
|
+
parallel (1.17.0)
|
|
46
|
+
parser (2.6.5.0)
|
|
47
|
+
ast (~> 2.4.0)
|
|
43
48
|
public_suffix (3.1.1)
|
|
44
49
|
rainbow (3.0.0)
|
|
45
50
|
rake (10.5.0)
|
|
@@ -57,13 +62,29 @@ GEM
|
|
|
57
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
63
|
rspec-support (~> 3.8.0)
|
|
59
64
|
rspec-support (3.8.2)
|
|
65
|
+
rspec_junit_formatter (0.4.1)
|
|
66
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
|
67
|
+
rubocop (0.72.0)
|
|
68
|
+
jaro_winkler (~> 1.5.1)
|
|
69
|
+
parallel (~> 1.10)
|
|
70
|
+
parser (>= 2.6)
|
|
71
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
72
|
+
ruby-progressbar (~> 1.7)
|
|
73
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
|
74
|
+
rubocop-performance (1.4.1)
|
|
75
|
+
rubocop (>= 0.71.0)
|
|
76
|
+
ruby-progressbar (1.10.1)
|
|
60
77
|
sawyer (0.8.2)
|
|
61
78
|
addressable (>= 2.3.5)
|
|
62
79
|
faraday (> 0.8, < 2.0)
|
|
80
|
+
standard (0.1.4)
|
|
81
|
+
rubocop (~> 0.72.0)
|
|
82
|
+
rubocop-performance (~> 1.4.0)
|
|
63
83
|
thor (0.20.3)
|
|
64
84
|
thread_safe (0.3.6)
|
|
65
85
|
tzinfo (1.2.5)
|
|
66
86
|
thread_safe (~> 0.1)
|
|
87
|
+
unicode-display_width (1.6.0)
|
|
67
88
|
|
|
68
89
|
PLATFORMS
|
|
69
90
|
ruby
|
|
@@ -73,7 +94,9 @@ DEPENDENCIES
|
|
|
73
94
|
github_changelog_generator (~> 1.14)
|
|
74
95
|
rake (~> 10.0)
|
|
75
96
|
rspec (~> 3.0)
|
|
97
|
+
rspec_junit_formatter (~> 0.4)
|
|
98
|
+
standard
|
|
76
99
|
vpr!
|
|
77
100
|
|
|
78
101
|
BUNDLED WITH
|
|
79
|
-
2.0.
|
|
102
|
+
2.0.2
|
data/README.md
CHANGED
data/Rakefile
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
require "bundler/gem_tasks"
|
|
2
2
|
require "rspec/core/rake_task"
|
|
3
|
-
require
|
|
3
|
+
require "github_changelog_generator/task"
|
|
4
|
+
require "standard/rake"
|
|
4
5
|
|
|
5
6
|
RSpec::Core::RakeTask.new(:spec)
|
|
6
7
|
|
|
7
|
-
task :
|
|
8
|
+
task default: [:standard, :spec]
|
|
8
9
|
|
|
9
10
|
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
10
|
-
config.user =
|
|
11
|
-
config.project =
|
|
12
|
-
config.since_tag =
|
|
13
|
-
config.future_release =
|
|
11
|
+
config.user = "JuanCrg90"
|
|
12
|
+
config.project = "vpr"
|
|
13
|
+
config.since_tag = "0.1.0"
|
|
14
|
+
config.future_release = "1.0.0"
|
|
14
15
|
end
|
data/exe/vpr
CHANGED
data/lib/vpr.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
1
|
#:nodoc:
|
|
3
2
|
module Vpr
|
|
4
|
-
autoload :
|
|
5
|
-
autoload :
|
|
6
|
-
autoload :
|
|
7
|
-
autoload :
|
|
3
|
+
autoload :Configuration, "vpr/configuration"
|
|
4
|
+
autoload :GitParser, "vpr/git_parser"
|
|
5
|
+
autoload :Url, "vpr/url"
|
|
6
|
+
autoload :CLI, "vpr/cli"
|
|
7
|
+
autoload :VERSION, "vpr/version"
|
|
8
8
|
end
|
data/lib/vpr/cli.rb
CHANGED
|
@@ -1,47 +1,67 @@
|
|
|
1
|
-
require
|
|
2
|
-
require
|
|
3
|
-
require
|
|
1
|
+
require "thor"
|
|
2
|
+
require "launchy"
|
|
3
|
+
require "vpr/url"
|
|
4
|
+
require "vpr/configuration"
|
|
4
5
|
|
|
5
6
|
module Vpr
|
|
6
7
|
class CLI < Thor
|
|
7
|
-
|
|
8
|
+
def initialize(args = [], local_options = {}, config = {})
|
|
9
|
+
super
|
|
10
|
+
select_remote
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
map "--version" => :version
|
|
14
|
+
class_option :remote, default: :origin
|
|
15
|
+
|
|
16
|
+
desc "home", "visit the project page in github"
|
|
8
17
|
def home
|
|
9
18
|
Launchy.open(Url.home_url)
|
|
10
19
|
end
|
|
11
20
|
|
|
12
|
-
desc
|
|
21
|
+
desc "pulls", "visit the project pull requests page in github"
|
|
13
22
|
def pulls
|
|
14
23
|
Launchy.open(Url.pulls_url)
|
|
15
24
|
end
|
|
16
25
|
|
|
17
|
-
desc
|
|
26
|
+
desc "issues", "visit the project issues page in github"
|
|
18
27
|
def issues
|
|
19
28
|
Launchy.open(Url.issues_url)
|
|
20
29
|
end
|
|
21
30
|
|
|
22
|
-
desc
|
|
31
|
+
desc "branches", "visit the project branches page in github"
|
|
23
32
|
def branches
|
|
24
33
|
Launchy.open(Url.branches_url)
|
|
25
34
|
end
|
|
26
35
|
|
|
27
|
-
desc
|
|
36
|
+
desc "branch", "visit the current branch in github"
|
|
28
37
|
def branch
|
|
29
38
|
Launchy.open(Url.branch_url)
|
|
30
39
|
end
|
|
31
40
|
|
|
32
|
-
desc
|
|
41
|
+
desc "pull", "visit the pull request for the current branch (if exist) in github"
|
|
33
42
|
def pull
|
|
34
43
|
Launchy.open(Url.pull_url)
|
|
35
44
|
end
|
|
36
45
|
|
|
37
|
-
desc
|
|
46
|
+
desc "visit COMMIT", "visit the commit in github"
|
|
38
47
|
def visit(commit)
|
|
39
48
|
Launchy.open(Url.commit_url(commit))
|
|
40
49
|
end
|
|
41
50
|
|
|
42
|
-
desc
|
|
51
|
+
desc "search COMMIT", "search the commit in github"
|
|
43
52
|
def search(commit)
|
|
44
53
|
Launchy.open(Url.search_url(commit))
|
|
45
54
|
end
|
|
55
|
+
|
|
56
|
+
desc "version", "show the gem version"
|
|
57
|
+
def version
|
|
58
|
+
Vpr::VERSION
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
private
|
|
62
|
+
|
|
63
|
+
def select_remote
|
|
64
|
+
Configuration.remote = options[:remote].to_sym
|
|
65
|
+
end
|
|
46
66
|
end
|
|
47
67
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
require "singleton"
|
|
2
|
+
|
|
3
|
+
module Vpr
|
|
4
|
+
class Configuration
|
|
5
|
+
include Singleton
|
|
6
|
+
|
|
7
|
+
attr_accessor :remote
|
|
8
|
+
|
|
9
|
+
class << self
|
|
10
|
+
def method_missing method, *args
|
|
11
|
+
instance.send(method, *args)
|
|
12
|
+
rescue NoMethodError
|
|
13
|
+
super
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def respond_to_missing?(method_name, include_private = false)
|
|
17
|
+
["remote"].include?(method_name) || super
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def initialize
|
|
22
|
+
super
|
|
23
|
+
@remote = :origin
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
data/lib/vpr/git_parser.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "git"
|
|
2
|
+
require "vpr/configuration"
|
|
2
3
|
|
|
3
4
|
module Vpr
|
|
4
5
|
class GitParser
|
|
@@ -12,24 +13,45 @@ module Vpr
|
|
|
12
13
|
(?<repo>[^/.]+)
|
|
13
14
|
}x.freeze
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
class << self
|
|
17
|
+
def repo_url
|
|
18
|
+
remote_uri = remotes[Configuration.remote]
|
|
19
|
+
matched = remote_uri.match(REGEXP)
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
git.remotes.each do |remote|
|
|
20
|
-
remotes[remote.name.to_sym] = remote.url
|
|
21
|
+
File.join("https://#{matched[:host]}", matched[:owner], matched[:repo])
|
|
21
22
|
end
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
def current_branch
|
|
25
|
+
git = Git.open(git_dir)
|
|
26
|
+
git.current_branch
|
|
27
|
+
end
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
def host
|
|
30
|
+
remote_uri = remotes[Configuration.remote]
|
|
31
|
+
matched = remote_uri.match(REGEXP)
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
matched[:host]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
private
|
|
37
|
+
|
|
38
|
+
def remotes
|
|
39
|
+
git = Git.open(git_dir)
|
|
40
|
+
git.remotes.map { |remote| [remote.name.to_sym, remote.url] }.to_h
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def git_dir
|
|
44
|
+
dir = Dir.pwd
|
|
45
|
+
|
|
46
|
+
loop do
|
|
47
|
+
return dir if File.directory?(File.join(dir, ".git"))
|
|
29
48
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
49
|
+
parent = File.dirname(dir)
|
|
50
|
+
return dir if parent == dir # we're at the root
|
|
51
|
+
|
|
52
|
+
dir = parent
|
|
53
|
+
end
|
|
54
|
+
end
|
|
33
55
|
end
|
|
34
56
|
end
|
|
35
57
|
end
|
data/lib/vpr/url.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "vpr/git_parser"
|
|
2
2
|
|
|
3
3
|
module Vpr
|
|
4
4
|
class Url
|
|
@@ -7,7 +7,12 @@ module Vpr
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def self.pulls_url
|
|
10
|
-
|
|
10
|
+
path = {
|
|
11
|
+
'github.com': "pulls",
|
|
12
|
+
'bitbucket.org': "pull-requests",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
"#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}"
|
|
11
16
|
end
|
|
12
17
|
|
|
13
18
|
def self.issues_url
|
|
@@ -19,19 +24,37 @@ module Vpr
|
|
|
19
24
|
end
|
|
20
25
|
|
|
21
26
|
def self.branch_url
|
|
22
|
-
|
|
27
|
+
path = {
|
|
28
|
+
'github.com': "tree",
|
|
29
|
+
'bitbucket.org': "branch",
|
|
30
|
+
}
|
|
31
|
+
"#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}/#{GitParser.current_branch}"
|
|
23
32
|
end
|
|
24
33
|
|
|
25
34
|
def self.pull_url
|
|
26
|
-
|
|
35
|
+
path = {
|
|
36
|
+
'github.com': "pull/#{GitParser.current_branch}",
|
|
37
|
+
'bitbucket.org': "pull-requests/new?source=#{GitParser.current_branch}",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
"#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}"
|
|
27
41
|
end
|
|
28
42
|
|
|
29
43
|
def self.commit_url(commit)
|
|
30
|
-
|
|
44
|
+
path = {
|
|
45
|
+
'github.com': "commit",
|
|
46
|
+
'bitbucket.org': "commits",
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
"#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}/#{commit}"
|
|
31
50
|
end
|
|
32
51
|
|
|
33
52
|
def self.search_url(commit)
|
|
34
|
-
|
|
53
|
+
path = {
|
|
54
|
+
'github.com': "search?q=",
|
|
55
|
+
'bitbucket.org': "commits/all?search=",
|
|
56
|
+
}
|
|
57
|
+
"#{GitParser.repo_url}/#{path[GitParser.host.to_sym]}#{commit}"
|
|
35
58
|
end
|
|
36
59
|
end
|
|
37
60
|
end
|
data/lib/vpr/version.rb
CHANGED
data/vpr.gemspec
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require
|
|
3
|
+
require "vpr/version"
|
|
5
4
|
|
|
6
5
|
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name
|
|
8
|
-
spec.version
|
|
9
|
-
spec.authors
|
|
10
|
-
spec.email
|
|
6
|
+
spec.name = "vpr"
|
|
7
|
+
spec.version = Vpr::VERSION
|
|
8
|
+
spec.authors = ["Juan Carlos Ruiz"]
|
|
9
|
+
spec.email = ["JuanCrg90@gmail.com"]
|
|
11
10
|
|
|
12
|
-
spec.summary
|
|
13
|
-
spec.description
|
|
14
|
-
spec.homepage
|
|
15
|
-
spec.license
|
|
11
|
+
spec.summary = "A CLI to visit quickly commits in github"
|
|
12
|
+
spec.description = "Visit the github PR using the Commit SHA-1"
|
|
13
|
+
spec.homepage = "https://github.com/JuanCrg90/vpr"
|
|
14
|
+
spec.license = "MIT"
|
|
16
15
|
|
|
17
16
|
# Specify which files should be added to the gem when it is released.
|
|
18
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
19
|
-
spec.files
|
|
18
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
|
20
19
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
21
20
|
end
|
|
22
21
|
|
|
23
|
-
spec.bindir =
|
|
22
|
+
spec.bindir = "exe"
|
|
24
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
25
|
-
spec.require_paths = [
|
|
24
|
+
spec.require_paths = ["lib"]
|
|
26
25
|
|
|
27
|
-
spec.add_development_dependency
|
|
28
|
-
spec.add_development_dependency
|
|
29
|
-
spec.add_development_dependency
|
|
30
|
-
spec.add_development_dependency
|
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
|
27
|
+
spec.add_development_dependency "github_changelog_generator", "~> 1.14"
|
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
|
30
|
+
spec.add_development_dependency "rspec_junit_formatter", "~> 0.4"
|
|
31
|
+
spec.add_development_dependency "standard"
|
|
31
32
|
|
|
32
|
-
spec.add_runtime_dependency
|
|
33
|
-
spec.add_runtime_dependency
|
|
34
|
-
spec.add_runtime_dependency
|
|
33
|
+
spec.add_runtime_dependency "git", "~> 1.5"
|
|
34
|
+
spec.add_runtime_dependency "launchy", "~> 2.4"
|
|
35
|
+
spec.add_runtime_dependency "thor", "~> 0.20"
|
|
35
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:
|
|
4
|
+
version: 2.0.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
|
+
date: 2019-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -66,6 +66,34 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '3.0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rspec_junit_formatter
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0.4'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0.4'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: standard
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
69
97
|
- !ruby/object:Gem::Dependency
|
|
70
98
|
name: git
|
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -116,9 +144,10 @@ executables:
|
|
|
116
144
|
extensions: []
|
|
117
145
|
extra_rdoc_files: []
|
|
118
146
|
files:
|
|
147
|
+
- ".circleci/config.yml"
|
|
148
|
+
- ".github/workflows/standardrb.yml"
|
|
119
149
|
- ".gitignore"
|
|
120
150
|
- ".rspec"
|
|
121
|
-
- ".travis.yml"
|
|
122
151
|
- CHANGELOG.md
|
|
123
152
|
- CODE_OF_CONDUCT.md
|
|
124
153
|
- Gemfile
|
|
@@ -131,6 +160,7 @@ files:
|
|
|
131
160
|
- exe/vpr
|
|
132
161
|
- lib/vpr.rb
|
|
133
162
|
- lib/vpr/cli.rb
|
|
163
|
+
- lib/vpr/configuration.rb
|
|
134
164
|
- lib/vpr/git_parser.rb
|
|
135
165
|
- lib/vpr/url.rb
|
|
136
166
|
- lib/vpr/version.rb
|