alchemy_cms 4.3.0 → 4.3.1

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: 6793e9729b0c34e11be7a3e2d3f7ff0349487160e4475dd996f7f9f7fcb934e2
4
- data.tar.gz: ce5abeb95c686969111f5416119044f48e4b14567a06c304c273834b23bf7ebb
3
+ metadata.gz: c67729c6c534a44e06fc02b82c53a64ff9cafab4433533dc1592df5e59579541
4
+ data.tar.gz: fe7e077d42fae25e4d12f428c1a734feeaae75338cd43c2b88d2fb49f214de6b
5
5
  SHA512:
6
- metadata.gz: 3b491617ba28d0076d0a9dfbfac6eccc4dcd6d10e10d50a3491b5b5c24c3a46e0ede45ce7541e59fc6be118a6833ba89c73db39c885e454892d0e5509215c134
7
- data.tar.gz: 2707ac47411012a25a279fdd9fefeffdaffa1109f17870468d9995d5291c35e96ed4103f457986ba3dbccf23f6f8aba34ebe5476ca9d166ca5c4dd357b6c1065
6
+ metadata.gz: 91d8208ee014e33ab41aad7f4f037f8a614ac0e5ade40483d557f23ba6a190db4c17ea1e60c270731532ffd81224b695e151725edea3c0317bf453ee06ab990c
7
+ data.tar.gz: cd476220daa7ba64f0c14ebd350deb973754f35203f91e13dd9bfcf94d4291a68bd609be42de0095cbd19424adfa978f7738c47fea9e9a25e2fe87740603254d
@@ -1,3 +1,10 @@
1
+ ## 4.3.1 (2019-09-27)
2
+
3
+ - Fix Cell Migration to maintain positions [#1625](https://github.com/AlchemyCMS/alchemy_cms/pull/1625) ([mamhoff](https://github.com/mamhoff))
4
+ - Cell Upgrader: Match quotation marks in cell name string [#1624](https://github.com/AlchemyCMS/alchemy_cms/pull/1624) ([mamhoff](https://github.com/mamhoff))
5
+ - Cell Migrator: Maintain element order in fixed elements [#1623](https://github.com/AlchemyCMS/alchemy_cms/pull/1623) ([mamhoff](https://github.com/mamhoff))
6
+ - Enhance cells upgrader to deal with render_elements from_page: x [#1622](https://github.com/AlchemyCMS/alchemy_cms/pull/1622) ([mamhoff](https://github.com/mamhoff))
7
+
1
8
  # 4.3.0 (2019-08-23)
2
9
 
3
10
  - Add Rails 6 support [#1616](https://github.com/AlchemyCMS/alchemy_cms/pull/1616) ([tvdeyen](https://github.com/tvdeyen))
@@ -11,6 +18,13 @@
11
18
  - Only return visible elements from Pages elements relations [#1590](https://github.com/AlchemyCMS/alchemy_cms/pull/1590) ([tvdeyen](https://github.com/tvdeyen))
12
19
  - Only return visible elements from Elements nested_elements relation [#1589](https://github.com/AlchemyCMS/alchemy_cms/pull/1589) ([tvdeyen](https://github.com/tvdeyen))
13
20
 
21
+ ## 4.2.3 (2019-09-27)
22
+
23
+ - Fix Cell Migration to maintain positions [#1625](https://github.com/AlchemyCMS/alchemy_cms/pull/1625) ([mamhoff](https://github.com/mamhoff))
24
+ - Cell Upgrader: Match quotation marks in cell name string [#1624](https://github.com/AlchemyCMS/alchemy_cms/pull/1624) ([mamhoff](https://github.com/mamhoff))
25
+ - Cell Migrator: Maintain element order in fixed elements [#1623](https://github.com/AlchemyCMS/alchemy_cms/pull/1623) ([mamhoff](https://github.com/mamhoff))
26
+ - Enhance cells upgrader to deal with render_elements from_page: x [#1622](https://github.com/AlchemyCMS/alchemy_cms/pull/1622) ([mamhoff](https://github.com/mamhoff))
27
+
14
28
  ## 4.2.2 (2019-08-13)
15
29
 
16
30
  - Fallback to default locale if unavailable locale requested [#1610](https://github.com/AlchemyCMS/alchemy_cms/pull/1610) ([mamhoff](https://github.com/mamhoff))
@@ -27,11 +27,13 @@ module Alchemy::Upgrader::Tasks
27
27
  # bust element definitions insta cache
28
28
  Alchemy::Element.instance_variable_set('@definitions', nil)
29
29
  fixed_element = Alchemy::Element.find_or_initialize_by(fixed: true, name: cell.name, page: cell.page)
30
- elements = Alchemy::Element.where(cell_id: cell.id)
30
+ elements = Alchemy::Element.where(cell_id: cell.id).order(position: :asc)
31
31
 
32
32
  if fixed_element.new_record?
33
- fixed_element.nested_elements = elements
34
33
  fixed_element.save!
34
+ Alchemy::Element.acts_as_list_no_update do
35
+ elements.update_all(parent_element_id: fixed_element.id)
36
+ end
35
37
  puts "Created new fixed element '#{fixed_element.name}' for cell '#{cell.name}'."
36
38
  else
37
39
  puts "Element for cell '#{cell.name}' already present. Skip"
@@ -129,6 +129,7 @@ module Alchemy::Upgrader::Tasks
129
129
  Dir.glob("#{alchemy_views_folder}/**/*").each do |view|
130
130
  next if File.directory?(view)
131
131
  gsub_file(view, /render_cell[\(\s]?([:'"]?[a-z_]+['"]?)\)?/, 'render_elements(only: \1, fixed: true)')
132
+ gsub_file(view, /render_elements[\(\s](.*):?from_cell:?\s?(=>)?\s?(['"][a-z_]+['"])\)?/, 'render_elements(\1only: \3, fixed: true)')
132
133
  end
133
134
  end
134
135
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "4.3.0"
4
+ VERSION = "4.3.1"
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: 4.3.0
4
+ version: 4.3.1
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: 2019-08-23 00:00:00.000000000 Z
16
+ date: 2019-09-27 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active_model_serializers