binco 0.0.1 → 0.0.2

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: 174e159bcca99e63b3c550f15252312a83f224dc
4
- data.tar.gz: 5c273c604bf98572a504cf6e4391f28436de2f6d
3
+ metadata.gz: eb25e633d9f19544a32216670110029d71a8a0b2
4
+ data.tar.gz: bd5077086bced8b1ddeeaf42d5d8fde8fd2ea6a2
5
5
  SHA512:
6
- metadata.gz: 434fd2e4feea935bb9370be771d4fde2e8dd99b418e17ed97dc91a068f4e27536bf1c4b6c33df01cbbf8b7c9649da4cfb8e04cbeca5502cb5d1220421a73c5db
7
- data.tar.gz: 6450918e1692b55a8bce1acf20b17f24012e913861e3d9adc1cdaf42d321511546d505328b79fd83dbedeeaf3029ecb0107afad73c5c4bc0d8a5a20c61dc6571
6
+ metadata.gz: 1becc8809b2044cb38a4ef2785ad9dfdb2b6e888402131f981df085ad1241abf5019b30c891e20c3124df42ff68466561092f4fb65a864803c08d0085b4f96a6
7
+ data.tar.gz: bd09f90a1f5fd9666d7f28531b544c149f36a1d7bda2376054d16abb5162a5ebc2c3d70c63ecc2d062b36ee6eaa695eaa7e8a8f03e7fbd032362eeda5ef009b1
data/README.md CHANGED
@@ -95,6 +95,15 @@ In your views, add an element to breadcrumb with:
95
95
  ```
96
96
  Notice that first in first out. So be careful with the order.
97
97
 
98
-
98
+ Your can configure your placeholder and default url for the breadcrumb in an initializer:
99
+
100
+ ```rb
101
+ Binco.configure do |binco|
102
+ binco.breadcrumb_before = { title: 'You are here' }
103
+ binco.breadcrumb_default = [
104
+ { title: 'Index', url: '/' }
105
+ ]
106
+ end
107
+ ```
99
108
 
100
109
  This project rocks and uses MIT-LICENSE.
@@ -5,6 +5,16 @@ module Binco
5
5
  super name, options
6
6
  end
7
7
 
8
+ def telephone_field(name, options = {})
9
+ options = add_class_to_options('form-control', options)
10
+ super name, options
11
+ end
12
+
13
+ def select(method, choices = nil, options = {}, html_options = {}, &block)
14
+ html_options = add_class_to_options('form-control', html_options)
15
+ super method, choices, options, html_options, &block
16
+ end
17
+
8
18
  def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
9
19
  if block_given?
10
20
  super(method, collection, value_method, text_method, options, html_options, &block)
@@ -1,3 +1,3 @@
1
1
  module Binco
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Camacho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties