blade 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/blade.rb +7 -0
  3. data/lib/blade/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3b7b89ebef6e891ac308f65cf9935faf057482f
4
- data.tar.gz: bfa25e592269250f945798b9403331a741486fa8
3
+ metadata.gz: 5c820732f54fddb754edf90ce041baa8999cee4c
4
+ data.tar.gz: 0ea42a89a9a869e6e9bd66610e199f0e690dd721
5
5
  SHA512:
6
- metadata.gz: ff881b9e9aca8302fe4a646588b9cc31bad686a867b4ad42772c6d38bef819d02d43e293e6af75a349426d4e0705141228014c70b86bd1805849206d3bab3a66
7
- data.tar.gz: c386316e4c95d86ddbb2e55e2e71852ef5e8db88429b6c26c08b5c12eafca99c8747d4d3623cee6c9d83984321806069c7b1e5988dc114bef4e9fe3e52af9275
6
+ metadata.gz: 10debefa0f750378c280b740502bf0f355f2e04780f96b544146a727e3ce84d9124b217cfd1c515425a10d594b53cd4ba8995985dc6523f68ac3343c2e915ac6
7
+ data.tar.gz: f15b1d719f668b9637d5f645ad2237d209e627fa7456ad7de07fed134eeb6cd2fe00628ae72ad5e1cab962c5ed7de90181980274d9aafa16cdcb9a2e71029ff9
@@ -37,6 +37,8 @@ module Blade
37
37
 
38
38
  def start(options = {})
39
39
  return if running?
40
+ clean_tmp_path
41
+
40
42
  initialize!(options)
41
43
  load_interface!
42
44
 
@@ -81,6 +83,11 @@ module Blade
81
83
  Pathname.new(".").join("tmp/blade")
82
84
  end
83
85
 
86
+ def clean_tmp_path
87
+ tmp_path.rmtree if tmp_path.exist?
88
+ tmp_path.mkpath
89
+ end
90
+
84
91
  private
85
92
  def handle_exit
86
93
  at_exit do
@@ -1,3 +1,3 @@
1
1
  module Blade
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali