jekyll-menus 0.0.1 → 0.0.2

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: 965850706d2242ce29e43c7932c2d654b95289bb
4
- data.tar.gz: ad2d2693926535f499cfb5fcb021a459054aca14
3
+ metadata.gz: 112ca0fd0d0030fd3bcb7b6d7f945fe52f36a8cf
4
+ data.tar.gz: 4ec95edef9cacf10e9671babc3e5007ea28fba9b
5
5
  SHA512:
6
- metadata.gz: e653e6f926258c2ac86b0f41a9bf157b9072b9c418f037a58627ed983c73d70566dab4613f65fdc8eabba0923ef5d38f82df805c989b689b6ea2623a06f4ddcc
7
- data.tar.gz: fbade891036ee15a967c9f3774037827f5425fd84360a69552db32e6e8cf9e9456934672cfe0034f0dace4fcca69c787e445cd96c91d72ef169bbce2c49a2899
6
+ metadata.gz: 4dd4067ac10a03c54a8be8966d9b8ca4592ac0544b05c6627f239ae08bab9b582d377733471e0acfb88c52aa2bd41664e1c357f605013734efa4a09b587699e8
7
+ data.tar.gz: 55ce626ee70a53eb6b4e28c6f208894c9c1ce4d9dfbb39b41c74bda11660fa9373bb3def5bb4d1562c4668ac59843990989a9daf997dee20b65565307347bc34
data/lib/jekyll/menus.rb CHANGED
@@ -167,10 +167,12 @@ module Jekyll
167
167
 
168
168
  private
169
169
  def _validate_config_menu_item(item)
170
- unless item.is_a?(Hash) && item.values_at("url", "title", "identifier").compact.size == 3
170
+ if !item.is_a?(Hash) || !item.values_at("url", "title", "identifier").compact.size == 3
171
171
  _throw_invalid_menu_entry(
172
172
  item
173
173
  )
174
+ else
175
+ item["weight"] ||= -1
174
176
  end
175
177
  end
176
178
 
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  class Menus
7
- VERSION = "0.0.1"
7
+ VERSION = "0.0.2"
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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll