blade 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blade/assets/builder.rb +8 -2
- data/lib/blade/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13e36bbff4397c76e84b595980f6d3d948643999
|
4
|
+
data.tar.gz: 8991cb92ce7c3d242afc120b562367bd4211cf94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94ebc239ab10c1c34082585e1b50b2d21c7933511dce753516d97e4ca2c3bbaf22ea688a2334adb74cb7996ca21a1bc6e1fc3d55260ed58628222d25cf3c243e
|
7
|
+
data.tar.gz: a29c07dab604f5bd3619fc732dd123e94188a0fc0de2456200024f15d96e4d0eea331d86864bf3dd48a25192ef4f7db2b0d8d4bb94b8ed485580f93981f26490
|
data/lib/blade/assets/builder.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|