qlgit 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/qlgit +16 -2
  3. data/lib/qlgit/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c30dc5609eb25e55f853f7db1ef03e755da26d78
4
- data.tar.gz: 8bb3026afe63db8e71c8831657353e03a51139b0
3
+ metadata.gz: 568b58053f3a308269ceacd1e0d99043e3008b30
4
+ data.tar.gz: 644bddcbbd39aace0b3cd065bd4238ab494ea107
5
5
  SHA512:
6
- metadata.gz: 0fa33124715025b6ed7fbe84f2ba8c667b2793fcb22f2a6916c3d3ea555cccf338102eaa564aaa42637aa9330968c42051ba67eb9ad8d3119761c2c5df67e501
7
- data.tar.gz: e6c188b2525365cd18853ea4ba2e62ae37ff3bce96c36ae6a6ed6c75e77e6c4a63c25810770eaff4fe20fbd05aca06da92710c1f43e3af47212969cbaf0582da
6
+ metadata.gz: 791fc20d03721ab51ed61dd02eb58aef0f86e9280d17d93872398f364629ad1f6af6c0ffcada61a53792d0451227180c52489ff8700c189c1743fe8b74c79ff8
7
+ data.tar.gz: 04dcb27918503400d143d3af48e559b548b2c574213168c323e6b8909b0c18c15ff6f9dfa5f4b40cbde60ff236b13913d3ecde40beab73fe0daab89bfaf87ed8
data/bin/qlgit CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'cmdparser'
4
4
 
5
- unless ENV['QUICKLISP'] || File.exist?(ENV['QUICKLISP'])
5
+ unless ENV['QUICKLISP'] && File.exist?(ENV['QUICKLISP'])
6
6
  puts <<-ERROR
7
7
  export QUICKLISP=/path/to/quicklisp/
8
8
  ERROR
@@ -16,9 +16,20 @@ CmdParser.new{
16
16
  on 'install' do |github_repo|
17
17
  if validate(github_repo)
18
18
  project_name = github_repo.split('/')[1]
19
- puts `git clone git@github.com:#{github_repo}.git #{ENV['QUICKLISP']}/local-projects/#{project_name}/` end
19
+ puts `git clone git@github.com:#{github_repo}.git #{ENV['QUICKLISP']}/local-projects/#{project_name}/`
20
+ end
20
21
  end
21
22
 
23
+ on 'upgrade' do |github_repo|
24
+ if validate(github_repo)
25
+ project_name = github_repo.split('/')[1]
26
+ repo_dir = "#{ENV['QUICKLISP']}/local-projects/#{project_name}"
27
+ if File.exist?(repo_dir)
28
+ puts `cd #{repo_dir}/ && git fetch && git reset --hard origin/master`
29
+ end
30
+ end
31
+ end
32
+
22
33
  on ['help','-h'] do
23
34
  print <<-HELP
24
35
  Usage:
@@ -27,6 +38,9 @@ Usage:
27
38
  Commands:
28
39
  install [gituser/repo]
29
40
  Install Common Lisp Project
41
+
42
+ upgrade [gituser/repo]
43
+ Upgrade Common Lisp Project
30
44
  HELP
31
45
  end
32
46
  }.invoke
@@ -1,3 +1,3 @@
1
1
  module Qlgit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qlgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mocchi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2015-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmdparser