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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a62bc453be7a80f2662495a8b88d3693f79fcd47
4
- data.tar.gz: a74b8b4b82622596e93622f1a177baaa69295b97
3
+ metadata.gz: cce44a5f4f660d7d563d4e6ab7ae04f684566372
4
+ data.tar.gz: a9acb3e9fe8c95f0c1a6e05d3e5cba0356b0227d
5
5
  SHA512:
6
- metadata.gz: 4a0b236f37c069ff6ec9031250be582a933562461f339579205a1c6d051ec5a6dc6526cb56dddbd875bf984bdb983a40c8c3b773e26c9fffe01cd6c2916fc165
7
- data.tar.gz: 70d8233cb4b448b15bd70cdd6b99d9a358ac895f6b039518ca0cd8d089b81fa29d923aad511105e51940a884e1bb0507785a42bf8774cbf915f2374efc2cc665
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
@@ -1,3 +1,3 @@
1
1
  module BootstrapBuilders
2
- VERSION = "0.0.33".freeze
2
+ VERSION = "0.0.34".freeze
3
3
  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.33
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-01-25 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails