benofsky-bolt 0.1.1 → 0.1.2

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 (2) hide show
  1. data/lib/bolt/page.rb +6 -4
  2. metadata +1 -1
data/lib/bolt/page.rb CHANGED
@@ -34,10 +34,12 @@ end
34
34
  private
35
35
  def create_path(path)
36
36
  path = path.split('/')
37
- path = "#{$config.base_dir}#{$config.out}/#{path[0..path.length-2].join('/')}"
38
- if !File.directory?(path)
39
- FileUtils.mkdir_p(path)
40
- puts "Created #{path}"
37
+ if path.count > 1
38
+ path = "#{$config.base_dir}#{$config.out}/#{path[0..path.length-2].join('/')}"
39
+ if !File.directory?(path)
40
+ FileUtils.mkdir_p(path)
41
+ puts "Created #{path}"
42
+ end
41
43
  end
42
44
  end
43
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benofsky-bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond