alchemy_cms 7.1.8 → 7.1.10

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: 10dd8a59519d7857b37a4452c589710baed67714eaa650618cfcc6d9deba4361
4
- data.tar.gz: 7696cc960f7ea90f59fcca3e422e59eb57f54b5dba794212099d1cda0963659a
3
+ metadata.gz: 3b6e517fac0fc0ca7046a00d674d1d11c77bcbaf29a7000ea19a2d124c48fe20
4
+ data.tar.gz: 3632b9ff0f939eab1222461620ab417a4dac1aed75e56886ae048085d59769ef
5
5
  SHA512:
6
- metadata.gz: cdc696a969e387cf3eef9175d61be4f5a606532698a347afddc6163fa04b3caa0ca4d5607e1d7b6377fc942e749ccae98ba38b05a89fcf4cde514f449feae5fd
7
- data.tar.gz: 45bb6037a41654d6d16b8a3dde9fc894a3223b7274c76a9b0c7c0505594b51803a1b692a206bf1bd6f44a13776dc25f675b4059659ff4e56a245cb6faa650494
6
+ metadata.gz: 377a11eb888da3c77610a5a2f69d5beabca2dfa18a948d1040c2237355a33ab5e83735bf4768bdcae3af804b02c4982fa62542587f4e925f60283efd39cee804
7
+ data.tar.gz: df98f064d45904b6ef2dcb3cb47e39c8e0fc9487f531e843a8428de6b2387ec2375805814abbb3485c476cdc49a32958cdf104b9b2343b7be707b8a834758566
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.1.10 (2024-06-27)
4
+
5
+ - [7.1-stable] Prevent Javascript error if the page will be unlocked [#2945](https://github.com/AlchemyCMS/alchemy_cms/pull/2945) ([alchemycms-bot](https://github.com/alchemycms-bot))
6
+ - [7.1-stable] fix(ContactMessages): Use alchemy route proxy [#2928](https://github.com/AlchemyCMS/alchemy_cms/pull/2928) ([alchemycms-bot](https://github.com/alchemycms-bot))
7
+
8
+ ## 7.1.9 (2024-06-04)
9
+
10
+ - [7.1-stable] fix(RoutingConstraints): Allow Turbo Stream requests [#2915](https://github.com/AlchemyCMS/alchemy_cms/pull/2915) ([alchemycms-bot](https://github.com/alchemycms-bot))
11
+ - [7.1-stable] fix Ingredient Audio and Video boolean type casting [#2911](https://github.com/AlchemyCMS/alchemy_cms/pull/2911) ([alchemycms-bot](https://github.com/alchemycms-bot))
12
+
3
13
  ## 7.1.8 (2024-05-29)
4
14
 
5
15
  - [7.1-stable] Fix preview window width for smaller viewports [#2890](https://github.com/AlchemyCMS/alchemy_cms/pull/2890) ([alchemycms-bot](https://github.com/alchemycms-bot))
@@ -97,7 +97,7 @@ module Alchemy
97
97
  else
98
98
  Language.current_root_page.urlname
99
99
  end
100
- redirect_to show_page_path(
100
+ redirect_to alchemy.show_page_path(
101
101
  urlname: urlname,
102
102
  locale: prefix_locale? ? Language.current.code : nil
103
103
  )
@@ -26,6 +26,17 @@ module Alchemy
26
26
  def preview_text(max_length = 30)
27
27
  name.to_s[0..max_length - 1]
28
28
  end
29
+
30
+ %i[
31
+ autoplay
32
+ controls
33
+ loop
34
+ muted
35
+ ].each do |method|
36
+ define_method(:"#{method}=") do |value|
37
+ super(ActiveModel::Type::Boolean.new.cast(value))
38
+ end
39
+ end
29
40
  end
30
41
  end
31
42
  end
@@ -31,6 +31,18 @@ module Alchemy
31
31
  def preview_text(max_length = 30)
32
32
  name.to_s[0..max_length - 1]
33
33
  end
34
+
35
+ %i[
36
+ autoplay
37
+ controls
38
+ loop
39
+ muted
40
+ playsinline
41
+ ].each do |method|
42
+ define_method(:"#{method}=") do |value|
43
+ super(ActiveModel::Type::Boolean.new.cast(value))
44
+ end
45
+ end
34
46
  end
35
47
  end
36
48
  end
@@ -15,6 +15,6 @@
15
15
  }
16
16
  locked_page_icon.outerHTML = locked_page_icon_content
17
17
  }
18
- document.querySelector("#page_<%= @page.id -%> .page_status.locked").remove()
18
+ document.querySelector("#page_<%= @page.id -%> .page_status.locked")?.remove()
19
19
  Alchemy.growl('<%= flash[:notice] -%>')
20
20
  })()
@@ -27,7 +27,7 @@ module Alchemy
27
27
  # because it could be a legacy route that needs to be redirected.
28
28
  #
29
29
  def handable_format?
30
- @request.format.symbol.nil? || (@request.format.symbol == :html)
30
+ @request.format.symbol.nil? || @request.format.html?
31
31
  end
32
32
 
33
33
  # We don't want to handle the Rails info routes.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.1.8"
4
+ VERSION = "7.1.10"
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.1.8
4
+ version: 7.1.10
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-05-29 00:00:00.000000000 Z
16
+ date: 2024-06-27 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer
@@ -1442,7 +1442,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1442
1442
  version: '0'
1443
1443
  requirements:
1444
1444
  - ImageMagick (libmagick), v6.6 or greater.
1445
- rubygems_version: 3.5.9
1445
+ rubygems_version: 3.5.11
1446
1446
  signing_key:
1447
1447
  specification_version: 4
1448
1448
  summary: A powerful, userfriendly and flexible CMS for Rails