bulma_form_builder 0.3.0 → 0.4.2

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
  SHA256:
3
- metadata.gz: a60707625f70120427987e72f117880d109b3b193bae3ccfb0a2688c2d607509
4
- data.tar.gz: b21b3ae5a78ab04ab1d51143ff70c8192208253c10512b130f2653d18c9c51e0
3
+ metadata.gz: d30231c27a730bc46c531cecf8d388c530d8d81c60ef0cfe16a7421fa63d2322
4
+ data.tar.gz: aa87eaaf5f8fd40f527abcdb65a882fcd3e4b917cfef28e3986520a93cb309b0
5
5
  SHA512:
6
- metadata.gz: 45184ec85d0155745d7fb6ed99dcd572732000fe7078fd9ad448fe35552ac8f87598e21fe71e533e15d82a23728d830295e508b2b9e321ca41d485d0ed75cce1
7
- data.tar.gz: e3bc137abc06fb49efdab1768ba125cbfce97f1de0a56e28b94d964674e0bffd5e5865e5030fc7610155d36d2c4148311147e992af9a0e27ef0cf5b9352d0a8c
6
+ metadata.gz: 6c80adff7f56c6e92740581b3de568f81b4bc4f2692f70f03eae52ccd8fbdeff0e143848025df398c922dd6961045fd3613299cdb93ac63d28c741ebd7423bac
7
+ data.tar.gz: 18c1ebfc071232f2ff763fc40aaeb98d0e49154737f2aab5076f9b57b1ad433f7a9f5587a30d670b216757f36a687608336fedc296d19332e3dc20bddf9478cd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## 0.4.2
2
+
3
+ - Update dependency
4
+ - Fix ruby@2.7 keyword warning
5
+
6
+ ## 0.4.0
7
+
8
+ - Update dependency
9
+ - Fix error display in check_box
10
+
11
+ ## 0.3.1
12
+
13
+ - Update dependency
14
+ - Support for `tag` helper
15
+
1
16
  ## 0.3.0
2
17
 
3
18
  - Add url_field
@@ -5,7 +20,7 @@
5
20
 
6
21
  ## 0.2.1
7
22
 
8
- - Support the check_box helpter option
23
+ - Support the check_box helper option
9
24
 
10
25
  ## 0.2.0
11
26
 
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "rails", ">= 6.0.3.3"
25
+ spec.add_dependency "rails", ">= 6.0.4.1"
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 2.0"
28
28
  spec.add_development_dependency "rake"
@@ -29,7 +29,7 @@ module BulmaFormBuilder
29
29
  include BulmaFormBuilder::Inputs::CollectionCheckBoxes
30
30
  include BulmaFormBuilder::Inputs::CollectionRadioButtons
31
31
 
32
- delegate :content_tag, :capture, :concat, to: :@template
32
+ delegate :content_tag, :capture, :concat, :tag, to: :@template
33
33
 
34
34
  def initialize(object_name, object, template, options)
35
35
  @layout = options[:layout]
@@ -6,7 +6,7 @@ module BulmaFormBuilder
6
6
  options.reverse_merge!(builder: ::BulmaFormBuilder::FormBuilder)
7
7
 
8
8
  _with_bulma_form_field_error_proc do
9
- form_with(options, &block)
9
+ form_with(**options, &block)
10
10
  end
11
11
  end
12
12
 
@@ -15,14 +15,9 @@ module BulmaFormBuilder
15
15
  checkbox = content_tag(:label, class: 'checkbox') do
16
16
  html = check_box_without_bulma(name, check_box_options, checked_value, unchecked_value)
17
17
  html.concat(check_box_label(name)) unless options[:skip_label]
18
- html.concat(generate_error(name)) if options[:error_message]
19
18
  html
20
19
  end
21
-
22
- if options[:help].present?
23
- checkbox.concat(content_tag(:p, options[:help], class: 'help'))
24
- end
25
-
20
+ checkbox.concat(field_help(name, options))
26
21
  checkbox
27
22
  end
28
23
  end
@@ -9,8 +9,10 @@ module BulmaFormBuilder
9
9
  def select_with_bulma(method, choices = nil, options = {}, html_options = {}, &block)
10
10
  html_options[:required] = options[:required]
11
11
 
12
+ div_class = ['select']
13
+ div_class.push('is-fullwidth') if options.delete(:fullwidth)
12
14
  form_field_builder(method, options, html_options) do
13
- content_tag(:div, class: 'select') do
15
+ content_tag(:div, class: div_class.join(' ')) do
14
16
  select_without_bulma(method, choices, options, html_options, &block)
15
17
  end
16
18
  end
@@ -1,3 +1,3 @@
1
1
  module BulmaFormBuilder
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-04 00:00:00.000000000 Z
11
+ date: 2021-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.3.3
19
+ version: 6.0.4.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 6.0.3.3
26
+ version: 6.0.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement