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.
@@ -1,3 +1,3 @@
1
1
  module QuikStart
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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
- check_listing(lib_name)
9
- check_dependencies(lib_name)
10
- resolve(lib_name)
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quik_start
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
metadata.gz.sig CHANGED
Binary file