bootstrap_help 0.0.26 → 0.0.28

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: a32fadf95b67e0575623ed3c24102eb20243ad93
4
- data.tar.gz: cc6a822b26a711b929dd834268cadaedeccbe646
3
+ metadata.gz: 009745243b1acf73fa3dad07f238728299c96325
4
+ data.tar.gz: ba4355e89e5251daed1dc606b94cea72cef4908a
5
5
  SHA512:
6
- metadata.gz: b0c168d815e67de8bcb990b97d68cc6131be4c8202331bc33259f3eaffd9c25bac44bb220288ae27a2645d04fef5c152ff8bcd6f29f5c23d9b93e63493179320
7
- data.tar.gz: f41ec31f99b912a2676065e94b5a99d12ca15d5ad46e34da80914eea5783bc9d53abe805baec5ff01b65e048e5cc8ea853f0426ab6f07568197546186f22f350
6
+ metadata.gz: cd050bc37813840f4f73e86e438acefab81b8fed026ccd8ea2b843d90c6e6407f3087906b5c830477ccd6585d368d2b380a3519b8625f3f2690c64224b89adec
7
+ data.tar.gz: ea0f937330ed2ec0b896c5c7575a1a9f0551bbf1c06a3bfec87a8f5a9d08c3a1dc8051828bc8fd072f277aac35618792bf6620d49760cfbff614e1e8636148bd
@@ -29,7 +29,8 @@ module BootstrapHelp
29
29
  button_options = append_css_class("btn btn-primary", options)
30
30
  link_to url, button_options do
31
31
  if icon_suffix.present?
32
- concat(content_tag :i, nil, class: "icon-#{icon_suffix}")
32
+ concat(content_tag :i, nil, class: "icon-#{icon_suffix} icon-white")
33
+ name = " #{name}"
33
34
  end
34
35
  concat(name)
35
36
  end
@@ -1,3 +1,3 @@
1
1
  module BootstrapHelp
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.28"
3
3
  end
@@ -30,7 +30,7 @@ describe BootstrapHelp::ButtonHelpers do
30
30
  end
31
31
 
32
32
  it "returns a primary button with an icon when specified" do
33
- expected_result = "<a class=\"btn btn-primary\" href=\"#\"><i class=\"icon-edit\"></i>New Store</a>"
33
+ expected_result = "<a class=\"btn btn-primary\" href=\"#\"><i class=\"icon-edit icon-white\"></i> New Store</a>"
34
34
  expect(helpers.button_to('New Store', '#', icon: "edit")).
35
35
  to eq(expected_result)
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Klina