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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca0cc24cddcf9d78987370b974069d22aaa56dde
4
- data.tar.gz: 0ec86bb8bad352172f30840555d225ba06206473
3
+ metadata.gz: 7da0571b41d9bca39c9a5082c9339919e06ee44b
4
+ data.tar.gz: be747d8ba72f58e99f5373ef6d6f0e033467aab5
5
5
  SHA512:
6
- metadata.gz: 898463cb1e2e65dd9b2e6f621a203e90a6eb97e783fcf04ee7cba96a90b24b205f321b656e8d099290a179d9d855d599a128594210395944dfa892501adbe6b0
7
- data.tar.gz: 25f4ae59942847c6752b5f2de490d472a83375590f02422dee821bed83f8072751a015735d68d106818d12cf6940f16c90f9566344161673ff6f0c8e66f0734e
6
+ metadata.gz: 036bfd0d8e18fef77947eb848f3337f31749ac52b8c7dfc093244cc08b37de192bb49d111de4ebe91a57dcfa182b75201200847b7e07ce3b4971cfa2db778898
7
+ data.tar.gz: a8b4570e16380720e5cd551ea9051df7d684903c4cf3d96858e4df301bd0abcdae21b90ac3c22fe2c501c105d400b9b40b3317ee272037c2a6af4d2cf7956039
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Cheatset
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheatset
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Popescu