hike 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/hike.rb +1 -1
  2. data/lib/hike/trail.rb +2 -1
  3. metadata +3 -3
@@ -1,5 +1,5 @@
1
1
  module Hike
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
 
4
4
  autoload :DirectoryIndex, "hike/directory_index"
5
5
  autoload :Extensions, "hike/extensions"
@@ -25,7 +25,8 @@ module Hike
25
25
  options[:patterns_cache] = {}
26
26
 
27
27
  logical_paths.each do |logical_path|
28
- logical_path = Pathname.new(logical_path)
28
+ logical_path = Pathname.new(logical_path.sub(/^\//, ''))
29
+
29
30
  if relative?(logical_path)
30
31
  find_in_base_path(logical_path, base_path, options, &block)
31
32
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hike
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Stephenson