qlgit 0.1.0 → 0.1.1
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/bin/qlgit +16 -2
- data/lib/qlgit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 568b58053f3a308269ceacd1e0d99043e3008b30
|
4
|
+
data.tar.gz: 644bddcbbd39aace0b3cd065bd4238ab494ea107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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']
|
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}/`
|
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
|
data/lib/qlgit/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cmdparser
|