alchemy_cms 7.2.4 → 7.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f9a554636616ea87a438350ad7e91462a8b2196047504d81669782b8d08a6d8
4
- data.tar.gz: 6897d00c7e23af4de0023fb6c2f63819e7de68a549274afb5c258463e3924482
3
+ metadata.gz: 5761f973ebc69f26df9000e33ac1116dd900943e4beca826a5cfda2951d4cc09
4
+ data.tar.gz: '0242947c5e00faa5f006713192c28b35996b85202d7ea20557c3a05b56a0879a'
5
5
  SHA512:
6
- metadata.gz: e446096fe1d3e1aa5dcc327ad1b7d779447b668c7294d83a4789f2694a0c7e90ee053c422e17bd8168bcaf420a0909b3614ec3302c33986235ef02459eb29074
7
- data.tar.gz: 52851127d29b47907b9c9ea25ead515bb94060962585e7c70afc65f2cb426c7dfc63d65263e16d21e157b0f1786391fea1410327d8669bee9b5b7a3aa3c3897a
6
+ metadata.gz: ddc9484e053fcd6b359449737f3eac7b88def44eaaad1f1bf2f281e7f863829ad1a8fec8848911c2e888dbb66731c523dd53bf5ef1ef5ec55c56540cd5a66e96
7
+ data.tar.gz: 9608c346894b1a9f36d9ffe62da010666405ae97320330921dfdfe5cebb1369cdbe63a77f06a8ef044b3370342a7d0b655c3e64231557b1ae2abf9554defebec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.2.6 (2024-09-04)
4
+
5
+ - [7.2-stable] Set Alchemy::Page.current in Messages Controller [#3021](https://github.com/AlchemyCMS/alchemy_cms/pull/3021) ([tvdeyen](https://github.com/tvdeyen))
6
+ - [7.2-stable] Fallback to @page var if no Current.page is set [#3020](https://github.com/AlchemyCMS/alchemy_cms/pull/3020) ([tvdeyen](https://github.com/tvdeyen))
7
+
8
+ ## 7.2.5 (2024-09-04)
9
+
10
+ - [7.2-stable] Render Datetime ingredient in local time zone [#3019](https://github.com/AlchemyCMS/alchemy_cms/pull/3019) ([tvdeyen](https://github.com/tvdeyen))
11
+ - [7.2-stable] Allow to set input_type on Datetime ingredient editor [#3016](https://github.com/AlchemyCMS/alchemy_cms/pull/3016) ([tvdeyen](https://github.com/tvdeyen))
12
+
3
13
  ## 7.2.4 (2024-08-10)
4
14
 
5
15
  - [7.2-stable] Fix margin of alchemy-message in alchemy-dialog [#2993](https://github.com/AlchemyCMS/alchemy_cms/pull/2993) ([tvdeyen](https://github.com/tvdeyen))
@@ -11,10 +11,11 @@ module Alchemy
11
11
  end
12
12
 
13
13
  def call
14
+ datetime = ingredient.value.in_time_zone(Rails.application.config.time_zone)
14
15
  if date_format == "rfc822"
15
- ingredient.value.to_s(:rfc822)
16
+ datetime.to_fs(:rfc822)
16
17
  else
17
- ::I18n.l(ingredient.value, format: date_format)
18
+ ::I18n.l(datetime, format: date_format)
18
19
  end.html_safe
19
20
  end
20
21
  end
@@ -66,6 +66,7 @@ module Alchemy
66
66
  MessagesMailer.contact_form_mail(@message, mail_to, mail_from, subject).deliver
67
67
  redirect_to_success_page
68
68
  else
69
+ Current.page = @page
69
70
  render template: "alchemy/pages/show"
70
71
  end
71
72
  end
@@ -72,7 +72,7 @@ module Alchemy
72
72
  #
73
73
  def render_elements(options = {}, &blk)
74
74
  options = {
75
- from_page: Current.page,
75
+ from_page: Current.page || @page,
76
76
  render_format: "html"
77
77
  }.update(options)
78
78
 
@@ -5,7 +5,7 @@ module Alchemy
5
5
  # A datetime value
6
6
  #
7
7
  class Datetime < Alchemy::Ingredient
8
- allow_settings %i[date_format]
8
+ allow_settings %i[date_format input_type]
9
9
 
10
10
  def value
11
11
  ActiveRecord::Type::DateTime.new.cast(self[:value])
@@ -7,7 +7,8 @@
7
7
  datetime_editor, :value, {
8
8
  name: datetime_editor.form_field_name,
9
9
  id: datetime_editor.form_field_id,
10
- value: datetime_editor.value
10
+ value: datetime_editor.value,
11
+ type: datetime_editor.settings[:input_type]
11
12
  }
12
13
  ) %>
13
14
  <% end %>
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.2.4"
4
+ VERSION = "7.2.6"
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.2.4
4
+ version: 7.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2024-08-10 00:00:00.000000000 Z
16
+ date: 2024-09-04 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer
@@ -1432,7 +1432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1432
1432
  version: '0'
1433
1433
  requirements:
1434
1434
  - ImageMagick (libmagick), v6.6 or greater.
1435
- rubygems_version: 3.5.11
1435
+ rubygems_version: 3.5.16
1436
1436
  signing_key:
1437
1437
  specification_version: 4
1438
1438
  summary: A powerful, userfriendly and flexible CMS for Rails