radiant-navigation_tags-extension 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -131,7 +131,7 @@ module NavigationTags
131
131
 
132
132
  def label_for_page page
133
133
  # labels="/:Home,/portfolio:Our work"
134
- if @labels && matched_label = @labels.split(',').select{|l| l.split(':').first == page.path}.first.split(":").last
134
+ if @labels && matched_label = @labels.split(',').select{|l| l.split(':').first == page.path}.first.try(:split, ':').try(:last)
135
135
  escape_once(matched_label)
136
136
  else
137
137
  escape_once(page.breadcrumb)
@@ -1,5 +1,5 @@
1
1
  module RadiantNavigationTagsExtension
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  AUTHORS = ['Benny Degezelle', 'Marty Haught', 'Ryan Heneise']
4
4
  EMAIL = 'benny@gorilla-webdesign.be'
5
5
  URL = "https://github.com/jomz/navigation_tags"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-navigation_tags-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benny Degezelle