middleman-navtree 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/middleman-navtree/helpers.rb +4 -4
- data/lib/middleman-navtree/version.rb +1 -1
- data/middleman-navtree.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWM5NjY1MDQwZWYzYWVjOGUwZTg0MjFiY2EwNTIzNDg1MTRiY2M1NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTFlZWUzNWZjMGNlNGNjYWQwZmE0MzdhNWQ0MWYzZjA0ZTJiOTFhNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzdiOGYyODFiZmFkNTY1OTZiY2RhOTY1NDkxYmM1ZGQzM2QwY2Y3YjY4Yjc3
|
10
|
+
M2M3OTJlMzA1ZTU5Njg5MWZiYjMzOWY3ODk2YjY3ZTc5Yjc3ZTZkNDdmZGEz
|
11
|
+
MGEwZjQxNDZiY2RlMTFlNjUzYzMzNmJkMmZjOTAxMDNhMzIzYTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmNlNTE0NjBjZjAwYzk4YWVlYzJlOGY3M2MyYTg2YTZkZDc3MmZmNzZkZTVm
|
14
|
+
MmE1OTZkYTY2NGU2YzZhYjQ5YmRlYTM3NjlmMmQwNTkxMDhkYzg3NjQxNDk4
|
15
|
+
OWIzNmZjZjM2YmMwNzBjYmE4MjdkNWNjNzY4ZjJmNTRiNDNhZGU=
|
@@ -115,11 +115,11 @@ module Middleman
|
|
115
115
|
# Format Directory name for display in navtree.
|
116
116
|
# Example Name: 1%20-%20sink-or_swim
|
117
117
|
def format_directory_name(dir_name)
|
118
|
-
dir_name.gsub
|
119
|
-
|
120
|
-
|
118
|
+
formatted_name = dir_name.gsub('%20', ' ') #=> 1 - sink-or_swim
|
119
|
+
formatted_name.gsub!(/(?!\s)-(?!\s)/, ' ') #=> 1 - sink or_swim
|
120
|
+
formatted_name.gsub!(/_/, ' ') #=> 1 - sink or swim
|
121
121
|
# @todo: Find a way for titleize to not blow away ' - ' formatting.
|
122
|
-
|
122
|
+
formatted_name.titleize! #=> 1 Sink or Swim
|
123
123
|
end
|
124
124
|
|
125
125
|
# Utility helper for getting the page title for display in the navtree.
|
data/middleman-navtree.gemspec
CHANGED