twitter-bootstrap-helpers 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module TwitterBootstrapHelpers
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -8,7 +8,8 @@ module TwitterBootstrapHelpers
8
8
  classes << 'on-right' if icon_position == :right
9
9
  end
10
10
  icon = content_tag(:i, '', :class => classes)
11
- html = icon_position == :left ? icon + string : string + icon
11
+ span = content_tag(:span, string)
12
+ html = icon_position == :left ? icon + span : span + icon
12
13
  raw(html)
13
14
  end
14
15
 
@@ -32,7 +33,7 @@ module TwitterBootstrapHelpers
32
33
  end
33
34
 
34
35
  def alert_close_tag
35
- content_tag(:a, :class => 'close', :data => {:dismiss => 'alert'}) do
36
+ content_tag(:a, :href => '#', :class => 'close', :data => {:dismiss => 'alert'}) do
36
37
  raw('&times;')
37
38
  end
38
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-bootstrap-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-01 00:00:00.000000000 Z
12
+ date: 2012-11-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A set of Ruby on Rails view helpers to be used with Twitter Bootstrap
15
15
  email:
@@ -53,3 +53,4 @@ signing_key:
53
53
  specification_version: 3
54
54
  summary: A set of Ruby on Rails view helpers to be used with Twitter Bootstrap
55
55
  test_files: []
56
+ has_rdoc: