vpr 0.2.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f771929b988e029dbb45faef3885dceb32a88248a2b4b3c3f29c32bd24c5f98
4
- data.tar.gz: 2fcca76126b713658dbf0b4954c737d9d80f03b7066f68bfe0758eda840c7a3b
3
+ metadata.gz: c6d8b9ebb47e1a22a47bf79b518cd47d98319d1ea459bf29a78edd79b1af9177
4
+ data.tar.gz: 1aaacf3443220576c06beb53b013eb4070d1dd7358749d7b90572c2ebf9079ab
5
5
  SHA512:
6
- metadata.gz: b1cfb47dac914fee97e779d6c084172b59b0ccedb3aa5dffa6ca783799ca355e2d57f535ad607902411d17d7875b6dabdc3ca1e8ae08a8b87c7a297cb1a9b4b2
7
- data.tar.gz: e33e24bef50ccdf15debd37e9a242ba82278c604cef0326b54dd24b4341cbc0005d55fca74441b573ddc4cac07cbac4cbff60e0b46c5efc0291f890e928c0a08
6
+ metadata.gz: 94f44f7122fb9b6815f433829351be7d4add55ec7fda35d780e830179d2a4d9b8eca1efb9d47815a6ecf5a049c191b1da210ac51b8d8099e63fda99a5f141f45
7
+ data.tar.gz: d3a2c0cd87e1121722d64273b9046fe3577e7121b8a43f2dec1879cb2f0518fc4146f465b77bc1fce4ed513f60ad64edae202221135362b9632511f6681a1bd9
@@ -0,0 +1,25 @@
1
+ # Change Log
2
+
3
+ ## [1.0.0](https://github.com/JuanCrg90/vpr/tree/1.0.0) (2019-07-12)
4
+ [Full Changelog](https://github.com/JuanCrg90/vpr/compare/v0.2.0...1.0.0)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Add regular GitHub project actions [\#2](https://github.com/JuanCrg90/vpr/pull/2) ([JuanCrg90](https://github.com/JuanCrg90))
9
+
10
+ ## [v0.2.0](https://github.com/JuanCrg90/vpr/tree/v0.2.0) (2019-07-10)
11
+ [Full Changelog](https://github.com/JuanCrg90/vpr/compare/v0.1.1...v0.2.0)
12
+
13
+ **Merged pull requests:**
14
+
15
+ - add Launchy dependency [\#1](https://github.com/JuanCrg90/vpr/pull/1) ([JuanCrg90](https://github.com/JuanCrg90))
16
+
17
+ ## [v0.1.1](https://github.com/JuanCrg90/vpr/tree/v0.1.1) (2019-07-05)
18
+ [Full Changelog](https://github.com/JuanCrg90/vpr/compare/v0.1.0...v0.1.1)
19
+
20
+ ## [v0.1.0](https://github.com/JuanCrg90/vpr/tree/v0.1.0) (2019-07-05)
21
+ [Full Changelog](https://github.com/JuanCrg90/vpr/compare/0.1.0...v0.1.0)
22
+
23
+
24
+
25
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vpr (0.2.0)
4
+ vpr (1.0.0)
5
5
  git (~> 1.5)
6
6
  launchy (~> 2.4)
7
7
  thor (~> 0.20)
@@ -9,14 +9,41 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
+ activesupport (5.2.3)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 0.7, < 2)
15
+ minitest (~> 5.1)
16
+ tzinfo (~> 1.1)
12
17
  addressable (2.6.0)
13
18
  public_suffix (>= 2.0.2, < 4.0)
19
+ concurrent-ruby (1.1.5)
14
20
  diff-lcs (1.3)
21
+ faraday (0.15.4)
22
+ multipart-post (>= 1.2, < 3)
23
+ faraday-http-cache (2.0.0)
24
+ faraday (~> 0.8)
15
25
  git (1.5.0)
26
+ github_changelog_generator (1.14.3)
27
+ activesupport
28
+ faraday-http-cache
29
+ multi_json
30
+ octokit (~> 4.6)
31
+ rainbow (>= 2.1)
32
+ rake (>= 10.0)
33
+ retriable (~> 2.1)
34
+ i18n (1.6.0)
35
+ concurrent-ruby (~> 1.0)
16
36
  launchy (2.4.3)
17
37
  addressable (~> 2.3)
38
+ minitest (5.11.3)
39
+ multi_json (1.13.1)
40
+ multipart-post (2.1.1)
41
+ octokit (4.14.0)
42
+ sawyer (~> 0.8.0, >= 0.5.3)
18
43
  public_suffix (3.1.1)
44
+ rainbow (3.0.0)
19
45
  rake (10.5.0)
46
+ retriable (2.1.0)
20
47
  rspec (3.8.0)
21
48
  rspec-core (~> 3.8.0)
22
49
  rspec-expectations (~> 3.8.0)
@@ -30,13 +57,20 @@ GEM
30
57
  diff-lcs (>= 1.2.0, < 2.0)
31
58
  rspec-support (~> 3.8.0)
32
59
  rspec-support (3.8.2)
60
+ sawyer (0.8.2)
61
+ addressable (>= 2.3.5)
62
+ faraday (> 0.8, < 2.0)
33
63
  thor (0.20.3)
64
+ thread_safe (0.3.6)
65
+ tzinfo (1.2.5)
66
+ thread_safe (~> 0.1)
34
67
 
35
68
  PLATFORMS
36
69
  ruby
37
70
 
38
71
  DEPENDENCIES
39
72
  bundler (~> 2.0)
73
+ github_changelog_generator (~> 1.14)
40
74
  rake (~> 10.0)
41
75
  rspec (~> 3.0)
42
76
  vpr!
data/README.md CHANGED
@@ -1,22 +1,52 @@
1
1
  # vpr
2
2
 
3
- A CLI to visit quickly commits in github
3
+ A CLI to visit quickly github project sections
4
4
 
5
5
  ## Installation
6
6
  ```
7
7
  $ gem install vpr
8
-
9
8
  ```
10
9
  ## Usage
11
10
 
11
+ ```
12
+ $ vpr home # visit the project page in github
13
+ ```
14
+ ![vpr home](https://res.cloudinary.com/juancrg90/image/upload/v1562969660/vpr/vpr_home.gif)
15
+
16
+ ```
17
+ $ vpr pulls # visit the project pull requests page in github
18
+ ```
19
+ ![vpr pulls](https://res.cloudinary.com/juancrg90/image/upload/v1562969866/vpr/vpr_pulls.gif)
20
+
21
+ ```
22
+ $ vpr issues # visit the project issues page in github
23
+ ```
24
+ ![vpr issues](https://res.cloudinary.com/juancrg90/image/upload/v1562969959/vpr/vpr_issues.gif)
25
+
26
+ ```
27
+ $ vpr branches # visit the project branches page in github
28
+ ```
29
+ ![vpr branches](https://res.cloudinary.com/juancrg90/image/upload/v1562970055/vpr/vpr_branches.gif)
30
+
31
+ ```
32
+ $ vpr branch # 'visit the current branch in github'
33
+ ```
34
+ ![vpr branch](https://res.cloudinary.com/juancrg90/image/upload/v1562970153/vpr/vpr_branch.gif)
35
+
36
+ ```
37
+ $ vpr pull # 'visit the pull request for the current branch (if exist) in github'
38
+ ```
39
+ ![vpr pull](https://res.cloudinary.com/juancrg90/image/upload/v1562970242/vpr/vpr_pull.gif)
40
+
12
41
  ```
13
42
  $ vpr visit <commit> # visit the commit in github
14
43
  ```
44
+ ![vpr visit](https://res.cloudinary.com/juancrg90/image/upload/v1562970485/vpr/vpr_visit.gif)
15
45
 
16
46
  ```
17
47
  $ vpr search <commit> # search the commit in github
18
48
  ```
19
-
49
+ ![vpr search](https://res.cloudinary.com/juancrg90/image/upload/v1562970606/vpr/vpr_search.gif)
20
50
 
21
51
  ## Development
22
52
 
data/Rakefile CHANGED
@@ -1,6 +1,14 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
+ require 'github_changelog_generator/task'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
5
6
 
6
7
  task :default => :spec
8
+
9
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
10
+ config.user = 'JuanCrg90'
11
+ config.project = 'vpr'
12
+ config.since_tag = '0.1.0'
13
+ config.future_release = '1.0.0'
14
+ end
@@ -4,6 +4,36 @@ require 'vpr/url'
4
4
 
5
5
  module Vpr
6
6
  class CLI < Thor
7
+ desc 'home', 'visit the project page in github'
8
+ def home
9
+ Launchy.open(Url.home_url)
10
+ end
11
+
12
+ desc 'pulls', 'visit the project pull requests page in github'
13
+ def pulls
14
+ Launchy.open(Url.pulls_url)
15
+ end
16
+
17
+ desc 'issues', 'visit the project issues page in github'
18
+ def issues
19
+ Launchy.open(Url.issues_url)
20
+ end
21
+
22
+ desc 'branches', 'visit the project branches page in github'
23
+ def branches
24
+ Launchy.open(Url.branches_url)
25
+ end
26
+
27
+ desc 'branch', 'visit the current branch in github'
28
+ def branch
29
+ Launchy.open(Url.branch_url)
30
+ end
31
+
32
+ desc 'pull', 'visit the pull request for the current branch (if exist) in github'
33
+ def pull
34
+ Launchy.open(Url.pull_url)
35
+ end
36
+
7
37
  desc 'visit COMMIT', 'visit the commit in github'
8
38
  def visit(commit)
9
39
  Launchy.open(Url.commit_url(commit))
@@ -26,5 +26,10 @@ module Vpr
26
26
 
27
27
  File.join("https://#{matched[:host]}", matched[:owner], matched[:repo])
28
28
  end
29
+
30
+ def self.current_branch
31
+ git = Git.open(Dir.pwd)
32
+ git.current_branch
33
+ end
29
34
  end
30
35
  end
@@ -2,6 +2,30 @@ require 'vpr/git_parser'
2
2
 
3
3
  module Vpr
4
4
  class Url
5
+ def self.home_url
6
+ GitParser.repo_url
7
+ end
8
+
9
+ def self.pulls_url
10
+ "#{GitParser.repo_url}/pulls"
11
+ end
12
+
13
+ def self.issues_url
14
+ "#{GitParser.repo_url}/issues"
15
+ end
16
+
17
+ def self.branches_url
18
+ "#{GitParser.repo_url}/branches"
19
+ end
20
+
21
+ def self.branch_url
22
+ "#{GitParser.repo_url}/tree/#{GitParser.current_branch}"
23
+ end
24
+
25
+ def self.pull_url
26
+ "#{GitParser.repo_url}/pull/#{GitParser.current_branch}"
27
+ end
28
+
5
29
  def self.commit_url(commit)
6
30
  "#{GitParser.repo_url}/commit/#{commit}"
7
31
  end
@@ -1,3 +1,3 @@
1
1
  module Vpr
2
- VERSION = "0.2.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ['lib']
26
26
 
27
27
  spec.add_development_dependency 'bundler', '~> 2.0'
28
+ spec.add_development_dependency 'github_changelog_generator', '~> 1.14'
28
29
  spec.add_development_dependency 'rake', '~> 10.0'
29
30
  spec.add_development_dependency 'rspec', '~> 3.0'
30
31
 
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: 0.2.0
4
+ version: 1.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-07-10 00:00:00.000000000 Z
11
+ date: 2019-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: github_changelog_generator
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.14'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.14'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -105,6 +119,7 @@ files:
105
119
  - ".gitignore"
106
120
  - ".rspec"
107
121
  - ".travis.yml"
122
+ - CHANGELOG.md
108
123
  - CODE_OF_CONDUCT.md
109
124
  - Gemfile
110
125
  - Gemfile.lock