bulma_form_builder 0.4.0 → 0.4.3

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: 8a581612d0a16c72bfcae34bbe63b7ef19294b7459743841350cb1246cf8620c
4
- data.tar.gz: bf8a24194bda0d5b1d4d33f0b4a5ff30699a7b0e17a6cf1744e257f01e62ef61
3
+ metadata.gz: fa2d8476549cce101f4a623ae2348637d0681747aaa5ff0fbb4522e330a13600
4
+ data.tar.gz: 2a49bb57aa562be10bcc0fc0ab4ffa6fa527f8b77dee437d07f81232ad9f393d
5
5
  SHA512:
6
- metadata.gz: 4bfd25b8c4887bd2fa8fe47cba40042020e205984023c0eae521dd00ca29ebb958ae82e4a615db20c2efa9f1197a380404e251b1131ef9563c15e3c02fda4bc0
7
- data.tar.gz: bd5ffa6a3a92232a8d23f789000e4c6a81f8c8f188bb3e3068f5d6468093eb93be94eb7a9908079ed5d4c7dce901d546ab0f23d2886cb1e46bf7c7cf0963b49c
6
+ metadata.gz: c1d2d69ef635a2a19c78f67e677c480e44c689534686094dffd525e935907dc1267d605056d67ac11b22e17de8a9d6da9ce61b10d7a5465f4aac596aa189a01b
7
+ data.tar.gz: 74843ddf3d83f0ddd43ea90db24927aaee1ca1d178bc3a284924717d6699ca71172f27aef1759e6c3b4e4cae174ad7cfca2653eceb825b983fa84fd83e67eb57
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.4.3
2
+
3
+ - Support Multiple select (#15)
4
+
5
+ ## 0.4.2
6
+
7
+ - Update dependency
8
+ - Fix ruby@2.7 keyword warning
9
+
1
10
  ## 0.4.0
2
11
 
3
12
  - Update dependency
@@ -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.7"
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"
@@ -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
 
@@ -9,8 +9,12 @@ 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)
14
+ div_class.push('is-multiple') if html_options[:multiple]
15
+
12
16
  form_field_builder(method, options, html_options) do
13
- content_tag(:div, class: 'select') do
17
+ content_tag(:div, class: div_class.join(' ')) do
14
18
  select_without_bulma(method, choices, options, html_options, &block)
15
19
  end
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module BulmaFormBuilder
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.3'
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.4.0
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-24 00:00:00.000000000 Z
11
+ date: 2022-08-01 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.7
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.7
26
+ version: 6.0.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement