weaver 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/weaver +2 -1
  3. data/lib/weaver/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c900604822827f34cd14d99e8006490daa97857
4
- data.tar.gz: e3b0194895bb7b9afee9fab4acf9983bbb6d44d8
3
+ metadata.gz: a5cfc6bfbd3aec0b7a8216bb4cbb3b5e074c5ae9
4
+ data.tar.gz: c9304c708ecb2225197d1d3beb392cf7d6f37e3d
5
5
  SHA512:
6
- metadata.gz: 09c192062d29e6310ee40e0b55dee11726a1cb094e9b344b37e40f1eb75583b41477fb4afd2190da563a540e1dcb19d99a9b94b7641aa97518fafa91ebe69461
7
- data.tar.gz: 5e090fbbc4a2c5f3076831db184369229fe51c2f9533cebafcc965a8e76616c32a0751248ad0610abbb4a8afe37d323bf4261307b04a699aa87e5001ee508dc5
6
+ metadata.gz: 07104463e3539ee244a8863162ed1c6ed3d9a359168c05cffca6c86011e604807c664dd451ec6349fb7c856beafc4f7c5c70539c218844fb6b0d6cec905b575a
7
+ data.tar.gz: 9a1e6bb62b7183972e30fe48ca06b82b517e578b7db89a14067e5825a2b0265c833de10900cb26767499ecb46a3e8d7048928bd65062bbf8630a4b9c51bd71ae
data/exe/weaver CHANGED
@@ -122,7 +122,8 @@ where [options] are:
122
122
  site.pages.each do |localPath, page|
123
123
  resultPath = File.join(baseDir, localPath)
124
124
 
125
- level = resultPath.split(/\//, 0).length
125
+ level = resultPath.split(/\//, 0).select{|x| x.length != 0}.length
126
+
126
127
  puts "Writing: #{file} -> #{resultPath} (Level: #{level})"
127
128
 
128
129
  fileName = File.join([buildDir, resultPath, "index.html"])
@@ -1,3 +1,3 @@
1
1
  module Weaver
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weaver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Siaw