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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2ce6e7aa6a319d0d3809b7f8c8c85e527c8af67
4
- data.tar.gz: 0d0a9592e64611df0bde28195a08031f268e2beb
3
+ metadata.gz: 28550759d50cdaed1ea1b698a3fb77303bc6a8fd
4
+ data.tar.gz: c14df69165a2e68e4200eecbe505c1d9b6a61b54
5
5
  SHA512:
6
- metadata.gz: 1926a13aac61ef03507c6dced9dc875a0e987b222b5aecabeabac19afdd7f5b62599b7e429a56d2ac1d5da0a2a6082be345e6bf5322ea412926b38ccbb899b17
7
- data.tar.gz: ae22132dd6524dd0dabdba2f57a558dfa1201076895f3650694a2f083dec804f396953d1774dc3a364e8691f3f24aca3a25c2f89535ad02d5cd3e614b3a1b349
6
+ metadata.gz: 2efc466ce8a7bbbea675899da063d3221f80418beeaf4f5c983d43595f226afb4ec09fc2cb10f7d0f87f1e72dc20445197a4181327f61e234dc6c87b4582736f
7
+ data.tar.gz: b3317399aa23705af8dddc3a55912d4c0ec11b2bf6ba404230c7810df313368bcde9c30620703d44138144042d4e8f26eadea9c859ca45be864e822aa55c29f0
@@ -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-Z]:\/(.+)$/)
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
@@ -1,3 +1,3 @@
1
1
  module Wraith
2
- VERSION = "4.2.2"
2
+ VERSION = "4.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wraith
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Blooman