nyx 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nyx.rb +10 -4
- metadata +1 -1
data/lib/nyx.rb
CHANGED
@@ -12,7 +12,7 @@ require 'fssm'
|
|
12
12
|
|
13
13
|
class Nyx
|
14
14
|
|
15
|
-
VERSION = '1.3.
|
15
|
+
VERSION = '1.3.4'
|
16
16
|
|
17
17
|
def compile_scripts(args = nil)
|
18
18
|
|
@@ -31,6 +31,9 @@ class Nyx
|
|
31
31
|
silent = false
|
32
32
|
end#if
|
33
33
|
|
34
|
+
# @todo remove
|
35
|
+
silent = true
|
36
|
+
|
34
37
|
dirpath = File.expand_path(dirpath) + '/'
|
35
38
|
|
36
39
|
if ! File.exist? dirpath
|
@@ -165,6 +168,9 @@ class Nyx
|
|
165
168
|
silent = false
|
166
169
|
end#if
|
167
170
|
|
171
|
+
# @todo remove
|
172
|
+
silent = true
|
173
|
+
|
168
174
|
if ! File.exist? dirpath
|
169
175
|
puts ' Err: target directory does not exist.'
|
170
176
|
return;
|
@@ -394,7 +400,7 @@ class Nyx
|
|
394
400
|
# check if file is non-empty directory
|
395
401
|
if File.directory?(file) && ! (Dir.entries(file) - %w[ . .. ]).empty?
|
396
402
|
if ( ! silent)
|
397
|
-
puts " moving #{file.gsub(basedir, '')} => #{rootfile.gsub(basedir, '')}"
|
403
|
+
# puts " moving #{file.gsub(basedir, '')} => #{rootfile.gsub(basedir, '')}"
|
398
404
|
end#if
|
399
405
|
if ! File.exist? rootfile
|
400
406
|
begin
|
@@ -406,7 +412,7 @@ class Nyx
|
|
406
412
|
end#if
|
407
413
|
elsif ! File.directory?(file)
|
408
414
|
if ( ! silent)
|
409
|
-
puts " moving #{file.gsub(basedir, '')} => #{rootfile.gsub(basedir, '')}"
|
415
|
+
# puts " moving #{file.gsub(basedir, '')} => #{rootfile.gsub(basedir, '')}"
|
410
416
|
end#if
|
411
417
|
begin
|
412
418
|
FileUtils.cp(file, rootfile)
|
@@ -429,7 +435,7 @@ class Nyx
|
|
429
435
|
if ! File.exists? tmpdir + '/compiler.jar'
|
430
436
|
Dir.chdir tmpdir
|
431
437
|
if ! File.exists? tmpdir+"/closure.zip"
|
432
|
-
download("
|
438
|
+
download("dl.google.com", "/closure-compiler/compiler-latest.zip", tmpdir+"/closure.zip")
|
433
439
|
end
|
434
440
|
Zip::ZipFile.open(tmpdir+"/closure.zip") do |zipfile|
|
435
441
|
zipfile.each do |file|
|