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 +4 -4
- data/CHANGELOG.md +16 -1
- data/bulma_form_builder.gemspec +1 -1
- data/lib/bulma_form_builder/form_builder.rb +1 -1
- data/lib/bulma_form_builder/form_helper.rb +1 -1
- data/lib/bulma_form_builder/inputs/check_box.rb +1 -6
- data/lib/bulma_form_builder/inputs/select.rb +3 -1
- data/lib/bulma_form_builder/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d30231c27a730bc46c531cecf8d388c530d8d81c60ef0cfe16a7421fa63d2322
|
4
|
+
data.tar.gz: aa87eaaf5f8fd40f527abcdb65a882fcd3e4b917cfef28e3986520a93cb309b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
23
|
+
- Support the check_box helper option
|
9
24
|
|
10
25
|
## 0.2.0
|
11
26
|
|
data/bulma_form_builder.gemspec
CHANGED
@@ -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.
|
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]
|
@@ -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: '
|
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
|
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.
|
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:
|
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.
|
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.
|
26
|
+
version: 6.0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|