blade 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blade.rb +5 -1
- data/lib/blade/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: 741d77e4a774092661eb29a461253769b500bfe5
|
4
|
+
data.tar.gz: f7fc04f9f2188a0ddb8d4ef88eac0190344edc08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 806d5702cfd5c227508fe0c32320276c88c3c357655b835971e402885b5bb57dfd757dd5387cae8583e3a64259e9323d1515cf070597bfc447c8d9b58680f61a
|
7
|
+
data.tar.gz: 6fc2625d6cb369025448bbf582df57d06f235a75149c6dc69affe380117b1edea0f576dc909c6125f9736aed2a86b6591b0a599d27d4f58dd74396e949ab0a79
|
data/lib/blade.rb
CHANGED
@@ -41,6 +41,7 @@ module Blade
|
|
41
41
|
|
42
42
|
def start(options = {})
|
43
43
|
return if running?
|
44
|
+
ensure_tmp_path
|
44
45
|
|
45
46
|
initialize!(options)
|
46
47
|
load_interface
|
@@ -103,9 +104,12 @@ module Blade
|
|
103
104
|
Pathname.new(".").join("tmp/blade")
|
104
105
|
end
|
105
106
|
|
107
|
+
def ensure_tmp_path
|
108
|
+
tmp_path.mkpath
|
109
|
+
end
|
110
|
+
|
106
111
|
def clean_tmp_path
|
107
112
|
tmp_path.rmtree if tmp_path.exist?
|
108
|
-
tmp_path.mkpath
|
109
113
|
end
|
110
114
|
|
111
115
|
private
|
data/lib/blade/version.rb
CHANGED