ichiban 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ichiban/file.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 493fedcf1994573c9e8dc03c7bd288893d3c8b39
4
- data.tar.gz: 33a5e9a79f14ec03267c866780cc67033cd2c9ae
3
+ metadata.gz: bed8e1c7721e2dde1e29fe7ee6e749ef444c4da6
4
+ data.tar.gz: cc2e0054c59fe95cb59637c42427656fa95568eb
5
5
  SHA512:
6
- metadata.gz: 9cf876c1ba23d929bc2fca3e30d459e562cd68c1114a1bd14f666b4fcea6955e04a15e6931e5a7f514a0a921719c154c00a19e855b8cfe652083b745a9f82855
7
- data.tar.gz: dd97fdd59a181f94090640ab9e013c498ea42ea1d80fd220df5fdcd1ae44e584d28adfda61a964fff6f9e9f3ba58707424a865468e25e86ec3e2f1ca0193778d
6
+ metadata.gz: e2db860d451e68cc3f83c1d4e77e8a64bddaa266a9daad0fc2d252299e5bb812566d8d7041692ad2c8886ab4bdd86dec46e28f7439b1f15f0b5dee399fba8a10
7
+ data.tar.gz: 0549dde9e9d8db5c32edff2c1ef16f83fac511e07fab45c5157a101467581d48dad913e3e86efa74a08f6ab61d5deb21c503335929914d33d995951d4991004e
data/lib/ichiban/file.rb CHANGED
@@ -68,7 +68,9 @@ module Ichiban
68
68
  # If this is an index file, the web path is just the folder name.
69
69
  '/' + File.dirname(d) + '/'
70
70
  else
71
- '/' + File.join(File.dirname(d), fname) + '/'
71
+ p = '/' + File.join(File.dirname(d), fname) + '/'
72
+ p.sub!('/./', '/') if p.start_with?('/./')
73
+ p
72
74
  end
73
75
  end
74
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ichiban
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarrett Colby