quik_start 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/quik_start/version.rb +1 -1
- data/lib/quik_start.rb +7 -5
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
data/lib/quik_start/version.rb
CHANGED
data/lib/quik_start.rb
CHANGED
@@ -5,9 +5,12 @@ require 'zip/zip'
|
|
5
5
|
module QuikStart
|
6
6
|
|
7
7
|
def self.install(lib_name)
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
@installed = [] if @installed == nil
|
9
|
+
unless @installed.include?(lib_name)
|
10
|
+
check_listing(lib_name)
|
11
|
+
check_dependencies(lib_name)
|
12
|
+
resolve(lib_name)
|
13
|
+
end
|
11
14
|
@installed
|
12
15
|
end
|
13
16
|
|
@@ -18,13 +21,12 @@ module QuikStart
|
|
18
21
|
def self.check_dependencies(lib_name)
|
19
22
|
if libraries[lib_name] != nil && libraries[lib_name][:dependencies]
|
20
23
|
libraries[lib_name][:dependencies].each do |d|
|
21
|
-
install(d)
|
24
|
+
install(d)
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
25
28
|
|
26
29
|
def self.resolve(lib_name)
|
27
|
-
@installed = [] if @installed == nil
|
28
30
|
@installed << lib_name
|
29
31
|
puts ' resolving ' + lib_name.to_s unless libraries[lib_name].nil?
|
30
32
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|