jekyll-menus 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd7f970ddf9103764a6e46bb210abded025cb317
4
- data.tar.gz: 1a21eb632e84d1d1aeb19c850f7d0263c970336d
3
+ metadata.gz: 3c7f13786ee80387b5d235258f9efed7da922503
4
+ data.tar.gz: 1109f99103483a529ac28221a2dcd7e709b986ad
5
5
  SHA512:
6
- metadata.gz: 6b61b0ee134ccf259774fda36efeead3358eac0eb509572dfae1c16c31a7eee2449b713219cb91e41cf88134226222d317f9cfdb53b950f73cda37fcf3e6f879
7
- data.tar.gz: 4d1e67d86dbd44db3d3199a49d36018d07efd0962ed19938fd66f3d25b2c722d1c965cf0a170ca3e71ca4dac146b3c7027f03076e796056ecbad281c5c177795
6
+ metadata.gz: a56855d97a1747b18f66de21008448baec7c17fd06b65960d3d1b859b259de5b7210700ac96e7b84635d3cabf9e26c01918c40eb88ef3b88c28e783a3f7c5943
7
+ data.tar.gz: b68be156ab98dbb4b5af675d760f2ca0f3b2db14b9033929aa37989685138fdb17437a6057bb863f8f14da34618c6cb97e3725df5ae446d254a5e81304a599c6
@@ -203,7 +203,8 @@ module Jekyll
203
203
 
204
204
  private
205
205
  def slug(page)
206
- out = File.join(File.dirname(page.path), File.basename(page.path, page.ext))
206
+ ext = page.data["ext"] || page.ext
207
+ out = File.join(File.dirname(page.path), File.basename(page.path, ext))
207
208
  out.tr("^a-z0-9-_\\/", "").gsub(
208
209
  /\/|\-+/, "_"
209
210
  )
@@ -56,14 +56,11 @@ module Jekyll
56
56
 
57
57
  #
58
58
 
59
- def method_missing(method, *args)
60
- if args.size == 0 && @item.has_key?(method.to_s)
59
+ def before_method(method)
60
+ if @item.has_key?(method.to_s)
61
61
  return @item[
62
62
  method.to_s
63
63
  ]
64
-
65
- else
66
- super
67
64
  end
68
65
  end
69
66
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  class Menus
7
- VERSION = "0.3.0"
7
+ VERSION = "0.4.0"
8
8
  end
9
9
  end
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.3.0
4
+ version: 0.4.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-01-25 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll