bootstrap-sass-extras 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/Gemfile +4 -1
- data/Gemfile.lock +18 -4
- data/README.md +91 -37
- data/app/helpers/badge_helper.rb +13 -0
- data/app/helpers/bootstrap_flash_helper.rb +17 -15
- data/app/helpers/glyph_helper.rb +10 -7
- data/app/helpers/modal_helper.rb +19 -15
- data/app/helpers/twitter_breadcrumbs_helper.rb +3 -2
- data/app/views/bootstrap_sass_extras/_breadcrumbs.html.erb +6 -0
- data/bootstrap-sass-extras.gemspec +1 -0
- data/lib/bootstrap-sass-extras/breadcrumbs.rb +26 -9
- data/lib/bootstrap-sass-extras/engine.rb +1 -0
- data/lib/bootstrap-sass-extras/version.rb +1 -1
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +1 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +1 -4
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +32 -50
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +20 -38
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +20 -39
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +10 -8
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +8 -7
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +8 -8
- data/lib/generators/bootstrap/themed/templates/index.html.erb +12 -10
- data/lib/generators/bootstrap/themed/templates/index.html.haml +8 -4
- data/lib/generators/bootstrap/themed/templates/index.html.slim +11 -9
- data/lib/generators/bootstrap/themed/templates/new.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/show.html.erb +12 -10
- data/lib/generators/bootstrap/themed/templates/show.html.haml +13 -12
- data/lib/generators/bootstrap/themed/templates/show.html.slim +11 -10
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +9 -7
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +5 -4
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +5 -5
- data/spec/dummy/db/schema.rb +16 -0
- data/spec/helpers/badge_helper_spec.rb +16 -0
- data/spec/helpers/bootstrap_flash_helper_spec.rb +54 -39
- data/spec/helpers/glyph_helper_spec.rb +15 -0
- data/spec/helpers/twitter_breadcrumbs_helper_spec.rb +153 -0
- metadata +13 -5
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +0 -14
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-sass-extras
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doabit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -67,12 +67,13 @@ files:
|
|
67
67
|
- MIT-LICENSE
|
68
68
|
- README.md
|
69
69
|
- Rakefile
|
70
|
+
- app/helpers/badge_helper.rb
|
70
71
|
- app/helpers/bootstrap_flash_helper.rb
|
71
72
|
- app/helpers/bootstrap_viewport_meta_helper.rb
|
72
73
|
- app/helpers/glyph_helper.rb
|
73
74
|
- app/helpers/modal_helper.rb
|
74
75
|
- app/helpers/twitter_breadcrumbs_helper.rb
|
75
|
-
- app/views/
|
76
|
+
- app/views/bootstrap_sass_extras/_breadcrumbs.html.erb
|
76
77
|
- bootstrap-sass-extras.gemspec
|
77
78
|
- lib/bootstrap-sass-extras.rb
|
78
79
|
- lib/bootstrap-sass-extras/breadcrumbs.rb
|
@@ -132,6 +133,7 @@ files:
|
|
132
133
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
133
134
|
- spec/dummy/config/locales/en.yml
|
134
135
|
- spec/dummy/config/routes.rb
|
136
|
+
- spec/dummy/db/schema.rb
|
135
137
|
- spec/dummy/lib/assets/.gitkeep
|
136
138
|
- spec/dummy/log/.gitkeep
|
137
139
|
- spec/dummy/public/404.html
|
@@ -139,8 +141,11 @@ files:
|
|
139
141
|
- spec/dummy/public/500.html
|
140
142
|
- spec/dummy/public/favicon.ico
|
141
143
|
- spec/dummy/script/rails
|
144
|
+
- spec/helpers/badge_helper_spec.rb
|
142
145
|
- spec/helpers/bootstrap_flash_helper_spec.rb
|
143
146
|
- spec/helpers/bootstrap_viewport_meta_helper_spec.rb
|
147
|
+
- spec/helpers/glyph_helper_spec.rb
|
148
|
+
- spec/helpers/twitter_breadcrumbs_helper_spec.rb
|
144
149
|
- spec/spec_helper.rb
|
145
150
|
homepage: https://github.com/doabit/bootstrap-sass-extras
|
146
151
|
licenses: []
|
@@ -161,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
166
|
version: '0'
|
162
167
|
requirements: []
|
163
168
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.1.11
|
165
170
|
signing_key:
|
166
171
|
specification_version: 4
|
167
172
|
summary: bootstrap-sass extras.
|
@@ -191,6 +196,7 @@ test_files:
|
|
191
196
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
192
197
|
- spec/dummy/config/locales/en.yml
|
193
198
|
- spec/dummy/config/routes.rb
|
199
|
+
- spec/dummy/db/schema.rb
|
194
200
|
- spec/dummy/lib/assets/.gitkeep
|
195
201
|
- spec/dummy/log/.gitkeep
|
196
202
|
- spec/dummy/public/404.html
|
@@ -198,7 +204,9 @@ test_files:
|
|
198
204
|
- spec/dummy/public/500.html
|
199
205
|
- spec/dummy/public/favicon.ico
|
200
206
|
- spec/dummy/script/rails
|
207
|
+
- spec/helpers/badge_helper_spec.rb
|
201
208
|
- spec/helpers/bootstrap_flash_helper_spec.rb
|
202
209
|
- spec/helpers/bootstrap_viewport_meta_helper_spec.rb
|
210
|
+
- spec/helpers/glyph_helper_spec.rb
|
211
|
+
- spec/helpers/twitter_breadcrumbs_helper_spec.rb
|
203
212
|
- spec/spec_helper.rb
|
204
|
-
has_rdoc:
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<% if @breadcrumbs.present? %>
|
2
|
-
<ul class="breadcrumb">
|
3
|
-
<% separator = divider %>
|
4
|
-
<% @breadcrumbs[0..-2].each do |crumb| %>
|
5
|
-
<li>
|
6
|
-
<%= link_to crumb[:name], crumb[:url], crumb[:options] %>
|
7
|
-
<span class="divider"><%= separator %></span>
|
8
|
-
</li>
|
9
|
-
<% end %>
|
10
|
-
<li class="active">
|
11
|
-
<%= @breadcrumbs.last[:name] %>
|
12
|
-
</li>
|
13
|
-
</ul>
|
14
|
-
<% end %>
|