alchemy_cms 7.4.7 → 7.4.8
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.
Potentially problematic release.
This version of alchemy_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/components/alchemy/ingredients/datetime_view.rb +4 -2
- data/lib/alchemy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1833c29088de357bd3b28c8054bee0b0a718508df4e1649e5652d6ae2bc2a5c8
|
4
|
+
data.tar.gz: c03b780f7391b547f82f23988b8ce664e98d8aa138ffd76336e1116e019c6545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aa3d987ae97d97b583186ac049068a673cbd7dc390e9472b923f422ee1a9000dd6b6ae16a349d3ccb0c1d9f2cb9ab8cf7bf6109a8e32918c8a13812913c60ba
|
7
|
+
data.tar.gz: 420ec863cdd752f399e19d7bc7e0061acbb6d456051777732515d79121b53cb2d19dcc61e29a6baed5733ca42921c6d8adef912124ea82151d8a4a4c2cfee1a3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 7.4.8 (2025-08-15)
|
4
|
+
|
5
|
+
- [7.4-stable] fix(DatetimeView): Use settings value if present [#3350](https://github.com/AlchemyCMS/alchemy_cms/pull/3350) ([alchemycms-bot](https://github.com/alchemycms-bot))
|
6
|
+
|
3
7
|
## 7.4.7 (2025-07-22)
|
4
8
|
|
5
9
|
- [7.4-stable] Harden picture descriptions integration spec [#3342](https://github.com/AlchemyCMS/alchemy_cms/pull/3342) ([alchemycms-bot](https://github.com/alchemycms-bot))
|
@@ -1,13 +1,15 @@
|
|
1
1
|
module Alchemy
|
2
2
|
module Ingredients
|
3
3
|
class DatetimeView < BaseView
|
4
|
+
DEFAULT_DATE_FORMAT = :"alchemy.default"
|
5
|
+
|
4
6
|
attr_reader :date_format
|
5
7
|
|
6
8
|
# @param ingredient [Alchemy::Ingredient]
|
7
9
|
# @param date_format [String] The date format to use. Use either a strftime format string, a I18n format symbol or "rfc822". Defaults to "time.formats.alchemy.default".
|
8
|
-
def initialize(ingredient, date_format:
|
10
|
+
def initialize(ingredient, date_format: nil, html_options: {})
|
9
11
|
super(ingredient)
|
10
|
-
@date_format = settings_value(:date_format, value: date_format)
|
12
|
+
@date_format = settings_value(:date_format, value: date_format) || DEFAULT_DATE_FORMAT
|
11
13
|
end
|
12
14
|
|
13
15
|
def call
|
data/lib/alchemy/version.rb
CHANGED