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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f06e4789f5cb92b6981bbbb370ed464cdbcdde90
4
- data.tar.gz: 745daa0aad6f9d6bfd199d7d9005d01b292d7db3
3
+ metadata.gz: 9e4ac6374bc5e057c9e3fe6cec073875c8ebf968
4
+ data.tar.gz: 7f7df2a23b6a0a0c037d0196dd993eafb3d02f9f
5
5
  SHA512:
6
- metadata.gz: a136625939910d9de208caa457f488f11c23c8906f1fcd9c8d9d6832eabf42f368fdcb4c4d42af384451a5f76697c5c267c81e09deb694524eff038aa062f2a2
7
- data.tar.gz: 4937099c27f4c84089c0c840408fb391de611b48d2edf98345c99bec05e4e1cecaf5a7322a6b122f52435e778f71050847985b73d87fcdea466771f348ff3690
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
@@ -4,10 +4,11 @@ require 'fileutils'
4
4
  module Ghq
5
5
  module Cache
6
6
  class CLI < Thor
7
- desc 'refresh', 'Refresh ~/.ghq-cache'
8
- def refresh
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)
@@ -1,5 +1,5 @@
1
1
  module Ghq
2
2
  module Cache
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
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.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-08-10 00:00:00.000000000 Z
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.4.5
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: