bh 1.3.5 → 6.0.0
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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +8 -0
- data/README.md +8 -138
- data/app/assets/stylesheets/bh.css +29 -0
- data/app/javascript/controllers/bh/theme_controller.js +17 -0
- data/app/views/bh/_grid.html.erb +6 -0
- data/app/views/bh/_table.html.erb +46 -0
- data/bh.gemspec +5 -31
- data/gemfiles/Gemfile.rails-3.x +0 -1
- data/lib/bh/bootstrap_helpers.rb +131 -0
- data/lib/bh/engine.rb +13 -0
- data/lib/bh/version.rb +3 -1
- data/lib/bh.rb +6 -14
- data/spec/spec_helper.rb +1 -1
- metadata +14 -298
- data/examples/middleman/.gitignore +0 -18
- data/examples/middleman/Gemfile +0 -6
- data/examples/middleman/config.rb +0 -1
- data/examples/middleman/source/index.html.erb +0 -158
- data/examples/padrino/Gemfile +0 -9
- data/examples/padrino/app/app.rb +0 -16
- data/examples/padrino/app/views/index.html.erb +0 -155
- data/examples/padrino/config/apps.rb +0 -5
- data/examples/padrino/config/boot.rb +0 -8
- data/examples/padrino/config.ru +0 -5
- data/examples/rails/.gitignore +0 -12
- data/examples/rails/Gemfile +0 -5
- data/examples/rails/app/controllers/application_controller.rb +0 -6
- data/examples/rails/app/controllers/users_controller.rb +0 -2
- data/examples/rails/app/models/user.rb +0 -15
- data/examples/rails/app/views/application/index.html.erb +0 -160
- data/examples/rails/bin/rails +0 -4
- data/examples/rails/config/application.rb +0 -12
- data/examples/rails/config/boot.rb +0 -3
- data/examples/rails/config/environment.rb +0 -5
- data/examples/rails/config/environments/development.rb +0 -7
- data/examples/rails/config/routes.rb +0 -4
- data/examples/rails/config/secrets.yml +0 -22
- data/examples/rails/config.ru +0 -4
- data/examples/rails/log/.keep +0 -0
- data/lib/bh/classes/alert_box.rb +0 -35
- data/lib/bh/classes/base.rb +0 -125
- data/lib/bh/classes/button.rb +0 -58
- data/lib/bh/classes/button_to.rb +0 -33
- data/lib/bh/classes/cdn.rb +0 -35
- data/lib/bh/classes/dropdown.rb +0 -56
- data/lib/bh/classes/icon.rb +0 -34
- data/lib/bh/classes/link_to.rb +0 -26
- data/lib/bh/classes/modal.rb +0 -68
- data/lib/bh/classes/nav.rb +0 -37
- data/lib/bh/classes/navbar.rb +0 -78
- data/lib/bh/classes/panel.rb +0 -72
- data/lib/bh/classes/panel_row.rb +0 -13
- data/lib/bh/classes/progress_bar.rb +0 -89
- data/lib/bh/classes/stack.rb +0 -19
- data/lib/bh/classes/vertical.rb +0 -27
- data/lib/bh/core_ext/middleman.rb +0 -24
- data/lib/bh/core_ext/padrino.rb +0 -25
- data/lib/bh/core_ext/rails/base_helper.rb +0 -21
- data/lib/bh/core_ext/rails/form/base_helper.rb +0 -150
- data/lib/bh/core_ext/rails/form/check_box_helper.rb +0 -35
- data/lib/bh/core_ext/rails/form/field_helper.rb +0 -15
- data/lib/bh/core_ext/rails/form/fields_for_helper.rb +0 -23
- data/lib/bh/core_ext/rails/form/fieldset_helper.rb +0 -16
- data/lib/bh/core_ext/rails/form/file_field_helper.rb +0 -15
- data/lib/bh/core_ext/rails/form/legend_helper.rb +0 -17
- data/lib/bh/core_ext/rails/form/radio_button_helper.rb +0 -19
- data/lib/bh/core_ext/rails/form/select_helper.rb +0 -16
- data/lib/bh/core_ext/rails/form/static_control_helper.rb +0 -43
- data/lib/bh/core_ext/rails/form/submit_helper.rb +0 -23
- data/lib/bh/core_ext/rails/form_builder.rb +0 -46
- data/lib/bh/core_ext/rails/form_for_helper.rb +0 -41
- data/lib/bh/core_ext/railtie.rb +0 -27
- data/lib/bh/helpers/alert_box_helper.rb +0 -40
- data/lib/bh/helpers/button_helper.rb +0 -40
- data/lib/bh/helpers/button_to_helper.rb +0 -65
- data/lib/bh/helpers/cdn_helper.rb +0 -46
- data/lib/bh/helpers/dropdown_helper.rb +0 -49
- data/lib/bh/helpers/glyphicon_helper.rb +0 -18
- data/lib/bh/helpers/horizontal_helper.rb +0 -35
- data/lib/bh/helpers/icon_helper.rb +0 -27
- data/lib/bh/helpers/link_to_helper.rb +0 -59
- data/lib/bh/helpers/modal_helper.rb +0 -55
- data/lib/bh/helpers/nav_helper.rb +0 -36
- data/lib/bh/helpers/navbar_helper.rb +0 -48
- data/lib/bh/helpers/panel_helper.rb +0 -53
- data/lib/bh/helpers/panel_row_helper.rb +0 -28
- data/lib/bh/helpers/progress_bar_helper.rb +0 -55
- data/lib/bh/helpers/vertical_helper.rb +0 -33
- data/lib/bh/views/bh/_alert_dismiss_button.html +0 -4
- data/lib/bh/views/bh/_dropdown.html.erb +0 -9
- data/lib/bh/views/bh/_dropdown_split.html.erb +0 -10
- data/lib/bh/views/bh/_modal.html.erb +0 -14
- data/lib/bh/views/bh/_navbar.html.erb +0 -5
metadata
CHANGED
|
@@ -1,186 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Claudio Baccigalupo
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: activesupport
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: actionpack
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0'
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: bundler
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '1.1'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.1'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rspec
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.1'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '3.1'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rake
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '10.3'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '10.3'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: yard
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.8.7
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.8.7
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: coveralls
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - "~>"
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: 0.7.1
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - "~>"
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: 0.7.1
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: tins
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - "~>"
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: 1.5.4
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - "~>"
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: 1.5.4
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: activemodel
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: middleman-core
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - ">="
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: '0'
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - ">="
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: '0'
|
|
153
|
-
- !ruby/object:Gem::Dependency
|
|
154
|
-
name: padrino-helpers
|
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
|
156
|
-
requirements:
|
|
157
|
-
- - "~>"
|
|
158
|
-
- !ruby/object:Gem::Version
|
|
159
|
-
version: 0.12.4
|
|
160
|
-
type: :development
|
|
161
|
-
prerelease: false
|
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
-
requirements:
|
|
164
|
-
- - "~>"
|
|
165
|
-
- !ruby/object:Gem::Version
|
|
166
|
-
version: 0.12.4
|
|
167
|
-
- !ruby/object:Gem::Dependency
|
|
168
|
-
name: padrino-routing
|
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
|
170
|
-
requirements:
|
|
171
|
-
- - "~>"
|
|
172
|
-
- !ruby/object:Gem::Version
|
|
173
|
-
version: 0.5.0
|
|
174
|
-
type: :development
|
|
175
|
-
prerelease: false
|
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
-
requirements:
|
|
178
|
-
- - "~>"
|
|
179
|
-
- !ruby/object:Gem::Version
|
|
180
|
-
version: 0.5.0
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
181
12
|
description: Bh - Bootstrap Helpers
|
|
182
13
|
email:
|
|
183
|
-
- claudio@
|
|
14
|
+
- claudio@houseaccount.com
|
|
184
15
|
executables: []
|
|
185
16
|
extensions: []
|
|
186
17
|
extra_rdoc_files: []
|
|
@@ -194,91 +25,18 @@ files:
|
|
|
194
25
|
- MIT-LICENSE
|
|
195
26
|
- README.md
|
|
196
27
|
- Rakefile
|
|
28
|
+
- app/assets/stylesheets/bh.css
|
|
29
|
+
- app/javascript/controllers/bh/theme_controller.js
|
|
30
|
+
- app/views/bh/_grid.html.erb
|
|
31
|
+
- app/views/bh/_table.html.erb
|
|
197
32
|
- bh.gemspec
|
|
198
|
-
- examples/middleman/.gitignore
|
|
199
|
-
- examples/middleman/Gemfile
|
|
200
|
-
- examples/middleman/config.rb
|
|
201
|
-
- examples/middleman/source/index.html.erb
|
|
202
|
-
- examples/padrino/Gemfile
|
|
203
|
-
- examples/padrino/app/app.rb
|
|
204
|
-
- examples/padrino/app/views/index.html.erb
|
|
205
|
-
- examples/padrino/config.ru
|
|
206
|
-
- examples/padrino/config/apps.rb
|
|
207
|
-
- examples/padrino/config/boot.rb
|
|
208
|
-
- examples/rails/.gitignore
|
|
209
|
-
- examples/rails/Gemfile
|
|
210
|
-
- examples/rails/app/controllers/application_controller.rb
|
|
211
|
-
- examples/rails/app/controllers/users_controller.rb
|
|
212
|
-
- examples/rails/app/models/user.rb
|
|
213
|
-
- examples/rails/app/views/application/index.html.erb
|
|
214
|
-
- examples/rails/bin/rails
|
|
215
|
-
- examples/rails/config.ru
|
|
216
|
-
- examples/rails/config/application.rb
|
|
217
|
-
- examples/rails/config/boot.rb
|
|
218
|
-
- examples/rails/config/environment.rb
|
|
219
|
-
- examples/rails/config/environments/development.rb
|
|
220
|
-
- examples/rails/config/routes.rb
|
|
221
|
-
- examples/rails/config/secrets.yml
|
|
222
|
-
- examples/rails/log/.keep
|
|
223
33
|
- gemfiles/Gemfile.rails-3.x
|
|
224
34
|
- gemfiles/Gemfile.rails-4.x
|
|
225
35
|
- gemfiles/Gemfile.rails-5.x
|
|
226
36
|
- lib/bh.rb
|
|
227
|
-
- lib/bh/
|
|
228
|
-
- lib/bh/
|
|
229
|
-
- lib/bh/classes/button.rb
|
|
230
|
-
- lib/bh/classes/button_to.rb
|
|
231
|
-
- lib/bh/classes/cdn.rb
|
|
232
|
-
- lib/bh/classes/dropdown.rb
|
|
233
|
-
- lib/bh/classes/icon.rb
|
|
234
|
-
- lib/bh/classes/link_to.rb
|
|
235
|
-
- lib/bh/classes/modal.rb
|
|
236
|
-
- lib/bh/classes/nav.rb
|
|
237
|
-
- lib/bh/classes/navbar.rb
|
|
238
|
-
- lib/bh/classes/panel.rb
|
|
239
|
-
- lib/bh/classes/panel_row.rb
|
|
240
|
-
- lib/bh/classes/progress_bar.rb
|
|
241
|
-
- lib/bh/classes/stack.rb
|
|
242
|
-
- lib/bh/classes/vertical.rb
|
|
243
|
-
- lib/bh/core_ext/middleman.rb
|
|
244
|
-
- lib/bh/core_ext/padrino.rb
|
|
245
|
-
- lib/bh/core_ext/rails/base_helper.rb
|
|
246
|
-
- lib/bh/core_ext/rails/form/base_helper.rb
|
|
247
|
-
- lib/bh/core_ext/rails/form/check_box_helper.rb
|
|
248
|
-
- lib/bh/core_ext/rails/form/field_helper.rb
|
|
249
|
-
- lib/bh/core_ext/rails/form/fields_for_helper.rb
|
|
250
|
-
- lib/bh/core_ext/rails/form/fieldset_helper.rb
|
|
251
|
-
- lib/bh/core_ext/rails/form/file_field_helper.rb
|
|
252
|
-
- lib/bh/core_ext/rails/form/legend_helper.rb
|
|
253
|
-
- lib/bh/core_ext/rails/form/radio_button_helper.rb
|
|
254
|
-
- lib/bh/core_ext/rails/form/select_helper.rb
|
|
255
|
-
- lib/bh/core_ext/rails/form/static_control_helper.rb
|
|
256
|
-
- lib/bh/core_ext/rails/form/submit_helper.rb
|
|
257
|
-
- lib/bh/core_ext/rails/form_builder.rb
|
|
258
|
-
- lib/bh/core_ext/rails/form_for_helper.rb
|
|
259
|
-
- lib/bh/core_ext/railtie.rb
|
|
260
|
-
- lib/bh/helpers/alert_box_helper.rb
|
|
261
|
-
- lib/bh/helpers/button_helper.rb
|
|
262
|
-
- lib/bh/helpers/button_to_helper.rb
|
|
263
|
-
- lib/bh/helpers/cdn_helper.rb
|
|
264
|
-
- lib/bh/helpers/dropdown_helper.rb
|
|
265
|
-
- lib/bh/helpers/glyphicon_helper.rb
|
|
266
|
-
- lib/bh/helpers/horizontal_helper.rb
|
|
267
|
-
- lib/bh/helpers/icon_helper.rb
|
|
268
|
-
- lib/bh/helpers/link_to_helper.rb
|
|
269
|
-
- lib/bh/helpers/modal_helper.rb
|
|
270
|
-
- lib/bh/helpers/nav_helper.rb
|
|
271
|
-
- lib/bh/helpers/navbar_helper.rb
|
|
272
|
-
- lib/bh/helpers/panel_helper.rb
|
|
273
|
-
- lib/bh/helpers/panel_row_helper.rb
|
|
274
|
-
- lib/bh/helpers/progress_bar_helper.rb
|
|
275
|
-
- lib/bh/helpers/vertical_helper.rb
|
|
37
|
+
- lib/bh/bootstrap_helpers.rb
|
|
38
|
+
- lib/bh/engine.rb
|
|
276
39
|
- lib/bh/version.rb
|
|
277
|
-
- lib/bh/views/bh/_alert_dismiss_button.html
|
|
278
|
-
- lib/bh/views/bh/_dropdown.html.erb
|
|
279
|
-
- lib/bh/views/bh/_dropdown_split.html.erb
|
|
280
|
-
- lib/bh/views/bh/_modal.html.erb
|
|
281
|
-
- lib/bh/views/bh/_navbar.html.erb
|
|
282
40
|
- spec/padrino/button_to_helper.rb
|
|
283
41
|
- spec/padrino/link_to_helper.rb
|
|
284
42
|
- spec/padrino_spec.rb
|
|
@@ -317,11 +75,10 @@ files:
|
|
|
317
75
|
- spec/support/matchers.rb
|
|
318
76
|
- spec/support/padrino.rb
|
|
319
77
|
- spec/support/rails.rb
|
|
320
|
-
homepage: http://github.com/
|
|
78
|
+
homepage: http://github.com/claudiob/bh
|
|
321
79
|
licenses:
|
|
322
80
|
- MIT
|
|
323
81
|
metadata: {}
|
|
324
|
-
post_install_message:
|
|
325
82
|
rdoc_options: []
|
|
326
83
|
require_paths:
|
|
327
84
|
- lib
|
|
@@ -329,56 +86,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
329
86
|
requirements:
|
|
330
87
|
- - ">="
|
|
331
88
|
- !ruby/object:Gem::Version
|
|
332
|
-
version:
|
|
89
|
+
version: 3.2.0
|
|
333
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
334
91
|
requirements:
|
|
335
92
|
- - ">="
|
|
336
93
|
- !ruby/object:Gem::Version
|
|
337
94
|
version: '0'
|
|
338
95
|
requirements: []
|
|
339
|
-
|
|
340
|
-
rubygems_version: 2.5.1
|
|
341
|
-
signing_key:
|
|
96
|
+
rubygems_version: 4.0.6
|
|
342
97
|
specification_version: 4
|
|
343
98
|
summary: Bh provides a set of powerful helpers that streamlines the use of Bootstrap
|
|
344
99
|
components in Rails views.
|
|
345
|
-
test_files:
|
|
346
|
-
- spec/padrino/button_to_helper.rb
|
|
347
|
-
- spec/padrino/link_to_helper.rb
|
|
348
|
-
- spec/padrino_spec.rb
|
|
349
|
-
- spec/rails/button_to_helper.rb
|
|
350
|
-
- spec/rails/form/check_box_helper_spec.rb
|
|
351
|
-
- spec/rails/form/field_helper_spec.rb
|
|
352
|
-
- spec/rails/form/fields_for_helper_spec.rb
|
|
353
|
-
- spec/rails/form/fieldset_helper_spec.rb
|
|
354
|
-
- spec/rails/form/file_field_helper_spec.rb
|
|
355
|
-
- spec/rails/form/legend_helper_spec.rb
|
|
356
|
-
- spec/rails/form/radio_button_helper_spec.rb
|
|
357
|
-
- spec/rails/form/select_helper_spec.rb
|
|
358
|
-
- spec/rails/form/static_control_helper_spec.rb
|
|
359
|
-
- spec/rails/form/submit_helper_spec.rb
|
|
360
|
-
- spec/rails/form_for_helper_spec.rb
|
|
361
|
-
- spec/rails/link_to_helper.rb
|
|
362
|
-
- spec/rails_helper.rb
|
|
363
|
-
- spec/rails_spec.rb
|
|
364
|
-
- spec/shared/alert_box_helper.rb
|
|
365
|
-
- spec/shared/button_helper.rb
|
|
366
|
-
- spec/shared/button_to_helper.rb
|
|
367
|
-
- spec/shared/cdn_helper.rb
|
|
368
|
-
- spec/shared/dropdown_helper.rb
|
|
369
|
-
- spec/shared/glyphicon_helper.rb
|
|
370
|
-
- spec/shared/horizontal_helper.rb
|
|
371
|
-
- spec/shared/icon_helper.rb
|
|
372
|
-
- spec/shared/link_to_helper.rb
|
|
373
|
-
- spec/shared/modal_helper.rb
|
|
374
|
-
- spec/shared/nav_helper.rb
|
|
375
|
-
- spec/shared/navbar_helper.rb
|
|
376
|
-
- spec/shared/panel_helper.rb
|
|
377
|
-
- spec/shared/panel_row_helper.rb
|
|
378
|
-
- spec/shared/progress_bar_helper.rb
|
|
379
|
-
- spec/shared/vertical_helper.rb
|
|
380
|
-
- spec/spec_helper.rb
|
|
381
|
-
- spec/support/matchers.rb
|
|
382
|
-
- spec/support/padrino.rb
|
|
383
|
-
- spec/support/rails.rb
|
|
384
|
-
has_rdoc:
|
|
100
|
+
test_files: []
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
#
|
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
|
5
|
-
# git config --global core.excludesfile ~/.gitignore_global
|
|
6
|
-
|
|
7
|
-
# Ignore bundler config
|
|
8
|
-
/.bundle
|
|
9
|
-
|
|
10
|
-
# Ignore the build directory
|
|
11
|
-
/build
|
|
12
|
-
|
|
13
|
-
# Ignore cache
|
|
14
|
-
/.sass-cache
|
|
15
|
-
/.cache
|
|
16
|
-
|
|
17
|
-
# Ignore .DS_store file
|
|
18
|
-
.DS_Store
|
data/examples/middleman/Gemfile
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
activate :bh
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
|
|
4
|
-
<!DOCTYPE html>
|
|
5
|
-
<html lang="en">
|
|
6
|
-
<head>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
|
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
10
|
-
<%= stylesheet_link_tag font_awesome_css, bootstrap_css, bootstrap_theme_css %>
|
|
11
|
-
<title>Bh test page (Middleman)</title>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<div class='container'>
|
|
15
|
-
|
|
16
|
-
<h1>Alerts</h1>
|
|
17
|
-
|
|
18
|
-
<!-- Try setting different :dismissible and :context options -->
|
|
19
|
-
<%= alert_box 'You accepted the Terms of service.' %>
|
|
20
|
-
|
|
21
|
-
<% alert_box context: :warning, dismissible: true, id: 'alert', class: :en, data: {js: 1} do %>
|
|
22
|
-
<em>Thanks!</em> You accepted the <%= link_to 'Terms of service', '/#terms' %>.
|
|
23
|
-
<% end %>
|
|
24
|
-
|
|
25
|
-
<h1>Panels</h1>
|
|
26
|
-
|
|
27
|
-
<!-- Try setting different :title, :tag and :context options -->
|
|
28
|
-
<%= panel 'You accepted the Terms of service', title: 'Thanks', tag: :aside %>
|
|
29
|
-
|
|
30
|
-
<% panel heading: 'Thanks', context: :info, id: 'panel', class: :en, data: {js: 1} do %>
|
|
31
|
-
<div class='panel-body'>You accepted the Terms of service. <%= icon :ok %></div>
|
|
32
|
-
<% end %>
|
|
33
|
-
|
|
34
|
-
<h1>Panel rows</h1>
|
|
35
|
-
|
|
36
|
-
<!-- Try setting a different :column_class option -->
|
|
37
|
-
<% panel_row column_class: 'col-sm-12' do %>
|
|
38
|
-
<%= panel 'Plain full-width panel' %>
|
|
39
|
-
<% end %>
|
|
40
|
-
|
|
41
|
-
<% panel_row column_class: 'col-sm-6', id: 'panel-row', class: :en, data: {js: 1} do %>
|
|
42
|
-
<%= panel 'John Smith', title: 'User', context: :info %>
|
|
43
|
-
<% panel title: 'Phone' do %>
|
|
44
|
-
<div class='panel-body'><%= icon :earphone %> 323-555-5555</div>
|
|
45
|
-
<% end %>
|
|
46
|
-
<% end %>
|
|
47
|
-
|
|
48
|
-
<h1>Modals</h1>
|
|
49
|
-
|
|
50
|
-
<!-- Try setting different :title, :size, :button or :context options -->
|
|
51
|
-
<%= modal 'Do what you want!', button: {size: :small, context: :info} %>
|
|
52
|
-
|
|
53
|
-
<% modal size: :large, id: 'modal', button: {class: :en} do %>
|
|
54
|
-
<div class="modal-body">Please accept the Terms of service.</div>
|
|
55
|
-
<div class="modal-footer"><button type="button" class="btn btn-primary">Accept</button></div>
|
|
56
|
-
<% end %>
|
|
57
|
-
|
|
58
|
-
<h1>Navs</h1>
|
|
59
|
-
|
|
60
|
-
<% nav do %>
|
|
61
|
-
<li class='active'>
|
|
62
|
-
<%= link_to 'Home', '/' %>
|
|
63
|
-
</li>
|
|
64
|
-
<li>
|
|
65
|
-
<%= link_to 'Profile', '/#profile' %>
|
|
66
|
-
</li>
|
|
67
|
-
<li>
|
|
68
|
-
<%= link_to 'Settings', '/#settings' %>
|
|
69
|
-
</li>
|
|
70
|
-
<% end %>
|
|
71
|
-
|
|
72
|
-
<br />
|
|
73
|
-
<!-- Try setting different :layout or :as options -->
|
|
74
|
-
<% nav as: :pills, layout: :stacked, id: 'my-nav', data: {value: 1} do %>
|
|
75
|
-
<li class='active'>
|
|
76
|
-
<%= link_to 'Home', '/' %>
|
|
77
|
-
</li>
|
|
78
|
-
<li>
|
|
79
|
-
<%= link_to 'Profile', '/#profile' %>
|
|
80
|
-
</li>
|
|
81
|
-
<li>
|
|
82
|
-
<%= link_to 'Settings', '/#settings' %>
|
|
83
|
-
</li>
|
|
84
|
-
<% end %>
|
|
85
|
-
|
|
86
|
-
<h1>Navbars</h1>
|
|
87
|
-
|
|
88
|
-
<!-- Try adding a horizontal element and setting different :inverted, :fluid, :position or :padding options -->
|
|
89
|
-
<% navbar inverted: true do %>
|
|
90
|
-
<% vertical do %>
|
|
91
|
-
<%= link_to 'Home', '/' %>
|
|
92
|
-
<% end %>
|
|
93
|
-
<% end %>
|
|
94
|
-
|
|
95
|
-
<% navbar id: 'navbar' do %>
|
|
96
|
-
<% vertical id: 'vertical', class: :en, data: {js: 1} do %>
|
|
97
|
-
<%= link_to 'Home', '/' %>
|
|
98
|
-
<% end %>
|
|
99
|
-
<% horizontal class: :en, data: {js: 2} do %>
|
|
100
|
-
<% nav class: 'navbar-left' do %>
|
|
101
|
-
<%= link_to 'Profile', '/#profile' %>
|
|
102
|
-
<%= link_to 'Settings', '/#settings' %>
|
|
103
|
-
<% end %>
|
|
104
|
-
<% end %>
|
|
105
|
-
<% end %>
|
|
106
|
-
|
|
107
|
-
<h1>Buttons</h1>
|
|
108
|
-
|
|
109
|
-
<!-- Try setting different :context, :size and :layout options -->
|
|
110
|
-
<%= button 'Menu' %>
|
|
111
|
-
|
|
112
|
-
<% button context: :warning, id: 'button', class: :en, data: {js: 1} do %>
|
|
113
|
-
Your <em>personal</em> menu
|
|
114
|
-
<% end %>
|
|
115
|
-
|
|
116
|
-
<h1>Dropdowns</h1>
|
|
117
|
-
|
|
118
|
-
<!-- Try setting different :split, :direction, :align, :groupable, :layout, :context or :size options -->
|
|
119
|
-
<% dropdown 'Menu', direction: :up, context: :success, align: :right do %>
|
|
120
|
-
<%= link_to 'Home', '/' %>
|
|
121
|
-
<%= link_to 'Profile', '/#profile' %>
|
|
122
|
-
<%= link_to 'Settings', '/#settings' %>
|
|
123
|
-
<% end %>
|
|
124
|
-
|
|
125
|
-
<% dropdown 'Menu', split: true, id: 'dropdown', button: {class: :en} do %>
|
|
126
|
-
<li role="presentation"><a href="#">Home</a></li>
|
|
127
|
-
<li role="presentation"><a href="#"><%= content_tag :em, 'Profile' %></a></li>
|
|
128
|
-
<% end %>
|
|
129
|
-
|
|
130
|
-
<h1>Progress bars</h1>
|
|
131
|
-
|
|
132
|
-
<!-- Try passing multiple values with different :percentage, :label, :context, :striped, :animated options -->
|
|
133
|
-
<%= progress_bar [{percentage: 75, striped: true}, {percentage: 20, context: :warning, label: true}] %>
|
|
134
|
-
|
|
135
|
-
<%= progress_bar({percentage: 30, id: 'bar', data: {js: 1}}, id: 'container', class: :en) %>
|
|
136
|
-
|
|
137
|
-
<h1>Icons</h1>
|
|
138
|
-
|
|
139
|
-
<!-- Try setting a different :library option -->
|
|
140
|
-
<%= icon :user %>
|
|
141
|
-
|
|
142
|
-
<%= icon :user, library: :font_awesome, class: 'fa-2x', id: 'icon', data: {value: 1} %>
|
|
143
|
-
|
|
144
|
-
<h1>Button to</h1>
|
|
145
|
-
|
|
146
|
-
<%= button_to 'New', '#new', submit_options: {class: 'b'}, class: 'f', method: :get %>
|
|
147
|
-
<br />
|
|
148
|
-
<%= button_to 'New', '#new', submit_options: {class: 'b'}, class: 'f', method: :get, context: :primary %>
|
|
149
|
-
|
|
150
|
-
<% button_to '/#edit', method: :get do %>
|
|
151
|
-
<button id="my-btn-to" data-value="1" class="btn btn-link">Button <strong>styled</strong> as a link</button>
|
|
152
|
-
<% end %>
|
|
153
|
-
|
|
154
|
-
</div>
|
|
155
|
-
<%= javascript_include_tag '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' %>
|
|
156
|
-
<%= javascript_include_tag bootstrap_js %>
|
|
157
|
-
</body>
|
|
158
|
-
</html>
|
data/examples/padrino/Gemfile
DELETED
data/examples/padrino/app/app.rb
DELETED