effective_bootstrap 0.3.9 → 0.3.10

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: 6443858776f6375775b1dbde639ab45d9cb53cdf
4
- data.tar.gz: 2ece4b12013167358126fb7b4338600c0d70c813
3
+ metadata.gz: e6cb78eaa9331f2a6a100761fce34ede5596862f
4
+ data.tar.gz: 3380f75ee4aeff5184fec1e7d186b8542b5e52e7
5
5
  SHA512:
6
- metadata.gz: 612681cb5bee5f316d7dd77098b7ea8e547beb5f11a0d0b4d0cb23dbb61a529759dc59b9b441f903d9db1c2037f23cda0cf35772a1076a4c44fc9bacf620a06f
7
- data.tar.gz: 3c9c1ce8befeffd28bc6572a59806fee09522b4a5cfab33c7b444a8d542fe71e1409dbed48e82def9b0fd3cfc6abbd2f3c20aa6e37194670c67843ef8797a149
6
+ metadata.gz: 7a3612ee43886d88fd890ac452bca68bf11be8320b9fe0e79ca2d32ca3a520f0fc24fb199ad1d41df80d4b2847553d8ee36328d5e8d88c7b55393f63411322fd
7
+ data.tar.gz: 37c22934d419c7bd2629aaf2442e7d3430d41d354f31e617fad6d1c87f6348a36dbf4e254175fb5f942db415628f3377281cab3884486f719b91866793e0f6c6
@@ -22,7 +22,11 @@ module Effective
22
22
  alias_method :super_text_area, :text_area
23
23
 
24
24
  def check_box(name, options = {})
25
- Effective::FormInputs::CheckBox.new(name, options, builder: self).to_html { super(name, options) }
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)
29
+ }
26
30
  end
27
31
 
28
32
  def checks(name, choices = nil, *args)
@@ -30,8 +30,8 @@ module Effective
30
30
  # [{'header': [1, 2, 3, 4, false] }],
31
31
  ['bold', 'italic', 'underline'],
32
32
  ['link', 'image', 'video'], # also 'code-block'
33
- [{'list': 'ordered'}, { 'list': 'bullet' }],
34
- [{'align': [] }, 'clean'],
33
+ [{'list': 'ordered'}, {'list': 'bullet'}, 'blockquote'],
34
+ [{'align': [] }, 'clean']
35
35
  ]
36
36
  end
37
37
 
@@ -19,7 +19,7 @@ module Effective
19
19
  end
20
20
 
21
21
  def logic_options
22
- { name: tag_name(args.first), value: args.second }
22
+ { name: tag_name(args.first), value: args.second.to_s }
23
23
  end
24
24
 
25
25
  def validate!(args)
@@ -19,7 +19,7 @@ module Effective
19
19
  end
20
20
 
21
21
  def logic_options
22
- { name: tag_name(args.first), value: args.second }
22
+ { name: tag_name(args.first), value: args.second.to_s }
23
23
  end
24
24
 
25
25
  def validate!(args)
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.3.9'.freeze
2
+ VERSION = '0.3.10'.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.9
4
+ version: 0.3.10
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-14 00:00:00.000000000 Z
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails