gretel 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gretel/helper_methods.rb +3 -3
  2. metadata +3 -3
@@ -42,7 +42,7 @@ module Gretel
42
42
  if link_last
43
43
  out = link_to_if(link_last, crumb.link.text, crumb.link.url, crumb.link.options.merge(:class => "current"))
44
44
  else
45
- if options[:use_microformat]
45
+ if options[:use_microformats]
46
46
  out = content_tag(:span, crumb.link.text, :class => "current", :itemprop => "title")
47
47
  else
48
48
  out = content_tag(:span, crumb.link.text, :class => "current")
@@ -52,7 +52,7 @@ module Gretel
52
52
  while parent = crumb.parent
53
53
  last_parent = parent.name
54
54
  crumb = Crumbs.get_crumb(parent.name, parent.object)
55
- if options[:use_microformat]
55
+ if options[:use_microformats]
56
56
  out = content_tag(:div, link_to(content_tag(:span, crumb.link.text, :itemprop => "title"), crumb.link.url, crumb.link.options.merge(:itemprop => "url")) + " ", :itemscope => "", :itemtype => "http://data-vocabulary.org/Breadcrumb") + " " + separator + " " + out
57
57
  else
58
58
  out = link_to(crumb.link.text, crumb.link.url, crumb.link.options) + " " + separator + " " + out
@@ -62,7 +62,7 @@ module Gretel
62
62
  # TODO: Refactor this
63
63
  if options[:autoroot] && name != :root && last_parent != :root
64
64
  crumb = Crumbs.get_crumb(:root)
65
- if options[:use_microformat]
65
+ if options[:use_microformats]
66
66
  out = content_tag(:div, link_to(content_tag(:span, crumb.link.text, :itemprop => "title"), crumb.link.url, crumb.link.options.merge(:itemprop => "url")) + " ", :itemscope => "", :itemtype => "http://data-vocabulary.org/Breadcrumb") + " " + separator + " " + out
67
67
  else
68
68
  out = link_to(crumb.link.text, crumb.link.url, crumb.link.options) + " " + separator + " " + out
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gretel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lasse Bunk