jekyll-menus 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/menus.rb +2 -2
- data/lib/jekyll/menus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a2a2fdf7722a9b668123b62067a9e89d372c4fa
|
4
|
+
data.tar.gz: 2f38c1e8e8ff55808effb42452e5a9fc4b8c9f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3a7ebde802770a6a5afa5575b8cb4c3dffb9dff0e52c294196dc3e77f10f20ba5f21486b2d0ae5320a019b949175e03a04ab33c930b9b473ed23c9a4f73a9a6
|
7
|
+
data.tar.gz: 68f67d068a486896aefdf14ea3cba2a7874e4da9110158308c91fe80ff586c22db40dcef45809e873023b1106ba4792c61e6000587ae81e7dd1a27d9c84666a5
|
data/lib/jekyll/menus.rb
CHANGED
@@ -205,8 +205,8 @@ module Jekyll
|
|
205
205
|
def slug(page)
|
206
206
|
ext = page.data["ext"] || page.ext
|
207
207
|
out = File.join(File.dirname(page.path), File.basename(page.path, ext))
|
208
|
-
out.tr("^a-z0-9-_\\/", "").gsub(
|
209
|
-
|
208
|
+
out.tr("^a-z0-9-_\\/", "").gsub(/\/|\-+/, "_").gsub(
|
209
|
+
/^_+/, ""
|
210
210
|
)
|
211
211
|
end
|
212
212
|
|
data/lib/jekyll/menus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-menus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|