alchemy_cms 7.3.6 → 7.3.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb126235f1ddf15244e37704736d4af514e7fcacf8179af9a7b6dc6183895d88
4
- data.tar.gz: cb420ae1a3f848d9b5aa4da402f3799a579eb6e44a6e5809b595082a45aad99a
3
+ metadata.gz: 7793f89e30c4c26dbffd0f1709da0993e58f5481ea71ab40affe22f03a17a349
4
+ data.tar.gz: 465f1c1247818a0f5b9abdd912a0ffb89d3229b4ee88d5ab72ad113d50540d68
5
5
  SHA512:
6
- metadata.gz: 57a05f8db5772973aec3d79cc794ef47acc96096100b2a31382c8205958828f332fe3cf925e3d0a0d31b72d30fa91f376bf5a2f0185507035546ebbe9f321c02
7
- data.tar.gz: ba3bba1f781513df91093bdb74b6f897838c6f2fce85bdeb4f4921c7e29eb5f79fea8846219c76356877cae1eb55a9aabc7691c982685560e0b3f169820f23cd
6
+ metadata.gz: 1b4a4f4977cac620606c08a44112d8d69b516370ef22717b4834a6323ec68f9cf57246ce9df618cc00d6ae4bbd1d4a865cf90291225bee251e490fb1f498fc28
7
+ data.tar.gz: eab228151d87bf04343c52a2b8c11dc67aea7592e16c4118735fb40801cf321e2723c7ffa38312aeb9991003d662ce7af6375ceaaab50c1cf33bc2625e4950e0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.3.7 (2025-08-15)
4
+
5
+ - [7.3-stable] fix(DatetimeView): Use settings value if present [#3349](https://github.com/AlchemyCMS/alchemy_cms/pull/3349) ([alchemycms-bot](https://github.com/alchemycms-bot))
6
+
3
7
  ## 7.3.6 (2025-03-17)
4
8
 
5
9
  - [7.3-stable] Fix link dialog for links with url scheme mailto [#3206](https://github.com/AlchemyCMS/alchemy_cms/pull/3206) ([alchemycms-bot](https://github.com/alchemycms-bot))
data/Gemfile CHANGED
@@ -15,7 +15,7 @@ if ENV["DB"] == "mysql" || ENV["DB"] == "mariadb"
15
15
  end
16
16
  gem "pg", "~> 1.0" if ENV["DB"] == "postgresql"
17
17
 
18
- gem "alchemy_i18n", git: "https://github.com/AlchemyCMS/alchemy_i18n.git", branch: "main"
18
+ gem "alchemy_i18n", git: "https://github.com/AlchemyCMS/alchemy_i18n.git", branch: "4.2-stable"
19
19
 
20
20
  group :development, :test do
21
21
  gem "execjs", "~> 2.9.1"
@@ -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: :"alchemy.default", html_options: {})
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
@@ -42,7 +42,7 @@ module Alchemy
42
42
  private
43
43
 
44
44
  def levels
45
- settings.fetch(:levels, (1..6))
45
+ settings.fetch(:levels, 1..6)
46
46
  end
47
47
 
48
48
  def sizes
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.3.6"
4
+ VERSION = "7.3.7"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.6
4
+ version: 7.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -12,7 +12,7 @@ authors:
12
12
  - Martin Meyerhoff
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2025-03-17 00:00:00.000000000 Z
15
+ date: 1980-01-02 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionmailer
@@ -1459,7 +1459,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1459
1459
  version: '0'
1460
1460
  requirements:
1461
1461
  - ImageMagick (libmagick), v6.6 or greater.
1462
- rubygems_version: 3.6.5
1462
+ rubygems_version: 3.6.7
1463
1463
  specification_version: 4
1464
1464
  summary: A powerful, userfriendly and flexible CMS for Rails
1465
1465
  test_files: []