slices 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7351b77e31a685b3a9b8caf5f1591815408bd4e2
4
- data.tar.gz: e1373f1063e41190ea32c92c4367de45b687e3a8
3
+ metadata.gz: ff861ced64d82aaa14af8e14ad8da83e2b7fad6a
4
+ data.tar.gz: 968bc7d313e4ca086070a1d2c1f2502e61823917
5
5
  SHA512:
6
- metadata.gz: 86ef317f478a14a86267f71ef732ab81014241c83765dd13be39758eadc4398b2f65cb35a70b4f72dd8289c9b93cfbd6683e55c7c70a84bfa9e5e202a2157124
7
- data.tar.gz: 3bf5b78441a9a342980297657fbfaab284216c2450345e7b0999efda1b245394fcf8de3a3c1d1bef60014476bf25f60f92a0dacbc9b5181493205dc318abfa18
6
+ metadata.gz: 7c66a70213f602bf37ca9abb743bf6f28cad3d1358cb972895c347da683d59ee6166a2ba9430a6b2b65a43855462d22c22d97c40f223984952aadab7f498c93a
7
+ data.tar.gz: 40723d504ad55e447897e04bfe3da2b1753598713ca46cf4fc0a77ca3a408c57e60d6482ff37415cfc00bcfbf022287eac437cc419fa785ab043cff8490a5311
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 2.0.1 / 2016-02-02
2
+
3
+ ### Bug fixes
4
+
5
+ * [#154](https://github.com/withassociates/slices/pull/154): Fix issue where
6
+ sitemap wasn't showing correct icons for page types and wasn't showing child
7
+ pages in correct order (fixed in [#152](https://github.com/withassociates/slices/pull/154)
8
+ on master)
9
+
1
10
  # 2.0.0 / 2016-01-15
2
11
 
3
12
  * Rails I18n support
@@ -7,7 +7,7 @@ module Admin::SiteMapsHelper
7
7
  #
8
8
  # @!visibility private
9
9
  def sitemap_pages
10
- @sitemap_pages ||= proper_pages.only(:id, :name, :page_id, :path).group_by(&:page_id)
10
+ @sitemap_pages ||= proper_pages.excluding_slices.only(:id, :name, :page_id, :path).group_by(&:page_id)
11
11
  end
12
12
 
13
13
  # Returns children for a given page
@@ -11,6 +11,8 @@ module Slices
11
11
  embeds_many embed_name, class_name: 'Slice', validate: false
12
12
  accepts_nested_attributes_for embed_name, allow_destroy: true
13
13
 
14
+ scope :"excluding_#{embed_name}", ->{ without(embed_name) }
15
+
14
16
  class_attribute :slice_embeds if self == Page
15
17
  if slice_embeds.nil?
16
18
  self.slice_embeds = [embed_name]
@@ -1,4 +1,4 @@
1
1
  module Slices
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slices
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - With Associates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocaine