snipp 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,8 +12,13 @@ module Snipp
12
12
 
13
13
  bc = []
14
14
  paths.each do |e|
15
- body = content_tag :span, I18n.t(e, i18n_options), itemprop: :title
16
- bc.push link_to body, send("#{e}_path", options), itemprop: :url
15
+ if e.is_a?(Hash)
16
+ body = content_tag :span, e[:label], itemprop: :title
17
+ bc.push link_to body, e[:path], itemprop: :url
18
+ else
19
+ body = content_tag :span, I18n.t(e, i18n_options), itemprop: :title
20
+ bc.push link_to body, send("#{e}_path", options), itemprop: :url
21
+ end
17
22
  end
18
23
  code = '<nav class="breadcrumb" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">'
19
24
  code << bc.join(sepalator)
data/lib/snipp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Snipp
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snipp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: