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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/alchemy/seeder.rb +8 -2
- data/lib/alchemy/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a020fff31bc399c4927b5f6c4757d3f8ec8c24b76e42d6f352a5687e1feb0924
|
4
|
+
data.tar.gz: ae7367b2543dbfde31a5a7f09418e68bb94e2d40626eebd650aca7f14d5bd0cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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))
|
data/lib/alchemy/seeder.rb
CHANGED
@@ -82,7 +82,11 @@ module Alchemy
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def page_yml
|
85
|
-
@_page_yml ||= YAML.
|
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.
|
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)
|
data/lib/alchemy/version.rb
CHANGED
data/package.json
CHANGED
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
|
+
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-
|
16
|
+
date: 2023-05-26 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: actionmailer
|