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 +4 -4
- data/CHANGELOG.md +9 -0
- data/app/helpers/admin/site_maps_helper.rb +1 -1
- data/lib/slices/has_slices.rb +2 -0
- data/lib/slices/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff861ced64d82aaa14af8e14ad8da83e2b7fad6a
|
|
4
|
+
data.tar.gz: 968bc7d313e4ca086070a1d2c1f2502e61823917
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/slices/has_slices.rb
CHANGED
|
@@ -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]
|
data/lib/slices/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cocaine
|