scms 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build commands.txt +1 -1
- data/lib/scms.rb +9 -11
- data/lib/scms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d87cf0e9c7ace8edfe9ab7b3b29efe5190b3949
|
4
|
+
data.tar.gz: 8154a52768916c8c0dea448fa7026f8ed9d13677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f412b3720d06c6ed7454a28221b6ca54f88a87f7a23e0e8db79423f699c0dbcdf33139c31dc50919100faeefb2cc2654763b7de87dba8b1c8a368906c21ffca1
|
7
|
+
data.tar.gz: f1792b97b4980811586dddbeae6c890aed9197d14e427297a54a1976babeca11724cd712813ac7c3823cba555824dd343f23da33d0119fa6950861753b2896cb
|
data/build commands.txt
CHANGED
data/lib/scms.rb
CHANGED
@@ -243,12 +243,10 @@ module Scms
|
|
243
243
|
end
|
244
244
|
scriptname = File.join("scripts", "#{name}-v#{scriptversion}.js") #Legasy name filename from root and version
|
245
245
|
scriptname = File.join(option[1]["generate"]) if option[1]["generate"] != nil #just use the generate
|
246
|
-
|
247
|
-
Dir.mkdir(scriptsdir, 755) unless File::directory?(scriptsdir)
|
248
|
-
|
246
|
+
scripts[name] = scriptname
|
249
247
|
ScmsUtils.successLog("#{scriptname}")
|
248
|
+
|
250
249
|
content = ""
|
251
|
-
|
252
250
|
assetList = ""
|
253
251
|
bundle = option[1]["bundle"]
|
254
252
|
bundle.each do |asset|
|
@@ -262,7 +260,8 @@ module Scms
|
|
262
260
|
end
|
263
261
|
ScmsUtils.log("#{assetList}")
|
264
262
|
|
265
|
-
|
263
|
+
scriptsdir = File.dirname(scriptname)
|
264
|
+
Dir.mkdir(scriptsdir, 755) unless File::directory?(scriptsdir)
|
266
265
|
File.open(scriptname, 'w') {|f| f.write(content) }
|
267
266
|
Scms.packr(scriptname) unless /(-min)|(\.min)/.match(scriptname)
|
268
267
|
end
|
@@ -286,12 +285,10 @@ module Scms
|
|
286
285
|
end
|
287
286
|
stylesheetname = File.join("stylesheets", "#{name}-v#{stylesheetversion}.css") #Legasy name filename from root and version
|
288
287
|
stylesheetname = File.join(option[1]["generate"]) if option[1]["generate"] != nil #just use the generate
|
289
|
-
|
290
|
-
Dir.mkdir(stylesheetdir, 755) unless File::directory?(stylesheetdir)
|
291
|
-
|
288
|
+
stylesheets[name] = stylesheetname
|
292
289
|
ScmsUtils.successLog("#{stylesheetname}")
|
290
|
+
|
293
291
|
content = ""
|
294
|
-
|
295
292
|
bundle = option[1]["bundle"]
|
296
293
|
assetList = ""
|
297
294
|
bundle.each do |asset|
|
@@ -304,8 +301,9 @@ module Scms
|
|
304
301
|
end
|
305
302
|
end
|
306
303
|
ScmsUtils.log( "#{assetList}" )
|
307
|
-
|
308
|
-
|
304
|
+
|
305
|
+
stylesheetdir = File.dirname(stylesheetname)
|
306
|
+
Dir.mkdir(stylesheetdir, 755) unless File::directory?(stylesheetdir)
|
309
307
|
File.open(stylesheetname, 'w') {|f| f.write(content) }
|
310
308
|
end
|
311
309
|
end
|
data/lib/scms/version.rb
CHANGED