blade 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/blade.rb +5 -1
  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: bf54a7484627b181206f4c6d61ec00c8b7691a02
4
- data.tar.gz: 5119881c102b51591450e94686c3fc95b5cfba36
3
+ metadata.gz: 741d77e4a774092661eb29a461253769b500bfe5
4
+ data.tar.gz: f7fc04f9f2188a0ddb8d4ef88eac0190344edc08
5
5
  SHA512:
6
- metadata.gz: b4d8279ac7265e0b1efab1f03d1f0b578361b26e96d89995af700fc0182aba3ff511ef1bcd3777ac22de3382379ff292bf8d5d231021633b42af5b8530e4f2d1
7
- data.tar.gz: dd7c9f8931919091c1b89be7dcb7928e8774fb98a7ae2ef4e069d93a46e5a3b40f8ce49d4f33ad6fc458a9940ba7d8634c8fa4db9f8783e9d976a5a52ba6056d
6
+ metadata.gz: 806d5702cfd5c227508fe0c32320276c88c3c357655b835971e402885b5bb57dfd757dd5387cae8583e3a64259e9323d1515cf070597bfc447c8d9b58680f61a
7
+ data.tar.gz: 6fc2625d6cb369025448bbf582df57d06f235a75149c6dc69affe380117b1edea0f576dc909c6125f9736aed2a86b6591b0a599d27d4f58dd74396e949ab0a79
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Blade
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali