alchemy_cms 3.3.2 → 3.3.3

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
  SHA1:
3
- metadata.gz: 69af49da272a944b4ed65d4cbee6ce8abbf55fee
4
- data.tar.gz: 621bf8b5edea87df20d012f19528d122dabe59eb
3
+ metadata.gz: 4e46cc1ad834f7414c9aa12266eb68ee85ce0040
4
+ data.tar.gz: 4ab3d7090f5c97ac01ee7c0e263950abbb645c48
5
5
  SHA512:
6
- metadata.gz: 26f584f64d7ec60dd7ea957d1efb9a583d6967c3aac51a3cc4c3a16fa0d3cb53c35b682e84eaf9bf8f27278a55f20a565a859a95e5bf5d66a903dc9d2ad90a50
7
- data.tar.gz: ea685cbcf0271fc1c006fc101d3aabdc4256525fc812637eb7e73d6a143f22418788de2104d3743b70401e3295ce9ee295f6d8c26a05a68429c8960f25323390
6
+ metadata.gz: 40701894774db2496b239cae14fbdcf8ff1e76f801f417e96711e1f218f7696877fc52fa642b9fadfc72e2ba617c125c156cd0214326e74e66b35a9615c5b3be
7
+ data.tar.gz: d3543e573450058ce283b23e222488e70f58ab5c53433f8dd329f5a489949a3ce956c65cfc98421d15cd6699bdcf6d7612a2620fbdc1c9e7da9f768a6e5c4c37
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.3.3 (2016-08-31)
4
+
5
+ * Fix bug that rendered duplicate nested elements within a cell (#1100)
6
+ * Merge `html_options` in EssenceFile view (#1115)
7
+
3
8
  ## 3.3.2 (2016-08-02)
4
9
 
5
10
  * Use relative url for page preview frame in order to prevent cross origin errors (#1076)
@@ -28,7 +28,7 @@ module Alchemy
28
28
  belongs_to :page
29
29
  validates_uniqueness_of :name, scope: 'page_id'
30
30
  validates_format_of :name, with: /\A[a-z0-9_-]+\z/
31
- has_many :elements, -> { order(:position) }, dependent: :destroy
31
+ has_many :elements, -> { where(parent_element_id: nil).order(:position) }, dependent: :destroy
32
32
 
33
33
  class << self
34
34
  def definitions
@@ -1,5 +1,6 @@
1
1
  <%- cache(content) do -%>
2
2
  <%- if attachment = content.ingredient -%>
3
+ <%- html_options = local_assigns.fetch(:html_options, {}) -%>
3
4
  <%= link_to(
4
5
  content.essence.link_text.presence ||
5
6
  content.settings_value(:link_text, local_assigns.fetch(:options, {})) ||
@@ -9,8 +10,10 @@
9
10
  name: attachment.urlname,
10
11
  format: attachment.suffix
11
12
  ),
12
- class: content.essence.css_class.presence,
13
- title: content.essence.title.presence
13
+ {
14
+ class: content.essence.css_class.presence,
15
+ title: content.essence.title.presence
16
+ }.merge(html_options)
14
17
  ) -%>
15
18
  <%- end -%>
16
19
  <%- end -%>
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
- VERSION = "3.3.2"
2
+ VERSION = "3.3.3"
3
3
 
4
4
  def self.version
5
5
  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: 3.3.2
4
+ version: 3.3.3
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: 2016-08-04 00:00:00.000000000 Z
16
+ date: 2016-08-31 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionpack-page_caching