rails_bootstrap_form 0.8.1 → 0.8.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: 166829fc1aa39488cd3e86d83cc4639c817a4e76d93b92446994628e37918517
4
- data.tar.gz: a3e57d3932e375cf5ac5f0015254bf5764ae890b2ae929ff4144ebd2aa0052ae
3
+ metadata.gz: e02719566479d775dbcff16d248f1a2498c34a71000c192202d45656b5412343
4
+ data.tar.gz: 26b36857096e847a7c2fc43c83ff3dff3b49f76d6d3b053bbefb3f98a8fa01d0
5
5
  SHA512:
6
- metadata.gz: 8be846d6efeb07efb8fd98a3bdea75bce5c6c891066c80253438695030dfc606d251aa9fe07fb7c5b0e3956436e238bd64817952aa2592dd87f79e05c6753ff5
7
- data.tar.gz: 5dc1fa8c0807972eae199880e8d76fc07c63b7f1f58643e56790046eeb0e08fe2dad1935dc9e7c2ef44cadceb339c640cab74a041ec9021be742fd927bde36cf
6
+ metadata.gz: 4e17627f2bdb97af7c136d211428695bc853490d3f7fd2c65fb29de6199c8744782852c2c92b72f40c134f2c4285ef76684e5574644fda4ea77e59dd8e7c27f1
7
+ data.tar.gz: 85218ad2ab4b9bf3a22f478dcdf150930453d4326e51807f3018278df3c0d3e93d30b99af1e04b52f47765f5626f5899b8c26d7156a8b3a94aadf7886b536d94
data/CHANGELOG.md CHANGED
@@ -4,6 +4,24 @@ You can find recent releases with docs in GitHub:
4
4
 
5
5
  https://github.com/shivam091/rails_bootstrap_form/releases
6
6
 
7
+ ## [0.8.2](https://github.com/shivam091/rails_bootstrap_form/compare/v0.8.1...v0.8.2) - 2023-05-28
8
+
9
+ ### What's fixed
10
+
11
+ - Fixed error causing `fields_for` to fail when object is passed in method.
12
+
13
+ ## [0.8.1](https://github.com/shivam091/rails_bootstrap_form/compare/v0.8.0...v0.8.1) - 2023-05-28
14
+
15
+ ### What's new
16
+
17
+ - Updated README
18
+ - Added support to add `required` class to label depending on field's `required` option
19
+ - Added specs for `Labels`, `HelpText`, `InputGroupBuilder`, and `inline` form layout
20
+
21
+ ### What's changed
22
+ - Replaced `div` by `fieldset` for dropdowns of `date_select`, `time_select`, and `datetime_select`
23
+ - Removed block parameter from `collection_check_boxes` and `collection_radio_buttons`
24
+
7
25
  ## [0.8.0](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.2...v0.8.0) - 2023-05-26
8
26
 
9
27
  ### What's new
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_bootstrap_form (0.8.1)
4
+ rails_bootstrap_form (0.8.2)
5
5
  actionpack (~> 7.0)
6
6
  activemodel (~> 7.0)
7
7
 
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # RailsBootstrapForm
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/rails_bootstrap_form.svg)](https://badge.fury.io/rb/rails_bootstrap_form)
4
+
3
5
  **rails_bootstrap_form** is a Rails form builder that makes it super easy to integrate [Bootstrap 5](https://getbootstrap.com/) forms into your Rails application.
4
6
  `rails_bootstrap_forms`'s form helpers generate the form field and its label along with all the Bootstrap mark-up required for proper Bootstrap display.
5
7
 
@@ -25,7 +27,7 @@ for setting up `application.scss` and `application.js`.
25
27
  Add the `rails_bootstrap_form` gem to your `Gemfile`:
26
28
 
27
29
  ```ruby
28
- gem "rails_bootstrap_form", "~> 0.8.1"
30
+ gem "rails_bootstrap_form", "~> 0.8.2"
29
31
  ```
30
32
 
31
33
  Then:
@@ -42,7 +42,8 @@ module RailsBootstrapForm
42
42
 
43
43
  def fields_for_options(record_object, fields_options)
44
44
  field_options = record_object if record_object.is_a?(Hash) && record_object.extractable_options?
45
- field_options = {bootstrap_form: options[:bootstrap_form]}.deep_merge!(field_options)
45
+ field_options = {bootstrap_form: options.fetch(:bootstrap_form, {})}
46
+ field_options.deep_merge!(field_options) if field_options.respond_to?(:deep_merge!)
46
47
  field_options
47
48
  end
48
49
 
@@ -3,6 +3,6 @@
3
3
  # -*- warn_indent: true -*-
4
4
 
5
5
  module RailsBootstrapForm
6
- VERSION = "0.8.1".freeze
6
+ VERSION = "0.8.2".freeze
7
7
  REQUIRED_RAILS_VERSION = "~> 7.0".freeze
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_bootstrap_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harshal LADHE (shivam091)