alchemy_cms 6.1.4 → 6.1.5

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: 1ffc03e16f129a444f6adfcdf851012f04cdbca01d1bf10e8e4edae163383be2
4
- data.tar.gz: c40cc3dd8deb37fa7cae8c78de08438c184d2200cce480fce1785cc5ca62f210
3
+ metadata.gz: a020fff31bc399c4927b5f6c4757d3f8ec8c24b76e42d6f352a5687e1feb0924
4
+ data.tar.gz: ae7367b2543dbfde31a5a7f09418e68bb94e2d40626eebd650aca7f14d5bd0cb
5
5
  SHA512:
6
- metadata.gz: 141196b0c09257888ebe8408513ab5fb2bbebdcb5eaa4b8871fbec81afde8d6323021ca7d97dc2f880a44151860b618501b92f42e0649164ac6affdac01ca384
7
- data.tar.gz: fc764011dd71971b3ec970bc0c86f8a5fc4f3b288f5e9596facb69dab8a5ad35805743dfe4c128682419b356504e6ab8b27b0db3e9d1da43d676b6a309615ba2
6
+ metadata.gz: 7c572d21fa3d5adb4de20649bfe1e8fa127805a82b2852f310ed6dd850797094e7cbbac5c8d5e8061600d88e54548f14753a543c8af6dc2cd0c227bb45e22818
7
+ data.tar.gz: 0e75de36f74f9b1c7c37cf12785c154dc2ed987e377fe355a9b98c3821f63302a60f8ee03e06e6bc84e04703a20d8f200236f4370ecbb6f599c0c89f3bb10389
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.1.5 (2023-05-26)
4
+
5
+ - [6.1] Fix page seeder [#2482](https://github.com/AlchemyCMS/alchemy_cms/pull/2482) ([tvdeyen](https://github.com/tvdeyen))
6
+
3
7
  ## 6.1.4 (2023-05-18)
4
8
 
5
9
  - [6.1] Revert "Preload related objects in Alchemy::PagesController" [#2473](https://github.com/AlchemyCMS/alchemy_cms/pull/2473) ([tvdeyen](https://github.com/tvdeyen))
@@ -82,7 +82,11 @@ module Alchemy
82
82
  end
83
83
 
84
84
  def page_yml
85
- @_page_yml ||= YAML.load_file(page_seeds_file)
85
+ @_page_yml ||= YAML.safe_load(
86
+ page_seeds_file.read,
87
+ permitted_classes: [Date],
88
+ aliases: true
89
+ )
86
90
  end
87
91
 
88
92
  def contentpages
@@ -99,7 +103,9 @@ module Alchemy
99
103
 
100
104
  def create_page(draft, attributes = {})
101
105
  children = draft.delete("children") || []
102
- page = Alchemy::Page.create!(draft.merge(attributes))
106
+ page = Alchemy::Page.new(draft.merge(attributes))
107
+ page.versions.build
108
+ page.save!
103
109
  log "Created page: #{page.name}"
104
110
  children.each do |child|
105
111
  create_page(child, parent: page, language: page.language)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "6.1.4"
4
+ VERSION = "6.1.5"
5
5
 
6
6
  def self.version
7
7
  VERSION
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alchemy_cms/admin",
3
- "version": "6.1.4",
3
+ "version": "6.1.5",
4
4
  "description": "AlchemyCMS",
5
5
  "browser": "package/admin.js",
6
6
  "files": [
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: 6.1.4
4
+ version: 6.1.5
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: 2023-05-18 00:00:00.000000000 Z
16
+ date: 2023-05-26 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer