wraith 4.2.2 → 4.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wraith/folder.rb +1 -0
- data/lib/wraith/helpers/utilities.rb +3 -3
- data/lib/wraith/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: 28550759d50cdaed1ea1b698a3fb77303bc6a8fd
|
4
|
+
data.tar.gz: c14df69165a2e68e4200eecbe505c1d9b6a61b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2efc466ce8a7bbbea675899da063d3221f80418beeaf4f5c983d43595f226afb4ec09fc2cb10f7d0f87f1e72dc20445197a4181327f61e234dc6c87b4582736f
|
7
|
+
data.tar.gz: b3317399aa23705af8dddc3a55912d4c0ec11b2bf6ba404230c7810df313368bcde9c30620703d44138144042d4e8f26eadea9c859ca45be864e822aa55c29f0
|
data/lib/wraith/folder.rb
CHANGED
@@ -39,6 +39,7 @@ class Wraith::FolderManager
|
|
39
39
|
if history_dir.nil?
|
40
40
|
logger.error "no `history_dir` attribute found in config. Cannot copy files."
|
41
41
|
else
|
42
|
+
FileUtils.mkdir_p("#{history_dir}")
|
42
43
|
FileUtils.cp_r("#{dir}/.", "#{history_dir}/")
|
43
44
|
FileUtils.rm_rf("#{history_dir}/thumbnails") # thumbnails aren't generated until the gallery stage anyway
|
44
45
|
FileUtils.rm_rf("#{dir}") # get rid of the live folder
|
@@ -19,7 +19,7 @@ def convert_to_absolute(filepath)
|
|
19
19
|
elsif filepath[0] == "/"
|
20
20
|
# filepath is already absolute. return unchanged
|
21
21
|
filepath
|
22
|
-
elsif filepath.match(/^[A-
|
22
|
+
elsif filepath.match(/^[A-Za-z]:\/(.+)$/)
|
23
23
|
# filepath is an absolute Windows path, e.g. C:/Code/Wraith/javascript/global.js. return unchanged
|
24
24
|
filepath
|
25
25
|
else
|
@@ -51,9 +51,9 @@ end
|
|
51
51
|
|
52
52
|
def run_command_safely(command)
|
53
53
|
begin
|
54
|
-
output = `#{command}`
|
54
|
+
output = `#{command}`
|
55
|
+
output.lines.first.chomp
|
55
56
|
rescue StandardError
|
56
57
|
return false
|
57
58
|
end
|
58
|
-
output.lines.first.chomp
|
59
59
|
end
|
data/lib/wraith/version.rb
CHANGED