quik_start 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -1
- data/lib/quik_start/version.rb +1 -1
- data/lib/quik_start.rb +15 -10
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# QuikStart
|
2
2
|
|
3
|
-
|
3
|
+
A lib to download asset files for rails and maybe other frameworks..
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -19,6 +19,12 @@ Or install it yourself as:
|
|
19
19
|
## Usage
|
20
20
|
|
21
21
|
$ qs --library_name # for example --bootstrap or --backbone
|
22
|
+
$ qs --backbone
|
23
|
+
resolving underscore
|
24
|
+
resolving json2
|
25
|
+
resolving backbone
|
26
|
+
downloading...
|
27
|
+
2.060485 seconds
|
22
28
|
$ qs --help #for a list for a list of libs that are included. Only a few for now, not sure if the is interesting or redundant.
|
23
29
|
|
24
30
|
## Contributing
|
data/lib/quik_start/version.rb
CHANGED
data/lib/quik_start.rb
CHANGED
@@ -12,7 +12,7 @@ module QuikStart
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.check_listing(lib_name)
|
15
|
-
puts "--> "+lib_name.to_s + " not in QuikStart" if libraries[lib_name].nil?
|
15
|
+
puts " --> "+lib_name.to_s + " not in QuikStart" if libraries[lib_name].nil?
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.check_dependencies(lib_name)
|
@@ -26,16 +26,16 @@ module QuikStart
|
|
26
26
|
def self.resolve(lib_name)
|
27
27
|
@installed = [] if @installed == nil
|
28
28
|
@installed << lib_name
|
29
|
-
puts 'resolving ' + lib_name.to_s unless libraries[lib_name].nil?
|
29
|
+
puts ' resolving ' + lib_name.to_s unless libraries[lib_name].nil?
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.log_duration(start_time)
|
33
33
|
duration = Time.now - start_time
|
34
|
-
puts duration.to_s + ' seconds'
|
34
|
+
puts " "+duration.to_s + ' seconds'
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.download_all(libs)
|
38
|
-
puts 'downloading...'
|
38
|
+
puts ' downloading...'
|
39
39
|
to_install = []
|
40
40
|
libs.keys.each do |l|
|
41
41
|
lib = QuikStart.libraries[l][:development]
|
@@ -79,7 +79,7 @@ module QuikStart
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
write_asset_files
|
82
|
+
write_asset_files(libs.keys)
|
83
83
|
end
|
84
84
|
|
85
85
|
def self.unzip(file)
|
@@ -100,16 +100,21 @@ module QuikStart
|
|
100
100
|
File.delete(file)
|
101
101
|
end
|
102
102
|
|
103
|
-
def self.write_asset_files
|
104
|
-
write_css_file
|
105
|
-
write_js_file
|
103
|
+
def self.write_asset_files(libs)
|
104
|
+
write_css_file(libs)
|
105
|
+
write_js_file(libs)
|
106
106
|
end
|
107
107
|
|
108
|
-
def self.write_css_file
|
108
|
+
def self.write_css_file(libs)
|
109
|
+
# if libs.include?(:bootstrap)
|
110
|
+
# File.open(File.expand_path('.')+'/app/assets/javascripts/application.css', 'w') do |f|
|
111
|
+
#
|
112
|
+
# end
|
113
|
+
# end
|
109
114
|
# puts 'writing application.css'
|
110
115
|
end
|
111
116
|
|
112
|
-
def self.write_js_file
|
117
|
+
def self.write_js_file(libs)
|
113
118
|
# puts 'writing application.js'
|
114
119
|
end
|
115
120
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|