bootstrap_builders 0.0.33 → 0.0.34
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 +4 -4
- data/README.md +12 -2
- data/app/helpers/bootstrap_builders/application_helper.rb +9 -0
- data/lib/bootstrap_builders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cce44a5f4f660d7d563d4e6ab7ae04f684566372
|
4
|
+
data.tar.gz: a9acb3e9fe8c95f0c1a6e05d3e5cba0356b0227d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d148e8280fed214436d204723dca8b56da83eb91bcad5c2036cfc94019c4267908efbf4339e292a89f447a3e8ad6b786606b15aa6538dd8112795dbc8546ce
|
7
|
+
data.tar.gz: 7291cc3a7bd743506733861b9a254a8fc521973c58602f3ab0145fd625ebdf024fe60300be96976b0cff0f219ee346a0a0645492af2111a543e270fcd513e4e5
|
data/README.md
CHANGED
@@ -33,6 +33,16 @@ Then add to your `application.css`:
|
|
33
33
|
= f.input :something_at, as: :bb_date_time_picker
|
34
34
|
```
|
35
35
|
|
36
|
+
You might encounter some trouble with specs. Use the helpers:
|
37
|
+
```ruby
|
38
|
+
config.include BootstrapBuilders::CapybaraSpecHelpers
|
39
|
+
```
|
40
|
+
|
41
|
+
And in the test:
|
42
|
+
```ruby
|
43
|
+
set_bb_date_input ".subscription_start_date", 2.days.from_now.to_date
|
44
|
+
```
|
45
|
+
|
36
46
|
### Panel
|
37
47
|
|
38
48
|
1. Panel in all its glory with elements and classes
|
@@ -112,11 +122,11 @@ Use responsive mixins to only apply certain CSS rules on specific sizes, below o
|
|
112
122
|
|
113
123
|
```scss
|
114
124
|
.some-class {
|
115
|
-
@include when-sm-down() {
|
125
|
+
@include bb-when-sm-down() {
|
116
126
|
width: 100px;
|
117
127
|
}
|
118
128
|
|
119
|
-
@include when-md-up() {
|
129
|
+
@include bb-when-md-up() {
|
120
130
|
width: 200px;
|
121
131
|
}
|
122
132
|
}
|
@@ -1,4 +1,13 @@
|
|
1
1
|
module BootstrapBuilders::ApplicationHelper
|
2
|
+
def bb_attribute_row(title, value)
|
3
|
+
content_tag :tr do
|
4
|
+
parts = []
|
5
|
+
parts << content_tag(:th, title)
|
6
|
+
parts << content_tag(:td, value)
|
7
|
+
safe_join parts
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
2
11
|
def bb_attribute_rows(model, attributes)
|
3
12
|
BootstrapBuilders::AttributeRows.new(model: model, attributes: attributes, context: self).html
|
4
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_builders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|