ghq-cache 0.3.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/ghq/cache/cli.rb +1 -2
- data/lib/ghq/cache/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77d2e0775ce2e2ab7ae3a0906a2f989c028c7184
|
4
|
+
data.tar.gz: 40b0cc6b7577d5a96602212643785654337c6195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab48bd5f9cbe9211fe74f83755564f31c63e2983fcd5567778a4ba67702467c8759da44927eaa2fd4e15b88a4b28726a4d886ce20546c187c0a007d2bafdf6e7
|
7
|
+
data.tar.gz: 21af1f05d727f7be47c786db141aa407d55508d3feab6ba9516772c6fa18a45097cde626fa9049c4a0662451e4f48918a53a101a13e99253d47970af4fee17ec
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ gem install ghq-cache
|
|
14
14
|
```bash
|
15
15
|
# Build `ghq list` cache to ~/.ghq-cache
|
16
16
|
# with ordering of host, user or repositories.
|
17
|
-
ghq-cache
|
17
|
+
ghq-cache update
|
18
18
|
|
19
19
|
# Log your repository access to update ~/.ghq-cache order.
|
20
20
|
ghq-cache log /Users/k0kubun/src/github.com/k0kubun/ghq-cache
|
@@ -33,11 +33,11 @@ function ghq() {
|
|
33
33
|
$GHQ $@
|
34
34
|
|
35
35
|
# hook after ghq get
|
36
|
-
(ghq-cache
|
36
|
+
(ghq-cache update &)
|
37
37
|
;;
|
38
38
|
list )
|
39
39
|
if [ ! -e ~/.ghq-cache ]; then
|
40
|
-
ghq-cache
|
40
|
+
ghq-cache update
|
41
41
|
fi
|
42
42
|
|
43
43
|
# use ghq list ordered by ghq-cache
|
@@ -53,11 +53,11 @@ function git() {
|
|
53
53
|
case $1 in
|
54
54
|
init )
|
55
55
|
$GIT $@
|
56
|
-
(ghq-cache
|
56
|
+
(ghq-cache update &)
|
57
57
|
;;
|
58
58
|
clone )
|
59
59
|
$GIT $@
|
60
|
-
(ghq-cache
|
60
|
+
(ghq-cache update &)
|
61
61
|
;;
|
62
62
|
* )
|
63
63
|
$GIT $@
|
data/lib/ghq/cache/cli.rb
CHANGED
@@ -8,12 +8,11 @@ module Ghq
|
|
8
8
|
def update
|
9
9
|
Builder.build
|
10
10
|
end
|
11
|
-
alias :refresh :update
|
12
11
|
|
13
12
|
desc 'log PATH', 'Log your repository access'
|
14
13
|
def log(path)
|
15
14
|
Logger.log(path)
|
16
|
-
|
15
|
+
update
|
17
16
|
end
|
18
17
|
|
19
18
|
desc 'purge', 'Delete ~/.ghq-cache and ~/.ghq-cache.log'
|
data/lib/ghq/cache/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghq-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
@@ -107,9 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.5.
|
110
|
+
rubygems_version: 2.4.5.1
|
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:
|