rails_bootstrap_form 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f773eed0774b5b8895a39fb0e54dd557a4fbc044a4481d1cd9d969e58628ae6d
4
- data.tar.gz: df7e9521626f1359d60c4d334cdb2e94520a18c5c4aad7ebf257874f6d3005b8
3
+ metadata.gz: 3f98bbe1d1d5622bd4c653b8bfb5e3c0d3f36b6cb648bfc5c84eb7810655417c
4
+ data.tar.gz: 6b839de8bef9b7933fa57c0ff61e3d7c45aa3052304c8b8cf987c3447f47f0c5
5
5
  SHA512:
6
- metadata.gz: f436a23b69de6e53d63dd08726270f1e85df5d9f6d3b8ae2030a204edcae1454fb90f16b20fac087583dffebaf67f18053594771c20312fdf9460b8260013a37
7
- data.tar.gz: 5c77b719bebdb2985c056ab03d7153d09e2de6e1ae15602db62395906f105b6b7d1f2271e6c83fbe371bdc27c59ea2220aae0b79cd06ddae7dc5bcca1c2958a5
6
+ metadata.gz: fce1f7f63f502adfa7978cb94e0c2aa5d189e286d8359b2eca9775d81ee39eb9c95045734f9a51692f4b9706a715f09210ca2977280513567fc1d9fdb231672d
7
+ data.tar.gz: 3c344d354b8c8f5496309db25a579231ef82d1eda138044b1ef9d7d27039d349c261f7644228ea3d088e50edd43de90f72dac7ce9282008b5e2a25e963e3e3b3
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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.7.2](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.1...v0.7.2) - 2023-05-25
8
+
9
+ ### What's new
10
+ - Added wrapper method for `rich_text_area`.
11
+
7
12
  ## [0.7.1](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.0...v0.7.1) - 2023-05-24
8
13
 
9
14
  ### 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.7.1)
4
+ rails_bootstrap_form (0.7.2)
5
5
  actionpack (~> 7.0)
6
6
  activemodel (~> 7.0)
7
7
 
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ module RailsBootstrapForm
6
+ module Inputs
7
+ module RichTextArea
8
+ extend ActiveSupport::Concern
9
+
10
+ included do
11
+ def rich_text_area(attribute, options = {})
12
+ options[:class] = ["trix-content", options[:class]].compact.join(" ")
13
+
14
+ field_wrapper_builder(attribute, options) do
15
+ super(attribute, options)
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -27,6 +27,7 @@ module RailsBootstrapForm
27
27
  autoload :PhoneField
28
28
  autoload :RadioButton
29
29
  autoload :RangeField
30
+ autoload :RichTextArea
30
31
  autoload :SearchField
31
32
  autoload :Select
32
33
  autoload :StaticField
@@ -61,6 +62,7 @@ module RailsBootstrapForm
61
62
  include PhoneField
62
63
  include RadioButton
63
64
  include RangeField
65
+ include RichTextArea
64
66
  include SearchField
65
67
  include Select
66
68
  include StaticField
@@ -3,6 +3,6 @@
3
3
  # -*- warn_indent: true -*-
4
4
 
5
5
  module RailsBootstrapForm
6
- VERSION = "0.7.1".freeze
6
+ VERSION = "0.7.2".freeze
7
7
  REQUIRED_RAILS_VERSION = "~> 7.0".freeze
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_bootstrap_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harshal LADHE (shivam091)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-24 00:00:00.000000000 Z
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: generator_spec
@@ -173,6 +173,7 @@ files:
173
173
  - lib/rails_bootstrap_form/inputs/phone_field.rb
174
174
  - lib/rails_bootstrap_form/inputs/radio_button.rb
175
175
  - lib/rails_bootstrap_form/inputs/range_field.rb
176
+ - lib/rails_bootstrap_form/inputs/rich_text_area.rb
176
177
  - lib/rails_bootstrap_form/inputs/search_field.rb
177
178
  - lib/rails_bootstrap_form/inputs/select.rb
178
179
  - lib/rails_bootstrap_form/inputs/static_field.rb