rails_bootstrap_form 0.7.0 → 0.7.1

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: ad6e14683d4d77bee3ee35855f75a8af8258bf8208f47504678e2a9d9b3be743
4
- data.tar.gz: f0a40a462746c5990a5df46ef604fce57a43359cda481b42557ee5e182e65019
3
+ metadata.gz: f773eed0774b5b8895a39fb0e54dd557a4fbc044a4481d1cd9d969e58628ae6d
4
+ data.tar.gz: df7e9521626f1359d60c4d334cdb2e94520a18c5c4aad7ebf257874f6d3005b8
5
5
  SHA512:
6
- metadata.gz: c4db5095b17363d92f5fe629d05a8cc1031e925aeecc461a113a905dd98e3b6b6bff3298c3154332b82160a3adfd72e358cef2578bc7ecb0af24296d0bdd9102
7
- data.tar.gz: 603478636468cc3a2d379b6499a15674b21d990aed61b333b2aa3db356b96af703dc423b67c2fb1b0a4a74a1589c02bd11e0c11c91229d526a65c330e6bbda41
6
+ metadata.gz: f436a23b69de6e53d63dd08726270f1e85df5d9f6d3b8ae2030a204edcae1454fb90f16b20fac087583dffebaf67f18053594771c20312fdf9460b8260013a37
7
+ data.tar.gz: 5c77b719bebdb2985c056ab03d7153d09e2de6e1ae15602db62395906f105b6b7d1f2271e6c83fbe371bdc27c59ea2220aae0b79cd06ddae7dc5bcca1c2958a5
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.1](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.0...v0.7.1) - 2023-05-24
8
+
9
+ ### What's new
10
+ - Added wrapper method for `weekday_select`.
11
+
7
12
  ## [0.7.0](https://github.com/shivam091/rails_bootstrap_form/compare/v0.6.2...v0.7.0) - 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.0)
4
+ rails_bootstrap_form (0.7.1)
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 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
@@ -38,6 +38,7 @@ module RailsBootstrapForm
38
38
  autoload :TimeZoneSelect
39
39
  autoload :UrlField
40
40
  autoload :WeekField
41
+ autoload :WeekdaySelect
41
42
 
42
43
  include Base
43
44
  include CheckBox
@@ -71,5 +72,6 @@ module RailsBootstrapForm
71
72
  include TimeZoneSelect
72
73
  include UrlField
73
74
  include WeekField
75
+ include WeekdaySelect
74
76
  end
75
77
  end
@@ -3,6 +3,6 @@
3
3
  # -*- warn_indent: true -*-
4
4
 
5
5
  module RailsBootstrapForm
6
- VERSION = "0.7.0".freeze
6
+ VERSION = "0.7.1".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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harshal LADHE (shivam091)
@@ -184,6 +184,7 @@ files:
184
184
  - lib/rails_bootstrap_form/inputs/time_zone_select.rb
185
185
  - lib/rails_bootstrap_form/inputs/url_field.rb
186
186
  - lib/rails_bootstrap_form/inputs/week_field.rb
187
+ - lib/rails_bootstrap_form/inputs/weekday_select.rb
187
188
  - lib/rails_bootstrap_form/version.rb
188
189
  - sig/rails_bootstrap_form.rbs
189
190
  homepage: https://github.com/shivam091/rails_bootstrap_form