alchemy_cms 7.0.11 → 7.0.13

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: deabc73ce8b0c2eade517bfe45f105dda4163f3c783733f831c469cae17119e5
4
- data.tar.gz: cdd7d1692459a1ba8250db2742f4d7ae408ca618fa24a91e6f909499cc46b463
3
+ metadata.gz: 7e1e1f44ae24e197683a4022bc888322ad87557119ab90f85fe455e3d0871a11
4
+ data.tar.gz: d88442e6659689d233994892136e531ed45727cea4a771ff3947589d01964fbf
5
5
  SHA512:
6
- metadata.gz: 2787d3437e95a26164374d9fb70b12023f19f674972a94952731d527085ed118880aa7aa070caeb17c869ce41d9776134e059dd909b2a9952b9843c2d1fb40be
7
- data.tar.gz: e1c9daaca6fe230b6973f9cfcba6c5d4b0cfa586ddf02be80dd649db6834f481f8c92d889a7ea73b03dbc1401117e587f7f79c46594a9019a8d22b34ab1f18ff
6
+ metadata.gz: a881a0032cfd6c600e71513982d172db9f5d8bd1276d53de1ca045c758c2a6b256937f68df26375bcc085cf1cff52a4e5db087ba8b33595b5b9884447d419f12
7
+ data.tar.gz: 7701f3c046c5bef17f75be1121fc4908d3aeba17abc88cadf04a5a59656c5c66bf0fcdb76cf395783d0cf5aaff27fab5b5549c512d00427485a5dbbf7407a8a0
data/.gem_release.yml ADDED
@@ -0,0 +1,8 @@
1
+ bump:
2
+ file: lib/alchemy/version.rb
3
+ remote: upstream
4
+ version: patch
5
+ tag:
6
+ remote: upstream
7
+ release:
8
+ repo: AlchemyCMS/alchemy_cms
data/.gitignore CHANGED
@@ -29,3 +29,5 @@ yarn-debug.log*
29
29
  .yarn-integrity
30
30
  yarn.lock
31
31
  /spec/dummy/public/pictures
32
+ .byebug_history
33
+ .vscode/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.13 (2024-05-29)
4
+
5
+ - [7.0-stable] Fix preview window width for smaller viewports [#2889](https://github.com/AlchemyCMS/alchemy_cms/pull/2889) ([alchemycms-bot](https://github.com/alchemycms-bot))
6
+ - [7.0-stable] Fix Preview Window width [#2880](https://github.com/AlchemyCMS/alchemy_cms/pull/2880) ([alchemycms-bot](https://github.com/alchemycms-bot))
7
+ - [7.0-stable] Fix preview window resize transition [#2871](https://github.com/AlchemyCMS/alchemy_cms/pull/2871) ([alchemycms-bot](https://github.com/alchemycms-bot))
8
+
9
+ ## 7.0.12 (2024-04-12)
10
+
11
+ - [7.0-stable] Fix Ingredient Boolean View [#2837](https://github.com/AlchemyCMS/alchemy_cms/pull/2837) ([alchemycms-bot](https://github.com/alchemycms-bot))
12
+ - [7.0-stable] Nullify Ingredients::Page on Page destroy [#2830](https://github.com/AlchemyCMS/alchemy_cms/pull/2830) ([alchemycms-bot](https://github.com/alchemycms-bot))
13
+ - [7.0-stable] Fix module error [#2821](https://github.com/AlchemyCMS/alchemy_cms/pull/2821) ([alchemycms-bot](https://github.com/alchemycms-bot))
14
+ - [7.0-stable] Mark ingredient output as html_safe [#2781](https://github.com/AlchemyCMS/alchemy_cms/pull/2781) ([alchemycms-bot](https://github.com/alchemycms-bot))
15
+
3
16
  ## 7.0.11 (2024-03-05)
4
17
 
5
18
  - [7.0-stable] Do not include timezone in datepickers only displaying date [#2769](https://github.com/AlchemyCMS/alchemy_cms/pull/2769) ([tvdeyen](https://github.com/tvdeyen))
data/Gemfile CHANGED
@@ -61,3 +61,5 @@ if Gem.ruby_version >= Gem::Version.new("3.1.0")
61
61
  end
62
62
  gem "net-smtp", "~> 0.3.0", require: false
63
63
  end
64
+
65
+ gem "gem-release", "~> 2.2"
@@ -7,7 +7,7 @@
7
7
  border: 0 none;
8
8
  background: #fff;
9
9
  border-right: $default-border;
10
- transition: $transition-duration ease-in-out;
10
+ transition: width $transition-duration ease-in-out;
11
11
 
12
12
  .collapsed-menu & {
13
13
  left: $collapsed-main-menu-width;
@@ -15,10 +15,14 @@
15
15
  }
16
16
 
17
17
  .collapsed-menu.elements-window-visible & {
18
- width: calc(100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-width});
18
+ width: calc(
19
+ 100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-min-width}
20
+ );
19
21
 
20
- @media screen and (min-width: $large-screen-break-point) {
21
- max-width: calc(100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-min-width});
22
+ @media screen and (min-width: 1777px) {
23
+ width: calc(
24
+ 100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-width}
25
+ );
22
26
  }
23
27
  }
24
28
  }
@@ -4,7 +4,7 @@ module Alchemy
4
4
  def call
5
5
  content_tag(:audio, **html_options) do
6
6
  tag(:source, src: src, type: type)
7
- end
7
+ end.html_safe
8
8
  end
9
9
 
10
10
  def render?
@@ -16,7 +16,7 @@ module Alchemy
16
16
  end
17
17
 
18
18
  def call
19
- value
19
+ value.html_safe
20
20
  end
21
21
 
22
22
  def render?
@@ -2,7 +2,7 @@ module Alchemy
2
2
  module Ingredients
3
3
  class BooleanView < BaseView
4
4
  def call
5
- Alchemy.t(value, scope: "ingredient_values.boolean")
5
+ Alchemy.t(value.to_s, scope: "ingredient_values.boolean").html_safe
6
6
  end
7
7
 
8
8
  def render?
@@ -15,7 +15,7 @@ module Alchemy
15
15
  ingredient.value.to_s(:rfc822)
16
16
  else
17
17
  ::I18n.l(ingredient.value, format: date_format)
18
- end
18
+ end.html_safe
19
19
  end
20
20
  end
21
21
  end
@@ -23,7 +23,7 @@ module Alchemy
23
23
  class: ingredient.css_class.presence,
24
24
  title: ingredient.title.presence
25
25
  }.merge(html_options)
26
- )
26
+ ).html_safe
27
27
  end
28
28
 
29
29
  def render?
@@ -7,13 +7,22 @@ module Alchemy
7
7
  end
8
8
 
9
9
  def call
10
- content_tag "h#{@level || ingredient.level}",
11
- ingredient.value,
12
- id: ingredient.dom_id.presence,
13
- class: [
14
- ingredient.size ? "h#{ingredient.size}" : nil,
15
- html_options[:class]
16
- ]
10
+ content_tag tag_name, id: dom_id, class: css_classes do
11
+ ingredient.value
12
+ end.html_safe
13
+ end
14
+
15
+ private
16
+
17
+ def tag_name = "h#{@level || ingredient.level}"
18
+
19
+ def dom_id = ingredient.dom_id.presence
20
+
21
+ def css_classes
22
+ [
23
+ ingredient.size ? "h#{ingredient.size}" : nil,
24
+ html_options[:class]
25
+ ]
17
26
  end
18
27
  end
19
28
  end
@@ -12,7 +12,7 @@ module Alchemy
12
12
  end
13
13
 
14
14
  def call
15
- link_to(link_text, value, {target: link_target}.merge(html_options))
15
+ link_to(link_text, value, {target: link_target}.merge(html_options)).html_safe
16
16
  end
17
17
 
18
18
  private
@@ -4,7 +4,7 @@ module Alchemy
4
4
  delegate :page, to: :ingredient
5
5
 
6
6
  def call
7
- link_to page.name, alchemy.show_page_path(urlname: page.urlname)
7
+ link_to(page.name, alchemy.show_page_path(urlname: page.urlname)).html_safe
8
8
  end
9
9
 
10
10
  def render?
@@ -57,7 +57,7 @@ module Alchemy
57
57
  content_tag(:figure, output, {class: ingredient.css_class.presence}.merge(html_options))
58
58
  else
59
59
  output
60
- end
60
+ end.html_safe
61
61
  end
62
62
 
63
63
  private
@@ -15,7 +15,7 @@ module Alchemy
15
15
  ingredient.stripped_body
16
16
  else
17
17
  value.to_s.html_safe
18
- end
18
+ end.html_safe
19
19
  end
20
20
  end
21
21
  end
@@ -24,7 +24,7 @@ module Alchemy
24
24
  target: ((link_target == "blank") ? "_blank" : nil),
25
25
  data: {link_target: link_target}
26
26
  }.merge(html_options))
27
- end
27
+ end.html_safe
28
28
  end
29
29
 
30
30
  private
@@ -6,7 +6,7 @@ module Alchemy
6
6
  def call
7
7
  content_tag(:video, html_options) do
8
8
  tag(:source, src: src, type: attachment.file_mime_type)
9
- end
9
+ end.html_safe
10
10
  end
11
11
 
12
12
  def render?
@@ -121,6 +121,8 @@ module Alchemy
121
121
  has_one :draft_version, -> { drafts }, class_name: "Alchemy::PageVersion"
122
122
  has_one :public_version, -> { published }, class_name: "Alchemy::PageVersion", autosave: -> { persisted? }
123
123
 
124
+ has_many :page_ingredients, class_name: "Alchemy::Ingredients::Page", foreign_key: :related_object_id, dependent: :nullify
125
+
124
126
  before_validation :set_language,
125
127
  if: -> { language.nil? }
126
128
 
@@ -35,7 +35,7 @@ module Alchemy
35
35
  defined_controllers.concat(definition_hash["navigation"]["sub_navigation"].map { |x| x["controller"] })
36
36
  end
37
37
 
38
- validate_controllers_existence(defined_controllers)
38
+ validate_controllers_existence(defined_controllers, definition_hash)
39
39
  end
40
40
 
41
41
  @@alchemy_modules |= [definition_hash]
@@ -43,7 +43,7 @@ module Alchemy
43
43
 
44
44
  private
45
45
 
46
- def validate_controllers_existence(controllers)
46
+ def validate_controllers_existence(controllers, definition_hash)
47
47
  controllers.each do |controller_val|
48
48
  next if controller_val.blank?
49
49
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.0.11"
4
+ VERSION = "7.0.13"
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.0.11
4
+ version: 7.0.13
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-03-05 00:00:00.000000000 Z
16
+ date: 2024-05-29 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer
@@ -712,6 +712,7 @@ extra_rdoc_files: []
712
712
  files:
713
713
  - ".codeclimate.yml"
714
714
  - ".editorconfig"
715
+ - ".gem_release.yml"
715
716
  - ".github/FUNDING.yml"
716
717
  - ".github/ISSUE_TEMPLATE/Bug_report.md"
717
718
  - ".github/ISSUE_TEMPLATE/Feature_request.md"
@@ -1455,7 +1456,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1455
1456
  version: '0'
1456
1457
  requirements:
1457
1458
  - ImageMagick (libmagick), v6.6 or greater.
1458
- rubygems_version: 3.4.19
1459
+ rubygems_version: 3.5.9
1459
1460
  signing_key:
1460
1461
  specification_version: 4
1461
1462
  summary: A powerful, userfriendly and flexible CMS for Rails