rails_bootstrap_form 0.7.0 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/lib/rails_bootstrap_form/inputs/rich_text_area.rb +21 -0
- data/lib/rails_bootstrap_form/inputs/weekday_select.rb +21 -0
- data/lib/rails_bootstrap_form/inputs.rb +4 -0
- data/lib/rails_bootstrap_form/version.rb +1 -1
- metadata +4 -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,16 @@ 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
|
+
|
12
|
+
## [0.7.1](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.0...v0.7.1) - 2023-05-24
|
13
|
+
|
14
|
+
### What's new
|
15
|
+
- Added wrapper method for `weekday_select`.
|
16
|
+
|
7
17
|
## [0.7.0](https://github.com/shivam091/rails_bootstrap_form/compare/v0.6.2...v0.7.0) - 2023-05-24
|
8
18
|
|
9
19
|
### 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
|
@@ -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 WeekdaySelect
|
8
|
+
extend ActiveSupport::Concern
|
9
|
+
|
10
|
+
included do
|
11
|
+
def weekday_select(attribute, options = {}, html_options = {}, &block)
|
12
|
+
options = {bootstrap_form: {field_class: "form-select"}}.deep_merge!(options)
|
13
|
+
|
14
|
+
field_wrapper_builder(attribute, options, html_options) do
|
15
|
+
super(attribute, options, html_options, &block)
|
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
|
@@ -38,6 +39,7 @@ module RailsBootstrapForm
|
|
38
39
|
autoload :TimeZoneSelect
|
39
40
|
autoload :UrlField
|
40
41
|
autoload :WeekField
|
42
|
+
autoload :WeekdaySelect
|
41
43
|
|
42
44
|
include Base
|
43
45
|
include CheckBox
|
@@ -60,6 +62,7 @@ module RailsBootstrapForm
|
|
60
62
|
include PhoneField
|
61
63
|
include RadioButton
|
62
64
|
include RangeField
|
65
|
+
include RichTextArea
|
63
66
|
include SearchField
|
64
67
|
include Select
|
65
68
|
include StaticField
|
@@ -71,5 +74,6 @@ module RailsBootstrapForm
|
|
71
74
|
include TimeZoneSelect
|
72
75
|
include UrlField
|
73
76
|
include WeekField
|
77
|
+
include WeekdaySelect
|
74
78
|
end
|
75
79
|
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.
|
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
|
@@ -184,6 +185,7 @@ files:
|
|
184
185
|
- lib/rails_bootstrap_form/inputs/time_zone_select.rb
|
185
186
|
- lib/rails_bootstrap_form/inputs/url_field.rb
|
186
187
|
- lib/rails_bootstrap_form/inputs/week_field.rb
|
188
|
+
- lib/rails_bootstrap_form/inputs/weekday_select.rb
|
187
189
|
- lib/rails_bootstrap_form/version.rb
|
188
190
|
- sig/rails_bootstrap_form.rbs
|
189
191
|
homepage: https://github.com/shivam091/rails_bootstrap_form
|