bootstrap_helper 2.1.1 → 2.1.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.
data/CHANGELOG CHANGED
@@ -1,2 +1,4 @@
1
+ * 2.1.2 fix breadcurm should be plaintext item
2
+ * 2.1.1 fix simple_form decrappted warning
1
3
  * 2.1.0 add will_paginate & simple_form template initializer for bootstrap
2
4
  * 2.0.0.3 fix notice_mesage
@@ -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 = "2.1.1"
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
- url ||= url_for
24
- if title
25
- @breadcrumbs.push("<a href=\"#{url}\">#{title}</a>".html_safe)
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
 
@@ -1,5 +1,5 @@
1
1
  module BootstrapHelper
2
2
  module Rails
3
- VERSION = "2.1.1"
3
+ VERSION = "2.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 1
8
- - 1
9
- version: 2.1.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-10 00:00:00 +08:00
17
+ date: 2012-10-12 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency