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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/rails_bootstrap_form/inputs/rich_text_area.rb +21 -0
- data/lib/rails_bootstrap_form/inputs.rb +2 -0
- data/lib/rails_bootstrap_form/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f98bbe1d1d5622bd4c653b8bfb5e3c0d3f36b6cb648bfc5c84eb7810655417c
|
4
|
+
data.tar.gz: 6b839de8bef9b7933fa57c0ff61e3d7c45aa3052304c8b8cf987c3447f47f0c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
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.
|
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-
|
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
|