bulma_form_builder 0.1.0 → 0.1.1

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: 93dc7a5a3da2b117075258e5d6e13c2edd96329443b456ecbd1dade6a59456db
4
- data.tar.gz: a8a03a1e51a1407195305e49976796636ac442db30ccb42db115e5a52b7ad740
3
+ metadata.gz: 3810c3622b59cb88b1c2861f1a441f63ff79717eba2e2f25472d44ad1049aaad
4
+ data.tar.gz: 4d67a0cc8e74e5bcc59788ce87b9f555802673211abbe9f8f9b123face322d52
5
5
  SHA512:
6
- metadata.gz: ed585ec68ff443b33ba8b55147577fac46e67ed04edd407cd97404e12a810b0c3222f16d38eea4cb2b057470812e30c0faf144c3111f456573d116ecfb7038c2
7
- data.tar.gz: 2346c2105b2fd649da3b2ed4adbc3bf061d412b3a8dee839662c8b0bee9acbb7dff9e9eb44a82c4b86ab9fbe69e8b082ecd6938ba362a2c77f4b19852457ae7e
6
+ metadata.gz: 39c52166549b552ef11da6e2c67159c03f57a95024997839a90b81f80bccdb11797b7475e5df3261012183f348307f0adf80a4c5a918e07285710e0a0ed1447c
7
+ data.tar.gz: da8ebbb5f51ea6b1bf58c9a3abeea9cb25784860873a4652a2b2edc15f5684e9382d48bc9b5af1c708635f531f24db54d67e85c5359556118444cda5edb8cef8
@@ -0,0 +1,7 @@
1
+ ## 0.1.1
2
+
3
+ - Add wrapper_class option
4
+
5
+ ## 0.1.0
6
+
7
+ - First Release
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bulma_form_builder (0.1.0)
4
+ bulma_form_builder (0.1.1)
5
5
  rails (>= 5.2.0)
6
6
 
7
7
  GEM
@@ -6,7 +6,7 @@ module BulmaFormBuilder
6
6
  name = args.first
7
7
  options = args.extract_options!
8
8
 
9
- content_tag(:div, class: 'field') do
9
+ content_tag(:div, class: form_field_classes(options)) do
10
10
  concat field_label(name, options) unless options[:hide_label]
11
11
  concat field_control(&block)
12
12
  concat field_help(name, options)
@@ -32,5 +32,11 @@ module BulmaFormBuilder
32
32
  classes << 'required' if options[:required]
33
33
  label(name, options[:label], class: classes)
34
34
  end
35
+
36
+ def form_field_classes(options)
37
+ classes = %w[field]
38
+ classes << options.delete(:wrapper_class) if options[:wrapper_class].present?
39
+ classes
40
+ end
35
41
  end
36
42
  end
@@ -1,3 +1,3 @@
1
1
  module BulmaFormBuilder
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-08 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -77,6 +77,7 @@ files:
77
77
  - ".gitignore"
78
78
  - ".rspec"
79
79
  - ".travis.yml"
80
+ - CHANGELOG.md
80
81
  - CODE_OF_CONDUCT.md
81
82
  - Gemfile
82
83
  - Gemfile.lock