html_mockup 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
data/html_mockup.gemspec
CHANGED
@@ -31,7 +31,7 @@ module HtmlMockup::Release::Finalizers
|
|
31
31
|
# Validate options
|
32
32
|
validate_options!(release, options)
|
33
33
|
|
34
|
-
if !options[:ask] || (prompt("Do you wish to upload to #{options[:host]}?
|
34
|
+
if !options[:ask] || (prompt("Do you wish to upload to #{options[:host]}? Type y[es]: ")) =~ /\Ay(es)?\Z/
|
35
35
|
begin
|
36
36
|
`#{@options[:rsync]} --version`
|
37
37
|
rescue Errno::ENOENT
|
@@ -69,12 +69,14 @@ module HtmlMockup::Release::Processors
|
|
69
69
|
FileUtils.rm_rf(target)
|
70
70
|
end
|
71
71
|
|
72
|
+
|
72
73
|
# Move the tmp_build_dir to target
|
73
74
|
if target_type == :dir
|
74
75
|
FileUtils.mv(tmp_build_dir, target)
|
75
|
-
|
76
|
+
else
|
76
77
|
FileUtils.mv("#{tmp_build_dir}/out.js", target)
|
77
78
|
FileUtils.rm_rf(tmp_build_dir)
|
79
|
+
end
|
78
80
|
end
|
79
81
|
end
|
80
82
|
|