helper_methods 0.0.18 → 0.0.19

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: 090b00a37bf8028c78ab5a0b1c8e653c387c7543
4
- data.tar.gz: 26bcaa37bb9fda659265a75095b1f34511b41a62
3
+ metadata.gz: f15ad1d82a091ec09ce7cb5174c26589436fdfc5
4
+ data.tar.gz: 280e8b5a08c511944d867da8c780ac47fc9550bc
5
5
  SHA512:
6
- metadata.gz: 54ec42fcb84f70f242c6934e5210767c44c9dbad39565613db0c2a8d88137f4f14e0f82a2f96726e7c91ef319ec5c978e29aa626c08db2ac7a31efdf8dfce8a6
7
- data.tar.gz: 2c5df953cd70c5c207161cf0a479f51116d51fb30832bbf598989394dd10da7e1c0461a5a17ce67896616c85d770ee22935174992df176f433782f2ed74ca59f
6
+ metadata.gz: 3a70d7eb8a302edffce843df252e972081262091047e97b03ae8177eb39e99dab43a1569553c067ca5d0711ef3d079c7d317d2ffb39ff9bc4126f42fb6e2ebdd
7
+ data.tar.gz: e2de050f451f5380ea0b6da9ac76e12d40167dbc1d7773c24481499beccf5fbf83f19234216d1c7d6610cef70dbbafa0c6e3d3b06d48c1b4f369dfce037b129b
@@ -43,18 +43,17 @@ module HelperMethods
43
43
  end
44
44
 
45
45
  def bootstrap_icon(icon, text="", direction="l")
46
- return "<i class='icon-#{icon}'></i> #{text}".html_safe if direction == 'l'
47
- return "#{text} <i class='icon-#{icon}'></i>".html_safe if direction == 'r'
46
+ return %(<span class="icon"></span> #{text}).html_safe if direction == 'l'
47
+ return %(#{text} <span class="icon"></span>).html_safe if direction == 'r'
48
48
  end
49
49
 
50
50
  def bootstrap_label(text, name="")
51
- name = "label-#{name}" unless name.nil?
52
- return %(<span class="label #{name}">#{text}</span>).html_safe
51
+
52
+ return %(<span class="label label-#{name}">#{text}</span>).html_safe
53
53
  end
54
54
 
55
55
  def bootstrap_badge(text, name="")
56
- name = "badge-#{name}" unless name.nil?
57
- return %(<span class="badge #{name}">#{text}</span>).html_safe
56
+ return %(<span class="#{name}">#{text}</span>).html_safe
58
57
  end
59
58
 
60
59
  def gravatar(email, html_options = {})
@@ -1,3 +1,3 @@
1
1
  module HelperMethods
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helper_methods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Martins