bootstrap_helper 1.4.2 → 2.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/bootstrap_helper.gemspec +2 -2
- data/lib/bootstrap_helper/helper.rb +2 -2
- metadata +56 -100
data/README.md
CHANGED
@@ -14,7 +14,7 @@ gem 'bootstrap_helper'
|
|
14
14
|
or you can install from latest build;
|
15
15
|
|
16
16
|
``` ruby
|
17
|
-
gem 'bootstrap_helper', :git => "git://github.com/xdite/
|
17
|
+
gem 'bootstrap_helper', :git => "git://github.com/xdite/bootstrap-helper.git"
|
18
18
|
```
|
19
19
|
|
20
20
|
## USAGE
|
@@ -127,7 +127,7 @@ gem "simple_form", :git => "git://github.com/plataformatec/simple_form.git"
|
|
127
127
|
place <https://github.com/rafaelfranca/simple_form-bootstrap/blob/master/config/initializers/simple_form.rb> to `config/initailizers/simple_form.rb`
|
128
128
|
|
129
129
|
```
|
130
|
-
<%= simple_form_for @article
|
130
|
+
<%= simple_form_for @article do |f| %>
|
131
131
|
<%= f.input :title, :input_html => {:class => "xxlarge"} , :hint => "this is post title" %>
|
132
132
|
<% end >
|
133
133
|
```
|
data/bootstrap_helper.gemspec
CHANGED
@@ -6,14 +6,14 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["xuite.joke@gmail.com"]
|
7
7
|
gem.description = %q{Twitter Bootstrap HTML Helper}
|
8
8
|
gem.summary = %q{Twitter Bootstrap HTML Helper}
|
9
|
-
gem.homepage = "https://github.com/xdite/
|
9
|
+
gem.homepage = "https://github.com/xdite/bootstrap-helper"
|
10
10
|
|
11
11
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
12
|
gem.files = `git ls-files`.split("\n")
|
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 = "2.0.0.1"
|
17
17
|
|
18
18
|
gem.add_dependency "railties", "~> 3.0"
|
19
19
|
gem.add_dependency "thor", "~> 0.14"
|
@@ -27,11 +27,11 @@ module BootstrapHelper
|
|
27
27
|
end
|
28
28
|
|
29
29
|
|
30
|
-
|
30
|
+
def notice_message
|
31
31
|
flash_messages = []
|
32
32
|
flash.each do |type, message|
|
33
33
|
type = :success if type == :notice
|
34
|
-
text = content_tag(:div, link_to("x", "#", :class => "close") + message, :class => "alert
|
34
|
+
text = content_tag(:div, link_to("x", "#", :class => "close", "data-dismiss" => "alert") + message, :class => "alert fade in alert-#{type}")
|
35
35
|
flash_messages << text if message
|
36
36
|
end
|
37
37
|
flash_messages.join("\n").html_safe
|
metadata
CHANGED
@@ -1,111 +1,78 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_helper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 4
|
9
|
-
- 2
|
10
|
-
version: 1.4.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- xdite
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-11 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: railties
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70354618587460 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 0
|
33
|
-
version: "3.0"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: thor
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: *70354618587460
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: thor
|
27
|
+
requirement: &70354618577740 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
29
|
+
requirements:
|
42
30
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
- 14
|
48
|
-
version: "0.14"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.14'
|
49
33
|
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: will_paginate
|
53
34
|
prerelease: false
|
54
|
-
|
35
|
+
version_requirements: *70354618577740
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: will_paginate
|
38
|
+
requirement: &70354618577280 !ruby/object:Gem::Requirement
|
55
39
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
hash: 1923831905
|
60
|
-
segments:
|
61
|
-
- 3
|
62
|
-
- 0
|
63
|
-
- pre
|
64
|
-
- 4
|
40
|
+
requirements:
|
41
|
+
- - =
|
42
|
+
- !ruby/object:Gem::Version
|
65
43
|
version: 3.0.pre4
|
66
44
|
type: :runtime
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: bundler
|
70
45
|
prerelease: false
|
71
|
-
|
46
|
+
version_requirements: *70354618577280
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &70354618576820 !ruby/object:Gem::Requirement
|
72
50
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 23
|
77
|
-
segments:
|
78
|
-
- 1
|
79
|
-
- 0
|
80
|
-
- 0
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
81
54
|
version: 1.0.0
|
82
55
|
type: :development
|
83
|
-
version_requirements: *id004
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: rails
|
86
56
|
prerelease: false
|
87
|
-
|
57
|
+
version_requirements: *70354618576820
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rails
|
60
|
+
requirement: &70354618576360 !ruby/object:Gem::Requirement
|
88
61
|
none: false
|
89
|
-
requirements:
|
62
|
+
requirements:
|
90
63
|
- - ~>
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
segments:
|
94
|
-
- 3
|
95
|
-
- 0
|
96
|
-
version: "3.0"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '3.0'
|
97
66
|
type: :development
|
98
|
-
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70354618576360
|
99
69
|
description: Twitter Bootstrap HTML Helper
|
100
|
-
email:
|
70
|
+
email:
|
101
71
|
- xuite.joke@gmail.com
|
102
72
|
executables: []
|
103
|
-
|
104
73
|
extensions: []
|
105
|
-
|
106
74
|
extra_rdoc_files: []
|
107
|
-
|
108
|
-
files:
|
75
|
+
files:
|
109
76
|
- .gitignore
|
110
77
|
- Gemfile
|
111
78
|
- README.md
|
@@ -119,39 +86,28 @@ files:
|
|
119
86
|
- lib/bootstrap_helper/paginate_renderer.rb
|
120
87
|
- lib/bootstrap_helper/railtie.rb
|
121
88
|
- lib/bootstrap_helper/version.rb
|
122
|
-
|
123
|
-
homepage: https://github.com/xdite/bootstrap_helper
|
89
|
+
homepage: https://github.com/xdite/bootstrap-helper
|
124
90
|
licenses: []
|
125
|
-
|
126
91
|
post_install_message:
|
127
92
|
rdoc_options: []
|
128
|
-
|
129
|
-
require_paths:
|
93
|
+
require_paths:
|
130
94
|
- lib
|
131
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
96
|
none: false
|
133
|
-
requirements:
|
134
|
-
- -
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
|
137
|
-
|
138
|
-
- 0
|
139
|
-
version: "0"
|
140
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
102
|
none: false
|
142
|
-
requirements:
|
143
|
-
- -
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
|
146
|
-
segments:
|
147
|
-
- 0
|
148
|
-
version: "0"
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
149
107
|
requirements: []
|
150
|
-
|
151
108
|
rubyforge_project:
|
152
|
-
rubygems_version: 1.
|
109
|
+
rubygems_version: 1.8.15
|
153
110
|
signing_key:
|
154
111
|
specification_version: 3
|
155
112
|
summary: Twitter Bootstrap HTML Helper
|
156
113
|
test_files: []
|
157
|
-
|