bootstrap_helper 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/bootstrap_helper.gemspec +1 -1
- data/lib/bootstrap_helper/breadcrumb.rb +5 -3
- data/lib/bootstrap_helper/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/bootstrap_helper.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
14
|
gem.name = "bootstrap_helper"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version =
|
16
|
+
gem.version = BootstrapHelper::Rails::VERSION
|
17
17
|
|
18
18
|
gem.add_dependency "railties", "~> 3.0"
|
19
19
|
gem.add_dependency "thor", "~> 0.14"
|
@@ -20,9 +20,11 @@ module BootstrapHelper
|
|
20
20
|
|
21
21
|
def drop_breadcrumb(title=nil, url=nil)
|
22
22
|
title ||= @page_title
|
23
|
-
|
24
|
-
if title
|
25
|
-
@breadcrumbs.push("<a href
|
23
|
+
|
24
|
+
if title && url
|
25
|
+
@breadcrumbs.push("<a href='#{url}'>#{title}</a>".html_safe)
|
26
|
+
elsif title
|
27
|
+
@breadcrumbs.push("#{title}".html_safe)
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 2.1.
|
8
|
+
- 2
|
9
|
+
version: 2.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- xdite
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-10-
|
17
|
+
date: 2012-10-12 00:00:00 +08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|