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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a04fe576a816ff5cc81b197818ea9438a973713f
4
- data.tar.gz: 12bf7abb6f7ff2e781d217ff14d5ebd93671671d
3
+ metadata.gz: 125b6653734071e3eaef03ecd12520024ed36d5c
4
+ data.tar.gz: b95e59e132c20e7775270514b80540f3c3d7384e
5
5
  SHA512:
6
- metadata.gz: a690a5223bf04435d8eef351ef2995949b61eb0f96bf34a3fe567b9eb1fe1e24a79caef73a6a6592f19cc42f6f28196338bb3a1400f1db29b78aae3c31c5ff3b
7
- data.tar.gz: 7da3ca9f1a79d2b89fd6b7b2db821a72e746fba3e99a63cc60a827ba9e4aecd0411dcf944f0a7b80d7a84f517816f521f70103fdee020bc5a83d789b6b56ddb5
6
+ metadata.gz: cb8e5718713d6a74c111bd6f45262c2f0783269f269e5ce50d1f66a01b38cf7547172a0f6efa0373bf97a5c726b59c4ddda6cdc253d7edd1b000e4b4e45f7159
7
+ data.tar.gz: e8a8cada73daaaa3cfeccf925c328a46906c7421bdb173be4dfd4c34f4cdba372363a8e214d4d3c2f0f786d5e02c8426686df1f655eed352968513ffb743ec41
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  cache: bundler
3
4
  rvm:
4
5
  - 2.0.0
@@ -1,7 +1,7 @@
1
1
  <div>
2
2
  <% breadcrumbs.each_with_index do |crumb, i| %>
3
3
  <%= '>' unless i == 0 %>
4
- <span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
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 itemscope="child" itemtype="http://data-vocabulary.org/Breadcrumb">
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 %>
@@ -1,3 +1,3 @@
1
1
  module Breadcrumble
2
- VERSION = '4.2.0'
2
+ VERSION = '4.2.1'
3
3
  end
@@ -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="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
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 itemscope="child" itemtype="http://data-vocabulary.org/Breadcrumb">
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails