blade 0.5.2 → 0.5.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08a6689f84a9381f3f42548256ca79b1802b1ee5
4
- data.tar.gz: fe4b238db57ca6171f34cf92130753465cad4aaa
3
+ metadata.gz: 13e36bbff4397c76e84b595980f6d3d948643999
4
+ data.tar.gz: 8991cb92ce7c3d242afc120b562367bd4211cf94
5
5
  SHA512:
6
- metadata.gz: f4d65d6f7e723e885a1505f9034e76bc4f3ac4c203be832a905e4c765b842b7a6bc246357d11c515db4b67858985256c672b10b8e4da5b2ff85ca393badddfe4
7
- data.tar.gz: f2dd37cf36f9593072281425bc769888dd366b16a0da106cd82ba73686f9d9e38fec1628db59e8e560d54b6ec6dc3ea073c8a7f36c882763fde8a3a27c81ea58
6
+ metadata.gz: 94ebc239ab10c1c34082585e1b50b2d21c7933511dce753516d97e4ca2c3bbaf22ea688a2334adb74cb7996ca21a1bc6e1fc3d55260ed58628222d25cf3c243e
7
+ data.tar.gz: a29c07dab604f5bd3619fc732dd123e94188a0fc0de2456200024f15d96e4d0eea331d86864bf3dd48a25192ef4f7db2b0d8d4bb94b8ed485580f93981f26490
@@ -19,6 +19,8 @@ class Blade::Assets::Builder
19
19
  end
20
20
 
21
21
  def install
22
+ create_dist_path
23
+
22
24
  logical_paths.each do |logical_path|
23
25
  fingerprint_path = manifest.assets[logical_path]
24
26
  FileUtils.cp(compile_path.join(fingerprint_path), dist_path.join(logical_path))
@@ -38,11 +40,15 @@ class Blade::Assets::Builder
38
40
  Blade.config.build.logical_paths
39
41
  end
40
42
 
43
+ def create_dist_path
44
+ dist_path.mkpath unless dist_path.exist?
45
+ end
46
+
41
47
  def dist_path
42
- Pathname.new(Blade.config.build.path)
48
+ @dist_path ||= Pathname.new(Blade.config.build.path)
43
49
  end
44
50
 
45
51
  def compile_path
46
- Blade.tmp_path.join("compile")
52
+ @compile_path ||= Blade.tmp_path.join("compile")
47
53
  end
48
54
  end
data/lib/blade/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Blade
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-17 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler