cheatset 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cheatset/creator.rb +1 -1
- data/lib/cheatset/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: 7da0571b41d9bca39c9a5082c9339919e06ee44b
|
4
|
+
data.tar.gz: be747d8ba72f58e99f5373ef6d6f0e033467aab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 036bfd0d8e18fef77947eb848f3337f31749ac52b8c7dfc093244cc08b37de192bb49d111de4ebe91a57dcfa182b75201200847b7e07ce3b4971cfa2db778898
|
7
|
+
data.tar.gz: a8b4570e16380720e5cd551ea9051df7d684903c4cf3d96858e4df301bd0abcdae21b90ac3c22fe2c501c105d400b9b40b3317ee272037c2a6af4d2cf7956039
|
data/lib/cheatset/creator.rb
CHANGED
@@ -42,7 +42,7 @@ class Cheatset::Creator
|
|
42
42
|
# resources
|
43
43
|
FileUtils.cp_r("#{tpl_path}/cheatset_resources", doc_path)
|
44
44
|
resources = @cheatsheet.resources
|
45
|
-
if !resources.empty?
|
45
|
+
if resources && !resources.empty?
|
46
46
|
base_dir = File.dirname(@filename)
|
47
47
|
resources_path = "#{base_dir}/#{resources}"
|
48
48
|
FileUtils.cp_r(resources_path, doc_path)
|
data/lib/cheatset/version.rb
CHANGED