bmc 1.8.0 → 1.9.0
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 +3 -0
- data/app/helpers/bmc/text_helper.rb +1 -0
- data/app/models/concerns/bmc/model_i18n.rb +2 -1
- data/app/sms/bmc/sms/application_sms.rb +1 -1
- data/app/sms/bmc/sms/strategies/sendinblue.rb +2 -1
- data/lib/bmc/active_model_type_cast.rb +1 -2
- data/lib/bmc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8f6869f10e2734848ffb3c560760346b77d1ee0f67f9b01e592dc53fc82822d
|
|
4
|
+
data.tar.gz: 9f40b8362c12ed6751fd27ea240b29c3e2b8661042a975a098d24010f2c2efe1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1f06aaad7eb328c23821be684cf0614f7e562c128112c6b5ee8d458e759259313ec70e8c4a9db5356782c215b8a5d0a1ac0f7302adeb7943efb477f0baa4e72
|
|
7
|
+
data.tar.gz: 1b4943db09ed13df01692dbd6476a470f1f98093a84b6ba70a6b032f3e2cc024bc7bf4cccc1bf13ed120ee33d6456af918647f5783438b28e5ae66276ba44607
|
data/CHANGELOG.md
CHANGED
|
@@ -119,6 +119,7 @@ module BMC::TextHelper
|
|
|
119
119
|
value = send(helper, value) if helper
|
|
120
120
|
value = t("yes") if value == true
|
|
121
121
|
value = t("no") if value == false
|
|
122
|
+
value = value.to_s if attribute.to_s.split("_").include?("year") && value.to_s.match?(/\A\d{4}\z/)
|
|
122
123
|
value = number(value) if value.is_a?(Numeric)
|
|
123
124
|
value = date(value) if value.is_a?(Date) || value.is_a?(Time)
|
|
124
125
|
|
|
@@ -10,12 +10,11 @@ module BMC::ActiveModelTypeCast
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
module Date
|
|
13
|
-
# rubocop:disable Style/RegexpLiteral
|
|
13
|
+
# rubocop:disable-next Style/RegexpLiteral
|
|
14
14
|
SANITIZABLE_FORMATS = [
|
|
15
15
|
/^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$/,
|
|
16
16
|
/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/,
|
|
17
17
|
].freeze
|
|
18
|
-
# rubocop:enable Style/RegexpLiteral
|
|
19
18
|
|
|
20
19
|
def cast_value(value)
|
|
21
20
|
if sanitizable?(value)
|
data/lib/bmc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bmc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benoit MARTIN-CHAVE
|
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
185
185
|
- !ruby/object:Gem::Version
|
|
186
186
|
version: '0'
|
|
187
187
|
requirements: []
|
|
188
|
-
rubygems_version:
|
|
188
|
+
rubygems_version: 4.0.20
|
|
189
189
|
specification_version: 4
|
|
190
190
|
summary: BMC
|
|
191
191
|
test_files: []
|