ghq-cache 0.3.3 → 0.3.4
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/README.md +17 -0
- data/lib/ghq/cache/cli.rb +3 -2
- data/lib/ghq/cache/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e4ac6374bc5e057c9e3fe6cec073875c8ebf968
|
|
4
|
+
data.tar.gz: 7f7df2a23b6a0a0c037d0196dd993eafb3d02f9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ea1023ae2ee147765554bb4f901e119295ef23a9657736cd85889a98ed5ea45f8a816c2a88b446be50fe160325ecebb59c73c7276f3637748329ee2e981288e
|
|
7
|
+
data.tar.gz: 62c33e6a966ed683f7951da2c7631ddabf5f7e0a1552106f34b3f39d9ec7349b7c1d31c8fd34b842ae2de3fdb31bddd13fa0ce5ff52cd4b6ef1712c9fdd8089e
|
data/README.md
CHANGED
|
@@ -25,6 +25,7 @@ ghq-cache log /Users/k0kubun/src/github.com/k0kubun/ghq-cache
|
|
|
25
25
|
```bash
|
|
26
26
|
export GOPATH=$HOME
|
|
27
27
|
export GHQ="/usr/local/bin/ghq"
|
|
28
|
+
export GIT="/usr/local/bin/git"
|
|
28
29
|
|
|
29
30
|
function ghq() {
|
|
30
31
|
case $1 in
|
|
@@ -48,6 +49,22 @@ function ghq() {
|
|
|
48
49
|
esac
|
|
49
50
|
}
|
|
50
51
|
|
|
52
|
+
function git() {
|
|
53
|
+
case $1 in
|
|
54
|
+
init )
|
|
55
|
+
$GIT $@
|
|
56
|
+
(ghq-cache refresh &)
|
|
57
|
+
;;
|
|
58
|
+
clone )
|
|
59
|
+
$GIT $@
|
|
60
|
+
(ghq-cache refresh &)
|
|
61
|
+
;;
|
|
62
|
+
* )
|
|
63
|
+
$GIT $@
|
|
64
|
+
;;
|
|
65
|
+
esac
|
|
66
|
+
}
|
|
67
|
+
|
|
51
68
|
function peco-src() {
|
|
52
69
|
local selected_dir=$(ghq list | peco --query "$LBUFFER" --prompt "[ghq list]")
|
|
53
70
|
if [ -n "$selected_dir" ]; then
|
data/lib/ghq/cache/cli.rb
CHANGED
|
@@ -4,10 +4,11 @@ require 'fileutils'
|
|
|
4
4
|
module Ghq
|
|
5
5
|
module Cache
|
|
6
6
|
class CLI < Thor
|
|
7
|
-
desc '
|
|
8
|
-
def
|
|
7
|
+
desc 'update', 'Update ~/.ghq-cache'
|
|
8
|
+
def update
|
|
9
9
|
Builder.build
|
|
10
10
|
end
|
|
11
|
+
alias :refresh :update
|
|
11
12
|
|
|
12
13
|
desc 'log PATH', 'Log your repository access'
|
|
13
14
|
def log(path)
|
data/lib/ghq/cache/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ghq-cache
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takashi Kokubun
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -107,8 +107,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
107
107
|
version: '0'
|
|
108
108
|
requirements: []
|
|
109
109
|
rubyforge_project:
|
|
110
|
-
rubygems_version: 2.
|
|
110
|
+
rubygems_version: 2.5.0
|
|
111
111
|
signing_key:
|
|
112
112
|
specification_version: 4
|
|
113
113
|
summary: Show frequently used repositories first in ghq list.
|
|
114
114
|
test_files: []
|
|
115
|
+
has_rdoc:
|