frank 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,10 +66,12 @@ module Frank
66
66
  # TODO verbose everywhere is lame
67
67
  # create the dump dir, compile templates, copy over static assets
68
68
  def export!
69
- if File.exist?(Frank.export.path) && !Frank.export.force
70
- verify_overwriting
71
- else
69
+ folder_exists = File.exist?(Frank.export.path)
70
+
71
+ if folder_exists && Frank.export.force
72
72
  FileUtils.rm_rf(Frank.export.path)
73
+ elsif folder_exists
74
+ verify_overwriting
73
75
  end
74
76
 
75
77
  FileUtils.mkdir(Frank.export.path)
@@ -1,3 +1,3 @@
1
1
  module Frank
2
- VERSION = '1.0.11'
2
+ VERSION = '1.0.12'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frank
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 11
10
- version: 1.0.11
9
+ - 12
10
+ version: 1.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - blahed