binco 3.1.4 → 3.1.5

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: 8aa0f9d9390c123db1fe22ea9ae807542aa65d6b
4
- data.tar.gz: 12e26cc1aead15e45370a20970ab79041b76ff33
3
+ metadata.gz: 57005035ab05a550ae672e58e4d894932ec71217
4
+ data.tar.gz: c9364159ccba53edf6e81278dfdd30f99b0b0905
5
5
  SHA512:
6
- metadata.gz: 20ceab3b9e86d9cf6b6b918633250a898d8b2216a8a9a6b534c75be6b21cd0f69abb2e7dfa3a5c23a67a4c95403f808553af6d875174f424cde9ce69be0ca604
7
- data.tar.gz: d5689513233ada079526d155c3c3682938d9459ef2e88465f4e7e63741e2ebbf176f744cd7237f45d6eba81b5cc800910035f977461b81ef3f7922cdfe43f1a6
6
+ metadata.gz: d56b2e79a95b1e0ed09a4d6c54b5f1ad4a61e8230d04c803d062a4fef495ebc9238a480698068a85592be95748c0c8dca0084ab676fea6f853b1b843c6734bd0
7
+ data.tar.gz: 36800a3cf15487e1fb9f3d0471790f1c6fb21a5313d754a538306a9c856c6afab870e11b7fa17943b1ac738f366f424fa73e45b80974bd89136f38073e49934c
@@ -161,8 +161,17 @@ module Binco
161
161
  end
162
162
 
163
163
  def addon(icon, options = {})
164
- options = add_class_to_options('input-group-addon', options)
165
- @template.content_tag(:span, icon, options)
164
+ input_group_append(icon, options)
165
+ end
166
+
167
+ def input_group_prepend(content, options = {})
168
+ options = add_class_to_options('input-group-prepend', options)
169
+ @template.content_tag(:div, @template.content_tag(:span, content, { class: 'input-group-text' }), options)
170
+ end
171
+
172
+ def input_group_append(content, options = {})
173
+ options = add_class_to_options('input-group-append', options)
174
+ @template.content_tag(:div, @template.content_tag(:span, content, { class: 'input-group-text' }), options)
166
175
  end
167
176
 
168
177
  private
@@ -1,3 +1,3 @@
1
1
  module Binco
2
- VERSION = '3.1.4'
2
+ VERSION = '3.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binco
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Camacho
@@ -30,7 +30,7 @@ cert_chain:
30
30
  XdmvXYY6Fr9AHqSdbvphaVu+RqBpkBdGUQCcCZ73NjXSUwgJumx1p1A8e4NXrh1e
31
31
  pYh0/Q==
32
32
  -----END CERTIFICATE-----
33
- date: 2018-01-19 00:00:00.000000000 Z
33
+ date: 2018-02-12 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: railties