rails_bootstrap_form 0.4.0 → 0.4.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: 25354c2cb11c5971bf3435e2415ca37c0fcfabeeb45cd269a8dbecba7d582fd7
4
- data.tar.gz: f695f139348b6fb1f2c054e90f79c6d5c53805ec047ac6d239df946a09039278
3
+ metadata.gz: 258bf9fab2788b0c8cb56a29936c65f5f2db39c4b34f8bf0b0c6cfc1cf9aec0e
4
+ data.tar.gz: bfe585f59942a256f5f7ed95b393acb993499eddfe1f7f7ad67e97184afa0673
5
5
  SHA512:
6
- metadata.gz: ed91e2feb0354818a43161b165ed8bba83b8e29a9f3013d2a3f7df54e23158768332d2381f36132399dedb7531a65abcd9234a70814c9b05f63c6af3ed66c245
7
- data.tar.gz: ea1cf098b34f86c6f5ca4bb1cfc6031a93f81865515e484f6322934e33673b9980c053ccf02db70d302feb520e8766998678505f3e406b805b426dada7d000ee
6
+ metadata.gz: f0d869fb1a264159585ace5eab0a776641358205862bdf072b40c845e922a8e846a2119d32feee31b93dcb35fd9dd1c156669bd05a4260469a15367fdb146650
7
+ data.tar.gz: a67cbe82b6aec6a4459715085eca05d692cb5f3ad5629972785e81c028163e2dbaaaf56d44f036be93f4f79008d924b78161259c13746742129970763676e1e3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_bootstrap_form (0.4.0)
4
+ rails_bootstrap_form (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -40,7 +40,7 @@ module RailsBootstrapForm
40
40
 
41
41
  DATE_SELECT_HELPERS.each do |field_tag_name|
42
42
  define_method(field_tag_name) do |attribute, options = {}, html_options = {}, &block|
43
- options = options.reverse_merge(bootstrap_form: {field_class: "form-select"})
43
+ options = {bootstrap_form: {field_class: "form-select"}}.deep_merge!(options)
44
44
 
45
45
  field_wrapper_builder(attribute, options, html_options) do
46
46
  tag.div(class: control_specific_class(field_tag_name)) do
@@ -51,7 +51,7 @@ module RailsBootstrapForm
51
51
  end
52
52
 
53
53
  def select(attribute, choices = nil, options = {}, html_options = {}, &block)
54
- options = options.reverse_merge(bootstrap_form: {field_class: "form-select"})
54
+ options = {bootstrap_form: {field_class: "form-select"}}.deep_merge!(options)
55
55
 
56
56
  field_wrapper_builder(attribute, options, html_options) do
57
57
  super(attribute, choices, options, html_options, &block)
@@ -59,34 +59,34 @@ module RailsBootstrapForm
59
59
  end
60
60
 
61
61
  def collection_select(attribute, collection, value_method, text_method, options = {}, html_options = {})
62
- options = options.reverse_merge(bootstrap_form: {field_class: "form-select"})
62
+ options = {bootstrap_form: {field_class: "form-select"}}.deep_merge!(options)
63
63
 
64
64
  field_wrapper_builder(attribute, options, html_options) do
65
65
  super(attribute, collection, value_method, text_method, options, html_options)
66
66
  end
67
67
  end
68
68
 
69
- def range_field(attribute, options = {})
70
- options = options.reverse_merge(bootstrap_form: {field_class: "form-range"})
69
+ def time_zone_select(attribute, priority_zones = nil, options = {}, html_options = {})
70
+ options = {bootstrap_form: {field_class: "form-select"}}.deep_merge!(options)
71
71
 
72
- field_wrapper_builder(attribute, options) do
73
- super(attribute, options)
72
+ field_wrapper_builder(attribute, options, html_options) do
73
+ super(attribute, priority_zones, options, html_options)
74
74
  end
75
75
  end
76
76
 
77
- def color_field(attribute, options = {})
78
- options = options.reverse_merge(bootstrap_form: {field_class: "form-control form-control-color"})
77
+ def range_field(attribute, options = {})
78
+ options = {bootstrap_form: {field_class: "form-range"}}.deep_merge!(options)
79
79
 
80
80
  field_wrapper_builder(attribute, options) do
81
81
  super(attribute, options)
82
82
  end
83
83
  end
84
84
 
85
- def time_zone_select(attribute, priority_zones = nil, options = {}, html_options = {})
86
- options = options.reverse_merge(bootstrap_form: {field_class: "form-select"})
85
+ def color_field(attribute, options = {})
86
+ options = {bootstrap_form: {field_class: "form-control form-control-color"}}.deep_merge!(options)
87
87
 
88
- field_wrapper_builder(attribute, options, html_options) do
89
- super(attribute, priority_zones, options, html_options)
88
+ field_wrapper_builder(attribute, options) do
89
+ super(attribute, options)
90
90
  end
91
91
  end
92
92
 
@@ -3,6 +3,6 @@
3
3
  # -*- warn_indent: true -*-
4
4
 
5
5
  module RailsBootstrapForm
6
- VERSION = "0.4.0".freeze
6
+ VERSION = "0.4.1".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.4.0
4
+ version: 0.4.1
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-15 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: generator_spec