effective_bootstrap 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6cb78eaa9331f2a6a100761fce34ede5596862f
4
- data.tar.gz: 3380f75ee4aeff5184fec1e7d186b8542b5e52e7
3
+ metadata.gz: a4ec43f24a86db3d6d7a24e365db93e9163d037c
4
+ data.tar.gz: 06d5baab43386a3a3f8b5e0ed742f7ee659766ab
5
5
  SHA512:
6
- metadata.gz: 7a3612ee43886d88fd890ac452bca68bf11be8320b9fe0e79ca2d32ca3a520f0fc24fb199ad1d41df80d4b2847553d8ee36328d5e8d88c7b55393f63411322fd
7
- data.tar.gz: 37c22934d419c7bd2629aaf2442e7d3430d41d354f31e617fad6d1c87f6348a36dbf4e254175fb5f942db415628f3377281cab3884486f719b91866793e0f6c6
6
+ metadata.gz: 4762161acb5b6293f613c847455a4258900703f614033ddb6bbaab501184b90046f01209176a834921e99b19ce1704509a9ddd792416b6e2480432b7c1c7ee69
7
+ data.tar.gz: a614847bda10fe72c9f117de71bed0bb5a0604584c5923b88253f48a6d53538e49bf47a1d0fca7d01d7f934fb89da3e73722468efd6d8f132aa068e4b1ff9718
@@ -23,9 +23,9 @@ module Effective
23
23
 
24
24
  def check_box(name, options = {})
25
25
  Effective::FormInputs::CheckBox.new(name, options, builder: self).to_html {
26
- checked_value = options.delete(:checked_value)
27
- unchecked_value = options.delete(:unchecked_value)
28
- super(name, options, checked_value, unchecked_value)
26
+ checked_value = options.fetch(:checked_value, '1')
27
+ unchecked_value = options.fetch(:unchecked_value, '0')
28
+ super(name, options.except(:checked_value, :unchecked_value), checked_value, unchecked_value)
29
29
  }
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.3.10'.freeze
2
+ VERSION = '0.3.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails