breadcrumble 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/app/views/breadcrumble/_breadcrumb.html.erb +1 -1
- data/app/views/breadcrumble/_breadcrumb_trail.html.erb +1 -1
- data/lib/breadcrumble/version.rb +1 -1
- data/spec/dummy/app/views/breadcrumble/test/_breadcrumb.html.erb +1 -1
- data/spec/dummy/app/views/breadcrumble/test/_breadcrumb_trail.html.erb +1 -1
- data/spec/helpers/action_view_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 125b6653734071e3eaef03ecd12520024ed36d5c
|
4
|
+
data.tar.gz: b95e59e132c20e7775270514b80540f3c3d7384e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb8e5718713d6a74c111bd6f45262c2f0783269f269e5ce50d1f66a01b38cf7547172a0f6efa0373bf97a5c726b59c4ddda6cdc253d7edd1b000e4b4e45f7159
|
7
|
+
data.tar.gz: e8a8cada73daaaa3cfeccf925c328a46906c7421bdb173be4dfd4c34f4cdba372363a8e214d4d3c2f0f786d5e02c8426686df1f655eed352968513ffb743ec41
|
data/.travis.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<div>
|
2
2
|
<% breadcrumbs.each_with_index do |crumb, i| %>
|
3
3
|
<%= '>' unless i == 0 %>
|
4
|
-
<span itemscope
|
4
|
+
<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
5
5
|
<% span_title = content_tag(:span, crumb[:name], itemprop: "title") %>
|
6
6
|
<% if crumb[:url] == nil %>
|
7
7
|
<%= span_title %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<span
|
1
|
+
<span itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
2
2
|
<% span_title = content_tag(:span, trail[0][:name], itemprop: "title") %>
|
3
3
|
<% if trail[0][:url] == nil %>
|
4
4
|
<%= span_title %>
|
data/lib/breadcrumble/version.rb
CHANGED
@@ -2,7 +2,7 @@ test breadcrumb theme
|
|
2
2
|
<div>
|
3
3
|
<% breadcrumbs.each_with_index do |crumb, i| %>
|
4
4
|
<%= '>' unless i == 0 %>
|
5
|
-
<span itemscope
|
5
|
+
<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
6
6
|
<% span_title = content_tag(:span, crumb[:name], itemprop: "title") %>
|
7
7
|
<% if crumb[:url] == nil %>
|
8
8
|
<%= span_title %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<span
|
1
|
+
<span itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
|
2
2
|
<% span_title = content_tag(:span, trail[0][:name], itemprop: "title") %>
|
3
3
|
<% if trail[0][:url] == nil %>
|
4
4
|
<%= span_title %>
|
@@ -13,6 +13,7 @@ describe 'Breadcrumble::ActionView' do
|
|
13
13
|
it { is_expected.to match('root_url') }
|
14
14
|
it { is_expected.to match('test_name') }
|
15
15
|
it { is_expected.to match('test_url') }
|
16
|
+
it { is_expected.to match(' itemscope ') }
|
16
17
|
end
|
17
18
|
context '#render_breadcrumb_trails' do
|
18
19
|
before do
|
@@ -36,6 +37,7 @@ describe 'Breadcrumble::ActionView' do
|
|
36
37
|
it { is_expected.to match('trail2_level1_url') }
|
37
38
|
it { is_expected.to match('trail2_level2') }
|
38
39
|
it { is_expected.to match('trail2_level2_url') }
|
40
|
+
it { is_expected.to match('itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"') }
|
39
41
|
end
|
40
42
|
context '#render_breadcrumbs with theme' do
|
41
43
|
before do
|
@@ -46,6 +48,7 @@ describe 'Breadcrumble::ActionView' do
|
|
46
48
|
end
|
47
49
|
subject { helper.render_breadcrumbs(theme: 'test') }
|
48
50
|
it { is_expected.to match('test breadcrumb theme') }
|
51
|
+
it { is_expected.to match(' itemscope ') }
|
49
52
|
end
|
50
53
|
context '#render_breadcrumb_trails with theme' do
|
51
54
|
before do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breadcrumble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ma2ge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|