bootstrap_helper 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,10 +13,11 @@ 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 = "1.4.1"
16
+ gem.version = "1.4.2"
17
17
 
18
18
  gem.add_dependency "railties", "~> 3.0"
19
19
  gem.add_dependency "thor", "~> 0.14"
20
+ gem.add_dependency "will_paginate", '3.0.pre4'
20
21
  gem.add_development_dependency "bundler", ">= 1.0.0"
21
22
  gem.add_development_dependency "rails", "~> 3.0"
22
23
  end
@@ -26,15 +26,14 @@ module BootstrapHelper
26
26
 
27
27
  end
28
28
 
29
+
29
30
  def notice_message
30
31
  flash_messages = []
31
-
32
32
  flash.each do |type, message|
33
33
  type = :success if type == :notice
34
- text = content_tag(:div, link_to("x", "#", :class => "close") + content_tag(:p,message), :class => "alert-message #{type}", "data-alert" => "alert")
34
+ text = content_tag(:div, link_to("x", "#", :class => "close") + message, :class => "alert-message #{type}", "data-alert" => "alert")
35
35
  flash_messages << text if message
36
36
  end
37
-
38
37
  flash_messages.join("\n").html_safe
39
38
  end
40
39
 
@@ -1,5 +1,5 @@
1
1
  module BootstrapHelper
2
2
  module Rails
3
- VERSION = "0.1.4"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_helper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 1
10
- version: 1.4.1
9
+ - 2
10
+ version: 1.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - xdite
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-16 00:00:00 +08:00
18
+ date: 2012-02-06 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -49,9 +49,26 @@ dependencies:
49
49
  type: :runtime
50
50
  version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- name: bundler
52
+ name: will_paginate
53
53
  prerelease: false
54
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - "="
58
+ - !ruby/object:Gem::Version
59
+ hash: 1923831905
60
+ segments:
61
+ - 3
62
+ - 0
63
+ - pre
64
+ - 4
65
+ version: 3.0.pre4
66
+ type: :runtime
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: bundler
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
55
72
  none: false
56
73
  requirements:
57
74
  - - ">="
@@ -63,11 +80,11 @@ dependencies:
63
80
  - 0
64
81
  version: 1.0.0
65
82
  type: :development
66
- version_requirements: *id003
83
+ version_requirements: *id004
67
84
  - !ruby/object:Gem::Dependency
68
85
  name: rails
69
86
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
87
+ requirement: &id005 !ruby/object:Gem::Requirement
71
88
  none: false
72
89
  requirements:
73
90
  - - ~>
@@ -78,7 +95,7 @@ dependencies:
78
95
  - 0
79
96
  version: "3.0"
80
97
  type: :development
81
- version_requirements: *id004
98
+ version_requirements: *id005
82
99
  description: Twitter Bootstrap HTML Helper
83
100
  email:
84
101
  - xuite.joke@gmail.com